Open Bug 1460873 Opened 6 years ago Updated 2 years ago

Clicking on zoomed images does not display them centered and zoom indicator doesn't reflect the true level

Categories

(Core :: Layout, defect)

defect

Tracking

()

Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- wontfix
firefox60 --- wontfix
firefox61 --- fix-optional
firefox62 --- fix-optional

People

(Reporter: obotisan, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

[Affected versions]:
- Firefox 60.0;
- Firefox 60.0ESR;
- Firefox 61.0b3;
- Firefox 62.0a1 (2018-05-10) 

[Affected platforms]:
- Win10x64,
- macOS10.12, 
- Ubuntu 16.04x64.

[Steps to reproduce]:
1. Launch Firefox.
2. Navigate to the following link: http://ilab.engr.utk.edu/iLabDocs/Epilog/BMP%20sample%20files/lady3.bmp
3. Zoom in(ex: hold CTRL and keep pressing the + key).
4. Click on the image.

[Expected result]:
- The image should zoom out.

[Actual result]:
- The image is scrolled to the bottom-right corner-edge.
- The browser shows that the image is zoomed at 100% but it's still increased above that value.

[Regression range]:
- Using mozregression I've found this pushlog that might have caused the issue: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=4f4487cc2d30d988742109868dcf21c4113f12f5&tochange=aabfe960ab59fea2e85896b1f8050786e16ab23b
- Last good: 20171207100053
- First bad: 20171208220141

[Additional notes]:
- See attached screen-cast.
Summary: Clicking on zoomed images does not display them centered and zoom indicator doesn't reflact the true level → Clicking on zoomed images does not display them centered and zoom indicator doesn't reflect the true level
(In reply to Oana Botisan from comment #0)
> https://hg.mozilla.org/mozilla-central/
> pushloghtml?fromchange=4f4487cc2d30d988742109868dcf21c4113f12f5&tochange=aabf
> e960ab59fea2e85896b1f8050786e16ab23b

This doesn't match the last good/first bad dates you provided.

> - Last good: 20171207100053
> - First bad: 20171208220141
Flags: needinfo?(oana.botisan)
Also, I don't think this is a real bug.

(In reply to Oana Botisan from comment #0)
> [Actual result]:
> - The image is scrolled to the bottom-right corner-edge.

Where you end up depends on what part of the image you click on in step 4 of your STR.

> - The browser shows that the image is zoomed at 100% but it's still
> increased above that value.

Yes, there's different kinds of zoom involved here. Doing ctrl++ is layout zoom but clicking on an image is a different kind of zoom, so when you click it resets the layout zoom to 100% and switches to the other kind of zoom (let's call it "image zoom"). You get image zoom even if you click on the image without doing layout zoom. Clicking on the image again undoes the image zoom and restores it to fit-to-visible-area.
Sorry about the pushlog. I ran mozregression again and this is the real one:

- https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=c35ad676551a69dba04514ee7d00e98a6332b367&tochange=b8174ee90b5820f2dba829e2f0c400013da8deb4

I still think it is, maybe not the part with 100%, but the part when you click on the image and it jumps it is.
Flags: needinfo?(oana.botisan)
Regression from bug 1149555 according to comment 3.
Blocks: 1149555
Component: Panning and Zooming → Layout
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: