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

Issue 2614813004: Fix a crash of SRI when used with web workers (Closed)

Created:
3 years, 11 months ago by yhirano
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a crash of SRI when used with web workers SubresourceIntegrity::CheckSubresourceIntegrity expects a non-null Document which doesn't exist in workers. This CL replaces Document with ExecutionContext. BUG=678515 R=jochen@chromium.org

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix #

Messages

Total messages: 23 (15 generated)
yhirano
3 years, 11 months ago (2017-01-05 16:01:14 UTC) #8
jochen (gone - plz use gerrit)
can you please add a test? https://codereview.chromium.org/2614813004/diff/1/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp File third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp (right): https://codereview.chromium.org/2614813004/diff/1/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp#newcode8 third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp:8: #include "core/dom/Document.h" do ...
3 years, 11 months ago (2017-01-05 16:04:14 UTC) #9
yhirano
Added a layout test. https://codereview.chromium.org/2614813004/diff/1/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp File third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp (right): https://codereview.chromium.org/2614813004/diff/1/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp#newcode8 third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp:8: #include "core/dom/Document.h" On 2017/01/05 16:04:14, ...
3 years, 11 months ago (2017-01-06 09:28:59 UTC) #12
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-09 08:39:38 UTC) #16
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/2614813004/20001
3 years, 11 months ago (2017-01-11 02:01:10 UTC) #18
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 11 months ago (2017-01-11 04:38:04 UTC) #21
yhirano
It's landed. Closing...
3 years, 11 months ago (2017-01-11 04:39:43 UTC) #22
yhirano
3 years, 11 months ago (2017-01-11 04:40:40 UTC) #23
Message was sent while issue was closed.
On 2017/01/11 04:39:43, yhirano wrote:
> It's landed. Closing...

https://chromium.googlesource.com/chromium/src/+/65f4db51ec74c23432addc7b43a7...

Powered by Google App Engine
This is Rietveld 408576698