зеркало из https://github.com/mozilla/gecko-dev.git
773d32e9fe
Loading SpecialPowers into frame scripts has side-effects, detailed in part 1, which are undesirable. The main side-effect that I'm trying to get rid of here is the force-enabling of permissive COWs in frame script scopes, which is blocking changes that I need to make elsewhere. But both that and the scope pollution it causes are likely to allow code to work when running in automation which fails in real world usage. This patch changes our special powers frame scripts to load specialpowers.js and specialpowersAPI.js as JSMs, which run in their own global, but define most of the same properties on our frame script globals. Most other callers still load those scripts via <script> tags or the subscript loader, and should ideally migrated in a follow-up. But even so, this patch still gives us a cleaner separation of the frame script and non-frame-script loading code. MozReview-Commit-ID: CR226gCDaGY --HG-- extra : rebase_source : 251574d238ded31b9df32dc89852251831d55757 extra : source : c53c7b0249ad3359fbc9f144f2cf9ca3b6386c59 |
||
---|---|---|
.. | ||
BrowserTestUtils | ||
MochiKit | ||
baselinecoverage | ||
chrome | ||
dynamic | ||
embed | ||
manifests | ||
pywebsocket | ||
ssltunnel | ||
static | ||
tests | ||
README.txt | ||
ShutdownLeaksCollector.jsm | ||
__init__.py | ||
api.js | ||
bisection.py | ||
browser-harness.xul | ||
browser-test.js | ||
chrome-harness.js | ||
chunkifyTests.js | ||
favicon.ico | ||
gen_template.pl | ||
harness.xul | ||
install.rdf | ||
leaks.py | ||
mach_commands.py | ||
mach_test_package_commands.py | ||
manifest.json | ||
manifest.webapp | ||
manifestLibrary.js | ||
mochitest-e10s-utils.js | ||
mochitest_options.py | ||
moz.build | ||
nested_setup.js | ||
pywebsocket_wrapper.py | ||
redirect.html | ||
rungeckoview.py | ||
runjunit.py | ||
runrobocop.py | ||
runtests.py | ||
runtestsremote.py | ||
schema.json | ||
server.js | ||
shutdown-leaks-collector.js | ||
start_desktop.js |
README.txt
See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.