Closed Bug 774553 Opened 12 years ago Closed 12 years ago

Marionette disabled on B2G due to pref change

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla17

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

Attachments

(1 file)

In bug 772310, I changed Marionette to use prefHasUserValue before attempting to read the pref, in order to avoid a spurious assert on Firefox. On B2G, this disables Marionette. It turns out that prefHasUserValue is only true if that pref has a non-default value. For B2G, the default value is true, and thus prefHasUserValue returns false.
Attached patch patch v0.3Splinter Review
This patch uses a try/catch block when reading the marionette.defaultPrefs.enabled pref, so it will work whether or not it has a default value. It also reorganizes the logging code in the same file a bit to make troubleshooting marionette-isn't-loading problems a bit easier.
Attachment #642836 - Flags: review?(mdas)
Comment on attachment 642836 [details] [diff] [review] patch v0.3 Review of attachment 642836 [details] [diff] [review]: ----------------------------------------------------------------- good catch, thanks!
Attachment #642836 - Flags: review?(mdas) → review+
Assignee: nobody → jgriffin
Target Milestone: --- → mozilla17
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: