[Webkit-unassigned] [Bug 157474] New: Making the web view first responder makes it scroll up

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 9 07:01:20 PDT 2016


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

            Bug ID: 157474
           Summary: Making the web view first responder makes it scroll up
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: Macintosh
                OS: OS X 10.11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: marco at barisione.org

Calling [aWebView.window makeFirstResponder:aWebView], in some conditions, causes the web view content to scroll up.
This seems to happen if you are making first responder a web view that is already first responder or that was first responder in the same window (without being removed from it before).

There are various ways to reproduce it in Safari (I'm using WebKit compiled by myself matching the version shipped in 10.11.5 DP 4, that is the one for version 601.6.17, but it happens with any 10.11 version I've tried):
1. Open Safari.
2. Go to gmail.com (without clicking the view) and login.
3. Scroll down (without clicking).
4. Open a new tab with the keyboard.
5. Go to the previous tab with the keyboard.
-> The gmail content will have scrolled up.
If you click the view and repeat then the bug won't happen any more.

The other way is:
1. Open Safari.
2. Go to gmail.com and compose a long email (so there's a scroll bar) and make sure you have scrolled the email to the bottom.
3. Go to the URL bar
4. Move the focus back to the web view
-> The email will scroll to the top.

In my app using WebKit I could reproduce it also by switching tab after clicking the view, while in Safari this doesn't happen. We discovered that this doesn't happen in Safari because, when you switch to another tab, the web view in the newly hidden tab gets removed from its super view.

This is a bug related to 10.11 as I cannot reproduce on 10.10.
Moreover, if I run WebKit compiled for 10.10 (setting MAC_OS_X_VERSION_MAJOR=101000) on 10.11, the bug doesn't happen.

-- 
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/20160509/8a92b43d/attachment.html>


More information about the webkit-unassigned mailing list