Auto merge of #25625 - pshaughn:errorargs, r=jdm

Make error events only pass the extra error-event arguments to global listeners

Error event handlers were getting lineno, etc. arguments even when they weren't on globals, failing two WPT tests; this fixes that.

---
<!-- 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 fix #25197

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2020-01-28 11:04:08 -05:00 committed by GitHub
commit 388a0f618b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 31 deletions

View file

@ -1,5 +0,0 @@
[document-synthetic-errorevent.html]
type: testharness
[error event is normal (return true does not cancel; one arg) on Document, with a synthetic ErrorEvent]
expected: FAIL

View file

@ -1,5 +0,0 @@
[script-element.html]
type: testharness
[error event behaves normally (return true does not cancel; one arg) on a script element, with a synthetic ErrorEvent]
expected: FAIL