Bug 1287710 - Ensure the docshell variable doesn't point to a dead CPOW. r=me, a=test-only
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 16 Aug 2016 09:22:41 -0400
changeset 349775 704c14625c6fdf3ff00962c03dd6350a25a6b11a
parent 349774 ebabbd80b65c1717ad8a9ed98dda0fcc1c032405
child 349776 84220f4fafebf8c319ab3064563d2b28416bb268
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, test-only
bugs1287710
milestone50.0a2
Bug 1287710 - Ensure the docshell variable doesn't point to a dead CPOW. r=me, a=test-only MozReview-Commit-ID: JtJOGrcrGbU
docshell/test/browser/browser_tab_touch_events.js
--- a/docshell/test/browser/browser_tab_touch_events.js
+++ b/docshell/test/browser/browser_tab_touch_events.js
@@ -32,16 +32,19 @@ add_task(function*() {
                         .getInterface(Ci.nsIWebNavigation)
                         .QueryInterface(Ci.nsIDocShell);
   is(docshell.touchEventsOverride, Ci.nsIDocShell.TOUCHEVENTS_OVERRIDE_DISABLED,
     "Newly created frames should use the new touchEventsOverride flag");
 
   newFrameWin.location.reload();
   yield waitForEvent(newFrameWin, "load");
 
+  docshell = newFrameWin.QueryInterface(Ci.nsIInterfaceRequestor)
+                        .getInterface(Ci.nsIWebNavigation)
+                        .QueryInterface(Ci.nsIDocShell);
   is(docshell.touchEventsOverride, Ci.nsIDocShell.TOUCHEVENTS_OVERRIDE_DISABLED,
     "New touchEventsOverride flag should persist across reloads");
 
   gBrowser.removeCurrentTab();
 });
 
 function waitForEvent(target, event) {
   return new Promise(function(resolve) {