Closed
Bug 1492700
Opened 5 years ago
Closed 4 years ago
[remote-dbg-next] Fix the timing of enable/disable ADB
Categories
(DevTools :: about:debugging, enhancement, P1)
DevTools
about:debugging
Tracking
(firefox65 fixed)
RESOLVED
FIXED
Firefox 65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: daisuke, Assigned: jdescottes)
References
(Blocks 3 open bugs)
Details
(Whiteboard: old-remote-debugging-ng-m3)
Attachments
(17 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
1.14 KB,
patch
|
jdescottes
:
review+
|
Details | Diff | Splinter Review |
Currently, we enable/disable ADB when about:debugging page was opened/closed (bug 1405235). However, if user is opening another about:debugging page or another application is using, we should not disable ADB. The other hand, if another application made ADB disable, we should enable again. So, we need to consider the timing of enable/disable ADB.
Updated•5 years ago
|
Priority: P3 → P2
Assignee | ||
Comment 1•5 years ago
|
||
The status for this one changed a bit. Now when about:debugging starts, we attempt to start ADB if needed (when we start the scanner, if the ADB extension is installed). And when we stop about:debugging we just destroy the scanner but we don't try to shutdown ADB. I think that for m1 the current behavior is ok, and we should not shutdown ADB automatically when closing about:debugging. ADB is a process, we should not assume about:debugging is the only consumer. However, maybe it could be interesting to let the user know that the ADB process is currently running and give them a way to stop it?
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
filter on remote-debugging-next-move-m3-to-m2
Blocks: remote-debugging-ng-m2
Assignee | ||
Comment 3•4 years ago
|
||
filter on remote-debugging-next-move-m3-to-m2
Assignee | ||
Comment 4•4 years ago
|
||
filter on remote-debugging-next-move-m3-to-m2
No longer blocks: remote-debugging-ng-m3
Whiteboard: old-remote-debugging-ng-m3
Assignee | ||
Comment 5•4 years ago
|
||
Technically we should implement a mechanism to stop ADB if the process was started by firefox and if no client uses it anymore. I think we should also discuss if the status of ADB should be visible somewhere in the UI. It might be interesting for troubleshooting purposes. I think we should handle this in a separate bug.
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Priority: P2 → P1
Assignee | ||
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D12758
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D12759
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D12760
Assignee | ||
Comment 10•4 years ago
|
||
Depends on D12761
Assignee | ||
Comment 11•4 years ago
|
||
Depends on D12762
Assignee | ||
Comment 12•4 years ago
|
||
Depends on D12763
Assignee | ||
Comment 13•4 years ago
|
||
Depends on D12764
Assignee | ||
Comment 14•4 years ago
|
||
Depends on D12765
Assignee | ||
Comment 15•4 years ago
|
||
Depends on D12766
Assignee | ||
Comment 16•4 years ago
|
||
I am trying to cleanup a bit our ADB modules in the scope of this bug. The reason behind is that if we want to stop the ADB process when all the "devtools" consumers of ADB no longer want to get ADB updates, then it means we need a clear entry point for all the interaction with ADB. In practice, we need to have some global module that will keep track of the consumers, and that will stop the ADB process if the number of consumers is down to 0 _and_ if ADB was started by devtools. At the moment, all the consumers of ADB are using the "addon-aware-adb-scanner". This means that we could quickly hack something on top of this module to achieve the feature of this bug. However some other modules are also relying on ADB: about:devtools-toolbox when connected to a remote USB runtime for instance. Those modules don't need to scan for ADB runtimes, they just to say that they "need" ADB. So I would like to cleanup the adb folder so that we can have small public API: - adb-addon.js - adb.js
Keywords: leave-open
Comment 17•4 years ago
|
||
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f5f900b18101 Fix ADB stop() in case ADB start() was called several times;r=daisuke https://hg.mozilla.org/integration/autoland/rev/5199632a4ada Stop sending adb-addon updates from Devices.jsm;r=daisuke https://hg.mozilla.org/integration/autoland/rev/7590eb03b4ff Move Devices.jsm to devtools/shared/adb folder;r=daisuke https://hg.mozilla.org/integration/autoland/rev/363e8b2ecfab Convert Devices.jsm to adb-devices-registry module;r=daisuke https://hg.mozilla.org/integration/autoland/rev/65825c93b47b adb-device.js should export AdbDevice and not Device;r=daisuke https://hg.mozilla.org/integration/autoland/rev/d5e67b8fbde3 Stop exposing shell() on adb-device because it only forwards to ADB;r=daisuke https://hg.mozilla.org/integration/autoland/rev/5db9614af6a5 Fold FirefoxOnAndroidRuntime.detect in scanner.detectRuntimes;r=daisuke https://hg.mozilla.org/integration/autoland/rev/bbc5bcb72208 Merge Runtime and FirefoxForAndroidRuntime into AdbRuntime;r=daisuke https://hg.mozilla.org/integration/autoland/rev/21f0a93a65c2 Extract AdbRuntime out of adb-scanner.js;r=daisuke https://hg.mozilla.org/integration/autoland/rev/ad28397dfa43 Migrate AdbRuntime to a class;r=daisuke
Comment 18•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f5f900b18101 https://hg.mozilla.org/mozilla-central/rev/5199632a4ada https://hg.mozilla.org/mozilla-central/rev/7590eb03b4ff https://hg.mozilla.org/mozilla-central/rev/363e8b2ecfab https://hg.mozilla.org/mozilla-central/rev/65825c93b47b https://hg.mozilla.org/mozilla-central/rev/d5e67b8fbde3 https://hg.mozilla.org/mozilla-central/rev/5db9614af6a5 https://hg.mozilla.org/mozilla-central/rev/bbc5bcb72208 https://hg.mozilla.org/mozilla-central/rev/21f0a93a65c2 https://hg.mozilla.org/mozilla-central/rev/ad28397dfa43
Assignee | ||
Comment 19•4 years ago
|
||
Assignee | ||
Comment 20•4 years ago
|
||
Depends on D13473
Assignee | ||
Comment 21•4 years ago
|
||
Depends on D13474
Assignee | ||
Comment 22•4 years ago
|
||
Depends on D13475
Assignee | ||
Comment 23•4 years ago
|
||
Depends on D13476
Assignee | ||
Comment 24•4 years ago
|
||
Depends on D13477
Assignee | ||
Updated•4 years ago
|
Keywords: leave-open
Comment 25•4 years ago
|
||
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d8c5a3fc14e Split adb.js in several files;r=daisuke https://hg.mozilla.org/integration/autoland/rev/41384e20308d Migrate adb/commands/track-devices to a Class;r=daisuke https://hg.mozilla.org/integration/autoland/rev/271eb6988c58 Remove unused observables in commands/track-devices;r=daisuke https://hg.mozilla.org/integration/autoland/rev/c804e90f0ce5 Rename adb.js to adb-process.js and switch to class;r=daisuke https://hg.mozilla.org/integration/autoland/rev/738cae90db60 Introduce adb singleton to register adb consumers;r=daisuke https://hg.mozilla.org/integration/autoland/rev/ec57d6145de7 Add mochitest to check that ADB is stopped after closing about:debugging;r=daisuke
Comment 27•4 years ago
|
||
Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2aa7b7e89e14 Fix eslint failure in test_adb.js;r=fix
Comment 28•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9d8c5a3fc14e https://hg.mozilla.org/mozilla-central/rev/41384e20308d https://hg.mozilla.org/mozilla-central/rev/271eb6988c58 https://hg.mozilla.org/mozilla-central/rev/c804e90f0ce5 https://hg.mozilla.org/mozilla-central/rev/738cae90db60 https://hg.mozilla.org/mozilla-central/rev/ec57d6145de7 https://hg.mozilla.org/mozilla-central/rev/2aa7b7e89e14
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in
before you can comment on or make changes to this bug.
Description
•