Changeset 127321 in webkit
- Timestamp:
- Aug 31, 2012 2:26:44 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r127320 r127321 1 2012-08-31 Jon Lee <jonlee@apple.com> 2 3 ondisplay event handlers are not called 4 https://bugs.webkit.org/show_bug.cgi?id=95263 5 <rdar://problem/12193359> 6 7 Reviewed by Alexey Proskuryakov. 8 9 Adjust the test to use the ondisplay handler, to fully test legacy API. 10 11 * http/tests/notifications/legacy/show-expected.txt: Verify that event listener for ondisplay is 12 the same as that for onshow. 13 * http/tests/notifications/legacy/show.html: 14 1 15 2012-08-31 Roger Fong <roger_fong@apple.com> 2 16 -
trunk/LayoutTests/http/tests/notifications/legacy/show-expected.txt
r127299 r127321 9 9 PASS window.webkitNotifications.checkPermission() is 0 10 10 PASS ondisplay event handler was called 11 PASS this.ondisplay is this.onshow 11 12 Denying permission to http://127.0.0.1:8000 12 13 PASS window.webkitNotifications.checkPermission() is 2 -
trunk/LayoutTests/http/tests/notifications/legacy/show.html
r127299 r127321 23 23 24 24 n = window.webkitNotifications.createNotification("", "title 2", "body"); 25 n.on show= function() {25 n.ondisplay = function() { 26 26 testPassed("ondisplay event handler was called"); 27 shouldBe("this.ondisplay", "this.onshow"); 27 28 setTimeout(part3, 0); 28 29 }; -
trunk/Source/WebCore/ChangeLog
r127318 r127321 1 2012-08-31 Jon Lee <jonlee@apple.com> 2 3 ondisplay event handlers are not called 4 https://bugs.webkit.org/show_bug.cgi?id=95263 5 <rdar://problem/12193359> 6 7 Reviewed by Alexey Proskuryakov. 8 9 To support the legacy API, we conflate ondisplay and onshow. 10 11 * Modules/notifications/Notification.h: 12 (WebCore::Notification::ondisplay): Use display event as an alias for the show event. 13 (WebCore::Notification::setOndisplay): 14 1 15 2012-08-31 Tony Chang <tony@chromium.org> 2 16 -
trunk/Source/WebCore/Modules/notifications/Notification.h
r125280 r127321 108 108 TextDirection direction() const { return dir() == "rtl" ? RTL : LTR; } 109 109 110 #if ENABLE(LEGACY_NOTIFICATIONS) 111 EventListener* ondisplay() { return getAttributeEventListener(eventNames().showEvent); } 112 void setOndisplay(PassRefPtr<EventListener> listener) { setAttributeEventListener(eventNames().showEvent, listener); } 113 #endif 110 114 DEFINE_ATTRIBUTE_EVENT_LISTENER(show); 111 #if ENABLE(LEGACY_NOTIFICATIONS)112 DEFINE_ATTRIBUTE_EVENT_LISTENER(display);113 #endif114 115 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 115 116 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
Note: See TracChangeset
for help on using the changeset viewer.