⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243415 in webkit


Ignore:
Timestamp:
Mar 23, 2019, 2:07:51 PM (7 years ago)
Author:
Alan Bujtas
Message:

[ContentChangeObserver] Taping on a form control should always result in click.
https://bugs.webkit.org/show_bug.cgi?id=196177

Reviewed by Simon Fraser.

Source/WebKit:

This patch enures that we send a synthetic click when the traget node is a form control (button, edit field etc) even if
the mousemove brings up some hover content.

  • WebProcess/WebPage/ios/WebPageIOS.mm:

(WebKit::WebPage::handleSyntheticClick):

LayoutTests:

  • fast/events/touch/ios/content-observation/tap-on-input-type-button-element-expected.txt: Added.
  • fast/events/touch/ios/content-observation/tap-on-input-type-button-element.html: Added.
  • fast/events/touch/ios/content-observation/tap-on-input-type-text-element-expected.txt: Added.
  • fast/events/touch/ios/content-observation/tap-on-input-type-text-element.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243414 r243415  
     12019-03-23  Zalan Bujtas  <zalan@apple.com>
     2
     3        [ContentChangeObserver] Taping on a form control should always result in click.
     4        https://bugs.webkit.org/show_bug.cgi?id=196177
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/events/touch/ios/content-observation/tap-on-input-type-button-element-expected.txt: Added.
     9        * fast/events/touch/ios/content-observation/tap-on-input-type-button-element.html: Added.
     10        * fast/events/touch/ios/content-observation/tap-on-input-type-text-element-expected.txt: Added.
     11        * fast/events/touch/ios/content-observation/tap-on-input-type-text-element.html: Added.
     12
    1132019-03-23  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebKit/ChangeLog

    r243412 r243415  
     12019-03-23  Zalan Bujtas  <zalan@apple.com>
     2
     3        [ContentChangeObserver] Taping on a form control should always result in click.
     4        https://bugs.webkit.org/show_bug.cgi?id=196177
     5
     6        Reviewed by Simon Fraser.
     7
     8        This patch enures that we send a synthetic click when the traget node is a form control (button, edit field etc) even if
     9        the mousemove brings up some hover content.
     10
     11        * WebProcess/WebPage/ios/WebPageIOS.mm:
     12        (WebKit::WebPage::handleSyntheticClick):
     13
    1142019-03-23  Andy Estes  <aestes@apple.com>
    215
  • trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

    r243354 r243415  
    580580        return;
    581581
     582    if (is<HTMLFormControlElement>(nodeRespondingToClick)) {
     583        LOG(ContentObservation, "handleSyntheticClick: Target node is a form control -> click.");
     584        completeSyntheticClick(nodeRespondingToClick, location, modifiers, WebCore::OneFingerTap);
     585        return;
     586    }
    582587    auto& contentChangeObserver = respondingDocument.contentChangeObserver();
    583588    auto observedContentChange = contentChangeObserver.observedContentChange();
Note: See TracChangeset for help on using the changeset viewer.