Bug 846090 - XBL mochitests timing out/failing on b2g. r=jgriffin
authorMartijn Wargers <mwargers@mozilla.com>
Wed, 21 Aug 2013 00:41:18 +0200
changeset 143671 2c5c0e94bf7c5905a4a7ab5429a0ac72694a45c9
parent 143670 b5c3f87f17ea57be953d64bf681032eb8535faa0
child 143672 a4eb6b0f5e888df0b43485b9b7fcea1356829960
push id25134
push userryanvm@gmail.com
push dateWed, 21 Aug 2013 21:10:59 +0000
treeherdermozilla-central@679713792647 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs846090
milestone26.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 846090 - XBL mochitests timing out/failing on b2g. r=jgriffin
testing/mochitest/b2g_start_script.js
--- a/testing/mochitest/b2g_start_script.js
+++ b/testing/mochitest/b2g_start_script.js
@@ -45,12 +45,15 @@ if (outOfProcess) {
   mm.addMessageListener("SPPingService", specialPowersObserver);
   mm.addMessageListener("SpecialPowers.Quit", specialPowersObserver);
   mm.addMessageListener("SpecialPowers.Focus", specialPowersObserver);
   mm.addMessageListener("SPPermissionManager", specialPowersObserver);
 
   mm.loadFrameScript(CHILD_LOGGER_SCRIPT, true);
   mm.loadFrameScript(CHILD_SCRIPT_API, true);
   mm.loadFrameScript(CHILD_SCRIPT, true);
+  //Workaround for bug 848411, once that bug is fixed, the following line can be removed
+  mm.loadFrameScript('data:,addEventListener%28%22DOMWindowCreated%22%2C%20function%28e%29%20%7B%0A%20%20removeEventListener%28%22DOMWindowCreated%22%2C%20arguments.callee%2C%20false%29%3B%0A%20%20var%20window%20%3D%20e.target.defaultView%3B%0A%20%20window.wrappedJSObject.SpecialPowers.addPermission%28%22allowXULXBL%22%2C%20true%2C%20window.document%29%3B%0A%7D%0AB', true);
+
   specialPowersObserver._isFrameScriptLoaded = true;
 }
 
 container.src = mochitestUrl;