Closed
Bug 827499
Opened 13 years ago
Closed 13 years ago
SettingsService: Fix locking problem
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: gwagner, Assigned: gwagner)
Details
Attachments
(1 file)
|
8.24 KB,
patch
|
bent.mozilla
:
review+
jst
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → anygregor
Attachment #698840 -
Flags: review?(bent.mozilla)
| Assignee | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
Comment 2•13 years ago
|
||
Not blocking, but please request approval for this and we'll approve the patch.
blocking-basecamp: ? → -
| Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 698840 [details] [diff] [review]
patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 821814
User impact if declined: random functionality breaks
Testing completed: yes
Risk to taking this patch (and alternatives if risky): minor
String or UUID changes made by this patch: none
Attachment #698840 -
Flags: approval-mozilla-b2g18?
Comment on attachment 698840 [details] [diff] [review]
patch
Review of attachment 698840 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/settings/SettingsService.js
@@ +56,5 @@
> case "set":
> let value = info.value;
> let message = info.message;
> + if(typeof(value) == 'object') {
> + if (DEBUG) debug("object name:" + name + ", val: " + JSON.stringify(value));
Nit: Let's combine those ifs
@@ +72,3 @@
> }
> + let obj = { settingName: name, defaultValue: defaultValue, userValue: value };
> + let setReq = store.put({ settingName: name, defaultValue: defaultValue, userValue: value });
Nit: no need for 'obj'
@@ +83,5 @@
> value: value,
> message: message
> }));
> lock._open = false;
> + if (!lock._requests.isEmpty()) {
Nit: no need to check empty
@@ +105,5 @@
> case "get":
> + let getReq = store.mozGetAll(name);
> + getReq.onsuccess = function(event) {
> + if (DEBUG) debug("Request successful. Record count:" + event.target.result.length);
> + if (DEBUG) debug("result: " + JSON.stringify(event.target.result));
Nit: combine into one if check
@@ +130,5 @@
> break;
> }
> }
> if (!lock._requests.isEmpty())
> throw Components.results.NS_ERROR_ABORT;
Need to remove this now.
Attachment #698840 -
Flags: review?(bent.mozilla) → review+
Updated•13 years ago
|
Attachment #698840 -
Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
| Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment 7•13 years ago
|
||
status-b2g18:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•