gecko-dev/testing/mochitest
Kris Maglione 773d32e9fe Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan
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
2018-08-07 14:03:21 -07:00
..
BrowserTestUtils Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE 2018-08-06 20:42:44 +03:00
MochiKit
baselinecoverage Bug 1476526 - Make the baseline test use functions from BrowserTestUtils. r=marco 2018-07-30 10:20:48 -04:00
chrome Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
dynamic
embed
manifests
pywebsocket
ssltunnel Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
static
tests Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan 2018-08-07 14:03:21 -07:00
README.txt
ShutdownLeaksCollector.jsm Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
__init__.py
api.js Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE 2018-08-06 20:42:44 +03:00
bisection.py
browser-harness.xul Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102 2018-06-25 10:11:31 -07:00
browser-test.js Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE 2018-08-06 20:42:44 +03:00
chrome-harness.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
chunkifyTests.js Bug 1457835 - Enable ESLint for testing/mochitest (automatic changes). r=jmaher 2018-01-26 21:32:30 +00:00
favicon.ico Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
gen_template.pl
harness.xul Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
install.rdf Bug 1446676: Part 1b - Convert automation overlay extensions to bootstrapped extensions. r=aswan 2018-03-16 21:31:04 -07:00
leaks.py Bug 1052582 Part 1 - Support an arena parameter for js_pod_malloc and friends. r=sfink 2018-06-29 13:06:14 -07:00
mach_commands.py Bug 1445716 - Add Android mach command 'geckoview-junit'; r=jmaher 2018-04-18 14:43:35 -06:00
mach_test_package_commands.py Bug 1429158 - Use 'mach' format by default for one-click-loaner mochitests, r=jmaher 2018-01-09 14:34:27 -05:00
manifest.json Bug 1451513 Part 2: Convert mochikit to a webextension r=jmaher,kmag 2018-07-05 15:42:11 -07:00
manifest.webapp
manifestLibrary.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
mochitest-e10s-utils.js
mochitest_options.py Bug 733530: Use .tar.gz for test archives r=gps 2018-08-01 16:00:03 +00:00
moz.build Bug 1451513 Part 2: Convert mochikit to a webextension r=jmaher,kmag 2018-07-05 15:42:11 -07:00
nested_setup.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00
pywebsocket_wrapper.py
redirect.html Bug 1451513 Part 2: Convert mochikit to a webextension r=jmaher,kmag 2018-07-05 15:42:11 -07:00
rungeckoview.py Bug 1445716 - Add runjunit.py, a test harness for junit tests on Android devices; r=jmaher 2018-04-18 14:43:33 -06:00
runjunit.py Bug 1473313 - Part 2: Support running emulator junit tests with code coverage support. r=gbrown 2018-07-24 11:49:13 +01:00
runrobocop.py Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
runtests.py Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
runtestsremote.py Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
schema.json Bug 1451513 Part 2: Convert mochikit to a webextension r=jmaher,kmag 2018-07-05 15:42:11 -07:00
server.js Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj 2018-05-19 20:17:45 -07:00
shutdown-leaks-collector.js Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
start_desktop.js Bug 1457835 - Enable ESLint for testing/mochitest (manual changes). r=jmaher 2018-04-30 11:03:44 +01:00

README.txt

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.