fune/dom/script
Andrew McCreight 1f40db1dd6 Bug 1286026 - Don't warn for invalid WebGL script types, and include the invalid script type. r=dom-core,farre
This patch changes the invalid script tag warning to actually include the
invalid tag, which makes it easier to understand what is going wrong.

WebGL pages use invalid types on script elements to store strings. These three
specific strings are used in hundreds of places in our WebGL tests, so don't
warn for them. The first two can be found in WebGL tutorials, so this seems like
an actual convention. "text/something-not-javascript" looks like it is only
used in the WebGL conformance tests, but it is clearly deliberately invalid
so skip warning for it, too, in the interests of reducing warning spam.

I didn't use NS_WARNING_ASSERTION here because that includes the entire
expression that failed, and that is large and not very useful.

Differential Revision: https://phabricator.services.mozilla.com/D212799
2024-06-07 13:15:28 +00:00
..
AutoEntryScript.cpp
AutoEntryScript.h
ModuleLoader.cpp Bug 1899172 - Part 11: Move nsIScriptElement from ScriptFetchOptions to ScriptLoadContext. r=nbp 2024-05-30 05:01:18 +00:00
ModuleLoader.h
moz.build Bug 1881748, part 2 - Turn nsIScriptLoaderObserver.idl into nsIScriptLoaderObserver.h. r=dom-core,peterv 2024-02-27 17:13:00 +00:00
nsIScriptElement.cpp Bug 1853547 - Remove dom.importMaps.enabled pref r=allstarschh 2024-01-06 01:53:19 +00:00
nsIScriptElement.h
nsIScriptLoaderObserver.h Bug 1881748, part 2 - Turn nsIScriptLoaderObserver.idl into nsIScriptLoaderObserver.h. r=dom-core,peterv 2024-02-27 17:13:00 +00:00
ScriptCompression.cpp
ScriptCompression.h
ScriptDecoding.h
ScriptElement.cpp Bug 1286026 - Don't warn for invalid WebGL script types, and include the invalid script type. r=dom-core,farre 2024-06-07 13:15:28 +00:00
ScriptElement.h
ScriptLoadContext.cpp Bug 1899172 - Part 11: Move nsIScriptElement from ScriptFetchOptions to ScriptLoadContext. r=nbp 2024-05-30 05:01:18 +00:00
ScriptLoadContext.h Bug 1899172 - Part 11: Move nsIScriptElement from ScriptFetchOptions to ScriptLoadContext. r=nbp 2024-05-30 05:01:18 +00:00
ScriptLoader.cpp Bug 1899172 - Part 11: Move nsIScriptElement from ScriptFetchOptions to ScriptLoadContext. r=nbp 2024-05-30 05:01:18 +00:00
ScriptLoader.h Bug 1898677 - Cache the result of bytecode encoding condition. r=nbp 2024-05-27 06:31:16 +00:00
ScriptLoadHandler.cpp Bug 1899172 - Part 3: Add ScriptLoadContext::GetHintCharset. r=nbp 2024-05-30 05:01:15 +00:00
ScriptLoadHandler.h
ScriptSettings.cpp
ScriptSettings.h
ScriptTrace.h Bug 1899172 - Part 10: Add dedicate ScriptLoadContext::GetScriptElement* methods for each purpose. r=nbp 2024-05-30 05:01:18 +00:00
ShadowRealmGlobalScope.cpp Bug 1848771 part 1 - Stop eagerly initializing JS standard classes for non-Window globals. r=peterv 2024-01-23 15:06:32 +00:00
ShadowRealmGlobalScope.h