[Webkit-unassigned] [Bug 137059] New: blur() event called on select causes page to crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 24 00:29:30 PDT 2014


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

           Summary: blur() event called on select causes page to crash
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: iOS
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fatman at phatman.co.uk


I have identified an issue on iOS 8 that causes the browser to crash and reload the page – not great if you are half way through filling in a form.
This issue can be replicated on some form select (dropdown) elements by changing the value and then clicking the next button (equivalent of tab on Windows.

This causes the page to reload - losing all values and receiving the error message: 
"A problem occurred with the webpage so it was reloaded"

This only happens on dropdowns where you try to close the dropdown once a selection has been made via javascript.
Example JQuery Code:
$('select').on('change', function () {

    $(this).blur();

});

I worked out that triggering the blur event is the root cause of the issue. I believe this to be a problem where clicking the next button in Safari closes the dropdown box using the blur() event that we specify and then the browser itself tries to close the dropdown box – which no longer exists.
Removing the call to blur() resolves the issue.

The issue does not occur on Chrome on iOS (which I understand uses the same engine under the hood)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list