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

Issue 2690933003: Don't sanitize errors if the protocol is "data:" (Closed)

Created:
3 years, 10 months ago by andypaicu2
Modified:
3 years, 10 months ago
Reviewers:
Mike West
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't sanitize errors if the protocol is "data:" Added a special check for 'data:' URLs to not sanitize error messages. BUG=691518, 508734 Review-Url: https://codereview.chromium.org/2690933003 Cr-Commit-Position: refs/heads/master@{#450342} Committed: https://chromium.googlesource.com/chromium/src/+/5f11cf4c938565ded9c4268af70e7e578169fa3e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moved test to the external folder #

Patch Set 3 : Updated incorrect test result expectations for data URLs #

Total comments: 1

Patch Set 4 : Correct expected results for external/wpt/html/webappapis/scripting/processing-model-2/runtime-erro… #

Patch Set 5 : Removed the runtime-error-data-url-expected.txt file since both tests in it are now passing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/data-url.html View 1 1 chunk +15 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.cpp View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 30 (19 generated)
Mike West
LGTM % the test. Thanks! https://codereview.chromium.org/2690933003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html File third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html (right): https://codereview.chromium.org/2690933003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html#newcode1 third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html:1: <!DOCTYPE html> It looks ...
3 years, 10 months ago (2017-02-14 07:19:07 UTC) #3
andypaicu2
Patch that moved test to external https://codereview.chromium.org/2690933003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html File third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html (right): https://codereview.chromium.org/2690933003/diff/1/third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html#newcode1 third_party/WebKit/LayoutTests/http/tests/security/script-dataurl-not-sanitized.html:1: <!DOCTYPE html> On ...
3 years, 10 months ago (2017-02-14 09:09:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2690933003/20001
3 years, 10 months ago (2017-02-14 09:47:55 UTC) #15
Mike West
Thanks for moving to the WPT test! Changes still LGTM.
3 years, 10 months ago (2017-02-14 10:04:02 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/382162)
3 years, 10 months ago (2017-02-14 10:54:06 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2690933003/40001
3 years, 10 months ago (2017-02-14 11:14:13 UTC) #21
Mike West
https://codereview.chromium.org/2690933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt File third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt (right): https://codereview.chromium.org/2690933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt#newcode3 third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt:3: PASS window.onerror - runtime error in <script src=data:...> If ...
3 years, 10 months ago (2017-02-14 12:17:13 UTC) #22
andypaicu2
On 2017/02/14 at 12:17:13, mkwst wrote: > https://codereview.chromium.org/2690933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt > File third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt (right): > > https://codereview.chromium.org/2690933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt#newcode3 ...
3 years, 10 months ago (2017-02-14 12:25:56 UTC) #23
Mike West
On 2017/02/14 at 12:25:56, andypaicu wrote: > On 2017/02/14 at 12:17:13, mkwst wrote: > > ...
3 years, 10 months ago (2017-02-14 12:30:52 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2690933003/80001
3 years, 10 months ago (2017-02-14 12:31:28 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 13:56:43 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/5f11cf4c938565ded9c4268af70e...

Powered by Google App Engine
This is Rietveld 408576698