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

Issue 134863007: CSP: Replace 'static_cast' with 'toDocument'. (Closed)

Created:
6 years, 10 months ago by Mike West
Modified:
6 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, sof, eae+blinkwatch, adamk+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

CSP: Replace 'static_cast' with 'toDocument'. This patch introduces a 'toDocument' helper that casts ExecutionContextClient objects to Documents with appropriate checks, and migrates ContentSecurityPolicy off of direct 'static_cast' usage. No web-visible change, just refactoring for clarity/safety. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166714

Patch Set 1 #

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M Source/core/dom/Document.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/ContentSecurityPolicy.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/frame/ContentSecurityPolicy.cpp View 1 4 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mike West
Mind taking a look at this tiny refactoring, Jochen? -mike
6 years, 10 months ago (2014-02-07 09:51:21 UTC) #1
jochen (gone - plz use gerrit)
lgtm
6 years, 10 months ago (2014-02-07 09:52:22 UTC) #2
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 10 months ago (2014-02-07 09:59:32 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/134863007/1
6 years, 10 months ago (2014-02-07 09:59:44 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 12:14:39 UTC) #5
commit-bot: I haz the power
Failed to apply patch for Source/core/frame/ContentSecurityPolicy.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-07 12:14:39 UTC) #6
Mike West
The CQ bit was checked by mkwst@chromium.org
6 years, 10 months ago (2014-02-07 12:47:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/134863007/130001
6 years, 10 months ago (2014-02-07 12:48:09 UTC) #8
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 15:04:40 UTC) #9
Message was sent while issue was closed.
Change committed as 166714

Powered by Google App Engine
This is Rietveld 408576698