Bug 188136 - Keyboard dismissal zooms screen unnecessarily on iOS 12 Developer Beta 3 & 4
Summary: Keyboard dismissal zooms screen unnecessarily on iOS 12 Developer Beta 3 & 4
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: iPhone / iPad Other
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-07-28 08:00 PDT by Justin Searls
Modified: 2018-08-04 15:42 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Searls 2018-07-28 08:00:19 PDT
When dismissing the keyboard (either by tapping Done, Enter/Return, or tapping outside the keyboard area), Safari will zoom the page. This started in iOS 12 Developer Beta 3 and persisting through Beta 4

Steps to Reproduce:

1. Watch this video to see what I'm describing:
https://youtu.be/fjqv8_gBs-0

2. Load this HTML in Safari and attempt to reproduce: 

```
<head>
  <style>
    body { border: 4px solid red; }

    input {
      margin-top: 40vh;
      font-size: 64px;
    }
  </style>
</head>
<body>
  <input placeholder="Tap this & then tap Done"/>
</body>
```

Expected Results:

iOS 11 and iOS 12 to behave the same.

Actual Results:

iOS 12 zooms the viewport

iOS Build: 16A5327f
Comment 1 Wenson Hsieh 2018-07-28 14:11:21 PDT
Thanks for the report, Justin!

I can reproduce this on iPhone 6s using an older build of iOS 12, and uploading trunk WebKit didn't fix it. However, I'm unable to reproduce after uploading trunk Safari, and additionally, I can't reproduce on a stock version of the latest build of iOS 12.

This suggests that it was fixed in a recent change in iOS Safari — please stay tuned for the next iOS 12 seed!
Comment 2 Wenson Hsieh 2018-07-28 17:59:25 PDT
<rdar://problem/42691794>
Comment 3 Justin Searls 2018-08-04 15:42:36 PDT
Yay! I can confirm this is fixed in the latest Developer beta. 

Thank you all so much for the hard work you do to push WebKit forward while preventing regressions like this one.