diff options
author | delan azabani <dazabani@igalia.com> | 2025-04-08 17:22:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-08 09:22:53 +0000 |
commit | 95eedb997ae459002c73ec61aa4c6c45d0cc358e (patch) | |
tree | 259ef3e4174a8223e8349723377e00e062600919 /components/script/dom/subtlecrypto.rs | |
parent | 40655cc06cbeb9affd8f4eeae9f45cd57db319f1 (diff) | |
download | servo-95eedb997ae459002c73ec61aa4c6c45d0cc358e.tar.gz servo-95eedb997ae459002c73ec61aa4c6c45d0cc358e.zip |
Devtools: initial Debugger > Sources panel (#36164)
This patch adds support for listing scripts in the Sources panel.
Classic scripts, both external and inline, are implemented, but worker
scripts and imported module scripts are not yet implemented.
For example:
```html
<!-- sources.html -->
<!doctype html><meta charset=utf-8>
<script src="classic.js"></script>
<script>
console.log("inline classic");
new Worker("worker.js");
</script>
<script type="module">
import module from "./module.js";
console.log("inline module");
</script>
<script src="https://servo.org/js/load-table.js"></script>
```
```js
// classic.js
console.log("external classic");
```
```js
// worker.js
console.log("external classic worker");
```
```js
// module.js
export default 1;
console.log("external module");
```

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes partially implement #36027
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes require tests, but they are blocked on #36325
Signed-off-by: Delan Azabani <dazabani@igalia.com>
Co-authored-by: atbrakhi <atbrakhi@igalia.com>
Diffstat (limited to 'components/script/dom/subtlecrypto.rs')
0 files changed, 0 insertions, 0 deletions