Closed Bug 581229 Opened 15 years ago Closed 15 years ago

Post install notification is dismissed if the web page redirects after the installation (whether it succeeds or fails)

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla2.0b3
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: tchung, Assigned: mossop)

References

()

Details

(Whiteboard: [4b2])

Attachments

(1 file)

Some extensions are experiencing redirects and cert issues with the new Addons Manager work. As a result, the notifications flicker really quickly due to the site redirect, and never shows the user why the install failed. Examples: personas plus, test pilot. Repro: 1) install Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b2) Gecko/20100720 Firefox/4.0b2 2) Visit http://www.getpersonas.com/en-US/ or http://mozillalabs.com/testpilot/ and download the extension thre 3) Verify the page notification flickers a split second, then tries to redirect to AMO, and then back. Nothing installs, neither does it appear in addons manager 4) open error console, and see warning with the redirect "WARN addons.xpi: Download failed: TypeError: channel.securityInfo is null Expected: - failing to download due to AMO cert should show the notification for a reasonable amount of time Actual: - notification flickers once AMO tries to redirect
Realized this will happen anytime the webpage redirects immediately after the install completes. Currently notifications go away the moment the webpage redirects. We should add a timer so page loads within the first 30 seconds or something does not dismiss the notification.
Assignee: nobody → dtownsend
blocking2.0: --- → betaN+
Summary: No Notifications shown when sites redirect and TypeError: channel.securityInfo is null → Notifications are dismissed if the installing webpage redirects immediately after installation finishes (whether it succeeds or fails)
OS: Mac OS X → All
Hardware: x86 → All
See also bug 578683 for the Personas installation. Isn't it somehow related / the same?
(In reply to comment #2) > See also bug 578683 for the Personas installation. Isn't it somehow related / > the same? Same problem, different notifications
Attached patch patch rev 1Splinter Review
This patch adds the persistence and timeout options to popup notifications. I'm not a big fan of the naming but they are consistent with the notification bars so I stuck with it.
Attachment #460953 - Flags: review?(gavin.sharp)
Status: NEW → ASSIGNED
Comment on attachment 460953 [details] [diff] [review] patch rev 1 >diff --git a/toolkit/content/PopupNotifications.jsm b/toolkit/content/PopupNotifications.jsm >+ * @param options >+ * An options JavaScript object holding additional properties for the >+ * notification. Would be good to at least mention which options are currently supported. Documenting what they do (and how they interact) would be even better! > locationChange: function PopupNotifications_locationChange() { You could use this._currentNotifications.filter() here to simplify things a bit.
Attachment #460953 - Flags: review?(gavin.sharp) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b3
This failure: http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1280453097.1280454913.8883.gz came from a change made in this bug (according to hg blame). There seems to be a syntax error in the test.
(In reply to comment #7) > This failure: > http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1280453097.1280454913.8883.gz > came from a change made in this bug (according to hg blame). > > There seems to be a syntax error in the test. I *think* the error was different than how you expected, as I think the function was just added in the wrong place, it shouldn't be inside |function runNextTest()| but inside |var TESTS| from what I see. IIUC, the added test case for this bug in browser_bug553455.js is not run currently!
Blocks: 581974
(In reply to comment #8) > (In reply to comment #7) > > This failure: > > http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1280453097.1280454913.8883.gz > > came from a change made in this bug (according to hg blame). > > > > There seems to be a syntax error in the test. > > I *think* the error was different than how you expected, as I think the > function was just added in the wrong place, it shouldn't be inside |function > runNextTest()| but inside |var TESTS| from what I see. > > IIUC, the added test case for this bug in browser_bug553455.js is not run > currently! You're right, I think the result of a strange merge or something. I just landed the correction as http://hg.mozilla.org/mozilla-central/rev/6f99979d11bf
Hehe, nice, sometimes it helps when you have someone else port your work to another product. ;-)
Verified fixed by testing the Walnut theme and Mozilla/5.0 (Windows; Windows NT 5.1; rv:2.0b3pre) Gecko/20100802 Minefield/4.0b3pre
Status: RESOLVED → VERIFIED
Summary: Notifications are dismissed if the installing webpage redirects immediately after installation finishes (whether it succeeds or fails) → Post install notification is dismissed if the web page redirects after the installation (whether it succeeds or fails)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: