Closed
Bug 1130663
Opened 10 years ago
Closed 10 years ago
requestsync-manager API to allow for an immediate sync
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: jrburke, Assigned: baku)
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
14.21 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
Feature request:
While testing, it would be nice if my certified app with requestsync-manager permissions was able to immediately trigger a sync for a given sync task.
Then I could manually test what happens when the email app receives the setMessageHandler('request-sync') for certain testing scenarios, instead of waiting for an interval to pass.
While talking in IRC about it, :asuth also mentioned that this might also be useful for a case where a requestsync-manager app could allow the user to immediately trigger all of the sync tasks before dropping offline for a while.
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 1•10 years ago
|
||
Makes definitely sense. Let me work on it.
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8561507 -
Flags: review?(ehsan)
Assignee | ||
Comment 3•10 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a6bfcbc61e5f
fully green on try.
Assignee | ||
Updated•10 years ago
|
Attachment #8561507 -
Flags: review?(ehsan) → review?(fabrice)
Comment 4•10 years ago
|
||
Comment on attachment 8561507 [details] [diff] [review]
runnow.patch
Review of attachment 8561507 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/requestsync/RequestSyncService.jsm
@@ +551,5 @@
> + managerRunTask: function(aTarget, aData, aPrincipal) {
> + debug("runTask");
> +
> + let task = null;
> + let self = this;
It looks like you don't use |self| at all.
Attachment #8561507 -
Flags: review?(fabrice) → review+
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Comment 7•10 years ago
|
||
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
status-firefox36:
--- → wontfix
status-firefox37:
--- → wontfix
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
•