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

Issue 2195113002: DevTools: improve UX for hosted mode + fix bug (Closed)

Created:
4 years, 4 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: improve UX for hosted mode + fix bug This CL includes several quick improvements for hosted mode: - Properly serves InspectorBackendCommands.js. It turns out the metadata from the file is necessary for certain operations (e.g. $0 in the console). - Can now customize remote debugging port in addition to server port (e.g. REMOTE_DEBUGGING_PORT=9333 PORT=1234 npm run server) - Provides helpful info if you go to server root path: (e.g. http://localhost:8090/). As Paul pointed out, users may go here to check if the server is working. “Please go to http://localhost:9222#http://localhost:8090/front_end/inspector.html?experiments=true” (Note: it accounts for custom ports passed in) - Add chrome favicon (same favicon as https://developer.chrome.com/devtools) I'll update the docs with the RDP info once this CL has landed. BUG=629914 Committed: https://crrev.com/c453b7819ecc95fad800c61c31c8c2db31839725 Cr-Commit-Position: refs/heads/master@{#409878}

Patch Set 1 #

Patch Set 2 : better favicon.ico implementation #

Patch Set 3 : nit: formatting #

Total comments: 7

Patch Set 4 : Address CL feedback #

Total comments: 5

Patch Set 5 : minor fixes / formating #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -39 lines) Patch
M third_party/WebKit/Source/devtools/front_end/inspector.js View 1 2 3 1 chunk +1 line, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js View 1 2 3 4 7 chunks +21 lines, -29 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
chenwilliam
4 years, 4 months ago (2016-07-30 01:06:37 UTC) #3
lushnikov
https://codereview.chromium.org/2195113002/diff/40001/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/2195113002/diff/40001/third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js#newcode42 third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js:42: if (filePath === "/favicon.ico") isn't there a favicon in ...
4 years, 4 months ago (2016-08-02 17:17:15 UTC) #4
lushnikov
https://codereview.chromium.org/2195113002/diff/40001/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/2195113002/diff/40001/third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js#newcode78 third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js:78: "/front_end/InspectorBackendCommands.js": getFrontendURL.bind(null, "InspectorBackendCommands.js") one more question: why do we ...
4 years, 4 months ago (2016-08-02 17:26:26 UTC) #5
paulirish
https://codereview.chromium.org/2195113002/diff/40001/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/2195113002/diff/40001/third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js#newcode42 third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js:42: if (filePath === "/favicon.ico") On 2016/08/02 at 17:17:15, lushnikov ...
4 years, 4 months ago (2016-08-03 18:26:14 UTC) #6
chenwilliam
The good news is we don't need to serve the protocol json files for hosted ...
4 years, 4 months ago (2016-08-03 22:30:39 UTC) #7
lushnikov
lgtm https://codereview.chromium.org/2195113002/diff/60001/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/2195113002/diff/60001/third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js#newcode14 third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js:14: var entryLink = `http://localhost:${remoteDebuggingPort}#http://localhost:${serverPort}/front_end/inspector.html?experiments=true`; let's put this where ...
4 years, 4 months ago (2016-08-04 01:17:27 UTC) #8
chenwilliam
https://codereview.chromium.org/2195113002/diff/60001/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/2195113002/diff/60001/third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js#newcode14 third_party/WebKit/Source/devtools/scripts/hosted_mode/server.js:14: var entryLink = `http://localhost:${remoteDebuggingPort}#http://localhost:${serverPort}/front_end/inspector.html?experiments=true`; On 2016/08/04 01:17:27, lushnikov wrote: ...
4 years, 4 months ago (2016-08-04 17:56:24 UTC) #9
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/2195113002/80001
4 years, 4 months ago (2016-08-04 17:56:53 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-04 19:57:19 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c453b7819ecc95fad800c61c31c8c2db31839725 Cr-Commit-Position: refs/heads/master@{#409878}
4 years, 4 months ago (2016-08-04 19:59:50 UTC) #16
chenwilliam
On 2016/08/04 19:59:50, commit-bot: I haz the power wrote: > Patchset 5 (id:??) landed as ...
4 years, 4 months ago (2016-08-04 20:24:36 UTC) #17
PhistucK
This is Chromium code, but you are using a Chrome favicon... Is this intentional?
4 years, 4 months ago (2016-08-05 19:21:59 UTC) #18
paulirish
4 years, 4 months ago (2016-08-05 19:31:24 UTC) #19
Message was sent while issue was closed.
On 2016/08/05 at 19:21:59, phistuck wrote:
> This is Chromium code, but you are using a Chrome favicon... Is this
intentional?

We're using an icon for clear distinction of tabs. We chose to reuse the icon
that's on the appspot (which is used for remote debugging hosted frontends).
Your concern is noted. 

We can discuss with folks about the icon hosted there.
If you want to help make a favicon from
https://github.com/chromedevtools/devtools-logo that looks decent, we can try to
get it placed there.

Powered by Google App Engine
This is Rietveld 408576698