Closed
Bug 177660
Opened 22 years ago
Closed 21 years ago
Allow read user prefs within XBL for bindings in ./res/html.css (e.g. for marquee element)
Categories
(Core :: XBL, defect)
Core
XBL
Tracking
()
People
(Reporter: sinchi, Assigned: hyatt)
Details
According bug 161109 we need user pref for <marquee> emulation. But we want to
minimize number of forks in C++ code.
Ideal solution for this issue may be allowing XBL to read user prefs and choose
corresponding behavior. This will add more flexibility of fine Mozilla tuning
and might be useful not only for <marquee>, but for further similar issues.
Of course, this must be allowed only in chrome XBL. XBL from web pages must be
denied to read user prefs.
Updated•22 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 1•22 years ago
|
||
Um.... Chrome XBL can already read user prefs. See
http://lxr.mozilla.org/seamonkey/source/xpfe/global/resources/content/bindings/tabbrowser.xml#303
eg.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
No, i still can't read prefs within xbl-marquee.xml
My code:
<field name="mPrefs" readonly="true">
Components.classes['@mozilla.org/preferences-service;1']
.getService(Components.interfaces.nsIPrefService)
.getBranch(null);
</field>
Causes error:
Error: uncaught exception: Permission denied to get property UnnamedClass.classes
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 3•22 years ago
|
||
Chrome XBL can read prefs. This is not considered chrome XBL because it was
loaded by something with content priveleges, even though it has a chrome URL.
*** This bug has been marked as a duplicate of 177639 ***
Status: REOPENED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → DUPLICATE
Please, include me in CC list of bug 177639
OS: Windows 2000 → All
Summary: Allow read user prefs within chrome XBL → Allow read user prefs within XBL for bindings in ./res/html.css (e.g. for marquee element)
I can't see bug 177639, but I consider this bug not to be invalid. Reopening.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Comment 6•21 years ago
|
||
*** This bug has been marked as a duplicate of 59701 ***
Status: REOPENED → RESOLVED
Closed: 22 years ago → 21 years ago
Resolution: --- → DUPLICATE
Verifying duplicate, transfering dependencies.
You need to log in
before you can comment on or make changes to this bug.
Description
•