Closed
Bug 1202216
Opened 10 years ago
Closed 10 years ago
Clicking on a desktop notification should switch to the notifying tab
Categories
(SeaMonkey :: Tabbed Browser, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
Details
Attachments
(2 files)
|
1.10 KB,
patch
|
philip.chee
:
review+
|
Details | Diff | Splinter Review |
|
6.41 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
Port of bug 853972 and bug 960997.
| Assignee | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
> + if (!event.isTrusted)
> + return;
Event sent by DispatchChromeEvent() is always trusted isn't it?
http://mxr.mozilla.org/comm-central/source/mozilla/dom/base/nsContentUtils.h?rev=f4ba4b6e7c95&mark=1042-1042#1041
Is there a test for this?
| Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Philip Chee from comment #2)
> > + if (!event.isTrusted)
> > + return;
> Event sent by DispatchChromeEvent() is always trusted isn't it?
Do you want random content pages to be able to make themselves the current tab?
> Is there a test for this?
Tricky, because notifications use OS system alerts on Linux and Mac OSX.
Comment 4•10 years ago
|
||
Luckily I'm using Windows :P
Comment 5•10 years ago
|
||
Comment on attachment 8657537 [details] [diff] [review]
Proposed patch
I copied a test from Firefox and managed to get it to run
Attachment #8657537 -
Flags: review?(philip.chee) → review+
Comment 6•10 years ago
|
||
Browser Chrome Test Summary
Passed: 4
Failed: 0
Todo: 0
Attachment #8660104 -
Flags: review?(neil)
| Assignee | ||
Updated•10 years ago
|
Attachment #8660104 -
Flags: review?(neil) → review+
| Assignee | ||
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 8•10 years ago
|
||
Comment on attachment 8660104 [details] [diff] [review]
Part 2 Test
Pushed http://hg.mozilla.org/comm-central/rev/553b56db93cb
You need to log in
before you can comment on or make changes to this bug.
Description
•