RESOLVED FIXED 96959
Safari 6 notifications' onclick handlers can't call window.open()
https://bugs.webkit.org/show_bug.cgi?id=96959
Summary Safari 6 notifications' onclick handlers can't call window.open()
Jon Lee
Reported 2012-09-17 15:01:41 PDT
It is possible to do this in Chrome. Difference is WK2 isn't treating the click as a user gesture. <rdar://problem/12132427>
Attachments
Patch (7.63 KB, patch)
2012-09-17 15:11 PDT, Jon Lee
darin: review+
Jon Lee
Comment 1 2012-09-17 15:11:29 PDT
Darin Adler
Comment 2 2012-09-17 17:42:04 PDT
Comment on attachment 164460 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=164460&action=review > Source/WebKit2/WebProcess/Notifications/WebNotificationManager.cpp:224 > + UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); A “why” comment would be welcome here. Also, I think the local variable can be named "indicator". Not caused by this patch: I also think that RAII objects with side effects need clearer names. It’s not at all clear that an indicator is an object that affects global state.
Jon Lee
Comment 3 2012-09-20 10:49:31 PDT
Note You need to log in before you can comment on or make changes to this bug.