Closed
Bug 916445
Opened 11 years ago
Closed 11 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•11 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•11 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•11 years ago
|
||
testing it on try.
Attachment #804881 -
Attachment is obsolete: true
Assignee | ||
Comment 4•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=9f62fcf905b3
Attachment #805575 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b694df7e2faa
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/213bf2a49fd9
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/213bf2a49fd9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•