Closed
Bug 1500623
Opened 7 years ago
Closed 7 years ago
isTrusted is false with postMessage
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 1502801
People
(Reporter: mccr8, Unassigned)
References
Details
This WPT subtest fails in Firefox but not other browsers:
window.onmessage = t.step_func_done(e => {
assert_equals(e.isTrusted, true);
});
window.postMessage("ping", "*");
This is part of wpt/webmessaging/MessageEvent-trusted.html
Olli said:
(In reply to Olli Pettay [:smaug] from comment #6)
> To fix _this_ bug we either need to propagate user activation flag via
> postMessage or implement something close to what Google has proposed for a
> new model for user activation.
>
>
> MessageEvent-trusted.html shows an issue in
> https://searchfox.org/mozilla-central/rev/ 9cb3e241502a2d47e2d5057ca771324a446b6695/dom/base/PostMessageEvent.cpp#201
> Apparently other browsers consider postMessage as trusted operation.
> I guess we should just always pass true there.
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → continuation
Comment 1•7 years ago
|
||
https://html.spec.whatwg.org/#dom-window-postmessage
https://dom.spec.whatwg.org/#concept-event-create
So postMessage implementation doesn't follow the current spec.
Component: DOM: Events → DOM
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Priority: -- → P2
Reporter | ||
Comment 3•7 years ago
|
||
I don't think I'm actually going to get to this in the near term.
Assignee: continuation → nobody
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•