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)

Firefox 62
defect

Tracking

(firefox66 wontfix, firefox67 affected)

RESOLVED DUPLICATE of bug 1498729
Tracking Status
firefox66 --- wontfix
firefox67 --- affected

People

(Reporter: blackgloryzh, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached image actual.png
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.
I am not sure yet what's going on there, but with 'initial-scale: 0.5' chrome is also affected by the change.

Boton you have been looking into zoom/viewport issues is this a dupe of something known?

Flags: needinfo?(botond)

(In reply to blackgloryzh from comment #0)

  1. 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.

Depends on: 1498729
Flags: needinfo?(botond)

Confirmed that bug 1498729 fixed this.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: