Closed Bug 862666 Opened 11 years ago Closed 11 years ago

geolocation settings tests fail with undefined mozSettings after bug 859601

Categories

(Core :: DOM: Geolocation, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

Attachments

(1 file)

After bug 859601, there is now a timing component to accessing mozSettings.  This causes the following test cases to fail when run individually or early in the mochitest run:

  dom/tests/mochitest/geolocation/test_mozsettings.html
  dom/tests/mochitest/geolocation/test_mozsettingsWatch.html

The current mochitest division on try does not trigger this, but it was exposed while working on bug 847279.

The solution recommend by reuben is to use addLoadEvent() to delay until mozSettings is available.
Try showing the problem:

  https://tbpl.mozilla.org/?tree=Try&rev=979663f54c28

Try showing fix (ignore the android tests):

  https://tbpl.mozilla.org/?tree=Try&rev=e0b860105578
Assignee: nobody → ben
Attachment #738320 - Flags: review?(doug.turner)
Attachment #738320 - Flags: feedback?(reuben.bmo)
Attachment #738320 - Flags: feedback?(reuben.bmo) → feedback+
Attachment #738320 - Flags: review?(doug.turner) → review+
Keywords: checkin-needed
Blocks: 847279
https://hg.mozilla.org/mozilla-central/rev/78ccd7f5313f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: