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

Issue 13979011: Block all scripts from setting unsafe headers in XMLHttpRequest (Closed)

Created:
7 years, 8 months ago by meacer
Modified:
7 years, 7 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Block all scripts from setting unsafe headers in XMLHttpRequest. Previously, privileged scripts (file:// URLs) could set all headers. This patch blocks all scripts from setting any unsafe headers. BUG=196071 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149364

Patch Set 1 #

Patch Set 2 : Fix line width. #

Total comments: 8

Patch Set 3 : Block all scripts from setting unsafe headers. #

Patch Set 4 : Fix the header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -3 lines) Patch
A LayoutTests/fast/xmlhttprequest/set-dangerous-headers-local.html View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A + LayoutTests/fast/xmlhttprequest/set-dangerous-headers-local-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
meacer
Hi Adam, can you please review? Thanks!
7 years, 8 months ago (2013-04-25 00:26:58 UTC) #1
abarth-chromium
https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp#newcode455 Source/core/xml/XMLHttpRequest.cpp:455: return !equalIgnoringCase(name, "referer"); What about Host and all the ...
7 years, 8 months ago (2013-04-25 00:30:57 UTC) #2
meacer
https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp#newcode455 Source/core/xml/XMLHttpRequest.cpp:455: return !equalIgnoringCase(name, "referer"); On 2013/04/25 00:30:57, abarth wrote: > ...
7 years, 8 months ago (2013-04-25 00:34:58 UTC) #3
abarth-chromium
https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp#newcode455 Source/core/xml/XMLHttpRequest.cpp:455: return !equalIgnoringCase(name, "referer"); On 2013/04/25 00:34:58, Mustafa Emre Acer ...
7 years, 8 months ago (2013-04-25 03:28:10 UTC) #4
meacer
Thanks Adam, please see the latest patch. https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp File Source/core/xml/XMLHttpRequest.cpp (right): https://codereview.chromium.org/13979011/diff/2001/Source/core/xml/XMLHttpRequest.cpp#newcode455 Source/core/xml/XMLHttpRequest.cpp:455: return !equalIgnoringCase(name, ...
7 years, 8 months ago (2013-04-25 17:43:21 UTC) #5
abarth-chromium
lgtm Great!
7 years, 8 months ago (2013-04-26 04:06:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/meacer@chromium.org/13979011/13001
7 years, 8 months ago (2013-04-26 04:12:09 UTC) #7
commit-bot: I haz the power
Presubmit check for 13979011-13001 failed and returned exit status -2001. The presubmit check was hung. ...
7 years, 8 months ago (2013-04-26 04:18:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/meacer@chromium.org/13979011/13001
7 years, 7 months ago (2013-04-26 17:46:28 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=5738
7 years, 7 months ago (2013-04-26 18:26:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/meacer@chromium.org/13979011/13001
7 years, 7 months ago (2013-04-29 17:28:09 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=6092
7 years, 7 months ago (2013-04-29 18:06:52 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/meacer@chromium.org/13979011/13001
7 years, 7 months ago (2013-04-29 20:32:48 UTC) #13
commit-bot: I haz the power
7 years, 7 months ago (2013-04-29 21:28:19 UTC) #14
Message was sent while issue was closed.
Change committed as 149364

Powered by Google App Engine
This is Rietveld 408576698