Commit Graph

159 Commits

Author SHA1 Message Date
Jon Coppeard
073562ba50 Bug 1430145 - Add telemetry for script kind. r=baku, data-review=liuche 2018-01-17 03:06:00 -05:00
Jon Coppeard
0b17394763 Bug 1429535 - Split up ScriptLoader::ProcessScriptElement method r=baku 2018-01-11 12:05:26 +00:00
Jon Coppeard
f41bcf6d77 Backed out changeset ef258af45592 (bug 1429535) for test_bug704320_preload.html timeouts 2018-01-11 13:14:23 +00:00
Jon Coppeard
7af98f125f Bug 1429535 - Split up ScriptLoader::ProcessScriptElement method r=baku 2018-01-11 12:05:26 +00:00
Andrea Marchesini
7845c8b982 Bug 1428745 - Remove support for version parameter from script loader, r=jonco 2018-01-09 17:00:49 +01:00
Narcis Beleuzu
972550c448 Backed out 6 changesets (bug 1428745) for wpt failures on script-type-and-language-with-params.html. r=backout on a CLOSED TREE
Backed out changeset 9e84285278fe (bug 1428745)
Backed out changeset e199f1ccf64c (bug 1428745)
Backed out changeset dfb9af93ac53 (bug 1428745)
Backed out changeset 1d975770bd9a (bug 1428745)
Backed out changeset 1d5dc7dfd429 (bug 1428745)
Backed out changeset 4e53f251c5b8 (bug 1428745)
2018-01-10 00:37:59 +02:00
Andrea Marchesini
4a609b5031 Bug 1428745 - Remove support for version parameter from script loader, r=jonco 2018-01-09 17:00:49 +01:00
Jon Coppeard
ee52b99c90 Bug 1426189 - Make document.currentScript null in modules r=baku 2018-01-08 18:07:39 +00:00
Jon Coppeard
69ebe1854a Bug 1361369 - Allow async attribute on inline module scripts r=smaug 2018-01-08 15:17:34 +00:00
Jon Coppeard
ac540f38f6 Bug 1361369 - Fix coding style in ScriptLoadRequest.h r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard
796f48603b Bug 1361369 - Add a script processing mode enum r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard
5d28599337 Bug 1361369 - Factor out method to queue an async request r=smaug 2018-01-08 15:17:33 +00:00
Jon Coppeard
f1228f89a2 Bug 1361369 - Rename some script load request flags to be more descriptive r=smaug 2018-01-08 15:17:33 +00:00
Tom Schuster
257b1de5d7 Bug 1371551 - Make ES6 modules work for webextension URLs. r=baku 2018-01-03 19:08:29 +01:00
Jon Coppeard
814526b11c Bug 1426440 - Fix processing of non-parser-generated module scripts r=smaug 2018-01-03 13:07:58 +00:00
Jon Coppeard
0869cff309 Bug 1426140 - Handle errors for inline module scripts and ensure we update the module map after fetch errors r=baku 2018-01-03 13:07:58 +00:00
Jon Coppeard
c793a33084 Bug 1426140 - Factor out SRI handling from ScriptLoader::OnStreamComplete r=baku 2018-01-03 13:07:58 +00:00
Jon Coppeard
323df53ae3 Bug 1426140 - Factor out error handling from ScriptLoader::OnStreamComplete r=baku 2018-01-03 13:07:58 +00:00
Emilio Cobos Álvarez
8a71d3197b Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ecd202d763 Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me 2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
b3956b6171 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-07 19:13:50 +01:00
Jon Coppeard
d6b9d89e3f Bug 1425145 - Don't mute errors for module scripts because they always use CORS r=baku 2017-12-21 17:08:48 +00:00
Jon Coppeard
14fe2bfc69 Bug 1426443 - Set CORS mode for inline module scripts r=smaug 2017-12-21 11:17:12 +00:00
Jon Coppeard
538de86d29 Bug 1425885 - Ignore 'event' and 'for' attributes for module scripts r=baku 2017-12-19 15:32:21 +00:00
Jon Coppeard
6f16d13bbd Bug 1425843 - Pass correct referrer and referrer policy when fetching modules r=smaug 2017-12-19 15:30:49 +00:00
Jon Coppeard
f458a39832 Bug 1330688 - Report a better error in the console when a module load fails r=baku r=flod 2017-12-19 15:29:38 +00:00
Jon Coppeard
2fec8be9bb Bug 1365187 - Keep track of which modules in a graph have been fetched using a visited set r=smaug 2017-12-14 15:13:57 -06:00
Jon Coppeard
f7c3ab6a7c Bug 1365187 - Simplify module map interface r=smaug 2017-12-14 15:13:57 -06:00
Steve Fink
01e13f7918 Bug 1420420 followup - sidestep a rooting hazard. r=me a=hazad-fix 2017-12-07 16:07:23 -08:00
Jon Coppeard
ef1c5f2cac Bug 1420420 - Update module implementation to match latest spec regarding handling of instantiation errors r=anba r=baku r=jgraham 2017-12-06 14:54:58 +00:00
Sebastian Hengst
9768b87171 Backed out changeset 92ad856a4bae (bug 1420420) for failing tests/jit-test/jit-test/tests/modules/bug-1402649.js after asserting. r=backout 2017-12-06 20:14:18 +02:00
Jon Coppeard
9a38a0a18d Bug 1420420 - Update module implementation to match latest spec regarding handling of instantiation errors r=anba r=baku r=jgraham 2017-12-06 14:54:58 +00:00
Jon Coppeard
01fbc05c08 Bug 1421259 - Fix error events fired when loading JS module dependencies fail r=baku 2017-12-01 13:12:48 +00:00
Andrea Marchesini
f5caa705b6 Bug 1418860 - Adding telemetry to see how often version param is used in ScriptLoader type, r=jonco, data-r=francois 2017-11-29 09:01:04 +01:00
Jan de Mooij
0bbf783cc4 Bug 1417895 part 2 - Use a ValidJSVersion enum instead of JSVersion in script loader. r=bz 2017-11-18 23:16:09 +01:00
Jan de Mooij
b68f1db100 Bug 1417895 part 1 - Move ParseJavascriptVersion from nsContentUtils to ScriptLoader.cpp. r=bz 2017-11-18 23:16:05 +01:00
Jan de Mooij
e6e5785154 Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie 2017-11-17 12:12:39 +01:00
Kyle Machulis
12f2fe4705 Bug 1415747 - Remove nsIDOMHTMLScriptElement; r=bz
MozReview-Commit-ID: 3I7qVTsKFJC
2017-11-10 13:10:00 -08:00
Henri Sivonen
3618c1fd8a Bug 1412866 - Use spec nomenclature for the ignore-destructive-writes counter. r=smaug
MozReview-Commit-ID: FKwbEZll95J
2017-10-30 17:45:09 +02:00
Kris Maglione
7b017c97d6 Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.

As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.

MozReview-Commit-ID: LqD9GxdzMte
2017-10-12 15:43:55 -07:00
Kris Maglione
afc961cdba Bug 1406278: Part 3 - Use subject principal as triggering principal in <script> "src" attribute. r=bz
MozReview-Commit-ID: KwGIE4t7KUx
2017-10-04 22:16:32 -07:00
Jon Coppeard
26bf68f0a5 Bug 1395896 - Record module dependency before starting fetch so that error handling works correctly r=bkelly 2017-09-06 09:07:09 +01:00
Honza Bambas
a90d5297b3 Bug 1395525 - Make all changes landed as part of tracker request tailing preferrable. r=dragana 2017-08-31 06:07:00 -04:00
Honza Bambas
559460ce73 Bug 1358060 - Allow postponing of unimportant resources opening during page load, class-of-service Tail flag. r=dragana 2017-08-30 09:32:00 -04:00
Nicolas B. Pierron
7970834f93 Bug 1394442 - Clear the bytecode buffer after the evaluation. r=mrbkap 2017-08-30 12:57:32 +00:00
Jon Coppeard
a5846642e5 Bug 1362098 - Report source position for module specfier resolution failure r=bkelly 2017-08-23 17:24:38 +01:00
Nicolas B. Pierron
c8c8b0e388 Bug 1390863 - Do not hold ScriptLoadRequest, when the load-end event is not fired. r=mrbkap 2017-08-22 18:06:37 +00:00
Jon Coppeard
b2b2e9e171 Bug Bug 1388728 - Update module loader error handling to match the spec r=bkelly 2017-08-22 10:34:14 +01:00
Jon Coppeard
115b44dacc Bug 1388728 - Remove eager module instantiation r=bkelly 2017-08-22 10:08:21 +01:00
Jon Coppeard
0149ba95cf Bug 1388728 - Rename JS APIs for loading modules in line with the spec r=bkelly 2017-08-22 10:07:49 +01:00