WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
77363
Clear shown notifications when context is no longer active
https://bugs.webkit.org/show_bug.cgi?id=77363
Summary
Clear shown notifications when context is no longer active
Jon Lee
Reported
2012-01-30 13:16:09 PST
When the user navigates away from that page, or closes the tab or window associated with that page, or quits the application altogether, all of the page's associated notifications could be cleared depending on the implementation. <
rdar://problem/10568907
>
Attachments
Patch
(35.74 KB, patch)
2012-01-30 14:06 PST
,
Jon Lee
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jon Lee
Comment 1
2012-01-30 14:06:22 PST
Created
attachment 124598
[details]
Patch
Darin Adler
Comment 2
2012-02-01 14:52:37 PST
Comment on
attachment 124598
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=124598&action=review
> Source/WebCore/notifications/NotificationPresenter.h:62 > + virtual void clearNotifications(ScriptExecutionContext*) = 0;
We could consider providing a default empty implementation. Then we would only need to override this for platforms as they implement it, and the patch would be a lot smaller. Unless we think people will really want to implement this on every platform.
> Source/WebCore/page/DOMWindow.cpp:731 > + m_notifications->clearNotifications(); > m_notifications->disconnectFrame();
Could we just add the code to disconnectFrame instead of adding a new clearNotifications function?
Jon Lee
Comment 3
2012-02-02 12:45:35 PST
(In reply to
comment #2
)
> (From update of
attachment 124598
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=124598&action=review
> > > Source/WebCore/notifications/NotificationPresenter.h:62 > > + virtual void clearNotifications(ScriptExecutionContext*) = 0; > > We could consider providing a default empty implementation. Then we would only need to override this for platforms as they implement it, and the patch would be a lot smaller. Unless we think people will really want to implement this on every platform.
Done.
> > > Source/WebCore/page/DOMWindow.cpp:731 > > + m_notifications->clearNotifications(); > > m_notifications->disconnectFrame(); > > Could we just add the code to disconnectFrame instead of adding a new clearNotifications function?
Yes, that makes sense. Thanks!
Jon Lee
Comment 4
2012-02-02 14:17:21 PST
Committed
r106592
: <
http://trac.webkit.org/changeset/106592
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug