Closed Bug 821484 Opened 12 years ago Closed 12 years ago

ASSERTION: mDone shouldn't have been set to true already!: '!mDone', file dom/base/DOMRequest.cpp, line 113

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20
blocking-basecamp -
Tracking Status
firefox19 --- wontfix
firefox20 --- fixed
b2g18 --- fixed

People

(Reporter: gwagner, Assigned: gwagner)

Details

Attachments

(1 file, 1 obsolete file)

Seen during B2G starup on otoro with debug build
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → anygregor
Attachment #692043 - Flags: review?(jonas)
Attached patch patchSplinter Review
wrong patch
Attachment #692043 - Attachment is obsolete: true
Attachment #692043 - Flags: review?(jonas)
Attachment #692065 - Flags: review?(jonas)
Comment on attachment 692065 [details] [diff] [review]
patch

Review of attachment 692065 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/settings/SettingsManager.js
@@ +74,5 @@
>                req = store.put({settingName: key, settingValue: obj});
>              }
>  
> +            req.onsuccess = function() {
> +              if (key === keys[keys.length-1] && !req.error) {

request.error

And I think it'd be clearer to do:

if (i === keys.length-1) {
  req.onsuccess = function() {
    if (!request.error) {
      Services.DOMRequest.fireSuccess(...)
    }
  }
}

@@ +84,4 @@
>              };
>  
>              req.onerror = function() {
> +              if (!req.error) {

request.error
Attachment #692065 - Flags: review?(jonas) → review+
https://hg.mozilla.org/mozilla-central/rev/04b23376b9c3
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
blocking-basecamp: --- → ?
I think we should take this. I already get into complex merge problems without this patch that are more likely to introduce new bugs.
Comment on attachment 692065 [details] [diff] [review]
patch

Feel free to land this on the b2g18 branch, but we won't block on this.
Attachment #692065 - Flags: approval-mozilla-b2g18+
blocking-basecamp: ? → -
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: