[Webkit-unassigned] [Bug 154816] New: Spurious resize events fired when resuming device

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 29 08:38:13 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154816

            Bug ID: 154816
           Summary: Spurious resize events fired when resuming device
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: iOS
                OS: iOS 9.2
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashley at scirra.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160229/f0d2e70a/attachment.html>


More information about the webkit-unassigned mailing list