Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Fix assertions about null owners

RESOLVED FIXED in mozilla15

Status

()

Core
DOM: IndexedDB
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Ben Turner (not reading bugmail, use the needinfo flag!), Assigned: Ben Turner (not reading bugmail, use the needinfo flag!))

Tracking

unspecified
mozilla15
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 616806 [details] [diff] [review]
Patch, v1

Since the behavior of nsDOMEventTargetHelper changed to allow weak owners indexeddb code asserts stuff that it shouldn't.
Attachment #616806 - Flags: review?(khuey)
Assignee: nobody → bent.mozilla
Status: NEW → ASSIGNED
Comment on attachment 616806 [details] [diff] [review]
Patch, v1

Review of attachment 616806 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/indexedDB/IDBDatabase.cpp
@@ +221,5 @@
>  
>    // When the IndexedDatabaseManager needs to invalidate databases, all it has
>    // is an origin, so we call back into the manager to cancel any prompts for
>    // our owner.
> +  nsCOMPtr<nsPIDOMWindow> owner = GetOwner();

This does not need to be a strong pointer.  Please make it weak.
Attachment #616806 - Flags: review?(khuey) → review-
https://hg.mozilla.org/mozilla-central/rev/5e462ce3cb42
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.