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)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 59701

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.
Blocks: 161109
Blocks: 163048
Status: UNCONFIRMED → NEW
Ever confirmed: true
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 → ---
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 ago22 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 → ---

*** This bug has been marked as a duplicate of 59701 ***
Status: REOPENED → RESOLVED
Closed: 22 years ago21 years ago
Resolution: --- → DUPLICATE
Verifying duplicate, transfering dependencies.
No longer blocks: 161109, 163048
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.