Closed
Bug 1132752
Opened 9 years ago
Closed 9 years ago
navigator.syncManager.setPolicy generates DataCloneError
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: jrburke, Assigned: baku)
Details
Attachments
(1 file, 1 obsolete file)
9.73 KB,
patch
|
bajaj
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
When using the latest master flashed today on a flame device, which seems to include the fix for bug 1131963 (no more "SetPolicy matches more than 1 task" error), it shows the following error in the logcat when setPolicy is called: W/GeckoConsole( 1571): [JavaScript Error: "DataCloneError: The object could not be cloned." {file: "resource://gre/modules/RequestSyncService.jsm" line: 810}] Test app that can be pushed to device via WebIDE: https://github.com/jrburke/requestsyncmanager Set the minInterval secs to another value, and watch the logcat. Some sync tasks can be generated via this sample app: https://github.com/jrburke/requestsync The error does not seem to be fatal, the sync task change seems to still take effect, at least according to the data in a subsequent syncManager.registrations() call.
Flags: needinfo?(amarchesini)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 1•9 years ago
|
||
So, here the issue is that we store a nsITimer and a list of requestIDs into an object and then we try to save it into IDB. Before setPolicy() that would actually fine because the operation was done when the timer was null. Now this doesn't work anymore. With this patch, timers and pending requests are stored in 2 separate maps.
Attachment #8564044 -
Flags: review?(fabrice)
Comment 2•9 years ago
|
||
Comment on attachment 8564044 [details] [diff] [review] rs.patch Review of attachment 8564044 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/requestsync/RequestSyncService.jsm @@ +925,5 @@ > + if (!(aObj.dbKey in this._pendingRequests)) { > + return []; > + } > + > + var requests = this._pendingRequests[aObj.dbKey]; nit: s/var/let
Attachment #8564044 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 3•9 years ago
|
||
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): 1018320 User impact if declined: RequestSync API will not store tasks correctly into IDB Testing completed: tbpl Risk to taking this patch (and alternatives if risky): none String or UUID changes made by this patch: none
Attachment #8564044 -
Attachment is obsolete: true
Attachment #8564072 -
Flags: approval-mozilla-b2g37?
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2e1f154f0341
Keywords: checkin-needed
Assignee | ||
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8db0046661cb
Keywords: checkin-needed
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8db0046661cb
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•9 years ago
|
Attachment #8564072 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Updated•9 years ago
|
Attachment #8564072 -
Flags: approval-mozilla-b2g37+
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8564072 [details] [diff] [review] rs.patch It was already approved to land on b2g37.
Attachment #8564072 -
Flags: approval-mozilla-b2g37?
Updated•9 years ago
|
Attachment #8564072 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Comment 9•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/9b795d9acc98
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
status-firefox36:
--- → wontfix
status-firefox37:
--- → wontfix
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
•