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

Issue 1136513002: Reject permissonState calls if userVisible is not present as parameter (Closed)

Created:
5 years, 7 months ago by Miguel Garcia
Modified:
5 years, 4 months ago
CC:
mlamouri (slow - plz ping), blink-reviews, johnme+watch_chromium.org, mvanouwerkerk+watch_chromium.org, 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 permissonState calls if userVisibleOnly is not present as parameter Since silent push is not implemented in chrome it makes more sense to fail with NotSupportedError than deny it. BUG=479246

Patch Set 1 : #

Total comments: 22

Patch Set 2 : #

Total comments: 3

Messages

Total messages: 22 (6 generated)
Miguel Garcia
5 years, 7 months ago (2015-05-07 15:15:21 UTC) #3
Peter Beverloo
Thanks for the patch. It's rather... unpolished. Comments on the CL's description: - Please clarify ...
5 years, 7 months ago (2015-05-07 15:28:22 UTC) #4
Miguel Garcia
https://chromiumcodereview.appspot.com/1136513002/diff/20001/LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html File LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html (right): https://chromiumcodereview.appspot.com/1136513002/diff/20001/LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html#newcode20 LayoutTests/http/tests/push_messaging/permission-state-denied-in-document.html:20: return serviceWorkerRegistration.pushManager.permissionState({userVisibleOnly : true}); On 2015/05/07 15:28:21, Peter Beverloo ...
5 years, 7 months ago (2015-05-07 19:40:46 UTC) #5
Peter Beverloo
Let's chat about this tomorrow. Tests look fine, but I would very much prefer the ...
5 years, 7 months ago (2015-05-07 22:39:04 UTC) #6
Peter Beverloo
I do not think we should have this code in Blink. The decision to support ...
5 years, 7 months ago (2015-05-08 12:17:50 UTC) #7
Miguel Garcia
+John and Michael As Peter mentioned in the previous comment we didn't manage to reach ...
5 years, 7 months ago (2015-05-08 13:38:17 UTC) #9
Miguel Garcia
5 years, 7 months ago (2015-05-08 13:40:26 UTC) #10
Peter Beverloo
On 2015/05/08 13:38:17, Miguel Garcia wrote: > pros/condition of keeping it as coded: > It's ...
5 years, 7 months ago (2015-05-08 14:08:02 UTC) #11
Michael van Ouwerkerk
I agree with Peter on this. It's a layering violation, and we try to avoid ...
5 years, 7 months ago (2015-05-08 14:32:07 UTC) #12
Miguel Garcia
On 2015/05/08 14:32:07, Michael van Ouwerkerk wrote: > I agree with Peter on this. It's ...
5 years, 7 months ago (2015-05-08 14:33:45 UTC) #13
Peter Beverloo
On 2015/05/08 14:33:45, Miguel Garcia wrote: > On 2015/05/08 14:32:07, Michael van Ouwerkerk wrote: > ...
5 years, 7 months ago (2015-05-08 14:38:14 UTC) #14
johnme
https://codereview.chromium.org/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp File Source/modules/push_messaging/PushManager.cpp (right): https://codereview.chromium.org/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp#newcode97 Source/modules/push_messaging/PushManager.cpp:97: return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, To change the subject (since I ...
5 years, 7 months ago (2015-05-08 15:48:22 UTC) #15
johnme
https://codereview.chromium.org/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp File Source/modules/push_messaging/PushManager.cpp (right): https://codereview.chromium.org/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp#newcode97 Source/modules/push_messaging/PushManager.cpp:97: return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, On 2015/05/08 15:48:22, johnme wrote: > ...
5 years, 7 months ago (2015-05-08 15:57:07 UTC) #16
Miguel Garcia
https://chromiumcodereview.appspot.com/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp File Source/modules/push_messaging/PushManager.cpp (right): https://chromiumcodereview.appspot.com/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp#newcode97 Source/modules/push_messaging/PushManager.cpp:97: return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError, Yes, it feels more accurate than ...
5 years, 7 months ago (2015-05-08 21:00:32 UTC) #17
johnme
On 2015/05/08 21:00:32, Miguel Garcia wrote: > https://chromiumcodereview.appspot.com/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp > File Source/modules/push_messaging/PushManager.cpp (right): > > https://chromiumcodereview.appspot.com/1136513002/diff/40001/Source/modules/push_messaging/PushManager.cpp#newcode97 ...
5 years, 7 months ago (2015-05-11 12:31:01 UTC) #19
mlamouri (slow - plz ping)
5 years, 5 months ago (2015-07-24 13:25:14 UTC) #22
Should this be closed?

Powered by Google App Engine
This is Rietveld 408576698