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

Issue 1049513003: Add error dispatch events to SVGStyleElement (Closed)

Created:
5 years, 8 months ago by jww
Modified:
5 years, 8 months ago
Reviewers:
pdr., fs
CC:
blink-reviews, blink-reviews-style_chromium.org, krit, ed+blinkwatch_opera.com, f(malita), fs, gyuyoung.kim_webkit.org, kouhei+svg_chromium.org, mkwst+watchlist-csp_chromium.org, Mike West, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add error dispatch events to SVGStyleElement This is a follow up to https://codereview.chromium.org/1032033002, adding the plumbing to SVGStyleElements for dispatching error events. In turn, this provides the support for firing error events on CSP hash and nonce failures. R=pdr@chromium.org BUG=464648 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192956

Patch Set 1 #

Patch Set 2 : Added more tests #

Total comments: 10

Patch Set 3 : Fixes #

Total comments: 2

Patch Set 4 : Nit from pdr #

Total comments: 6

Patch Set 5 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -13 lines) Patch
M LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-basic-blocked-error-event.html View 1 1 chunk +46 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-basic-blocked-error-event-expected.txt View 1 1 chunk +7 lines, -1 line 0 comments Download
A LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-svg-style-basic-blocked-error-event.html View 1 1 chunk +58 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylehash-svg-style-basic-blocked-error-event-expected.txt View 1 1 chunk +12 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-basic-blocked-error-event.html View 1 1 chunk +42 lines, -5 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-basic-blocked-error-event-expected.txt View 1 1 chunk +6 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-svg-style-basic-blocked-error-event.html View 1 1 chunk +58 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/contentSecurityPolicy/1.1/stylenonce-svg-style-basic-blocked-error-event-expected.txt View 1 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/html/HTMLStyleElement.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/svg/SVGStyleElement.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M Source/core/svg/SVGStyleElement.cpp View 1 2 3 4 5 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
jww
pdr@, this is the addition we discussed to add error events to SVG style elements.
5 years, 8 months ago (2015-03-31 00:12:07 UTC) #1
pdr.
Looking good! Just minor comments below. https://codereview.chromium.org/1049513003/diff/20001/Source/core/html/HTMLStyleElement.cpp File Source/core/html/HTMLStyleElement.cpp (right): https://codereview.chromium.org/1049513003/diff/20001/Source/core/html/HTMLStyleElement.cpp#newcode146 Source/core/html/HTMLStyleElement.cpp:146: if (m_firedLoad && ...
5 years, 8 months ago (2015-03-31 03:01:43 UTC) #2
fs
https://codereview.chromium.org/1049513003/diff/20001/Source/core/svg/SVGElement.cpp File Source/core/svg/SVGElement.cpp (right): https://codereview.chromium.org/1049513003/diff/20001/Source/core/svg/SVGElement.cpp#newcode852 Source/core/svg/SVGElement.cpp:852: if (!haveLoadedRequiredResources()) Why would we want to gate this ...
5 years, 8 months ago (2015-03-31 09:03:38 UTC) #4
jww
I believe this addresses pdr@ and fs@'s comments. Let me know! https://codereview.chromium.org/1049513003/diff/20001/Source/core/html/HTMLStyleElement.cpp File Source/core/html/HTMLStyleElement.cpp (right): ...
5 years, 8 months ago (2015-03-31 21:31:42 UTC) #5
pdr.
LGTM. Could you please give fs@opera.com a day before committing? https://codereview.chromium.org/1049513003/diff/40001/Source/core/svg/SVGStyleElement.h File Source/core/svg/SVGStyleElement.h (right): https://codereview.chromium.org/1049513003/diff/40001/Source/core/svg/SVGStyleElement.h#newcode28 ...
5 years, 8 months ago (2015-03-31 21:36:38 UTC) #6
jww
On 2015/03/31 at 21:36:38, pdr wrote: > LGTM. > > Could you please give fs@opera.com ...
5 years, 8 months ago (2015-03-31 22:39:58 UTC) #7
fs
LGTM w/ nits and comments https://codereview.chromium.org/1049513003/diff/20001/Source/core/html/HTMLStyleElement.cpp File Source/core/html/HTMLStyleElement.cpp (right): https://codereview.chromium.org/1049513003/diff/20001/Source/core/html/HTMLStyleElement.cpp#newcode146 Source/core/html/HTMLStyleElement.cpp:146: if (m_firedLoad && errorStatus ...
5 years, 8 months ago (2015-04-01 08:47:51 UTC) #8
jww
https://codereview.chromium.org/1049513003/diff/40001/Source/core/svg/SVGStyleElement.h File Source/core/svg/SVGStyleElement.h (right): https://codereview.chromium.org/1049513003/diff/40001/Source/core/svg/SVGStyleElement.h#newcode28 Source/core/svg/SVGStyleElement.h:28: #include "platform/Timer.h" On 2015/03/31 at 21:36:38, pdr wrote: > ...
5 years, 8 months ago (2015-04-01 16:26:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049513003/80001
5 years, 8 months ago (2015-04-01 16:27:23 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-01 19:14:14 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192956

Powered by Google App Engine
This is Rietveld 408576698