servo/components/script/dom/servoparser
shuppy 6471587fb4
script: Set correct introductionType values in more places (#38550)
to use the [SpiderMonkey Debugger
API](https://firefox-source-docs.mozilla.org/js/Debugger/) as the single
source of truth about scripts and their sources for devtools purposes
(servo/servo#38334), we need to keep track of whether scripts come from
an actual file or from things like setTimeout(), because for some
[introductionType](https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.Source.html#introductiontype)
[values](https://firefox-source-docs.mozilla.org/devtools-user/debugger-api/debugger.source/#accessor-properties-of-the-debugger-source-prototype-object),
we want to disregard the script unless it has a [`//# sourceURL=`
override](https://tc39.es/ecma426/#sec-linking-eval)
([displayURL](https://firefox-source-docs.mozilla.org/js/Debugger/Debugger.Source.html#displayurl)).

this patch builds on #38363, setting the correct introductionType value
in several more cases.

Testing: will undergo many automated tests in #38334
Fixes: part of #36027

---------

Signed-off-by: Delan Azabani <dazabani@igalia.com>
Co-authored-by: atbrakhi <atbrakhi@igalia.com>
2025-08-09 05:05:54 +00:00
..
async_html.rs Implement allow_declarative_shadow_roots for async html parser (#38150) 2025-07-18 12:23:01 +00:00
html.rs deps: Bump html5ever and friends to version 0.35.0 (#37736) 2025-07-02 08:44:39 +00:00
mod.rs script: Set correct introductionType values in more places (#38550) 2025-08-09 05:05:54 +00:00
prefetch.rs Move CSP code into one entrypoint (#37604) 2025-06-24 08:50:30 +00:00
xml.rs Unify the way html5ever and xml5ever block on script elements (#36284) 2025-04-08 16:40:14 +00:00