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

Issue 2026983002: Only block http or https doc.written scripts. (Closed)

Created:
4 years, 6 months ago by Bryan McQuade
Modified:
4 years, 6 months ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only block http or https doc.written scripts. The current implementation will return true, indicating that the fetch should be blocked, for any script with a 'src' attribute. This includes file: and data: among others. We only want to block resources loaded from network, so we restrict to http and https scripts. This change doesn't include tests, since there isn't actually any behavior change here that I can detect. Even though shouldDisallow will return true for data: URLs, the script will continue to execute. However, it's useful for us to return false in the blocking method, since that allows us to avoid having the didObserveLoadingBehavior method get called, which could cause our metrics to be incorrect. BUG=616312 Committed: https://crrev.com/96268153217282dfd921387cb033f83e7f583d60 Cr-Commit-Position: refs/heads/master@{#397419}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
Bryan McQuade
4 years, 6 months ago (2016-06-01 12:05:52 UTC) #6
shivanisha
On 2016/06/01 at 12:05:52, bmcquade wrote: > LGTM. Thanks for this change!
4 years, 6 months ago (2016-06-01 14:10:48 UTC) #7
Bryan McQuade
Adding csharrison for owners/committer review.
4 years, 6 months ago (2016-06-01 14:31:26 UTC) #9
Yoav Weiss
On 2016/06/01 14:31:26, Bryan McQuade wrote: > Adding csharrison for owners/committer review. I'm no csharrison, ...
4 years, 6 months ago (2016-06-01 14:35:07 UTC) #10
Bryan McQuade
Thanks Yoav! On Wed, Jun 1, 2016 at 10:35 AM <yoav@yoav.ws> wrote: > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 14:35:53 UTC) #11
Bryan McQuade
Thanks Yoav! On Wed, Jun 1, 2016 at 10:35 AM <yoav@yoav.ws> wrote: > On 2016/06/01 ...
4 years, 6 months ago (2016-06-01 14:35:54 UTC) #12
Charlie Harrison
Sorry for the delay, LGTM.
4 years, 6 months ago (2016-06-02 13:33:49 UTC) #13
Charlie Harrison
I'm also no OWNER of this code :)
4 years, 6 months ago (2016-06-02 13:34:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2026983002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2026983002/1
4 years, 6 months ago (2016-06-02 13:37:13 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-02 15:40:07 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 15:41:33 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/96268153217282dfd921387cb033f83e7f583d60
Cr-Commit-Position: refs/heads/master@{#397419}

Powered by Google App Engine
This is Rietveld 408576698