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

Issue 923443005: Disallow constructing the Notification object in a Service Worker. (Closed)

Created:
5 years, 10 months ago by Peter Beverloo
Modified:
5 years, 10 months ago
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Disallow constructing the Notification object in a Service Worker. Following the steps for the Notification constructor, we should throw a TypeError when its called on the ServiceWorkerGlobalScope. https://notifications.spec.whatwg.org/#constructors This is part of a two-sided patch: [1] https://codereview.chromium.org/930963002 [2] This patch. BUG=459038 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190271

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -4 lines) Patch
A LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js View 1 1 chunk +11 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js View 1 chunk +1 line, -4 lines 0 comments Download
A LayoutTests/http/tests/notifications/serviceworker-throw-constructor.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
M Source/modules/notifications/Notification.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Peter Beverloo
PTAL
5 years, 10 months ago (2015-02-16 17:37:05 UTC) #2
Michael van Ouwerkerk
lgtm with nits https://codereview.chromium.org/923443005/diff/1/LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js File LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js (right): https://codereview.chromium.org/923443005/diff/1/LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js#newcode2 LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js:2: importScripts('/resources/testharness-helpers.js'); nit: can we use a ...
5 years, 10 months ago (2015-02-16 18:16:09 UTC) #3
Peter Beverloo
https://codereview.chromium.org/923443005/diff/1/LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js File LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js (right): https://codereview.chromium.org/923443005/diff/1/LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js#newcode2 LayoutTests/http/tests/notifications/resources/serviceworker-notification-constructor.js:2: importScripts('/resources/testharness-helpers.js'); On 2015/02/16 18:16:09, Michael van Ouwerkerk wrote: > ...
5 years, 10 months ago (2015-02-16 18:23:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/923443005/20001
5 years, 10 months ago (2015-02-16 19:43:53 UTC) #7
commit-bot: I haz the power
5 years, 10 months ago (2015-02-16 19:46:46 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190271

Powered by Google App Engine
This is Rietveld 408576698