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:
bors-servo 2017-01-13 04:51:50 -08:00 committed by GitHub
commit 89c210f2c8
3 changed files with 0 additions and 12 deletions

View file

@ -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);
} }
} }

View file

@ -1,5 +0,0 @@
[load-event.html]
type: testharness
[load events should not be fired for inline scripts]
expected: FAIL

View file

@ -1,5 +0,0 @@
[019.html]
type: testharness
[ scheduler: DOM added scripts and event handling ]
expected: FAIL