Changeset 258613 in webkit
- Timestamp:
- Mar 17, 2020, 5:12:47 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/wpt/notifications (added)
-
LayoutTests/http/wpt/notifications/constructor-basic-bfcache-expected.txt (added)
-
LayoutTests/http/wpt/notifications/constructor-basic-bfcache.html (added)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
Source/WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/mac/WebView/WebNotification.h (modified) (1 diff)
-
Source/WebKitLegacy/mac/WebView/WebNotification.mm (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/mac/MockWebNotificationProvider.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r258609 r258613 1 2020-03-17 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION: [ macOS wk1 ] ASSERTION FAILED: _notifications.contains(notificationID) imported/w3c/web-platform-tests/notifications/constructor-basic.html is flaky crashing 4 https://bugs.webkit.org/show_bug.cgi?id=207307 5 <rdar://problem/59206964> 6 7 Reviewed by Alex Christensen. 8 9 Add test coverage. 10 11 * http/wpt/notifications/constructor-basic-bfcache-expected.txt: Added. 12 * http/wpt/notifications/constructor-basic-bfcache.html: Added. 13 * platform/mac/TestExpectations: 14 1 15 2020-03-17 Chris Fleizach <cfleizach@apple.com> 2 16 -
trunk/LayoutTests/platform/mac/TestExpectations
r258572 r258613 1964 1964 webkit.org/b/207333 imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-transfer.html [ Pass Failure ] 1965 1965 1966 webkit.org/b/207307 imported/w3c/web-platform-tests/notifications/constructor-basic.html [ Pass Crash ]1967 1968 1966 webkit.org/b/112939 fast/performance/performance-now-timestamps.html [ Pass Failure ] 1969 1967 -
trunk/LayoutTests/platform/win/TestExpectations
r258576 r258613 198 198 # TODO This port doesn't support Notifications. 199 199 http/tests/notifications/ [ Skip ] 200 http/wpt/notifications/ [ Skip ] 200 201 fast/history/page-cache-notification-showing.html [ Skip ] 201 202 fast/history/page-cache-notification-suspendable.html [ Skip ] -
trunk/Source/WebKitLegacy/mac/ChangeLog
r258549 r258613 1 2020-03-17 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION: [ macOS wk1 ] ASSERTION FAILED: _notifications.contains(notificationID) imported/w3c/web-platform-tests/notifications/constructor-basic.html is flaky crashing 4 https://bugs.webkit.org/show_bug.cgi?id=207307 5 <rdar://problem/59206964> 6 7 Reviewed by Alex Christensen. 8 9 * WebView/WebNotification.h: 10 * WebView/WebNotification.mm: 11 (-[WebNotification finalize]): 12 1 13 2020-03-17 Commit Queue <commit-queue@webkit.org> 2 14 -
trunk/Source/WebKitLegacy/mac/WebView/WebNotification.h
r215685 r258613 51 51 - (void)dispatchClickEvent; 52 52 - (void)dispatchErrorEvent; 53 - (void)finalize; 53 54 54 55 @end -
trunk/Source/WebKitLegacy/mac/WebView/WebNotification.mm
r254241 r258613 194 194 } 195 195 196 @end 197 196 - (void)finalize 197 { 198 #if ENABLE(NOTIFICATIONS) 199 core(self)->finalize(); 200 #endif 201 } 202 203 @end 204 -
trunk/Tools/ChangeLog
r258612 r258613 1 2020-03-17 Chris Dumez <cdumez@apple.com> 2 3 REGRESSION: [ macOS wk1 ] ASSERTION FAILED: _notifications.contains(notificationID) imported/w3c/web-platform-tests/notifications/constructor-basic.html is flaky crashing 4 https://bugs.webkit.org/show_bug.cgi?id=207307 5 <rdar://problem/59206964> 6 7 Reviewed by Alex Christensen. 8 9 When [MockWebNotificationProvider reset] was called at the end of the test, it would remove all 10 notifications from the map but not tell WebCore that the notification were discarded. As a result, 11 WebCore would later tell the MockWebNotificationProvider to cancel the notification but this 12 notification would no longer be in the map, causing us to hit an assertion in debug. 13 14 To address the issue, we now call Notification::finalize() in [MockWebNotificationProvider reset] 15 to let WebCore know the notification was discarded. This is similar to what is already done for 16 WebKit2 in WebNotificationManager::clearNotifications(). 17 18 * DumpRenderTree/mac/MockWebNotificationProvider.mm: 19 (-[MockWebNotificationProvider reset]): 20 1 21 2020-03-17 Don Olmstead <don.olmstead@sony.com> 2 22 -
trunk/Tools/DumpRenderTree/mac/MockWebNotificationProvider.mm
r234685 r258613 144 144 - (void)reset 145 145 { 146 _notifications.clear(); 146 auto notifications = WTFMove(_notifications); 147 for (auto notification : notifications.values()) 148 [notification finalize]; 149 147 150 _notificationViewMap.clear(); 148 151 [self removeAllWebNotificationPermissions];
Note:
See TracChangeset
for help on using the changeset viewer.