Bug 1126018 - [e10s] Add shims for some observer topics (r=mconley)
authorBill McCloskey <wmccloskey@mozilla.com>
Thu, 29 Jan 2015 11:24:46 -0800
changeset 226579 56544ee8b02781b0381f8fa24fe7a79ba8b988e6
parent 226578 b16451a953bd447045fdb084bbfe51ac6b838ae6
child 226580 25ca03634cf5f82fb9fef5e3a36833849b24a234
push id28200
push userkwierso@gmail.com
push dateThu, 29 Jan 2015 23:01:46 +0000
treeherdermozilla-central@4380ed39de3a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1126018
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1126018 - [e10s] Add shims for some observer topics (r=mconley)
toolkit/components/addoncompat/RemoteAddonsParent.jsm
--- a/toolkit/components/addoncompat/RemoteAddonsParent.jsm
+++ b/toolkit/components/addoncompat/RemoteAddonsParent.jsm
@@ -324,18 +324,23 @@ let ObserverParent = {
         Cu.reportError(e);
       }
     }
   }
 };
 ObserverParent.init();
 
 // We only forward observers for these topics.
-let TOPIC_WHITELIST = ["content-document-global-created",
-                       "document-element-inserted",];
+let TOPIC_WHITELIST = [
+  "content-document-global-created",
+  "document-element-inserted",
+  "dom-window-destroyed",
+  "inner-window-destroyed",
+  "outer-window-destroyed",
+];
 
 // This interposition listens for
 // nsIObserverService.{add,remove}Observer.
 let ObserverInterposition = new Interposition("ObserverInterposition");
 
 ObserverInterposition.methods.addObserver =
   function(addon, target, observer, topic, ownsWeak) {
     if (TOPIC_WHITELIST.indexOf(topic) >= 0) {