Bug 1402871 - Change VREventObserver::mWindow to a RefPtr,r=dveditz

MozReview-Commit-ID: 79MlNMAvIQD

--HG--
extra : rebase_source : 717bed76ca218844d4308e616ee5a7bb2a59591c
This commit is contained in:
Kearwood Gilbert 2017-10-11 14:25:51 -07:00
parent 28e8f43756
commit f379b8fea9

View File

@ -34,8 +34,7 @@ public:
private:
~VREventObserver();
// Weak pointer, instance is owned by mWindow.
nsGlobalWindow* MOZ_NON_OWNING_REF mWindow;
RefPtr<nsGlobalWindow> mWindow;
// For WebVR telemetry for tracking users who view content
// in the 2D view.
TimeStamp mSpendTimeIn2DView;