Closed
Bug 916445
Opened 12 years ago
Closed 12 years ago
DataStore.sync method
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(1 file, 3 obsolete files)
|
35.16 KB,
patch
|
Details | Diff | Splinter Review |
Documentation about this method can be found here: https://wiki.mozilla.org/WebAPI/DataStore
| Assignee | ||
Comment 1•12 years ago
|
||
The DataStoreCursor implements a basic state machine. Documentation of the workflow is at the top of the source code.
The mochitest recreates all the scenarios I was able to imagine.
Attachment #804881 -
Flags: review?(ehsan)
Comment 2•12 years ago
|
||
Comment on attachment 804881 [details] [diff] [review]
patch
Review of attachment 804881 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/datastore/DataStoreCursor.jsm
@@ +8,5 @@
> +
> +this.EXPORTED_SYMBOLS = ['DataStoreCursor'];
> +
> +function debug(s) {
> + dump('DEBUG DataStoreCursor: ' + s + '\n');
Please make this conditional on a variable.
@@ +76,5 @@
> + return new aWindow.DOMError(aEvent.target.error.name);
> +}
> +
> +/* DataStoreCursor object */
> +function DataStoreCursor(aWindow, aDataStore, aRevisionId) {
this.DataStoreCursor here and below.
@@ +280,5 @@
> + self.stateMachine(aStore, aRevisionStore, aResolve, aReject);
> + return;
> + }
> +
> + // Some revision has to be send.
Nit: sent.
::: dom/datastore/tests/test_sync.html
@@ +116,5 @@
> + function finish() {
> + SimpleTest.finish();
> + }
> +
> + SpecialPowers.Cu.import("resource://gre/modules/DataStoreChangeNotifier.jsm");
This doesn't seem to be needed AFAICT.
::: dom/webidl/DataStore.webidl
@@ +78,5 @@
> +
> +dictionary DataStoreTask {
> + DOMString revisionId;
> +
> + IDBCursorDirection operation;
I think you meant DataStoreOperation here, right? (Please also fix the wiki page)
Attachment #804881 -
Flags: review?(ehsan) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
testing it on try.
Attachment #804881 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #805575 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•12 years ago
|
||
| Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•