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)

SeaMonkey 2.26 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(2 files)

Port of bug 853972 and bug 960997.
Attached patch Proposed patchSplinter Review
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #8657537 - Flags: review?(philip.chee)
> + 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?
(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.
Luckily I'm using Windows :P
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+
Attached patch Part 2 TestSplinter Review
Browser Chrome Test Summary Passed: 4 Failed: 0 Todo: 0
Attachment #8660104 - Flags: review?(neil)
Attachment #8660104 - Flags: review?(neil) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: