Closed Bug 810041 Opened 12 years ago Closed 12 years ago

[B2G] SpecialPowers.pushPrefEnv throws in mochitest

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(blocking-kilimanjaro:?, firefox18 fixed, firefox19 fixed)

RESOLVED FIXED
mozilla19
blocking-kilimanjaro ?
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: dchanm+bugzilla, Assigned: ahal)

References

Details

Attachments

(2 files)

Attached file pushPrefEnv test case (deleted) —
I recently updated to the latest b2g with ./repo sync and now pushPrefEnv is throwing for me.

logcat gives the following output
E/GeckoConsole(  539): [JavaScript Error: "uncaught exception: Error getting pref"]
E/GeckoConsole(  501): [JavaScript Error: "uncaught exception: Error getting pref"]
which is thrown at
http://mxr.mozilla.org/mozilla-central/source/testing/specialpowers/content/specialpowersAPI.js#739

pushPrefEnv worked for me last week. I don't have an exact revision though.

B2G Gecko commit
9380327863b9093b485ac72fdc4bf80229fba60e


I didn't get an error when testing on Nightly
4e87d83555011362aac89a0943722a0287b2bd2b
I wonder if this is a side-effect of bug 798580?
So I never initialized a listener for 'SPPrefService': http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtestsb2g.py#401

Not sure how I missed that, it's right here: http://mxr.mozilla.org/mozilla-central/source/testing/specialpowers/components/SpecialPowersObserver.js#55
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
Attachment #679855 - Flags: review?(jgriffin)
Attachment #679855 - Flags: review?(jgriffin) → review+
Whiteboard: [automation-needed-in-aurora]
https://hg.mozilla.org/mozilla-central/rev/aa9275334173
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: