Closed
Bug 162960
Opened 22 years ago
Closed 22 years ago
chrome registry doesn't enumerate overlays installed in user profile.
Categories
(SeaMonkey :: UI Design, defect, P2)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.4alpha
People
(Reporter: glen, Assigned: peterv)
References
Details
Attachments
(3 files, 1 obsolete file)
2.17 KB,
application/x-xpinstall
|
Details | |
2.13 KB,
patch
|
janv
:
review+
hyatt
:
superreview+
|
Details | Diff | Splinter Review |
2.17 KB,
application/x-xpinstall
|
Details |
This bug involves installing XPIs with overlays into the profile folder.
In contrast to Bug 125610, I find that it *is* possible to install the XPI
into my profile folder and an "overlayinfo" directory is indeed created.
However, when mozilla restarts, the overlay is not loaded...
nsOverlayEnumerator::GetNext() only enumerates overlays from the installed
directory and not the user's profile.
Reporter | ||
Comment 1•22 years ago
|
||
This patch fixes the problem for me... I'm able to install XPIs with
overlays into my user profile and load them when mozilla restarts.
I assumed that installed overlays should be enumerated before the profile
overlays, but if the reverse is true, then mCurrentArcs should probably
be initialized to mProfileArcs instead of mInstallArcs in the constructor.
Reporter | ||
Comment 2•22 years ago
|
||
Hmm... According to Bug 160354, RDF is orphaned.
I'm really not sure where bugs relating to nsChromeRegistry belong.
Skinability? XP Apps? XUL? Help!
Assignee: waterson → sgehani
Component: RDF → XP Apps
OS: Linux → All
QA Contact: tever → paw
Hardware: PC → All
Reporter | ||
Comment 3•22 years ago
|
||
I hope this helps the QA people: The installer should create a new task button
in the task bar (next to the ChatZilla icon in the lower left corner).
Without the patch, the overlay isn't loaded, and the mozilla icon doesn't
appear.
After applying the patch, the mozilla icon appears as expected, and clicking on
it pops up an alert box containing "Test case for Bug 162960".
Reporter | ||
Comment 4•22 years ago
|
||
Forgot to mention that you should restart the browser after installing
the XPI... I'd like to get this into 1.0.1 if possible, so if someone could
verify the bug and the patch, I would very much appreciate it!!!
Comment 5•22 years ago
|
||
Thanks for the patch! I'll play with it.
Assignee: sgehani → dveditz
Blocks: 125610
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → mozilla1.2beta
Comment 6•22 years ago
|
||
Did the patch get applied?
I've tested the example xpi (attachment 97262 [details]) with both 1.3b (2003021008) and
1.0.2 (2002121607). In both cases:
* The xpi creates the overlays correctly in the profile directory.
* On restart, the icon doesn't show in the component bar.
* However, strace shows that Moz did read the overlay.
* The chrome has been registered correctly. (I can go to
chrome://bug162960/content/bugzilla-16.png and see the icon.)
I'd guess from this that the patch didn't make it. What's happening?
Comment 7•22 years ago
|
||
Comment on attachment 95489 [details] [diff] [review]
enumerate overlays from user profile folder
dave, dan, can you guys see if this is any good. If so, it would be great to
get this in early in 1.4 and let the extensions developers get started making
mods and alterations.
Attachment #95489 -
Flags: superreview?(hyatt)
Attachment #95489 -
Flags: review?(dveditz)
Comment 8•22 years ago
|
||
Note that the only way to get hyatt to review is to mail him in person -- he
does not read bugmail and does not look at his review queue...
Assignee | ||
Comment 9•22 years ago
|
||
Attachment #95489 -
Attachment is obsolete: true
Assignee | ||
Comment 10•22 years ago
|
||
Taking bug.
Assignee: dveditz → peterv
Priority: -- → P2
Target Milestone: mozilla1.2beta → mozilla1.4alpha
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•22 years ago
|
Attachment #116228 -
Flags: superreview?(hyatt)
Attachment #116228 -
Flags: review?(varga)
Comment 11•22 years ago
|
||
Comment on attachment 116228 [details] [diff] [review]
First check profile, then install
sr=hyatt
Attachment #116228 -
Flags: superreview?(hyatt) → superreview+
Comment 12•22 years ago
|
||
Comment on attachment 116228 [details] [diff] [review]
First check profile, then install
looks good and works great
r=varga
Attachment #116228 -
Flags: review?(varga) → review+
Comment 13•22 years ago
|
||
Yet more *%$# overlay directories? :-/
Comment 14•22 years ago
|
||
Neil, I think it was already supposed to work in both directories, this is just
a bug not new feature
Assignee | ||
Comment 15•22 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 16•22 years ago
|
||
Comment 17•22 years ago
|
||
It's either have the overlay directories in your profile, or have to re-install
add-ons each time you upgrade Mozilla.
Comment 18•22 years ago
|
||
What happens when someone installed an add-on in his mozilla/chrome directory
and later updates the smae add-on in his profile/chrome?
Comment 19•22 years ago
|
||
extension writers could do with a template install.js to enable this
i.e.
give user option to install locally/globally, also checking that their build is
capable of local installation
Comment 20•22 years ago
|
||
Comment on attachment 95489 [details] [diff] [review]
enumerate overlays from user profile folder
removing obsolete review requests
Attachment #95489 -
Flags: superreview?(hyatt)
Attachment #95489 -
Flags: review?(dveditz)
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•