Bug 788866 - [B2G] mochitests fail to focus test window. r=smaug, f=ahal
authorMartijn Wargers <mwargers@mozilla.com>
Fri, 05 Apr 2013 08:50:49 -0400
changeset 127812 1f65b5204c8bcb45df6a2bfb7b2418ecb635cdab
parent 127811 1e958f7224a737ac34be464a9e11e445c8d1b0df
child 127813 ca8b7c325edecf2744f2ed2228fc8d96608f3490
push id24512
push userryanvm@gmail.com
push dateFri, 05 Apr 2013 20:13:49 +0000
treeherdermozilla-central@139b6ba547fa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs788866
milestone23.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 788866 - [B2G] mochitests fail to focus test window. r=smaug, f=ahal
testing/mochitest/runtestsb2g.py
--- a/testing/mochitest/runtestsb2g.py
+++ b/testing/mochitest/runtestsb2g.py
@@ -54,17 +54,19 @@ class B2GMochitest(Mochitest):
         if self.OOP:
             OOP_script = """
 let specialpowers = {};
 let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
 loader.loadSubScript("chrome://specialpowers/content/SpecialPowersObserver.js", specialpowers);
 let specialPowersObserver = new specialpowers.SpecialPowersObserver();
 specialPowersObserver.init();
 
-let mm = container.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader.messageManager;
+let fl = container.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader;
+fl.activateRemoteFrame();
+let mm = fl.messageManager;
 mm.addMessageListener("SPPrefService", specialPowersObserver);
 mm.addMessageListener("SPProcessCrashService", specialPowersObserver);
 mm.addMessageListener("SPPingService", specialPowersObserver);
 mm.addMessageListener("SpecialPowers.Quit", specialPowersObserver);
 mm.addMessageListener("SPPermissionManager", specialPowersObserver);
 
 mm.loadFrameScript(CHILD_LOGGER_SCRIPT, true);
 mm.loadFrameScript(CHILD_SCRIPT_API, true);