Closed Bug 1500623 Opened 7 years ago Closed 7 years ago

isTrusted is false with postMessage

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

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.
Assignee: nobody → continuation
Component: DOM: Events → DOM
Priority: -- → P2

I don't think I'm actually going to get to this in the near term.

Assignee: continuation → nobody
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.