Bug 136097 - Magnifier re-appears
Summary: Magnifier re-appears
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad iOS 7.0
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/bakhshi/qbvhx5cx/
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-08-20 00:30 PDT by Reza
Modified: 2014-10-26 21:49 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reza 2014-08-20 00:30:57 PDT
It seems that the only way to get rid of the magnifier in iPad Safari is to use:

   -webkit-touch-callout: none;
   -webkit-user-select:none;
   user-select:none;

They work fine. But in the scenario created here (http://jsfiddle.net/bakhshi/qbvhx5cx/show) it re-appears and does not go away even if you refresh the page.
The only way to remove the magnifier again is to close the tab and reopen it.

it seems that when you dynamically create a focused textbox and then remove it *while the keyboard is open* the problem occurs.

Note that if you close the keyboard before removing the textbox (before touching the blue div in the provided example) it behaves normally.
Comment 1 Radar WebKit Bug Importer 2014-08-20 00:31:14 PDT
<rdar://problem/18072846>
Comment 2 Reza 2014-09-12 00:59:15 PDT
It's interesting! even if you do not remove the textbox and just set it "readonly" it results in the same problem.

So just as another way to remove the keybaord, you can set the "readonly" attribute and then remove the "readonly" after a while( settimeout).