Closed
Bug 197263
Opened 21 years ago
Closed 18 years ago
Unchecking "enable automatic image resizing" also disables click-to-resize
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: csthomas)
References
Details
(Keywords: fixed1.8.1)
Attachments
(2 files, 1 obsolete file)
8.05 KB,
patch
|
jst
:
review+
jst
:
superreview+
jst
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
6.60 KB,
patch
|
Details | Diff | Splinter Review |
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.)
Comment 2•21 years ago
|
||
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.
Comment 3•21 years ago
|
||
*** Bug 211510 has been marked as a duplicate of this bug. ***
Comment 4•21 years ago
|
||
*** Bug 202052 has been marked as a duplicate of this bug. ***
Comment 5•21 years ago
|
||
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
Comment 6•20 years ago
|
||
*** Bug 243650 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
Comment 7•19 years ago
|
||
*** Bug 293795 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•19 years ago
|
Assignee: Jan.Varga → cst
Severity: normal → enhancement
QA Contact: pawyskoczka → stdonner
Target Milestone: --- → Seamonkey1.0alpha
Assignee | ||
Comment 8•19 years ago
|
||
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)
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Comment 9•19 years ago
|
||
(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
Updated•19 years ago
|
Component: XP Apps: GUI Features → DOM
Product: Mozilla Application Suite → Core
Target Milestone: Seamonkey1.0alpha → ---
Comment 10•19 years ago
|
||
Comment on attachment 192896 [details] [diff] [review] patch sr=jst
Attachment #192896 -
Flags: superreview?(jst) → superreview+
Comment 11•19 years ago
|
||
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 12•19 years ago
|
||
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 13•19 years ago
|
||
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+
Assignee | ||
Updated•19 years ago
|
Whiteboard: [cst: waiting for answer from jst about not adding pref]
Assignee | ||
Comment 14•19 years ago
|
||
Comment on attachment 192896 [details] [diff] [review] patch I don't like the new pref either.
Attachment #192896 -
Attachment is obsolete: true
Assignee | ||
Updated•19 years ago
|
Whiteboard: [cst: waiting for answer from jst about not adding pref]
Assignee | ||
Comment 15•18 years ago
|
||
Just change what the existing pref does.
Attachment #214089 -
Flags: review?(cbiesinger)
Assignee | ||
Comment 16•18 years ago
|
||
Assignee | ||
Updated•18 years ago
|
Attachment #214089 -
Flags: superreview?(jst)
Attachment #214089 -
Flags: review?(jst)
Attachment #214089 -
Flags: review?(cbiesinger)
Comment 17•18 years ago
|
||
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+
Assignee | ||
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [cst: branch?]
Assignee | ||
Comment 18•18 years ago
|
||
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 19•18 years ago
|
||
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+
Comment 20•18 years ago
|
||
*** Bug 333435 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•18 years ago
|
Whiteboard: [cst: branch?]
Comment 21•18 years ago
|
||
Fixed on branch. /mozilla/content/html/document/src/nsImageDocument.cpp 1.138.4.5
Keywords: fixed1.8.1
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•