Closed
Bug 850421
Opened 8 years ago
Closed 8 years ago
app:// urls aren't shortened when displayed in the debugger side menu
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 22
People
(Reporter: vporof, Assigned: past)
Details
(Whiteboard: [b2g])
Attachments
(2 files)
393.88 KB,
image/png
|
Details | |
1.16 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
This is because app:// urls can't be turned into a Ci.nsIURL for some reason. Because we rely on this service for trimming, they show up like in the attached screenshot, which is less than optimal. We can (and should IMHO) hack our way out of this for now.
Reporter | ||
Comment 1•8 years ago
|
||
Huh, this seems fixed in the latest fx-team.
Reporter | ||
Comment 2•8 years ago
|
||
Test it in a scratchpad like this: let url = "app://system.gaiamobile.org/js/test.js"; let uri = Services.io.newURI(url, null, null).QueryInterface(Ci.nsIURL); This throws in Nightly but works in fx-team, so I guess It's going to go away in a few days time. However, it'd be nice if we had some tests written for this.
Reporter | ||
Comment 3•8 years ago
|
||
Huh... this *still* happens in Nightly.
Reporter | ||
Comment 4•8 years ago
|
||
I don't understand why creating a newURI with "app://foo.js" works in fx-team tip, but throws a "Exception: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" in Nightly… Those repos should've been in sync by now. Clean profiles in both builds didn't change anything. Am I doing something incredibly dumb or can anyone else reproduce this behavior? Fwiw, this happens in Aurora too..
Assignee | ||
Comment 5•8 years ago
|
||
I can reproduce this and it is working in both debug and optimized builds in fx-team tip, while failing in Nightly. I wonder what else is different there.
Assignee | ||
Comment 6•8 years ago
|
||
fabrice/bsmedberg, do you have any idea why this is happening? I don't see the AppProtocolHandler being packaged in browser/installer/package-manifest.in, whereas it is included in b2g/installer/package-manifest.in. Could that explain why the protocol handler is present when run from a symlinked build and not from a Nightly? If the plan is to not include the AppProtocolHandler in desktop Firefox, how should the debugger treat such URLs?
Comment 7•8 years ago
|
||
Panos, indeed AppProtocolHandler is not packaged with firefox desktop since we have no support for packaged apps there, so indeed you are probably just "lucky" with the symlink. This protocol handler is only available on b2g and android so far, but that should be harmless to package it in fx also if you need it.
Assignee | ||
Comment 8•8 years ago
|
||
Thanks Fabrice. I had to fix bug 855223 and bug 855227 first, in order to be able to test the fix, but it does indeed fix the problem when debugging Firefox OS.
Assignee | ||
Updated•8 years ago
|
Priority: -- → P2
Whiteboard: [b2g]
Reporter | ||
Comment 9•8 years ago
|
||
\o/
Updated•8 years ago
|
Attachment #730075 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 10•8 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/cb8cbb65a353
Whiteboard: [b2g] → [b2g][fixed-in-fx-team]
Comment 11•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/cb8cbb65a353
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: [b2g][fixed-in-fx-team] → [b2g]
Target Milestone: --- → Firefox 22
Updated•3 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•