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

Issue 2279543004: [DocWriteBlocking] Add feature to block doc.written scripts if 2g-like network (Closed)

Created:
4 years, 3 months ago by jkarlin
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, jam, Nate Chapin, kinuko+watch, loading-reviews_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DocWriteBlocking] Add feature to block doc.written scripts if 2g-like network Use the NetworkQualityEstimator to add the ability to block synchronous script loading with document.write if the network conditions are 2G or 2G-like. BUG=633569

Patch Set 1 #

Patch Set 2 : Nits #

Patch Set 3 : Nit #

Patch Set 4 : Rename #

Total comments: 4

Patch Set 5 : Rebase #

Patch Set 6 : Added helper method: isConnectionEffectively2G #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -3 lines) Patch
M content/child/runtime_features.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_features.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 2 chunks +20 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +1 line, -0 lines 2 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (17 generated)
jkarlin
japhet@ PTAL at the WebKit/ code, thanks!
4 years, 3 months ago (2016-08-25 17:42:13 UTC) #4
Yoav Weiss
Drive-by comments/questions https://codereview.chromium.org/2279543004/diff/60001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2279543004/diff/60001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode97 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:97: return false; I'm new to this code, ...
4 years, 3 months ago (2016-09-04 05:11:43 UTC) #12
jkarlin
Hi Yoav, thanks for looking. Nate PTAL! https://codereview.chromium.org/2279543004/diff/60001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2279543004/diff/60001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode97 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:97: return false; ...
4 years, 3 months ago (2016-09-06 11:58:45 UTC) #13
Nate Chapin
Agreed that a helper to associated slow enum values would be nice. LGTM otherwise.
4 years, 3 months ago (2016-09-06 20:55:36 UTC) #14
jkarlin
On 2016/09/06 20:55:36, Nate Chapin wrote: > Agreed that a helper to associated slow enum ...
4 years, 3 months ago (2016-09-08 13:13:41 UTC) #17
jkarlin
jochen@chromium.org: Please review content/ changes and RuntimeEnabledFeatures.in for owners. Thanks!
4 years, 3 months ago (2016-09-08 13:14:57 UTC) #19
jochen (gone - plz use gerrit)
can you please link the intent to implement thread from the CL description Is it ...
4 years, 3 months ago (2016-09-08 13:52:24 UTC) #20
jkarlin
I'll add tests, but it will depend on another CL that I need to write. ...
4 years, 3 months ago (2016-09-08 18:48:26 UTC) #23
jochen (gone - plz use gerrit)
ok, lgtm
4 years, 3 months ago (2016-09-09 13:43:09 UTC) #24
jkarlin
4 years, 3 months ago (2016-09-13 18:26:55 UTC) #25
This CL has completely changed since LGTMs so I'm closing this one and have
created https://codereview.chromium.org/2338623004 to make reviewing easier.

Powered by Google App Engine
This is Rietveld 408576698