First Notification is not shown to the user |
||||||||
Issue description
Chrome Version: 72.0.3600.0
OS: Linux
What steps will reproduce the problem?
(1) Open up Chrome
(2) Disable native notifications (chrome://flags#enable-native-notifications)
(3) Open any webpage
(4) Call Notification.requestPermission() in the Console and Accept
(5) Call new Notification('Test1') in the Console
(6) Call new Notification('Test2') in the Console again
What is the expected result?
Expect to see a Notification after (5) and another one after (6).
What happens instead?
No Notification after (5) and two Notifications after (6).
This happens because PopupsOnlyUiController and MessagePopupCollection both register as an observer of MessageCenter, but in the wrong order. After the second Notification is shown, everything works as expected.
,
Nov 5
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b60074a6e4d55c4cebce38b845cf7adb015b8029 commit b60074a6e4d55c4cebce38b845cf7adb015b8029 Author: Richard Knoll <knollr@chromium.org> Date: Mon Nov 05 14:54:10 2018 fix: fix first shown notification This makes sure that the observer registrations are in the correct order. Bug: 901350 Change-Id: I57f45c7e605984928546d85386bdfb8e19f67352 Reviewed-on: https://chromium-review.googlesource.com/c/1314597 Reviewed-by: Yoshiki Iguchi <yoshiki@chromium.org> Reviewed-by: Peter Beverloo <peter@chromium.org> Commit-Queue: Richard Knoll <knollr@chromium.org> Cr-Commit-Position: refs/heads/master@{#605330} [modify] https://crrev.com/b60074a6e4d55c4cebce38b845cf7adb015b8029/chrome/browser/BUILD.gn [modify] https://crrev.com/b60074a6e4d55c4cebce38b845cf7adb015b8029/chrome/browser/notifications/notification_ui_manager_browsertest.cc [modify] https://crrev.com/b60074a6e4d55c4cebce38b845cf7adb015b8029/chrome/browser/notifications/notification_ui_manager_impl.cc [modify] https://crrev.com/b60074a6e4d55c4cebce38b845cf7adb015b8029/chrome/browser/notifications/popups_only_ui_controller.cc [modify] https://crrev.com/b60074a6e4d55c4cebce38b845cf7adb015b8029/chrome/browser/notifications/popups_only_ui_controller.h [modify] https://crrev.com/b60074a6e4d55c4cebce38b845cf7adb015b8029/chrome/browser/ui/views/message_center/popups_only_ui_delegate_unittest.cc
,
Nov 5
Issue 901732 has been merged into this issue.
,
Nov 8
,
Nov 8
,
Nov 8
,
Nov 14
Closing the bug as a part of UI mass triage. If you feel this issue should still be addressed, feel free to reopen it or to file a new issue.
,
Nov 14
,
Nov 14
It's actually already fixed, just forgot to update the issue. It's available in 72.0.3608.4 for Linux. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by knollr@chromium.org
, Nov 5