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

Issue 2525903003: Add Page.stopLoading to devtools and --timeout switch to headless_shell (Closed)

Created:
4 years ago by alex clarke (OOO till 29th)
Modified:
4 years ago
Reviewers:
dgozman, Sami, pfeldman
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Page.stopLoading to devtools and --timeout switch to headless_shell Some pages don't load in a reasonable timeframe so allow users to cause the load to stop after a given timeout. We implement this via a new Page.stopLoading devtools command. The new switch is --timeout=milliseconds (e.g. --timeout=5000) BUG=546953 R=dgozman@chromium.org, skyostil@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/6f5c58a6767e018775b02060009a432ea81a74db

Patch Set 1 #

Total comments: 4

Patch Set 2 : Plumb Stop through DevTools instead. #

Patch Set 3 : Added a WeakPtrFactory #

Total comments: 2

Patch Set 4 : Change the command to Page.stopLoading #

Patch Set 5 : FixPage.stopLoading command description. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -9 lines) Patch
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/page_handler.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/page_handler.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M headless/app/headless_shell.cc View 1 2 3 11 chunks +32 lines, -9 lines 0 comments Download
M headless/app/headless_shell_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M headless/app/headless_shell_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
alex clarke (OOO till 29th)
4 years ago (2016-11-23 18:03:57 UTC) #2
Sami
https://codereview.chromium.org/2525903003/diff/1/headless/app/headless_shell.cc File headless/app/headless_shell.cc (right): https://codereview.chromium.org/2525903003/diff/1/headless/app/headless_shell.cc#newcode176 headless/app/headless_shell.cc:176: base::Bind(&HeadlessShell::FetchTimeout, base::Unretained(this)), Should we use a weak pointer here? ...
4 years ago (2016-11-23 18:11:32 UTC) #3
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2525903003/diff/1/headless/app/headless_shell.cc File headless/app/headless_shell.cc (right): https://codereview.chromium.org/2525903003/diff/1/headless/app/headless_shell.cc#newcode176 headless/app/headless_shell.cc:176: base::Bind(&HeadlessShell::FetchTimeout, base::Unretained(this)), On 2016/11/23 18:11:32, Sami wrote: > ...
4 years ago (2016-11-24 12:05:04 UTC) #4
alex clarke (OOO till 29th)
+dgozman@ & pfeldman@ for OWNERS review.
4 years ago (2016-11-24 12:07:22 UTC) #10
Sami
headless/ lgtm. Thanks for fixing the other unretaineds too!
4 years ago (2016-11-24 12:28:01 UTC) #11
dgozman
lgtm https://codereview.chromium.org/2525903003/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2525903003/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode262 third_party/WebKit/Source/core/inspector/browser_protocol.json:262: "name": "stop", Let's call this stopLoading to emphasize ...
4 years ago (2016-11-24 17:18:24 UTC) #14
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/2525903003/80001
4 years ago (2016-11-24 17:30:12 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/312495)
4 years ago (2016-11-24 17:37:32 UTC) #21
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/2525903003/80001
4 years ago (2016-11-25 09:44:06 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/312861)
4 years ago (2016-11-25 09:49:50 UTC) #25
alex clarke (OOO till 29th)
I did git cl land --bypass-hooks on this because the presubmit was complaining about the ...
4 years ago (2016-11-25 11:54:46 UTC) #26
commit-bot: I haz the power
4 years ago (2016-11-25 11:55:05 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6f5c58a6767e018775b02060009a432ea81a74db
Cr-Commit-Position: refs/heads/master@{#434480}

Powered by Google App Engine
This is Rietveld 408576698