|
|
Introduce --remote-debugging-frontend switch for custom remote debugging front-end
DevTools "hosted mode" is broken in a multiple ways:
- it uses sync XHR from inside the microtask (this was recentrly forbidden)
- as the protocol was split and moved around, the InspectorBackendHostedMode.js
is not able to generate proper inspector backend commands
This patch introduces the --remote-debugging-frontend switch with a value of
a absolute path to devtools front-end checkout.
If the --remote-debugging-frontend switch is specified, then the remote
debugging session will be opened with the front-end loaded from the
specified endpoint.
We assume that this endpoint will be serving a simple check-out
of devtools front-end, which is missing generated files
InspectorBackendCommands.js and SupportedCSSProperties.js.
For this reason, requests to these files are fulfilled from the chrome
devtools bundled resources.
BUG= 623602
R=dgozman
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+115 lines, -245 lines) |
Patch |
 |
M |
chrome/browser/devtools/frontend/devtools_discovery_page.html
|
View
|
|
2 chunks |
+9 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/remote_debugging_server.cc
|
View
|
1
2
|
3 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/devtools_ui.cc
|
View
|
1
2
|
5 chunks |
+63 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/url_constants.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/url_constants.cc
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
|
View
|
1
2
|
1 chunk |
+8 lines, -43 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/inspector/inspector-backend-commands-generation.html
|
View
|
1
2
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/inspector/inspector-backend-commands-generation-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/BUILD.gn
|
View
|
1
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/devtools.gyp
|
View
|
1
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/devtools.gypi
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/devtools/front_end/sdk/InspectorBackendHostedMode.js
|
View
|
|
1 chunk |
+0 lines, -125 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/front_end/sdk/module.json
|
View
|
1
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/devtools/scripts/CodeGeneratorFrontend.py
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 21 (11 generated)
|