Closed Bug 348576 Opened 19 years ago Closed 19 years ago

addonsMsg should use standard Notification styles

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8.1

People

(Reporter: jgoldman, Assigned: mwu)

References

Details

(Keywords: fixed1.8.1)

Attachments

(3 files, 4 obsolete files)

Messages displayed at the top of the Add-Ons Manager should use the standard notification styling defined in toolkit/themes/pinstripe/global/notification.css. Suggest the "info" type for messages like "No updates found".
Does winstripe have new notification styles, too?
Flags: blocking-firefox2?
The notification widget was added around the same time as the new EM ui. I planned on seeing what it will take to switch to use the notification widget for Firefox 3.0 and doubt I will have time to do so for Firefox 2.0
Assignee: robert.bugzilla → nobody
Basically, we need to stick a <notificationbox> around the content area, and call the right methods. Not hard at all. --> mwu
Assignee: nobody → michael.wu
Flags: blocking-firefox2? → blocking-firefox2+
note: the addonsmsg diverged significantly from browsermessage and there are a couple of methods not implemented by notification it requires.
This is not trivial. I've put in a compatibility shim to ease the code into using the new notification box, so hopefully most problems are concentrated in a single place.
Attachment #233656 - Flags: review?(robert.bugzilla)
Comment on attachment 233656 [details] [diff] [review] Switch to notificationbox in addons manager per face to face discussion with mwu this patch as it stands causes several regressions so -'ing.
Attachment #233656 - Flags: review?(robert.bugzilla) → review-
Attachment #233656 - Attachment is obsolete: true
Attached image notificationbox is racy
This can happen when opening two notifications before the window is visible.
bumping to discuss in next triage. Basically, this is a nice-to-have, and the obvious solution is to a) fix notificationbox to not race and b) make this Just Work in EM (we should have a consistent interaction model for this type of dialog replacement). There's bigger things in the list that need focus that we can't ship without.
Flags: blocking-firefox2+ → blocking-firefox2?
Depends on: 350353
per beltnzer/schrep weekend triage we'd take a patch but this is not a blocker.
Flags: blocking-firefox2?
This patch depends on the raciness in notification box being fixed. This patch seems to work perfectly with that fixed.
Attachment #233892 - Attachment is obsolete: true
Comment on attachment 235964 [details] [diff] [review] Switch to notificationbox in addons manager, v3 I hope this isn't bitrotted.. should work fine if it isn't, now that the races in notification box widget are fixed.
Attachment #235964 - Flags: review?(robert.bugzilla)
Comment on attachment 235964 [details] [diff] [review] Switch to notificationbox in addons manager, v3 Could you first verify that the patch isn't bit-rotted before requesting review so reviewers don't have to review more than one time? Thanks
Might as well put up a new patch since the old one was for branch, and I don't expect this to hit branch at this point.
Attachment #235964 - Attachment is obsolete: true
Attachment #237436 - Flags: review?(robert.bugzilla)
Attachment #235964 - Flags: review?(robert.bugzilla)
Why does the 'branch' patch modify extensions.xul differently than the trunk patch? Is it that the changes to extensions.xul in the trunk patch actually what you wanted for extensions.xul?
With the latest patch here and the patch from bug 350353 applied if you have two notifications (e.g. safe mode and compatibility checking off) when opening the EM ui this bails during startup. I'm re-building my debug build so I can't provide any more detail than that atm. It appears to work fine with a single notification though it was with minimal testing.
btw: this was with branch
(In reply to comment #15) > Why does the 'branch' patch modify extensions.xul differently than the trunk > patch? Is it that the changes to extensions.xul in the trunk patch actually > what you wanted for extensions.xul? > The branch patch wraps the extensionsBox and commandBarBottom, whereas the trunk patch just wraps the extensionsBox. When redoing this patch for trunk, I felt that wrapping just extensionsBox would make more sense since we never want to affect the height of commandBarBottom.. not that it makes much of a difference in practice, I think.
(In reply to comment #17) > btw: this was with branch > Er, the v4 patch from bug 350353 does not apply cleanly to branch, and v3 is buggy despite applying to branch. The blocking state stuff will have to be removed from the v4 patch to work on branch. Oh, and that reminds me - what elements we wrap is important if we ever want to use the blocking state.. but we also have other, more severe problems if we want to use it.
I tried v4 with the branch and hand merged the patch in bug 350353. I'd like to get this on the branch but bug 350353 needs to also be on the branch. I just tried this on a trunk build and the accesskey for the notification is always U. :/
Hm, need to check if the behavior of noUpdatesDismiss is correct.. This fixes the accesskey issue and makes sure the no updates notification gets a proper closing animation.
Attachment #237436 - Attachment is obsolete: true
Attachment #237436 - Flags: review?(robert.bugzilla)
Comment on attachment 237591 [details] [diff] [review] Switch to notificationbox in addons manager, v5 Just a couple of nits. >Index: toolkit/mozapps/extensions/content/extensions.js ... >@@ -543,44 +581,41 @@ function Startup() ... > if (gInSafeMode) { >- var addonsMsg = document.getElementById("addonsMsg"); >- addonsMsg.showMessage("chrome://mozapps/skin/extensions/question.png", >- getExtensionString("safeModeMsg"), >- null, null, true, null); >+ showMessage("chrome://mozapps/skin/extensions/question.png", >+ getExtensionString("safeModeMsg"), >+ null, null, true, null); > } nit: remove brackets >@@ -1240,33 +1275,31 @@ function isXPInstallEnabled() { ... > if (ioService.offline) { >- var addonsMsg = document.getElementById("addonsMsg"); >- addonsMsg.showMessage("chrome://mozapps/skin/extensions/question.png", >- getExtensionString(messageKey, [getBrandShortName()]), >- getExtensionString("goOnlineButtonLabel"), >- getExtensionString("goOnlineButtonAccesskey"), >- true, "addons-go-online"); >+ showMessage("chrome://mozapps/skin/extensions/question.png", >+ getExtensionString(messageKey, [getBrandShortName()]), >+ getExtensionString("goOnlineButtonLabel"), >+ getExtensionString("goOnlineButtonAccesskey"), >+ true, "addons-go-online"); > } nit: remove brackets Are there other issues that still need to be addressed? The only things I see that are a bit off are the image being up against the left border and the way the notificationbox briefly displays at its full height and then slides out... it seems to do this in the content window as well.
(In reply to comment #22) > Are there other issues that still need to be addressed? The only things I see > that are a bit off are the image being up against the left border and the way > the notificationbox briefly displays at its full height and then slides out... > it seems to do this in the content window as well. > The image not having enough padding bothers me too, but I guess if the content window can tolerate it.. The one that that needs to be checked is if noUpdatesDismiss is being called at all the right times. Also, before, closing the notification would always send off some sort of notification.. I don't know if we still do that, or how important it is. If you can verify the notifications and callbacks still act the same/correctly, then the only problem remaining is the very interesting counter we use to enforce correct ordering of notifications, which can't be helped for now. :) Still want this for 1.8.1? We should nominate the patch in bug 350353 real soon if this is gonna make it.
Either way, if the patch in bug 350353 is safe we should get it in there so the door is open to take this. I'll tale a look at noUpdatesDismiss tomorrow but at a glance it looks fine. The image in the notificationbox when in the content window isn't up against the left border but it is in the EM ui... I suspect it can be easily fixed via extensions.css
Comment on attachment 237591 [details] [diff] [review] Switch to notificationbox in addons manager, v5 With a fix for bug 352456 this patch is an improvement ui wise over the existing functionality. We can address the use of priority if needed later. Since the flashing in bug 352456 is more pronounced in the add-ons mgr. I'd like to get that fixed for 1.8.1 before this lands on branch but I'll think on that more tomorrow morning.
Attachment #237591 - Flags: review+
I've done several tests on both trunk and branch of this patch along with the patch in bug 352456 and it is a significant improvement.
Checking in toolkit/mozapps/extensions/content/extensions.css; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.css,v <-- extensions.css new revision: 1.13; previous revision: 1.12 done Checking in toolkit/mozapps/extensions/content/extensions.js; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.js,v <-- extensions.js new revision: 1.115; previous revision: 1.114 done Checking in toolkit/mozapps/extensions/content/extensions.xml; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.xml,v <-- extensions.xml new revision: 1.42; previous revision: 1.41 done Checking in toolkit/mozapps/extensions/content/extensions.xul; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.xul,v <-- extensions.xul new revision: 1.52; previous revision: 1.51 done Checking in toolkit/themes/pinstripe/mozapps/extensions/extensions.css; /cvsroot/mozilla/toolkit/themes/pinstripe/mozapps/extensions/extensions.css,v <-- extensions.css new revision: 1.23; previous revision: 1.22 done Checking in toolkit/themes/winstripe/mozapps/extensions/extensions.css; /cvsroot/mozilla/toolkit/themes/winstripe/mozapps/extensions/extensions.css,v <-- extensions.css new revision: 1.27; previous revision: 1.26 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Er, I forgot to eliminate the extra braces in the checkin.
Those were just nits so don't worry about them... I'll fix them sometime in the 3.0 cycle
Comment on attachment 237591 [details] [diff] [review] Switch to notificationbox in addons manager, v5 If Bug 352456 gets approved for the branch I'd like to get this on the branch
Attachment #237591 - Flags: approval1.8.1?
Comment on attachment 237591 [details] [diff] [review] Switch to notificationbox in addons manager, v5 a=mconnor on behalf of drivers for 1.8 branch checkin
Attachment #237591 - Flags: approval1.8.1? → approval1.8.1+
Checking in toolkit/mozapps/extensions/content/extensions.css; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.css,v <-- extensions.css new revision: 1.9.2.4; previous revision: 1.9.2.3 done Checking in toolkit/mozapps/extensions/content/extensions.js; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.js,v <-- extensions.js new revision: 1.72.2.40; previous revision: 1.72.2.39 done Checking in toolkit/mozapps/extensions/content/extensions.xml; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.xml,v <-- extensions.xml new revision: 1.17.2.21; previous revision: 1.17.2.20 done Checking in toolkit/mozapps/extensions/content/extensions.xul; /cvsroot/mozilla/toolkit/mozapps/extensions/content/extensions.xul,v <-- extensions.xul new revision: 1.37.2.15; previous revision: 1.37.2.14 done Checking in toolkit/themes/pinstripe/mozapps/extensions/extensions.css; /cvsroot/mozilla/toolkit/themes/pinstripe/mozapps/extensions/extensions.css,v <-- extensions.css new revision: 1.14.2.10; previous revision: 1.14.2.9 done Checking in toolkit/themes/winstripe/mozapps/extensions/extensions.css; /cvsroot/mozilla/toolkit/themes/winstripe/mozapps/extensions/extensions.css,v <-- extensions.css new revision: 1.16.2.11; previous revision: 1.16.2.10 done
Keywords: fixed1.8.1
OS: Mac OS X 10.3 → All
Hardware: Macintosh → All
Version: 2.0 Branch → unspecified
Blocks: 353157
Blocks: 353918
No longer blocks: 353540
Depends on: 425116
No longer depends on: 425116
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: