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

Issue 2338623004: Add Blink setting to block doc.written scripts on 2g-like networks (Closed)

Created:
4 years, 3 months ago by jkarlin
Modified:
4 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Yoav Weiss, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, tyoshino+watch_chromium.org, loading-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Blink setting to block doc.written scripts on 2g-like networks Use the NetworkQualityEstimator to add the ability to block synchronous script loading with document.write if the network conditions are 2G or 2G-like. This CL also adds TestRunner API to let layout tests override the effective network type. BUG=633569 Committed: https://crrev.com/3bddb7d26f782d26958aa3afb0777adb1792033d Cr-Commit-Position: refs/heads/master@{#420117}

Patch Set 1 #

Patch Set 2 : Address compiler warning #

Patch Set 3 : Nit #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Remove changes to internals api #

Patch Set 6 : Switch to TestRunner Framework #

Patch Set 7 : Rebase #

Patch Set 8 : Update test results after rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -28 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 1 chunk +17 lines, -15 lines 0 comments Download
M components/test_runner/test_runner.h View 1 2 3 4 5 4 chunks +14 lines, -0 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 2 3 4 5 6 5 chunks +33 lines, -0 lines 0 comments Download
M components/test_runner/web_frame_test_client.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/web_frame_test_client.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M components/test_runner/web_frame_test_proxy.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block-effectively-2g.html View 1 2 3 4 5 1 chunk +8 lines, -7 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block-effectively-2g-expected.txt View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 2 chunks +20 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 41 (29 generated)
jkarlin
japhet@ PTAL at everything, many thanks!
4 years, 3 months ago (2016-09-16 17:08:12 UTC) #8
Nate Chapin
Production code changes look fine, but the test plumbing probably isn't optimal. https://codereview.chromium.org/2338623004/diff/40001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl ...
4 years, 3 months ago (2016-09-16 21:56:41 UTC) #13
jkarlin
https://codereview.chromium.org/2338623004/diff/40001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2338623004/diff/40001/third_party/WebKit/Source/core/testing/Internals.idl#newcode307 third_party/WebKit/Source/core/testing/Internals.idl:307: [RaisesException] void setEffectiveConnectionTypeOverride(DOMString type); On 2016/09/16 21:56:41, Nate Chapin ...
4 years, 3 months ago (2016-09-19 14:38:25 UTC) #14
Nate Chapin
On 2016/09/19 14:38:25, jkarlin wrote: > https://codereview.chromium.org/2338623004/diff/40001/third_party/WebKit/Source/core/testing/Internals.idl > File third_party/WebKit/Source/core/testing/Internals.idl (right): > > https://codereview.chromium.org/2338623004/diff/40001/third_party/WebKit/Source/core/testing/Internals.idl#newcode307 > ...
4 years, 3 months ago (2016-09-19 19:30:13 UTC) #15
jkarlin
On 2016/09/19 19:30:13, Nate Chapin wrote: > On 2016/09/19 14:38:25, jkarlin wrote: > > > ...
4 years, 3 months ago (2016-09-21 17:11:29 UTC) #21
Nate Chapin
LGTM, but you'll need a different OWNER for the components/test_runner pieces.
4 years, 3 months ago (2016-09-21 17:26:24 UTC) #27
jkarlin
Thanks Nate. dpranke@ PTAL at components/, thanks!
4 years, 3 months ago (2016-09-21 17:37:00 UTC) #31
Dirk Pranke
lgtm
4 years, 3 months ago (2016-09-21 17:38:18 UTC) #32
jkarlin
Thanks!
4 years, 3 months ago (2016-09-21 18:23:16 UTC) #34
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/2338623004/220001
4 years, 3 months ago (2016-09-21 18:24:05 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 3 months ago (2016-09-21 18:44:37 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 18:46:31 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3bddb7d26f782d26958aa3afb0777adb1792033d
Cr-Commit-Position: refs/heads/master@{#420117}

Powered by Google App Engine
This is Rietveld 408576698