author | Brian Grinstead <bgrinstead@mozilla.com> |
Wed, 08 Jan 2020 03:38:06 +0000 | |
changeset 509310 | 678115088f82111341ae09792756447f42a5d090 |
parent 509309 | f7b4438f499f2598fee82412bf00a91cb0a02c4d |
child 509311 | 889c88363688e7e64b669b3c155852e7f6cb49b8 |
push id | 104543 |
push user | bgrinstead@mozilla.com |
push date | Wed, 08 Jan 2020 03:45:34 +0000 |
treeherder | autoland@678115088f82 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bzbarsky |
bugs | 1596970, 375314 |
milestone | 74.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
|
--- a/dom/base/test/test_bug375314.html +++ b/dom/base/test/test_bug375314.html @@ -70,39 +70,28 @@ var componentManager = SpecialPowers.wra .QueryInterface(Ci.nsIComponentRegistrar); componentManager.registerFactory(policyID, "Test content policy", policyName, policy); var categoryManager = Cc["@mozilla.org/categorymanager;1"].getService(Ci.nsICategoryManager); categoryManager.addCategoryEntry("content-policy", policyName, policyName, false, true); // Try creating different request types -var tests = ["SCRIPT", "IMAGE", "STYLESHEET", "OBJECT", "DOCUMENT", "SUBDOCUMENT", "XBL", "XMLHTTPREQUEST"]; +var tests = ["SCRIPT", "IMAGE", "STYLESHEET", "OBJECT", "DOCUMENT", "SUBDOCUMENT", "XMLHTTPREQUEST"]; var curTest = -1; - -if (!AppConstants.MOZ_XBL) { - tests.splice(tests.indexOf("XBL"), 1); -} - var div; SimpleTest.waitForExplicitFinish(); setTimeout(runNextTest, 0); function runNextTest() { if (curTest >= 0) { var type = "TYPE_" + tests[curTest]; is(lastContentType, Ci.nsIContentPolicy[type], "Content policies triggered for " + type); - - if (tests[curTest] == "XBL") - { - //XXX Removing binding to work-around a memory leak (bugs 478528, 499735). - div.style.MozBinding = ""; - } } curTest++; if (curTest < tests.length) { var method = "request_" + tests[curTest].toLowerCase(); try { window[method](); } catch(e) {} @@ -173,25 +162,16 @@ function request_document() { function request_subdocument() { var content = $("content"); var frame = document.createElement("iframe"); frame.setAttribute("src", testURL); content.appendChild(frame); } -function request_xbl() { - var content = $("content"); - - div = document.createElement("div"); - div.style.MozBinding = "url(" + testURL + ")"; - $('test').appendChild(div); - div.offsetLeft; // Flush styles. -} - function request_xmlhttprequest() { var request = new XMLHttpRequest(); request.open("GET", testURL, false); request.send(null); } </script> </pre>