gecko-dev/docshell/test
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
..
browser 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 Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan 2018-08-07 14:03:21 -07:00
iframesandbox Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
navigation Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
unit Bug 1479570. Get Add a getter to get a docshell from nsIWindowlessBrowser. r=kmag 2018-08-03 00:05:07 +00:00
unit_ipc Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
bug123696-subframe.html
bug369814.jar
bug369814.zip
bug404548-subframe_window.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
bug404548-subframe.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
bug413310-post.sjs
bug413310-subframe.html
bug529119-window.html
bug530396-noref.sjs
bug530396-subframe.html
bug570341_recordevents.html
bug668513_redirect.html
bug668513_redirect.html^headers^
bug691547_frame.html
dummy_page.html Bug 1341754: Test SetURI in Location passes triggeringPrincipal. r=smaug 2017-03-07 12:50:47 +01:00
file_anchor_scroll_after_document_open.html
file_bfcache_plus_hash_1.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
file_bfcache_plus_hash_2.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
file_bug369814.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
file_bug385434_1.html
file_bug385434_2.html
file_bug385434_3.html Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
file_bug475636.sjs
file_bug509055.html
file_bug511449.html
file_bug540462.html
file_bug580069_1.html
file_bug580069_2.sjs
file_bug590573_1.html
file_bug590573_2.html
file_bug598895_1.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
file_bug598895_2.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
file_bug634834.html
file_bug637644_1.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
file_bug637644_2.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
file_bug640387.html
file_bug653741.html
file_bug660404
file_bug660404-1.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
file_bug660404^headers^
file_bug662170.html
file_bug668513.html
file_bug669671.sjs
file_bug675587.html Bug 1385824 - Convert docshell/test/test_bug675587.html to comply with new data: URI inheritance model. r=smaug 2017-08-01 10:59:42 +02:00
file_bug680257.html
file_bug703855.html
file_bug728939.html
file_bug1121701_1.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
file_bug1121701_2.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
file_bug1151421.html Bug 1151421 Part 2: Add test of fractional scroll position properties. r=smaug 2017-03-14 17:31:22 -07:00
file_bug1186774.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
file_bug1450164.html Bug 1450164 - Don't update URIs on history adds on docshells that are being shut down; r=bzbarsky 2018-08-02 00:51:09 +00:00
file_close_onpagehide1.html Bug 1432396 - Bail out if the docshell is being destroyed due to pagehide notification. r=bz 2018-02-16 06:15:03 +09:00
file_close_onpagehide2.html Bug 1432396 - Bail out if the docshell is being destroyed due to pagehide notification. r=bz 2018-02-16 06:15:03 +09:00
file_framedhistoryframes.html
file_pushState_after_document_open.html
historyframes.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
mochitest.ini Bug 1450164 - Don't update URIs on history adds on docshells that are being shut down; r=bzbarsky 2018-08-02 00:51:09 +00:00
moz.build Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander 2018-06-20 21:34:40 +03:00
start_historyframe.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
test_anchor_scroll_after_document_open.html
test_bfcache_plus_hash.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
test_bug123696.html Bug 1375833 - Part 4.1: Revert test_bug123696.html & update file_bug1326251.html. r=smaug 2017-08-21 18:28:53 +08:00
test_bug384014.html
test_bug385434.html Bug 1333702 - Allow assertion in test_bug385434.html; r=jmaher 2017-06-02 08:46:06 -06:00
test_bug387979.html
test_bug402210.html
test_bug404548.html
test_bug413310.html
test_bug475636.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug509055.html Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_bug511449.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug529119-1.html
test_bug529119-2.html Bug 1479486. Remove some unused chromeonly history APIs on Window. r=mccr8 2018-07-31 17:27:03 -04:00
test_bug530396.html Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8 2017-04-12 11:10:00 +01:00
test_bug540462.html
test_bug551225.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug570341.html Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
test_bug580069.html
test_bug590573.html Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_bug598895.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
test_bug634834.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug637644.html Bug 1397653 - Update tests within docshell/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:22:12 +02:00
test_bug640387_1.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug640387_2.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug653741.html Bug 1151421 Part 3: Update tests of pageYOffset/scrollY to round off when checking expected results. r=smaug 2017-03-16 12:05:56 -07:00
test_bug660404.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
test_bug662170.html Bug 1151421 Part 3: Update tests of pageYOffset/scrollY to round off when checking expected results. r=smaug 2017-03-16 12:05:56 -07:00
test_bug668513.html
test_bug669671.html Bug 1479486. Remove some unused chromeonly history APIs on Window. r=mccr8 2018-07-31 17:27:03 -04:00
test_bug675587.html Bug 1385824 - Convert docshell/test/test_bug675587.html to comply with new data: URI inheritance model. r=smaug 2017-08-01 10:59:42 +02:00
test_bug680257.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug691547.html
test_bug694612.html Bug 1387812 - Convert docshell/test/test_bug694612.html to comply with new data: URI inheritance model. r=smaug 2017-08-06 12:13:08 +02:00
test_bug703855.html
test_bug728939.html Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
test_bug797909.html
test_bug1045096.html
test_bug1121701.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
test_bug1151421.html Bug 1151421 Part 2: Add test of fractional scroll position properties. r=smaug 2017-03-14 17:31:22 -07:00
test_bug1186774.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
test_bug1450164.html Bug 1450164 - Don't update URIs on history adds on docshells that are being shut down; r=bzbarsky 2018-08-02 00:51:09 +00:00
test_close_onpagehide_by_history_back.html Bug 1432396 - Bail out if the docshell is being destroyed due to pagehide notification. r=bz 2018-02-16 06:15:03 +09:00
test_close_onpagehide_by_window_close.html Bug 1432396 - Do not process nsDocShell::Destroy() if the docshell is already being destroyed. r=bz 2018-02-16 06:15:04 +09:00
test_forceinheritprincipal_overrule_owner.html Bug 1463291: Move docShell getter from Document to Window. r=bz 2018-05-21 16:58:23 -07:00
test_framedhistoryframes.html
test_pushState_after_document_open.html
test_triggeringprincipal_location_seturi.html Bug 1341754: Test SetURI in Location passes triggeringPrincipal. r=smaug 2017-03-07 12:50:47 +01:00
test_windowedhistoryframes.html
url1_historyframe.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00
url2_historyframe.html Bug 1377492 - fix mochitest-1 failure in docshell when data: URI is a unique origin. r=smaug 2017-07-12 10:35:54 +08:00