Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Revert "Issue #1691 - Part 1: Provide a way of associating a private value ↵ | Moonchild | 2020-11-28 | -10/+9 |
| | | | | | | with a script" This reverts commit 15914ec5780e7867ab508a48a83311c56950f8a9. | |||
* | Issue #1691 - Part 1: Provide a way of associating a private value with a script | Moonchild | 2020-11-27 | -9/+10 |
| | | | | | | or module. This is a prerequisite for dynamic import | |||
* | Issue #1656 - Part 1: Nuke most vim config lines in the tree. | Moonchild | 2020-09-23 | -13/+0 |
| | | | | | | Since these are just interpreted comments, there's 0 impact on actual code. This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are a few others scattered around which will be removed manually in a second part. | |||
* | Issue #618 - Clear the module map when changing a Document's global and add | Moonchild | 2020-09-08 | -0/+11 |
| | | | | release build assertions for mismatching compartments. | |||
* | Issue #618 - Make ES6 modules work for resource: URIs | Moonchild | 2020-09-08 | -1/+23 |
| | ||||
* | Issue #618 - Implement preloading of module scripts. | Moonchild | 2020-08-27 | -22/+63 |
| | | | | This hooks up module scripts to the existing preload mechanism. | |||
* | Issue #618 - Don't preload nomodule scripts when modules are enabled | Gaming4JC | 2020-08-26 | -5/+16 |
| | | | | Ref: BZ 1382020 | |||
* | Issue #618 - (async) Implement async attribute for inline module scripts. | Moonchild | 2020-08-25 | -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. | Moonchild | 2020-08-25 | -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. | Moonchild | 2020-08-24 | -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. | Moonchild | 2020-08-24 | -23/+31 |
| | ||||
* | Issue #618 - Rename some script load request flags to be more descriptive. | Moonchild | 2020-08-24 | -11/+11 |
| | ||||
* | Issue #618 - Make document.currentScript null in modules. | Moonchild | 2020-08-23 | -4/+7 |
| | | | | Because the spec says so. | |||
* | Issue #618 - Fix processing of non-parser-generated module scripts. | Jon Coppeard | 2020-08-22 | -23/+32 |
| | ||||
* | Issue #618 - Handle errors for inline module scripts and ensure we update the | Jon Coppeard | 2020-08-22 | -12/+18 |
| | | | | module map after fetch errors. | |||
* | Issue #618 - Split SRI verification out from OnStreamComplete. | Moonchild | 2020-08-22 | -19/+35 |
| | ||||
* | Issue #618 - Split handling of load errors out from OnStreamComplete. | Moonchild | 2020-08-22 | -59/+67 |
| | ||||
* | Issue #618 - Integrity for descendant module scripts should be the empty string | Moonchild | 2020-08-22 | -4/+4 |
| | | | | Because the spec says so. | |||
* | Issue #618 - Don't mute errors for module scripts because they always use CORS | Jon Coppeard | 2020-08-22 | -4/+4 |
| | ||||
* | Issue #618: Pass down referrer and referrer policy when fetching modules. | Moonchild | 2020-08-13 | -25/+42 |
| | | | | Because the spec says so. | |||
* | Issue #618: Ignore 'event' and 'for' attributes for module scripts. | Moonchild | 2020-08-13 | -23/+30 |
| | | | | Because the spec says so. | |||
* | Issue #618 - Simplify module resolve hook to be a function pointer | Moonchild | 2020-08-06 | -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 ↵ | Gaming4JC | 2020-08-04 | -72/+92 |
| | | | | | | a visited set Ref: BZ 1365187 | |||
* | Issue #618 - Simplify module map interface | Gaming4JC | 2020-08-04 | -14/+14 |
| | | | | Ref: BZ 1365187 | |||
* | Issue #618 - Record module dependency before starting fetch so that error | Jon Coppeard | 2020-08-02 | -1/+1 |
| | | | | | | handling works correctly Ref BZ 1395896 | |||
* | Issue #618 - Align error handling for module scripts with the spec (again) | Moonchild | 2020-07-08 | -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 fail | Moonchild | 2020-07-08 | -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 spec | Moonchild | 2020-07-04 | -89/+280 |
| | | | | Ref: BZ 1388728 | |||
* | Issue #618 - Remove eager instantiation | Moonchild | 2020-07-04 | -129/+9 |
| | | | | | This backs out the stuff added in Bug 1295978. Ref: BZ 1295978, 1388728 | |||
* | Issue #618 - Match JSAPI names with the changes in ↵ | Moonchild | 2020-07-03 | -2/+2 |
| | | | | | | 9ca74147225eed305e28c7887f9b2251aeeb0f36 Ref: BZ 1388728 | |||
* | Issue #618 - Add clarifying code comments. | Moonchild | 2020-07-01 | -0/+12 |
| | ||||
* | Issue #618 - Check for failed instantiation when starting to fetch dependencies | Moonchild | 2020-07-01 | -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.cpp | Moonchild | 2020-07-01 | -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/ScriptElement | Moonchild | 2020-06-30 | -0/+5703 |
- Moves scripting parts of DOM into 'dom/script' - Renames nsScript{Loader/Element} to Script{Loader/Element} - Adjusts all callers |