Skip to content

Commit

Permalink
Bug 1603160 - Allow MediaQueryList::AddListener to receive untrusted …
Browse files Browse the repository at this point in the history
…events. r=bzbarsky

I was looking into MediaQueryList tests in the context of:

  w3c/csswg-drafts#4531

And this seemed reasonably easy to fix.

I don't see anything in:

  https://drafts.csswg.org/cssom-view/#dom-mediaquerylist-addlistener

Which doesn't mention anything about untrusted listeners.

I haven't investigated the remaining failure, it seems we call the capture
listener after the regular one...

Differential Revision: https://phabricator.services.mozilla.com/D56771

UltraBlame original commit: 1941e31f3d21880bb2c073e0247a041e7cbf00e3
  • Loading branch information
marco-c committed Dec 13, 2019
1 parent 8158255 commit 73a2ee3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layout/style/MediaQueryList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,12 @@ AddEventListener
ONCHANGE_STRING
aListener
options
false
Nullable
<
bool
>
(
)
aRv
)
;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
MediaQueryList
-
extends
-
EventTarget
-
interop
.
html
]
[
listeners
are
called
in
order
they
were
added
ignoring
capture
parameter
]
expected
:
FAIL

0 comments on commit 73a2ee3

Please sign in to comment.