Closed
Bug 344334
Opened 18 years ago
Closed 17 years ago
Adding <xul:preference> and <xul:preferences> to document causes uncatchable "Permission denied to get property UnnamedClass.classes"
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Assigned: enndeakin)
References
Details
(Keywords: testcase)
Attachments
(2 files)
649 bytes,
application/vnd.mozilla.xul+xml
|
Details | |
6.13 KB,
patch
|
Details | Diff | Splinter Review |
The testcase triggers Error: uncaught exception: Permission denied to get property UnnamedClass.classes Similar to bug 344211.
Reporter | ||
Comment 1•18 years ago
|
||
Reporter | ||
Comment 2•17 years ago
|
||
This bug makes it difficult for me to test the <xul:preference> and <xul:preferences> elements. It would be nice if this were fixed.
Assignee | ||
Comment 3•17 years ago
|
||
Assignee | ||
Comment 4•17 years ago
|
||
This fixes some exceptions when a preference is used outside of a preferences element. The permission error is caused because the four fields in the <preference> binding are initialized to services, which can't be used outside of chrome. A preference element isn't actually useful for anything unless permissions allow it, so its arguably correct to just throw a permission error. But maybe we could put some try/catch blocks around the four <field>s in preferences.xml. Thoughts?
Comment 5•17 years ago
|
||
Comment on attachment 261095 [details] [diff] [review] check to ensure parent is a preferences element Hrm, we still save the actual pref from the preference_s_ binding though, right? If so, I think we should continue to throw here rather than fail silently. Jesse, what were you trying to test here? these bindings are intentionally not working in content context...
Attachment #261095 -
Flags: review?(mano)
Reporter | ||
Comment 6•17 years ago
|
||
Throwing is fine, but throwing an uncatchable exception breaks my testing script.
Reporter | ||
Comment 7•17 years ago
|
||
WFM on trunk, perhaps because of changes to when XBL bits execute. Neil Deakin, is the patch in comment 3 still desirable?
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•