Bug 1330900 - Implement <script nomodule>

This patch implements:
- noModule getter/setter for HTMLScriptElement
- the nomodule attribute for HTMLScriptElement
- the logic in nsScriptLoader that denies the loading of a nomodule script
- tests

Tag #618
This commit is contained in:
wolfbeast 2018-07-10 13:28:03 +02:00 committed by Roy Tam
commit 10b2e09718
9 changed files with 164 additions and 2 deletions

View file

@ -13,6 +13,8 @@ interface HTMLScriptElement : HTMLElement {
attribute DOMString src;
[SetterThrows]
attribute DOMString type;
[SetterThrows, Pref="dom.moduleScripts.enabled"]
attribute boolean noModule;
[SetterThrows]
attribute DOMString charset;
[SetterThrows]