Closed
Bug 1497448
Opened 6 years ago
Closed 6 years ago
[remote-dbg-next] Show proper content after disabling "Remote debugging via USB" on Firefox in Android
Categories
(DevTools :: about:debugging, enhancement, P1)
DevTools
about:debugging
Tracking
(firefox65 fixed)
RESOLVED
FIXED
Firefox 65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: daisuke, Assigned: daisuke)
References
Details
Attachments
(6 files, 1 obsolete file)
46 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 |
STRs:
1. Connect and select a USB device in sidebar
2. Disable "Remote debugging via USB" switch on Firefox in Android
3. Add a tab on Firefox in Android
ER:
When disable the remote debugging, should show another content in main page, and hide the device item from sidebar.
AR:
We could see the added tab in the runtime page.
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → dakatsuka
Status: NEW → ASSIGNED
Priority: P2 → P1
Assignee | ||
Comment 1•6 years ago
|
||
If "devtools.remote.usb.enabled" will be disabled on Android, denies from new
connection, but retains connections that were already connected. So, when
browsing runtime page of USB, even if disables the preference, the changing of
that tabs added/removed reflects to the page. To avoid this, closes connections
that were connected to USB when the preference will be disabled.
Assignee | ||
Comment 2•6 years ago
|
||
Depends on D9889
Assignee | ||
Comment 3•6 years ago
|
||
Yet another approach. In the previous D9889 approach, both DebuggerSerever and
SocketServerListener retain the connections duplicately, it will be possible to
be difficult for the management. In this approach, only DebuggerSerever retains
the connections, then when ServerSocketListener was removed, removes the
connections as well that were linked the ServerSocketListener.
Assignee | ||
Comment 4•6 years ago
|
||
At first, I wanted it is better to call DebuggerServer.destroy() when
`devtools.debugger.remote-enabled` will set to false. Likewise, call
DebuggerServer.init() in case of true. But, because DebuggerServer.init() is
called by various context such as RemoteDebugger, restoring is difficult after
destroying. In this patch, simply, we make avoiding to call
DebuggerServer.closeAllListener() from inside of ServerSocketConnection.
Depends on D10864
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D10865
Assignee | ||
Comment 6•6 years ago
|
||
Depends on D10867
Updated•6 years ago
|
Attachment #9020265 -
Attachment is obsolete: true
Updated•6 years ago
|
Attachment #9022513 -
Attachment description: Bug 1497448: Move place where calls closeAllListeners() to SocketListener from ServerSocketConnection. r=ochameau!,jdescottes! → Bug 1497448: Use try/catch for _handle function in ServerSocketConnection. r=ochameau!,jdescottes!
Assignee | ||
Updated•6 years ago
|
Keywords: leave-open
Updated•6 years ago
|
Attachment #9022516 -
Attachment description: Bug 1497448: Remove '_' from exposed functions of DebuggerServer. r=ochameau! → Bug 1497448: Rename _addListener/_removeListener of DebuggerServer to addSocketListener/removeSocketListener. r=ochameau!,r=jdescottes!
Pushed by dakatsuka@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/908dc14f2736
Close connections that were accepted in ServerSocketListener. r=ochameau,jdescottes
https://hg.mozilla.org/integration/autoland/rev/2f968d0631f5
Use try/catch for _handle function in ServerSocketConnection. r=ochameau,jdescottes
Assignee | ||
Comment 8•6 years ago
|
||
Depends on D10868
Comment 9•6 years ago
|
||
bugherder |
Comment 10•6 years ago
|
||
Pushed by dakatsuka@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2e8ae528176e
Use SocketListener directly. r=ochameau,jdescottes
https://hg.mozilla.org/integration/autoland/rev/f1277f997312
Rename _addListener/_removeListener of DebuggerServer to addSocketListener/removeSocketListener. r=ochameau,jdescottes
https://hg.mozilla.org/integration/autoland/rev/f81b0f27c995
Rename closeAllListener to closeAllSocketListeners. r=ochameau,jdescottes
Comment 11•6 years ago
|
||
bugherder |
Assignee | ||
Updated•6 years ago
|
Keywords: leave-open
Comment 12•6 years ago
|
||
Pushed by dakatsuka@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/63eb34f9b171
Update usb devices when the debugger client of usb was closed. r=jdescottes
Comment 13•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 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
•