Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Issue 1130233003: Reject the permissionState promise with NotSupported Exception (1/3) (Closed)

Created:
5 years, 7 months ago by Miguel Garcia
Modified:
5 years, 7 months ago
Reviewers:
Peter Beverloo
CC:
blink-reviews, mvanouwerkerk+watch_chromium.org, johnme+watch_chromium.org, dglazkov+blink, peter+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Reject the permissionState promise with NotSupported Exception if userVisibleOnly is false (1/3) This change plumbs onError with an error code. It also provides an artifical empty onError() method for the purpose of the three sided patch and updates all layout tests to use the userVisibleOnly parameter. 1) This CL 2) https://codereview.chromium.org/1133083002 where the new onError flow is used 3) Cleanup CL where the empty onError method is removed and two new Layout tests are added so the exception is actually tested BUG=479246 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195180

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -11 lines) Patch
M LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/permission-state-denied-in-service-worker.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/permission-state-granted-in-document.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/permission-state-granted-in-service-worker.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/permission-state-prompt-in-document.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/permission-state-prompt-in-service-worker.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/resources/instrumentation-service-worker.js View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/push_messaging/PushError.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/push_messaging/PushManager.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/push_messaging/PushPermissionStatusCallbacks.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp View 2 chunks +11 lines, -1 line 0 comments Download
M public/platform/modules/push_messaging/WebPushError.h View 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/modules/push_messaging/WebPushProvider.h View 1 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 9 (4 generated)
Miguel Garcia
New implementation of https://codereview.chromium.org/1136513002/ where the decision on whether to throw the exception is done ...
5 years, 7 months ago (2015-05-11 11:59:43 UTC) #3
Peter Beverloo
lgtm % comments. Thanks! https://codereview.chromium.org/1130233003/diff/20001/Source/modules/push_messaging/PushManager.cpp File Source/modules/push_messaging/PushManager.cpp (right): https://codereview.chromium.org/1130233003/diff/20001/Source/modules/push_messaging/PushManager.cpp#newcode44 Source/modules/push_messaging/PushManager.cpp:44: // Backfill userVisible since it's ...
5 years, 7 months ago (2015-05-11 12:56:15 UTC) #4
Miguel Garcia
https://codereview.chromium.org/1130233003/diff/20001/Source/modules/push_messaging/PushManager.cpp File Source/modules/push_messaging/PushManager.cpp (right): https://codereview.chromium.org/1130233003/diff/20001/Source/modules/push_messaging/PushManager.cpp#newcode44 Source/modules/push_messaging/PushManager.cpp:44: // Backfill userVisible since it's still used by the ...
5 years, 7 months ago (2015-05-11 13:22:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130233003/40001
5 years, 7 months ago (2015-05-11 13:23:09 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-11 15:08:05 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195180

Powered by Google App Engine
This is Rietveld 408576698