Closed Bug 1199901 Opened 9 years ago Closed 9 years ago

shutdown crash in nsIPrincipal::GetAppStatus()

Categories

(Core :: DOM: Workers, defect)

x86
Windows 10
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla43
Tracking Status
firefox41 --- unaffected
firefox42 + verified
firefox43 + verified

People

(Reporter: ananuti, Assigned: nsm)

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

This bug was filed from the Socorro interface and is 
report bp-df7870a8-9fc8-4a39-9aea-fd2e02150829.
=============================================================

STR
1. Open Gmail & enable desktop notifications.
2. Close firefox when new mail notification show on the bottom right.


[Tracking Requested - why for this release]: crash, this will get annoying for users if close firefox on notification.
Flags: needinfo?(nsm.nikhil)
Assignee: nobody → nsm.nikhil
Status: NEW → ASSIGNED
Flags: needinfo?(nsm.nikhil)
The patch doesn't look related to the crash. Is this the right patch or can you explain why this solves the problem?
Flags: needinfo?(nsm.nikhil)
(In reply to William Chen [:wchen] from comment #2)
> The patch doesn't look related to the crash. Is this the right patch or can
> you explain why this solves the problem?

Sorry, I completely forgot about patch 2. I'll have that up in some time. This patch is for another bug I noticed on Linux that is triggered by the same STR, so please review this too. This one is caused because we fail to clear the mObserver when the observer goes away.
Flags: needinfo?(nsm.nikhil)
Comment on attachment 8655037 [details]
MozReview Request: Bug 1199901 - Clear mObserver when WorkerNotificationObserver is destroyed. r?wchen

Bug 1199901 - Clear mObserver when WorkerNotificationObserver is destroyed. r?wchen
Bug 1199901 - GetOrigin() fails cleanly instead of asserting principal. r?wchen

When we use the XUL based alerts and the main firefox window is closed, the XUL
window still keeps the process running, but as the window closes it calls
DisconnectFromOwner() on the Notification. Later, when the XUL alert closes
(either due to timeout or due to script) attempts to get the principal can
fail. This patch allows that to happen and will just skip deleting the
Notification from persistent storage.
Attachment #8655625 - Flags: review?(wchen)
Comment on attachment 8655037 [details]
MozReview Request: Bug 1199901 - Clear mObserver when WorkerNotificationObserver is destroyed. r?wchen

https://reviewboard.mozilla.org/r/17787/#review16079

Trailing whitespace
Attachment #8655037 - Flags: review?(wchen) → review+
Comment on attachment 8655625 [details]
MozReview Request: Bug 1199901 - GetOrigin() fails cleanly instead of asserting principal. r?wchen

https://reviewboard.mozilla.org/r/17951/#review16085
Attachment #8655625 - Flags: review?(wchen) → review+
Do you want to request uplift to aurora for these patches? Are older version (41 for example) significantly affected? Thanks!
Forgot to needinfo you. Nikhil what do you think?
Flags: needinfo?(nsm.nikhil)
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #11)
> Do you want to request uplift to aurora for these patches? Are older version
> (41 for example) significantly affected? Thanks!

So the GetOrigin() failure was a main thread issue which means we may have already been shipping it for several releases (IIRC we have had notifications enabled for more than a year). Unless it is showing up in crash stats for older releases, I don't think it is worth uplifting.
Flags: needinfo?(nsm.nikhil)
I can't reproduce in 41 and I don't see that 41 is affected from crash-stats.
I guess it's regressed by bug 1114554 so this should be uplift to aurora, yes?
Flags: needinfo?(nsm.nikhil)
Verified fixed in Nightly 9/4/2015.
Status: RESOLVED → VERIFIED
Comment on attachment 8655625 [details]
MozReview Request: Bug 1199901 - GetOrigin() fails cleanly instead of asserting principal. r?wchen

Ekanan, you are right, Bug 1114554 caused this.

Approval Request Comment
[Feature/regressing bug #]: Bug 1114554
[User impact if declined]: Crash when closing the browser while a Notification is open.
[Describe test coverage new/current, TreeHerder]:
[Risks and why]: No risk.
[String/UUID change made/needed]: None.
Flags: needinfo?(nsm.nikhil)
Attachment #8655625 - Flags: approval-mozilla-aurora?
Comment on attachment 8655625 [details]
MozReview Request: Bug 1199901 - GetOrigin() fails cleanly instead of asserting principal. r?wchen

Fix a crash, taking it.
Attachment #8655625 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8655037 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified fixed in aurora 20150911004112.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: