Closed Bug 197263 Opened 23 years ago Closed 20 years ago

Unchecking "enable automatic image resizing" also disables click-to-resize

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: csthomas)

References

Details

(Keywords: fixed1.8.1)

Attachments

(2 files, 1 obsolete file)

Steps to reproduce: 1. In prefs>appearance, uncheck "enable automatic image resizing". 2. Load a large image, such as http://mozillazine.org/screenshots/screensnew/modern/browser.jpg. 3. Click the image. Result: nothing happens. Expected: image should resize to fit in the window. This makes the image resizing feature all-or-nothing :( (Also happens in Phoenix after I change the hidden pref to disable automatic image resizing.)
-> varga
Assignee: blaker → varga
At first this sounded strange to me why would you expect images to resize if you disabled resizing. But the proposed behaviour would really be an improvement. If someone disabled the *automatic* image resizing he might still want to shrink some of the images. If someone doesn't want to use it at all he simply doesn't need to click on the images and there will be no disadvantages for him.
*** Bug 211510 has been marked as a duplicate of this bug. ***
*** Bug 202052 has been marked as a duplicate of this bug. ***
95% of the time when I'm viewing a larger-than-my-browser-window image, I want/need to view it 1:1. Rather than have to click the image 19 out of 20 times, I turned off auto image resize. It would be very nice to have it available for the 1 in 20 case, however.
OS: Windows XP → All
Hardware: PC → All
Blocks: 235358
*** Bug 243650 has been marked as a duplicate of this bug. ***
Product: Core → Mozilla Application Suite
*** Bug 293795 has been marked as a duplicate of this bug. ***
Assignee: Jan.Varga → cst
Severity: normal → enhancement
QA Contact: pawyskoczka → stdonner
Target Milestone: --- → Seamonkey1.0alpha
Attached patch patch (obsolete) — — Splinter Review
This patch allows an embedder to disable image resizing with browser.enable_automatic_image_resizing (like they can now), but allows users to have images unscaled by default with resizing enabled. I fixed SeaMonkey only - if Firefox has pref UI for this, I'll fix it in a separate patch.
Attachment #192896 - Flags: superreview?(jst)
Attachment #192896 - Flags: review?(cbiesinger)
Status: NEW → ASSIGNED
(In reply to comment #8) > if Firefox has pref UI for this, I'll fix it in a separate patch. It does: http://lxr.mozilla.org/mozilla/source/browser/components/preferences/advanced.xul#121
Component: XP Apps: GUI Features → DOM
Product: Mozilla Application Suite → Core
Target Milestone: Seamonkey1.0alpha → ---
Comment on attachment 192896 [details] [diff] [review] patch sr=jst
Attachment #192896 - Flags: superreview?(jst) → superreview+
Comment on attachment 192896 [details] [diff] [review] patch >+ PRBool resizeByDefault = nsContentUtils::GetBoolPref(AUTOMATIC_IMAGE_RESIZING_INITIAL_STATE); >+ > mImageResizingEnabled = > nsContentUtils::GetBoolPref(AUTOMATIC_IMAGE_RESIZING_PREF); >- mShouldResize = mImageResizingEnabled; >+ mShouldResize = mImageResizingEnabled && resizeByDefault; I would have written this as mShouldResize = mImageResizingEnabled && nsContentUtils::GetBoolPref(AUTOMATIC_IMAGE_RESIZING_INITIAL_STATE);
Comment on attachment 192896 [details] [diff] [review] patch + PRBool resizeByDefault = nsContentUtils::GetBoolPref(AUTOMATIC_IMAGE_RESIZING_INITIAL_STATE); please split this line I'm really not sure that there's a need to have both prefs...
Comment on attachment 192896 [details] [diff] [review] patch I'm not a particular fan of this pref, but ok...
Attachment #192896 - Flags: review?(cbiesinger) → review+
Whiteboard: [cst: waiting for answer from jst about not adding pref]
Comment on attachment 192896 [details] [diff] [review] patch I don't like the new pref either.
Attachment #192896 - Attachment is obsolete: true
Whiteboard: [cst: waiting for answer from jst about not adding pref]
Attached patch patch — — Splinter Review
Just change what the existing pref does.
Attachment #214089 - Flags: review?(cbiesinger)
Attachment #214089 - Flags: superreview?(jst)
Attachment #214089 - Flags: review?(jst)
Attachment #214089 - Flags: review?(cbiesinger)
Comment on attachment 214089 [details] [diff] [review] patch r+sr=jst
Attachment #214089 - Flags: superreview?(jst)
Attachment #214089 - Flags: superreview+
Attachment #214089 - Flags: review?(jst)
Attachment #214089 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [cst: branch?]
Comment on attachment 214089 [details] [diff] [review] patch I'm not sure if this counts as an API change or not.
Attachment #214089 - Flags: approval-branch-1.8.1?(jst)
Comment on attachment 214089 [details] [diff] [review] patch I would say no, this is not an API change. If others disagree, please speak up.
Attachment #214089 - Flags: approval-branch-1.8.1?(jst) → approval-branch-1.8.1+
*** Bug 333435 has been marked as a duplicate of this bug. ***
Whiteboard: [cst: branch?]
Fixed on branch. /mozilla/content/html/document/src/nsImageDocument.cpp 1.138.4.5
Keywords: fixed1.8.1
Blocks: 348276
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: