summaryrefslogtreecommitdiffstats
path: root/dom/script
Commit message (Collapse)AuthorAgeLines
* Issue #618 - Clear the module map when changing a Document's global and addMoonchild2020-09-08-0/+11
| | | | release build assertions for mismatching compartments.
* Issue #618 - Make ES6 modules work for resource: URIsMoonchild2020-09-08-1/+23
|
* Issue #618 - Implement preloading of module scripts.Moonchild2020-09-08-22/+63
| | | | This hooks up module scripts to the existing preload mechanism.
* Issue #618 - Don't preload nomodule scripts when modules are enabled (uplift)Gaming4JC2020-09-05-5/+16
|
* Issue #618 - Implement async attribute for inline module scripts. (uplift)Moonchild2020-08-30-29/+39
| | | | | | | | | | This commit does several things: - Moves the pref check from ScriptLoader to ns[I]Document so it can be called on the document. - Changes the atrribute freezing function to a better name that takes the document as a parameter. - Sets the proper async/defer attributes on HTML script elements based on keywords and whether they are module scripts or not.
* Issue #618 - (async) Keep track of script modes in a single mode state.Moonchild2020-08-30-17/+61
| | | | | | This simplifies handling of combinations of async/defer by assigning one and only one state to scripts. If async then always async > if defer or module then defer > otherwise blocking.
* Issue #618 - (async, preload) Correctly pass info about async/defer to parser.Moonchild2020-08-30-3/+15
| | | | | | This makes sure we don't block body-referred sub-resources by head-referenced defer and async scripts. This is important for all script loads, not just modules, but is added here because it was run into while implementing modules.
* Issue #618 - (async) Split out function to add async request.Moonchild2020-08-30-23/+31
|
* Issue #618 - Rename some script load request flags to be more descriptive.Moonchild2020-08-30-11/+11
|
* Issue #618 - Make document.currentScript null in modules.Moonchild2020-08-30-4/+7
| | | | Because the spec says so.
* Issue #618 - Fix processing of non-parser-generated module scripts.Jon Coppeard2020-08-30-23/+32
|
* Issue #618 - Handle errors for inline module scripts and ensure we update theJon Coppeard2020-08-30-12/+18
| | | | module map after fetch errors.
* Issue #618 - Split SRI verification out from OnStreamComplete.Moonchild2020-08-30-19/+35
|
* Issue #618 - Split handling of load errors out from OnStreamComplete.Moonchild2020-08-30-59/+67
|
* Issue #618 - Integrity for descendant module scripts should be the empty stringMoonchild2020-08-30-4/+4
| | | | Because the spec says so.
* Issue #618 - Don't mute errors for module scripts because they always use CORSJon Coppeard2020-08-30-4/+4
|
* Issue #618: Pass down referrer and referrer policy when fetching modules.Moonchild2020-08-30-25/+42
| | | | Because the spec says so.
* Issue #618: Ignore 'event' and 'for' attributes for module scripts.Moonchild2020-08-30-23/+30
| | | | Because the spec says so.
* Issue #618 - Simplify module resolve hook to be a function pointerMoonchild2020-08-30-31/+19
| | | | | This is an ahead-of time port to try and address #1624. This is based on BZ 1461751 and Jon Coppeard's work in it.
* Issue #618 - Keep track of which modules in a graph have been fetched using ↵Gaming4JC2020-08-30-72/+92
| | | | | | a visited set Ref: BZ 1365187
* Issue #618 - Simplify module map interfaceGaming4JC2020-08-30-14/+14
| | | | Ref: BZ 1365187
* Issue #618 - Record module dependency before starting fetch so that errorJon Coppeard2020-08-30-1/+1
| | | | | | handling works correctly Ref BZ 1395896
* Issue #618 - Align error handling for module scripts with the spec (again)Moonchild2020-08-30-58/+79
| | | | | | | | This updates module implementation to match spec regarding handling of instantiation errors, after it was changed yet again, this time to not remember instantiation errors, but instead immediately rethrow applicable ones. Ref: BZ 1420420
* Issue #618 - Fix error events fired when loading JS module dependencies failMoonchild2020-08-30-8/+11
| | | | | | | When module dependencies fail, don't spam with errors for each import; only fire the error event once. Ref: BZ 1421259
* Issue #618 - Further align error handling for module scripts with the specMoonchild2020-07-10-89/+280
| | | | Ref: BZ 1388728
* Issue #618 - Remove eager instantiationMoonchild2020-07-10-129/+9
| | | | | This backs out the stuff added in Bug 1295978. Ref: BZ 1295978, 1388728
* Issue #618 - Match JSAPI names with the changes in ↵Moonchild2020-07-10-2/+2
| | | | | | 9ca74147225eed305e28c7887f9b2251aeeb0f36 Ref: BZ 1388728
* Issue #618 - Add clarifying code comments.Moonchild2020-07-10-0/+12
|
* Issue #618 - Check for failed instantiation when starting to fetch dependenciesMoonchild2020-07-10-0/+6
| | | | | If instantiation has failed, then also fail the load and don't fetch imports. Ref BZ: 1358882
* Issue #1603 - Part 2: Split some classes out of ScriptLoader.cppMoonchild2020-07-10-534/+650
| | | | | | | This splits ScriptLoader up the same way Mozilla did with the exception of ScriptRequest due to the fact that ScriptLoader and ScriptRequest are interdependent and would create a circular dependency if split apart when not using unified building.
* Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElementMoonchild2020-07-10-0/+5703
- Moves scripting parts of DOM into 'dom/script' - Renames nsScript{Loader/Element} to Script{Loader/Element} - Adjusts all callers