|
|
Chromium Code Reviews|
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. |
DescriptionOnly 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 #
Messages
Total messages: 19 (8 generated)
Description was changed from ========== Only block http or https doc.written scripts. BUG= ========== to ========== 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. BUG= ==========
Description was changed from ========== 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. BUG= ========== to ========== 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. BUG=616312 ==========
Description was changed from ========== 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. BUG=616312 ========== to ========== 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 ==========
Description was changed from ========== 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 ========== to ========== 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 ==========
bmcquade@chromium.org changed reviewers: + shivanisha@chromium.org
On 2016/06/01 at 12:05:52, bmcquade wrote: > LGTM. Thanks for this change!
bmcquade@chromium.org changed reviewers: + csharrison@chromium.org
Adding csharrison for owners/committer review.
On 2016/06/01 14:31:26, Bryan McQuade wrote: > Adding csharrison for owners/committer review. I'm no csharrison, but LGTM :)
Thanks Yoav! On Wed, Jun 1, 2016 at 10:35 AM <yoav@yoav.ws> wrote: > On 2016/06/01 14:31:26, Bryan McQuade wrote: > > Adding csharrison for owners/committer review. > > I'm no csharrison, but LGTM :) > > https://codereview.chromium.org/2026983002/ > -- You received this message because you are subscribed to the Google Groups "Blink Reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
Thanks Yoav! On Wed, Jun 1, 2016 at 10:35 AM <yoav@yoav.ws> wrote: > On 2016/06/01 14:31:26, Bryan McQuade wrote: > > Adding csharrison for owners/committer review. > > I'm no csharrison, but LGTM :) > > https://codereview.chromium.org/2026983002/ > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Sorry for the delay, LGTM.
I'm also no OWNER of this code :)
The CQ bit was checked by bmcquade@chromium.org
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
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/96268153217282dfd921387cb033f83e7f583d60 Cr-Commit-Position: refs/heads/master@{#397419} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
