зеркало из https://github.com/mozilla/gecko-dev.git
bc348929b6
With these changes, XBL just runs in the window scope of whatever document it's attached to. Since (outside of tests and "remote XUL") we no longer attach XBL to web documents, this is fine. And "remote XUL" already ran without the XBL scope. Native anonymous content, which used to be placed in the XBL scope to hide it from the page, is now placed in the unprivileged junk scope, so it stays hidden from the page. dom/xbl/test/test_bug944407.xul is being removed because we are changing the behavior it's trying to test for. Since we now always put the XBL in the same scope as the page, script is enabled for the XBL if and only if it's enabled for the page. dom/base/test/test_bug419527.xhtml, dom/events/test/test_bug391568.xhtml, dom/xbl/test/test_bug1086996.xhtml are being switched to a chrome test because otherwise the XBL can't see the getAnonymousNodes method. All the XBL bits are being removed from test_interfaces because we no longer have a separate XBL scope to test the behavior of. js/xpconnect/tests/mochitest/test_nac.xhtml is being removed because XBL no longer has access to NAC unless the page it's attached to does too, so the test doesn't really make sense. layout/xul/test/test_bug1197913.xul is being switched to a chrome test because its XUL elements use bindings that rely on APIs that are not exposed to normal web content. layout/reftests/bugs/495385-2f.xhtml is being removed because I can't think of a sane way to test that in the new world, short of running the reftest as chrome. And it doesn't seem worthwhile to look for a way to do that. dom/xbl/test/test_bug1098628_throw_from_construct.xhtml now needs to expectUncaughtException(), because the exception is now being thrown in Window scope. dom/xbl/test/test_bug1359859.xhtml needs to expectUncaughtException() as needed and not use XPCNativeWrapper (which it doesn't need to anyway now). dom/xbl/test/test_bug389322.xhtml, dom/xbl/test/test_bug400705.xhtml, dom/xbl/test/test_bug401907.xhtml, dom/xbl/test/test_bug403162.xhtml, dom/xbl/test/test_bug526178.xhtml, dom/xbl/test/test_bug639338.xhtml don't need to use XPCNativeWrapper anymore. dom/xbl/test/test_bug821850.html is being removed because it exists only to test XBL scopes. dom/xbl/test/file_bug950909.xml is being changed to work without a separate XBL scope (though whether the test still makes sense at that point is a bit questionable). Differential Revision: https://phabricator.services.mozilla.com/D19260 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
.eslintrc.js | ||
bug310107-resource.xhtml | ||
chrome.ini | ||
file_bug310107.html | ||
file_bug366770.xml | ||
file_bug372769.xhtml | ||
file_bug379959_cross.html | ||
file_bug379959_data.html | ||
file_bug379959_xbl.xml | ||
file_bug397934.xhtml | ||
file_bug481558.xbl | ||
file_bug481558css.sjs | ||
file_bug591198_inner.html | ||
file_bug591198_xbl.xml | ||
file_bug844783.xhtml | ||
file_bug950909.html | ||
file_bug950909.xml | ||
file_fieldScopeChain.xml | ||
mochitest.ini | ||
test_bug310107.html | ||
test_bug366770.html | ||
test_bug371724.xhtml | ||
test_bug372769.html | ||
test_bug378518.xul | ||
test_bug378866.xhtml | ||
test_bug379959.html | ||
test_bug389322.xhtml | ||
test_bug397934.html | ||
test_bug398135.xul | ||
test_bug398492.xul | ||
test_bug400705.xhtml | ||
test_bug401907.xhtml | ||
test_bug403162.xhtml | ||
test_bug468210.xhtml | ||
test_bug481558.html | ||
test_bug526178.xhtml | ||
test_bug542406.xhtml | ||
test_bug591198.html | ||
test_bug639338.xhtml | ||
test_bug721452.xul | ||
test_bug723676.xul | ||
test_bug772966.xul | ||
test_bug790265.xhtml | ||
test_bug844783.html | ||
test_bug872273.xhtml | ||
test_bug950909.xul | ||
test_bug1086996.xhtml | ||
test_bug1098628_throw_from_construct.xhtml | ||
test_bug1359859.xhtml | ||
test_fieldScopeChain.html |