Bug 991636 - Fix toolkit/devtools/server/tests/mochitest/test_connectToChild.html test. r=msucan

This commit is contained in:
Alexandre Poirot 2014-04-08 14:07:00 +02:00
parent dcdde73f9b
commit ebf492f6c8

View File

@ -23,10 +23,11 @@ Cu.import("resource://gre/modules/devtools/dbg-server.jsm");
window.onload = function() {
SimpleTest.waitForExplicitFinish();
// Always log packets when running tests.
SpecialPowers.pushPrefEnv({
"set": [
["devtools.debugger.log", true]
// Always log packets when running tests.
["devtools.debugger.log", true],
["dom.mozBrowserFramesEnabled", true]
]
}, runTests);
}
@ -34,7 +35,7 @@ window.onload = function() {
function runTests() {
// Create a minimal iframe with a message manager
let iframe = document.createElement("iframe");
iframe.setAttribute("mozbrowser", "true");
iframe.mozbrowser = true;
document.body.appendChild(iframe);
let mm = iframe.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader.messageManager;