Closed
Bug 747041
Opened 13 years ago
Closed 13 years ago
resource:///modules/ and resource://gre/modules/ should be clearly-differentiated
Categories
(Firefox Graveyard :: Web Apps, defect)
Firefox Graveyard
Web Apps
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 14
People
(Reporter: t.matsuu, Assigned: t.matsuu)
Details
(Whiteboard: [qa-])
Attachments
(2 files)
1.95 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
1.02 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
The difference of resource:///modules/ and resource://gre/modules/ is exposed by building Firefox on top of xulrunner. So these two resource URLs are clearly-differentiated.
browser/modules/webappsUI.jsm:
WebappsInstaller.jsm is imported from resource://gre/modules/.
However it locates at resource:///modules/.
browser/modules/WebappsInstaller.jsm:
Three files (Services.jsm, FileUtils.jsm, and NetUtil.jsm) are imported from resource:///modules/.
However they exist at resource://gre/modules/.
browser/components/places/content/places.js:
MigrationUtils.jsm is imported from resource://gre/modules/.
However it locates at resource:///modules/.
![]() |
||
Comment 1•13 years ago
|
||
Felipe or Myk - Any ideas?
Comment 2•13 years ago
|
||
If I understand this correctly, Takanori is saying that when you build Firefox on top of XULRunner, with the two inhabiting different directories, then resource:///modules/ and resource://gre/modules/ represent two different locations, and some references to modules in those locations are currently referencing the wrong location.
This hasn't shown up in our test builds and in nightly builds because those put Firefox and the underlying platform (the GRE) into the same directory. So it doesn't affect our ability to ship Firefox with the runtime. But we should still make our code work for Takanori's use case and correct our references to these modules.
Comment 3•13 years ago
|
||
(In reply to Takanori MATSUURA from comment #0)
> browser/components/places/content/places.js:
> MigrationUtils.jsm is imported from resource://gre/modules/.
> However it locates at resource:///modules/.
this is tracked in bug 739968, fwiw, I think we can fix it in hours. Btw, surely the non-difference between the 2 paths in common browser builds is quite error-prone (as you can see we keep using the wrong path).
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Myk Melez [:myk] [@mykmelez] from comment #2)
> If I understand this correctly, Takanori is saying that when you build
> Firefox on top of XULRunner, with the two inhabiting different directories,
> then resource:///modules/ and resource://gre/modules/ represent two
> different locations, and some references to modules in those locations are
> currently referencing the wrong location.
You are right.
At least, Fedora and RHEL build Firefox on top of xulrunner.
In this case,
resource://gre/modules/ represents jar:file:///usr/lib64/xulrunner-14/omni.ja!/modules/ and
resource:///modules/ represents jar:file:///usr/lib64/firefox/omni.ja!/modules/
Comment 5•13 years ago
|
||
If anyone wants to provide a patch to the webapps{ui,installer} I can review it
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #616920 -
Flags: review?(felipc)
Assignee | ||
Comment 7•13 years ago
|
||
Another wrong path found in browser/base/content/browser.js.
Attachment #616923 -
Flags: review?(felipc)
Updated•13 years ago
|
Attachment #616920 -
Flags: review?(felipc) → review+
Updated•13 years ago
|
Attachment #616923 -
Flags: review?(felipc) → review+
Comment 8•13 years ago
|
||
Thanks Takanori!
https://hg.mozilla.org/integration/mozilla-inbound/rev/c823e4f03017
![]() |
||
Comment 9•13 years ago
|
||
Assignee: nobody → t.matsuu
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
![]() |
||
Comment 10•13 years ago
|
||
Felipe - Is there anything needed to be verified from an end-user perspective? Doesn't look like it, but I'd like to confirm.
Whiteboard: [qa-]
Comment 11•13 years ago
|
||
Jason: no, nothing necessary
![]() |
||
Updated•13 years ago
|
Flags: in-moztrap-
![]() |
||
Updated•13 years ago
|
QA Contact: jsmith
Updated•10 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•