Closed Bug 1094939 Opened 10 years ago Closed 5 years ago

Change Preference Actor to send an error back if a preference name is unknown

Categories

(DevTools :: General, defect)

35 Branch
defect
Not set
normal

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: jfong, Assigned: WeirdAl)

Details

Attachments

(1 file)

Currently if you attempt to retrieve a preference that was created by the user (custom pref), then it will throw an exception since there was never a default set. We should catch this exception and respond with an error message.
Component: Developer Tools: WebIDE → Developer Tools
Product: Firefox → DevTools

This bit me today for a different reason: I was using a custom XULRunner app that didn't have the preference "browser.privatebrowsing.autostart".

Assignee: nobody → ajvincent
Status: NEW → ASSIGNED
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8068e7db7f4b
Preferences actor should throw with the name for an unknown preference.  r=ochameau
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: