Closed
Bug 1491213
Opened 6 years ago
Closed 5 years ago
user's zoom operation will changes the reference value of initial-scale
Categories
(Firefox for Android Graveyard :: General, defect, P5)
Tracking
(firefox66 wontfix, firefox67 affected)
RESOLVED
DUPLICATE
of bug 1498729
People
(Reporter: blackgloryzh, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
128.48 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20180830143136 Steps to reproduce: 1. Open any website that does not have a viewport meta tag like https://bugzilla.mozilla.org 2. Zoom in screen by two fingers 3. Open desktop WebIDE and connect the tab opened on Firefox for Android 4. execute the script: function createViewportMetaElement(viewport) { const meta = document.createElement('meta') meta.name = 'viewport' meta.content = Object.entries(viewport) .filter(([, value]) => !!value) .map(([key, value]) => `${ key }=${ value }`) .join(', ') return meta } document.head.appendChild(createViewportMetaElement({ 'width': 'device-width' , 'initial-scale': '1' })) Tested browsers can reproduce this issue: Firefox for Android 62.0.1 Firefox for Android Beta 63.0b5 Firefox for Android Nightly 64.0a1(2018-09-13) Actual results: You will see the page zoom in, but it is obviously too big. Expected results: Just ignore step 2. I think the reference value of the initial-scale should not be changed by the user's zoom operation. It is working as expected in Chromium.
Comment 1•6 years ago
|
||
I am not sure yet what's going on there, but with 'initial-scale: 0.5' chrome is also affected by the change.
Comment 2•5 years ago
|
||
Boton you have been looking into zoom/viewport issues is this a dupe of something known?
Flags: needinfo?(botond)
Comment 3•5 years ago
|
||
(In reply to blackgloryzh from comment #0)
- Open any website that does not have a viewport meta tag like
https://bugzilla.mozilla.org
bugzilla.mozilla.org does have a meta viewport tag. It's:
<meta name="viewport" content="width=1024">
By adding a second meta viewport tag, you're probably running into bug 1498729.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Confirmed that bug 1498729 fixed this.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•