Closed Bug 280670 Opened 20 years ago Closed 20 years ago

After restarting Mozilla, user_pref("permissions.default.image") is always set to 1.

Categories

(Core :: Graphics: Image Blocking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hub-san, Assigned: mvl)

References

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050128
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050128

When "Accept images that come from the originating server only" is selected at
"Image Acceptance Policy" catagory, the setting is back in "Accept all images"
after restarting Mozilla.  The value of user_pref("permissions.default.image")
is always set to 1.  This value cannot be set to 2 or 3.

Reproducible: Always

Steps to Reproduce:
1. Delete or rename old profile directory.
2. Do first execution of Mozilla suite.
3. Goto Mozilla>Preferences...>Privacy & Security>Images 
4. Select "Accept images that come from the originating server only" in "Image
Acceptance Policy".
5. Restart Mozilla suite.
6. Goto Mozilla>Preferences...>Privacy & Security>Images

Actual Results:  
After restarting Mozilla, The setting of "Image Acceptance Policy" is back in
"Accept all images".  The value of user_pref("permissions.default.image") is
always set to 1.



Expected Results:  
After restarting Mozilla, The setting of "Image Acceptance Policy" is "Accept
images that come from the originating server only".  The value of
user_pref("permissions.default.image") can be set to 3(or 2).



I confirmed this problem on 2005-01-29-06-trunk of Mozilla suite
(MacOSX10.3.7).  2005-01-30-04-trunk had this problem, too.  But,
2005-01-28-05-trunk didn't have this bug.
the migration code at
http://lxr.mozilla.org/seamonkey/source/extensions/permissions/nsContentBlocker.cpp#93
is broken.
I guess the rv of GetIntPref should actually be checked.
Assignee: general → security-bugs
Status: UNCONFIRMED → NEW
Component: General → Image Blocking
Ever confirmed: true
Product: Mozilla Application Suite → Core
QA Contact: general
Version: unspecified → Trunk
Attached patch patch v1Splinter Review
like this
Assignee: security-bugs → mvl
Status: NEW → ASSIGNED
Attachment #173102 - Flags: superreview?(darin)
Attachment #173102 - Flags: review?(dwitte)
Comment on attachment 173102 [details] [diff] [review]
patch v1

heh. r=me
Attachment #173102 - Flags: review?(dwitte) → review+
Comment on attachment 173102 [details] [diff] [review]
patch v1

sr=darin
Attachment #173102 - Flags: superreview?(darin) → superreview+
patch checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 280924 has been marked as a duplicate of this bug. ***
Keywords: regression
OS: MacOS X → All
Hardware: Macintosh → All
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: