Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes e12432f70d Bug 1577092 - Change devtools server connectors to expose connectTo functions r=nchevobbe
Depends on D43618

Differential Revision: https://phabricator.services.mozilla.com/D43728

--HG--
extra : moz-landing-system : lando
2019-08-28 13:07:40 +00:00
Nicolas Chevobbe 451bc0629c Bug 1572671 - Don't load content process server startup script if it was already loaded. r=ochameau.
Previously, we were simply having a flag on the ContentProcessConnector
that we would flip once we loaded the content process server startup script.
This was working fine until multi-proxy browser console.
Each time we open the Browser Console, we create a new loader in a new
compartment. Which means in the end we'll have a new ContentProcessConnector
instance, and the flag would be resetted, and thus we would load a new
content process server startup script, which finally, would emit some
packet twice, and thus would break how we manage new packet in the client.

This patch fixes that by replacing the flag by checking if the script
was already loaded.

Differential Revision: https://phabricator.services.mozilla.com/D43618

--HG--
extra : moz-landing-system : lando
2019-08-28 06:37:18 +00:00
Julian Descottes 0eb75e2d77 Bug 1572436 - Extract connectTo methods from devtools/server/debugger-server r=yulia,ochameau
Depends on D41009

Differential Revision: https://phabricator.services.mozilla.com/D41208

--HG--
rename : devtools/server/debugger-server.js => devtools/server/connectors/content-process-connector.js
rename : devtools/server/debugger-server.js => devtools/server/connectors/frame-connector.js
rename : devtools/server/debugger-server.js => devtools/server/connectors/worker-connector.js
extra : moz-landing-system : lando
2019-08-09 09:05:05 +00:00