Closed Bug 887909 Opened 11 years ago Closed 11 years ago

Convert nsIIDBFileHandle.idl to IDBFileHandle.webidl

Categories

(Core :: Storage: IndexedDB, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: janv, Assigned: Ms2ger)

References

Details

Attachments

(1 file)

It seems that FileHandle objects returned by IDB lost the .database attribute after conversion to new DOM bindings.
Attached patch Patch v1Splinter Review
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Attachment #768835 - Flags: review?(Jan.Varga)
Comment on attachment 768835 [details] [diff] [review]
Patch v1

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

looks good, r=me (consider fixing the nits)

::: dom/indexedDB/IDBFileHandle.cpp
@@ +34,5 @@
>  }
>  
>  } // anonymous namespace
>  
> +/* virtual */ JSObject*

Nit: "// virtual" and JSObject* on a new line

@@ +110,5 @@
>  {
>    NS_ASSERTION(NS_IsMainThread(), "Wrong thread!");
>  
> +  IDBDatabase* database = static_cast<IDBDatabase*>(mFileStorage);
> +  MOZ_ASSERT(database);

Nit: I would keep the empty line here

::: dom/indexedDB/IDBFileHandle.h
@@ +22,1 @@
>  

Nit: WrapObject() on a new line, like all the other methods
Attachment #768835 - Flags: review?(Jan.Varga) → review+
Blocks: 888591
https://hg.mozilla.org/mozilla-central/rev/a789c48ae599
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: