mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Auto merge of #15009 - nox:load-fixes, r=Ms2ger
Don't fire a load event on inline scripts <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15009) <!-- Reviewable:end -->
This commit is contained in:
commit
89c210f2c8
3 changed files with 0 additions and 12 deletions
|
@ -528,8 +528,6 @@ impl HTMLScriptElement {
|
||||||
// Step 8.
|
// Step 8.
|
||||||
if script.external {
|
if script.external {
|
||||||
self.dispatch_load_event();
|
self.dispatch_load_event();
|
||||||
} else {
|
|
||||||
window.dom_manipulation_task_source().queue_simple_event(self.upcast(), atom!("load"), &window);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[load-event.html]
|
|
||||||
type: testharness
|
|
||||||
[load events should not be fired for inline scripts]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[019.html]
|
|
||||||
type: testharness
|
|
||||||
[ scheduler: DOM added scripts and event handling ]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue