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

Issue 2689173002: Implement script MIME restrictions for X-Content-Type-Options: nosniff for Workers (Closed)

Created:
3 years, 10 months ago by horo
Modified:
3 years, 10 months ago
Reviewers:
Mike West
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-w3ctests_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, falken+watch_chromium.org, gavinp+loader_chromium.org, horo+watch_chromium.org, Nate Chapin, kinuko+watch, kinuko+worker_chromium.org, loading-reviews_chromium.org, loading-reviews+fetch_chromium.org, rwlbuis, shimazu+worker_chromium.org, sof, tfarina, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement script MIME restrictions for X-Content-Type-Options: nosniff for Workers The restrictions for ScriptResources were introduced 4 years ago. https://chromium.googlesource.com/chromium/src/+/54acddd3e95047b46c0afd4482313a078378680f But the restrictions for worker scripts were not introduced. BUG=689003 Review-Url: https://codereview.chromium.org/2689173002 Cr-Commit-Position: refs/heads/master@{#449937} Committed: https://chromium.googlesource.com/chromium/src/+/483690f08302c4e870ca10e7685cc9b551bd43c7

Patch Set 1 #

Patch Set 2 #

Total comments: 4

Patch Set 3 : incorporated mkwst@'s comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -8 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/MANIFEST.json View 1 8 chunks +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/workers/Worker_NosniffErr.htm View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/workers/support/ImportScriptsNosniffErr.js View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/workers/support/nosiniff-error-worker.py View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ScriptResource.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/resource/ScriptResource.cpp View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp View 1 5 chunks +14 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/Resource.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.cpp View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
horo
mkwst@ Could you please review this?
3 years, 10 months ago (2017-02-13 07:00:17 UTC) #8
Mike West
LGTM if you update the tests a bit. :) https://codereview.chromium.org/2689173002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm File third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm (right): https://codereview.chromium.org/2689173002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm#newcode12 third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm:12: ...
3 years, 10 months ago (2017-02-13 09:56:09 UTC) #9
horo
Thank you. https://codereview.chromium.org/2689173002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm File third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm (right): https://codereview.chromium.org/2689173002/diff/20001/third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm#newcode12 third_party/WebKit/LayoutTests/external/wpt/workers/WorkerGlobalScope_importScripts_NosniffErr.htm:12: }); On 2017/02/13 09:56:08, Mike West (sloooooow) ...
3 years, 10 months ago (2017-02-13 10:30:50 UTC) #12
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/2689173002/60001
3 years, 10 months ago (2017-02-13 13:03:53 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 13:09:51 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/483690f08302c4e870ca10e7685c...

Powered by Google App Engine
This is Rietveld 408576698