WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 82027
Move Notifications APIs from DOMWindow.idl to DOMWindowNotifications.idl (Part 3)
https://bugs.webkit.org/show_bug.cgi?id=82027
Summary
Move Notifications APIs from DOMWindow.idl to DOMWindowNotifications.idl (Par...
Adam Barth
Reported
2012-03-23 00:03:04 PDT
Move Notifications APIs from DOMWindow.idl to DOMWindowNotifications.idl (Part 3)
Attachments
Patch
(5.74 KB, patch)
2012-03-23 00:07 PDT
,
Adam Barth
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2012-03-23 00:07:18 PDT
Created
attachment 133437
[details]
Patch
Kentaro Hara
Comment 2
2012-03-23 00:15:21 PDT
Comment on
attachment 133437
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133437&action=review
> Source/WebCore/notifications/DOMWindowNotifications.cpp:75 > + DOMWindowProperty::reconnectFrame(frame); > + m_notificationCenter = m_suspendedNotificationCenter.release();
Nit: Shall we exchange the two statements, for consistency? DOMWindowNotification operations, and then DOMWindowProperty:: operations.
Adam Barth
Comment 3
2012-03-23 00:20:23 PDT
(In reply to
comment #2
)
> (From update of
attachment 133437
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=133437&action=review
> > > Source/WebCore/notifications/DOMWindowNotifications.cpp:75 > > + DOMWindowProperty::reconnectFrame(frame); > > + m_notificationCenter = m_suspendedNotificationCenter.release(); > > Nit: Shall we exchange the two statements, for consistency? DOMWindowNotification operations, and then DOMWindowProperty:: operations.
I'm not sure. I got the idea for this ordering from beidson's patch to
http://trac.webkit.org/browser/trunk/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp#L61
. The idea is that you want to suspect the notification center before you actually disconnect the frame, but you want to reconnect the frame before you "unsuspend" the notification center. I don't think it makes any difference in practice. If you'd prefer the other ordering, I'm happy to change it.
Adam Barth
Comment 4
2012-03-23 14:52:00 PDT
Comment on
attachment 133437
[details]
Patch I think I'm going to leave the calls in this order. It's a little idiosyncratic, but I think that's ok.
WebKit Review Bot
Comment 5
2012-03-23 15:36:12 PDT
Comment on
attachment 133437
[details]
Patch Clearing flags on attachment: 133437 Committed
r111920
: <
http://trac.webkit.org/changeset/111920
>
WebKit Review Bot
Comment 6
2012-03-23 15:36:16 PDT
All reviewed patches have been landed. Closing bug.
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