Closed Bug 900577 Opened 12 years ago Closed 1 year ago

Consider making IDBKeyRange not inherit from nsISupports

Categories

(Core :: Storage: IndexedDB, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: Ms2ger, Assigned: janv)

References

Details

(Keywords: good-first-bug, Whiteboard: [qa-], dom-lws-bugdash-triage)

Attachments

(2 files)

No description provided.
Assignee: Ms2ger → nobody
Whiteboard: [qa-]
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
No assignee, updating the status.
Severity: normal → S3
Type: defect → enhancement
Whiteboard: [qa-] → [qa-], dom-lws-bugdash-triage

NS_DECL_CYCLE_COLLECTING_ISUPPORTS would probably need to be changed to NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING or something like that

Keywords: good-first-bug
Assignee: nobody → jan.varga
Status: NEW → ASSIGNED

This is done based on the note in Web IDL bindings documentation:

If your object can only be reflected into JS by creating it, not by retrieving
it from somewhere, you can skip steps 1 and 2 above and instead add
'wrapperCache': False to your descriptor. You will need to flag the functions
that return your object as [NewObject] in the Web IDL. If your object is not
refcounted then the return value of functions that return it should return a
UniquePtr.

The step 1 is about inheriting from nsWrapperCache and step 2 is about ensuring
GetParentObject for the class.

Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3af2e5e4f512 Make IDBKeyRange not inherit from nsISupports; r=dom-storage-reviewers,peterv,asuth https://hg.mozilla.org/integration/autoland/rev/acfeaa005834 Remove mGlobal and GetParentObject from IDBKeyRange; r=dom-storage-reviewers,asuth
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: