NEW154816
Spurious resize events fired when resuming device
https://bugs.webkit.org/show_bug.cgi?id=154816
Summary Spurious resize events fired when resuming device
Ashley Gullen
Reported 2016-02-29 08:38:13 PST
URL: http://www.scirra.com/labs/bugs/iosviewport/resume.html Steps to reproduce: 1. Visit the given URL in portrait orientation. (note: it may start up with the wrong display due to bug 154815) 2. Press the device power button to put it to sleep. Do not change its orientation until waking it up again. 3. Wake it up again and unlock it. 4. Note the events listed in Safari. Observed result: Safari fires spurious resize events. E.g. it will log something like (on an iPad Air 2): Startup: 980 x 1225 [note probably incorrect due to bug 154815] visibilitychange event (hidden): 768 x 960 resize event: 1024 x 704 orientationchange event: 1024 x 704 resize event: 768 x 960 orientationchange event: 768 x 960 visibilitychange event (visible): 768 x 960 Note these events fire resize/orientationchange for landscape orientation followed immediately by portrait orientation upon waking. This is misleading since the device did not really change size or orientation. Note the same happens in landscape orientation, but it first fires events for portrait orientation followed by landscape orientation. Expected result: No spurious events, e.g. a log similar to: Startup: 768 x 960 visibilitychange event (hidden): 768 x 960 visibilitychange event (visible): 768 x 960 or alternatively, a single resize event that indicates the same size again like this: Startup: 768 x 960 visibilitychange event (hidden): 768 x 960 resize event: 768 x 960 orientationchange event: 768 x 960 visibilitychange event (visible): 768 x 960
Attachments
Ashley Gullen
Comment 1 2016-02-29 08:43:37 PST
Note not all devices are affected. Of those I have access to: iPad Pro: affected iPad Air 2: affected iPad 3: not affected iPad 2: not affected iPhone 4S: not affected Note "not affected" means it does not fire any resize or orientationchange events at all when following the above steps. E.g. the iPad 3 logs: Startup: 768 x 960 visibilitychange event (hidden): 768 x 960 visibilitychange event (visible): 768 x 960
Radar WebKit Bug Importer
Comment 2 2016-03-01 20:29:24 PST
Lucas Forschler
Comment 3 2019-02-06 09:18:47 PST
Mass move bugs into the DOM component.
Note You need to log in before you can comment on or make changes to this bug.