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

Issue 2167413002: DevTools: implement proxy server for hosted mode (Closed)

Created:
4 years, 5 months ago by chenwilliam
Modified:
4 years, 4 months ago
Reviewers:
paulirish, lushnikov
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: implement proxy server for hosted mode Completed: - Simple web server for serving static assets using node - Proxies requests for certain files - In-memory cache of proxied files from previous requests - Add npm script "npm run server" to start the web server - Users can use a custom port: "PORT=3000 npm run server" Notes: - Sends dummy response for InspectorBackendCommands.js because it’s not needed for hosted mode and avoids a console error BUG=629914 Committed: https://crrev.com/13e20a50fcaf3134c48dfad74c3b1991ba7c9cec Cr-Commit-Position: refs/heads/master@{#408018}

Patch Set 1 #

Total comments: 21

Patch Set 2 : Address CL feedback #

Total comments: 18

Patch Set 3 : Address CL feedback - consolidate modules #

Patch Set 4 : minor nits #

Total comments: 16

Patch Set 5 : implement PR feedback #

Total comments: 4

Patch Set 6 : Proxy SupportedCSSProperties.js + better error handling #

Patch Set 7 : Remove protocol files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -5462 lines) Patch
D third_party/WebKit/Source/devtools/front_end/sdk/protocol/README.md View 1 2 3 4 5 6 1 chunk +0 lines, -8 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/sdk/protocol/browser_protocol.json View 1 2 3 4 5 6 1 chunk +0 lines, -4463 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/sdk/protocol/js_protocol.json View 1 2 3 4 5 6 1 chunk +0 lines, -990 lines 0 comments Download
M third_party/WebKit/Source/devtools/package.json View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js View 1 2 3 4 5 1 chunk +151 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
lushnikov
https://codereview.chromium.org/2167413002/diff/1/third_party/WebKit/Source/devtools/hosted_mode/cache.js File third_party/WebKit/Source/devtools/hosted_mode/cache.js (right): https://codereview.chromium.org/2167413002/diff/1/third_party/WebKit/Source/devtools/hosted_mode/cache.js#newcode1 third_party/WebKit/Source/devtools/hosted_mode/cache.js:1: var Cache = function() inline this all into protocol_files_proxy.js ...
4 years, 5 months ago (2016-07-22 02:56:21 UTC) #3
chenwilliam
https://codereview.chromium.org/2167413002/diff/1/third_party/WebKit/Source/devtools/hosted_mode/cache.js File third_party/WebKit/Source/devtools/hosted_mode/cache.js (right): https://codereview.chromium.org/2167413002/diff/1/third_party/WebKit/Source/devtools/hosted_mode/cache.js#newcode1 third_party/WebKit/Source/devtools/hosted_mode/cache.js:1: var Cache = function() On 2016/07/22 02:56:21, lushnikov wrote: ...
4 years, 5 months ago (2016-07-22 17:35:25 UTC) #4
lushnikov
https://codereview.chromium.org/2167413002/diff/20001/third_party/WebKit/Source/devtools/hosted_mode/protocol_files_proxy.js File third_party/WebKit/Source/devtools/hosted_mode/protocol_files_proxy.js (right): https://codereview.chromium.org/2167413002/diff/20001/third_party/WebKit/Source/devtools/hosted_mode/protocol_files_proxy.js#newcode15 third_party/WebKit/Source/devtools/hosted_mode/protocol_files_proxy.js:15: if (protocolFiles.indexOf(filePath) === -1) if (!(filePath in protocolFileToPath)) return ...
4 years, 5 months ago (2016-07-22 21:06:05 UTC) #5
chenwilliam
Updated CL based on feedback. Please look at my latest patch set (#4). https://codereview.chromium.org/2167413002/diff/20001/third_party/WebKit/Source/devtools/hosted_mode/protocol_files_proxy.js File ...
4 years, 5 months ago (2016-07-22 23:20:32 UTC) #6
lushnikov
We're getting there! https://codereview.chromium.org/2167413002/diff/60001/third_party/WebKit/Source/devtools/hosted_mode/server.js File third_party/WebKit/Source/devtools/hosted_mode/server.js (right): https://codereview.chromium.org/2167413002/diff/60001/third_party/WebKit/Source/devtools/hosted_mode/server.js#newcode1 third_party/WebKit/Source/devtools/hosted_mode/server.js:1: // Copyright (c) 2016 The Chromium ...
4 years, 4 months ago (2016-07-25 19:33:44 UTC) #7
chenwilliam
https://codereview.chromium.org/2167413002/diff/60001/third_party/WebKit/Source/devtools/hosted_mode/server.js File third_party/WebKit/Source/devtools/hosted_mode/server.js (right): https://codereview.chromium.org/2167413002/diff/60001/third_party/WebKit/Source/devtools/hosted_mode/server.js#newcode1 third_party/WebKit/Source/devtools/hosted_mode/server.js:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 4 months ago (2016-07-25 21:58:46 UTC) #8
lushnikov
https://codereview.chromium.org/2167413002/diff/80001/third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js File third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js (right): https://codereview.chromium.org/2167413002/diff/80001/third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js#newcode28 third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js:28: .catch(err => console.log(`Error getting ${filePath}:`, err)); you might want ...
4 years, 4 months ago (2016-07-25 22:08:20 UTC) #9
chenwilliam
Updated per Andrey's latest CL feedback + Paul's suggestion to improve logging in error cases. ...
4 years, 4 months ago (2016-07-26 01:23:58 UTC) #11
lushnikov
lgtm, let's not forget updating docs once this lands!
4 years, 4 months ago (2016-07-26 23:32:10 UTC) #12
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/2167413002/120001
4 years, 4 months ago (2016-07-27 00:05:05 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-07-27 02:30:12 UTC) #16
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/13e20a50fcaf3134c48dfad74c3b1991ba7c9cec Cr-Commit-Position: refs/heads/master@{#408018}
4 years, 4 months ago (2016-07-27 02:31:44 UTC) #18
chenwilliam
I've updated the DevTools Contribution Guide using suggestions. bit.ly/devtools-contribution-guide
4 years, 4 months ago (2016-07-27 03:22:03 UTC) #19
pfeldman
I was using 9223 as my port and it did not work - version was ...
4 years, 4 months ago (2016-08-03 05:02:21 UTC) #20
chenwilliam
4 years, 4 months ago (2016-08-03 17:29:09 UTC) #21
Message was sent while issue was closed.
On 2016/08/03 05:02:21, pfeldman wrote:
> I was using 9223 as my port and it did not work - version was not fetched.
also,
> i was starting server before starting chrome, also did not work.

I'm working on a new CL that will address using other ports besides 9222 for
remote debugging port as well as a few other issues. (See
https://codereview.chromium.org/2195113002/)

Can you paste me the error you got when starting the server before chrome?

Powered by Google App Engine
This is Rietveld 408576698