DescriptionDevTools: copy protocol files to front-end to fix hosted mode
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
The patch fixes both problems. Here we:
- manually copy browser_protocol.json and js_protocol.json to the front-end
folder so that hosted mode can rely on it
- preload protocol files into Runtime.cachedResources in hosted mode for future
use of InspectorBackendHostedMode.js
BUG=623602
R=dgozman, pfeldman
Committed: https://crrev.com/72620f081343cac603df3e17dfbd8b2607e2ab2d
Cr-Commit-Position: refs/heads/master@{#404447}
Patch Set 1 #Patch Set 2 : nit #
Total comments: 15
Patch Set 3 : address comments #
Total comments: 1
Patch Set 4 : pre-load json files for hosted mode #
Total comments: 4
Patch Set 5 : address comments #
Messages
Total messages: 21 (8 generated)
|