Closed
Bug 1404311
Opened 7 years ago
Closed 7 years ago
PWAs and Custom Tabs can't be debugged through WebIDE
Categories
(DevTools Graveyard :: WebIDE, enhancement, P3)
Tracking
(firefox57 wontfix, firefox58 fixed)
RESOLVED
FIXED
Firefox 58
People
(Reporter: abovens, Assigned: esawin)
References
Details
Attachments
(1 file, 1 obsolete file)
6.76 KB,
patch
|
esawin
:
review+
|
Details | Diff | Splinter Review |
It appears like PWAs (when running in standalone/fullscreen mode) and Custom Tabs don't show up in WebIDE and thus cannot be debugged.
This doesn't present a big problem for Custom Tabs (the page in question can be reloaded in a normal tab and debugged), although it would be nice if it would work of course; however, in the case of PWAs, there might be viewmode-specific layout or behavior, and thus being able to debug an installed PWA would certainly be valuable.
Reporter | ||
Updated•7 years ago
|
Blocks: progressive-apps
Eugen I think maybe we just need to make the devtools look for navigator:geckoview by default?
Flags: needinfo?(esawin)
Comment 2•7 years ago
|
||
See bug 1314811, where WebIDE is being removed, and bug 1212802 where remote debugging of these things will be in about:debugging.
Assignee | ||
Comment 3•7 years ago
|
||
In bug 1401002 we've added USB-debugging support for GeckoView-based apps.
Currently, GeckoViewSettings.USE_REMOTE_DEBUGGER defaults to false for Fennec (custom tabs, PWAs) and is controlled via the intent extra use_remote_debugger for geckoview_example.
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #1)
> Eugen I think maybe we just need to make the devtools look for
> navigator:geckoview by default?
I'm not sure why that would be required.
However, we should probably link Fennec's remote debugging pref to GeckoView's setting to enable debugging for custom tabs and PWAs.
Flags: needinfo?(esawin)
Assignee | ||
Comment 4•7 years ago
|
||
Fennec should control whether its GeckoView-based custom tabs and PWAs should be remote-debuggable.
Note: currently only USB-debugging is supported in GeckoView.
Attachment #8914516 -
Flags: review?(snorp)
Attachment #8914516 -
Flags: review?(snorp) → review+
Comment 5•7 years ago
|
||
Comment on attachment 8914516 [details] [diff] [review]
0001-Bug-1404311-1.0-Enable-remote-USB-debugging-of-custo.patch
Review of attachment 8914516 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
@@ +150,5 @@
> }
>
> + private boolean isRemoteDebuggingEnabled() {
> + return GeckoSharedPrefs.forApp(this).getBoolean(
> + GeckoPreferences.PREFS_DEVTOOLS_REMOTE_USB_ENABLED, false);
Drive-by: Any reason for going through LauncherActivity? I think it'd be easier to just check for this pref inside CustomTabsActivity or WebAppActivity.
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Jim Chen [:jchen] [:darchons] from comment #5)
> Drive-by: Any reason for going through LauncherActivity? I think it'd be
> easier to just check for this pref inside CustomTabsActivity or
> WebAppActivity.
The idea was to provide a uniform intent-based interface for {GeckoView, WebApp, CustomTabs}Activity without introducing strong coupling to Gecko/Fennec (prefs) within the activities.
Do you see a disadvantage with that?
Assignee | ||
Comment 7•7 years ago
|
||
Move pref checking out of LauncherActivity.
Assignee: nobody → esawin
Attachment #8914516 -
Attachment is obsolete: true
Attachment #8916067 -
Flags: review+
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/726d74704ad6
[1.1] Enable remote USB debugging of custom tabs and PWAs through Fennec settings. r=snorp
![]() |
||
Comment 9•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Updated•7 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
•