Closed Bug 1366180 Opened 7 years ago Closed 7 years ago

Parent folder link does not work on resource:// urls

Categories

(Core :: Networking, defect)

45 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox-esr52 --- wontfix
firefox53 --- wontfix
firefox54 --- wontfix
firefox55 + fixed

People

(Reporter: tfeserver, Assigned: glandium)

References

Details

(Keywords: regression, Whiteboard: [necko-active])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160606114238

Steps to reproduce:

- Open the Url: resource://app/chrome/
- Click on the 'Up to higher level directory' link


Actual results:

Nothing


Expected results:

- Open resource://app/ url
When working on the bug #1365887, i saw that the parent folder link is not working.
I will try to fix this bug too, but i will maybe need a little help as i am discovering the firefox sources right now.
That was the case in the past, with FF33, it works.
Component: Untriaged → Networking
Product: Firefox → Core
Doesn't work on the nightly build, fetched from the latest source.
Story of the bug:

1) It brokes in FF38:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=e0cb32a0b1aa&tochange=09f4968d5f42
by
Magnus Melin — Bug 1073095 - nsPermissionManager.cpp references a browser path by default in kDefaultsUrlPrefName. Make the permissions.manager.defaultsUrl pref overridable. r=benjamin

Result: typing resource://app/chrome/ in the location enter sends "File not found".

2) Fixed partially in FF45:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=45273bbed8efaface6f5ec56d984cb9faf4fbb6a&tochange=099f695d31326c39595264c34988a0f4b7cbc698
by
Mike Hommey — Bug 1224000 - Install defaults/permissions file under browser/ instead of under browser/chrome/browser. r=mshal,r=MattN

Result: resource://app/chrome/ is displayed but you can't go back in the folder tree with "Up to higher level directory".
Blocks: 1073095, 1224000
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Ever confirmed: true
Keywords: regression
Version: 47 Branch → 45 Branch
Component: Networking → Permission Manager
Sorry guys, i think this bug is out of my possibilities right now :).
Mike, want to take this on? Maybe since you fixed this partially in bug 1224000 you could spot how to fix this too. 

Too late to fix in 53, but if anyone lands a fix for this in 55 please request uplift to 54 if you think it's worth the risk.
This is actually not related to bug 1224000, but more to bug 1224046.

Here the problem is that links to the parent directory have the jar:file: url as href instead of the resource: url. Arguably the page title is also wrong (Index of jar:file:///... instead of Index of resource://...).
Assignee: nobody → mh+mozilla
Flags: needinfo?(mh+mozilla)
Comment on attachment 8870659 [details]
Bug 1366180 - Fix title and parent links in resource:// listings.

https://reviewboard.mozilla.org/r/142132/#review145934

The patch looks good. I would love it if we had a test for this. If that's hard to write, or you don't have time for it right now, please file another bug for it.
Thanks!
Attachment #8870659 - Flags: review?(valentin.gosu) → review+
I'd write a test if I knew what to test (I guess following links in resource:// listings?) and more importantly had any clue how to test this. My best bet is that it would be a mochitest, but that's about it.
(In reply to Mike Hommey [:glandium] from comment #10)
> I'd write a test if I knew what to test (I guess following links in
> resource:// listings?) and more importantly had any clue how to test this.
> My best bet is that it would be a mochitest, but that's about it.

I'm with you on this one. Let's file a follow-up bug, and we'll figure this out later.
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/056af0b6adda
Fix title and parent links in resource:// listings. r=valentin
We're sorry - something has gone wrong while rewriting or rebasing your commits. The commits being pushed no longer match what was requested. Please file a bug.
Component: Permission Manager → Networking
Depends on: 1367583
Whiteboard: [necko-active]
https://hg.mozilla.org/mozilla-central/rev/056af0b6adda
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Please request uplift on this when you get a chance; it looks like it's low risk enough that it'd be worth taking as a small fix.
Flags: needinfo?(mh+mozilla)
Because the STR in comment 0 used resource://app/, which was broken by bug 1073095, the regression windows in comment 4 ended up wrong.

A better STR, not affected by other bugs:
- Open the Url: resource://gre/chrome/
- Click on the 'Up to higher level directory' link

(gre instead of app)

That places the regression windows on https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=91de9c670800&tochange=943b79d9c65f
which pinpoints to bug 1184387, which landed during the 42 cycle, and was uplifted to 41.

Bug 1184387 broke all links in the resource:// pages, and bug 1224046 fixed following children links in 45.

IOW, this has stayed broken and unreported for close to 2 years, I think we can wait a few weeks to have this in a release. resource:// listings are not really a user facing feature anyways (you can only get there manually).
Flags: needinfo?(mh+mozilla)
(In reply to Mike Hommey [:glandium] from comment #16)
> IOW, this has stayed broken and unreported for close to 2 years, I think we
> can wait a few weeks to have this in a release. resource:// listings are not
> really a user facing feature anyways (you can only get there manually).

Agreed.  Thanks for the explanation, wontfixing this for 54.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: