Closed
Bug 1026945
Opened 10 years ago
Closed 9 years ago
ADB addon helper should start scanning for devices only when WebIDE starts
Categories
(DevTools Graveyard :: WebIDE, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: paul, Assigned: jryans)
References
Details
Attachments
(2 files)
There is no need to do that when Firefox starts.
Assignee | ||
Comment 1•10 years ago
|
||
Where's a good place to hook this in? I need something similar for WiFi, but I think for that case I may only want to scan when the runtime popup is opened...? Perhaps ADB vs. WiFi will take different approaches, just something to think about.
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] from comment #1)
> Where's a good place to hook this in?
When we start the App Manager?
Reporter | ||
Comment 3•10 years ago
|
||
Or even only when the panel shows up.
We should start ADB when we open the panel, and stop it when closed. I believe it would solve bug 1031229.
Comment 4•10 years ago
|
||
This is quite annoying, because I always have to mentally filter out the ADB stuff from the terminal logs when debugging. Whoever fixes this gets a free beverage of their choosing from me in the next work week!
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Panos Astithas [:past] from comment #4)
> This is quite annoying, because I always have to mentally filter out the ADB
> stuff from the terminal logs when debugging. Whoever fixes this gets a free
> beverage of their choosing from me in the next work week!
Paul silenced some of the logs recently... but it seems some are still around. Filed bug 1060148 to clean those up.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Assignee | ||
Updated•10 years ago
|
Summary: ADB addon helper should start scanning for devices only when the appmanager starts → ADB addon helper should start scanning for devices only when WebIDE starts
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8612498 -
Flags: review?(poirot.alex)
Comment 8•10 years ago
|
||
Comment on attachment 8612498 [details]
GitHub PR
Miss a file, but that looks good.
Attachment #8612498 -
Flags: review?(poirot.alex)
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8612498 [details]
GitHub PR
Issues from PR addressed.
Attachment #8612498 -
Flags: review?(poirot.alex)
Comment 10•10 years ago
|
||
Comment on attachment 8612498 [details]
GitHub PR
Looks good, just see my comment about fastboot.
Attachment #8612498 -
Flags: review?(poirot.alex) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Hmm, but I bet the fastboot add-on also wants ADB devices too, to detect your device and reboot it into fastboot mode if needed.
:gerard-majax, any thoughts here? We'd like to avoid starting the ADB server, etc. until we know it's needed. For WebIDE, we have a flag we can check to see if WebIDE has been used. But, that makes things harder for your own installer add-on. Any ideas on a good way to delay starting ADB / fastboot that also works for your use case?
Flags: needinfo?(lissyx+mozillians)
Comment 12•10 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #11)
> Hmm, but I bet the fastboot add-on also wants ADB devices too, to detect
> your device and reboot it into fastboot mode if needed.
>
> :gerard-majax, any thoughts here? We'd like to avoid starting the ADB
> server, etc. until we know it's needed. For WebIDE, we have a flag we can
> check to see if WebIDE has been used. But, that makes things harder for
> your own installer add-on. Any ideas on a good way to delay starting ADB /
> fastboot that also works for your use case?
I don't understand anything: how WebIDE will detect ADB devices in this case?
I'm relying on Devices to play with ADB and Fastboot. For fastboot we do polling and the addon initiates it.
Flags: needinfo?(lissyx+mozillians)
Assignee | ||
Comment 13•10 years ago
|
||
Okay, I think I will rework this as :gerard-majax suggested, so that WebIDE signals to the add-on that's it's time to start, instead of the add-on depending on WebIDE.
This way, it's more flexible for other consumers to start / stop for ADB / fastboot.
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8612498 [details]
GitHub PR
Okay, I am now waiting for events like the fastboot case.
This means we'll have to require Firefox 41+ for the new add-on version, since only those Firefoxes have WebIDE which knows the add-on is lazy.
Attachment #8612498 -
Flags: review+ → review?(poirot.alex)
Assignee | ||
Comment 15•9 years ago
|
||
For Firefox change:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4828521012a5
Assignee | ||
Comment 16•9 years ago
|
||
Attachment #8623326 -
Flags: review?(poirot.alex)
Updated•9 years ago
|
Attachment #8623326 -
Flags: review?(poirot.alex) → review+
Comment 17•9 years ago
|
||
Comment on attachment 8612498 [details]
GitHub PR
See my comment about keeping FF41- compatibility.
I hope that makes sense and we can prevent breaking it.
Attachment #8612498 -
Flags: review?(poirot.alex) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Assignee | ||
Comment 19•9 years ago
|
||
Comment on attachment 8612498 [details]
GitHub PR
Alex, could you sanity check my changes for 41 and earlier? (The lazy loading support landed as part of Firefox 42.)
Attachment #8612498 -
Flags: review+ → review?(poirot.alex)
Assignee | ||
Comment 20•9 years ago
|
||
Here's the interesting block:
https://github.com/mozilla/adbhelper/pull/16/files#diff-7a9076d6d94e62c13d641aa71f19ae8eR49
Comment 22•9 years ago
|
||
Comment on attachment 8612498 [details]
GitHub PR
We should still support FF38. I think that's fine to keep running adb there, instead of breaking support on the current release.
Attachment #8612498 -
Flags: review?(poirot.alex) → review+
Assignee | ||
Comment 23•9 years ago
|
||
Updated per comments in PR. I have tested that ADB works on: 38, 40, and 42, which covers all ways of starting ADB.
Assignee | ||
Comment 24•9 years ago
|
||
Add-on changes merged:
https://github.com/mozilla/adbhelper/commit/87786f6076c459602608f2c12a7e1be26f38d9d9
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•