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

Changeset 243677 in webkit


Ignore:
Timestamp:
Mar 30, 2019, 6:47:42 AM (7 years ago)
Author:
Alan Bujtas
Message:

[ContentChangeObserver] Subframe load should not reset content observation on the mainframe
https://bugs.webkit.org/show_bug.cgi?id=196408
<rdar://problem/49436797>

Reviewed by Simon Fraser.

Source/WebKit:

Hover intent fails when an unrelated frame commits a load the same time.
cancelPotentialTapInFrame is called from didCommitLoad, but what we are looking for here is the user initiated cancel of a tap (cancelPotentialTap).
(If the current frame navigates away, willDetachPage takes care of canceling the observation.)

  • WebProcess/WebPage/ios/WebPageIOS.mm:

(WebKit::WebPage::cancelPotentialTap):
(WebKit::WebPage::cancelPotentialTapInFrame):

LayoutTests:

  • fast/events/touch/ios/content-observation/hover-while-loading-subframe-expected.txt: Added.
  • fast/events/touch/ios/content-observation/hover-while-loading-subframe.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243674 r243677  
     12019-03-30  Zalan Bujtas  <zalan@apple.com>
     2
     3        [ContentChangeObserver] Subframe load should not reset content observation on the mainframe
     4        https://bugs.webkit.org/show_bug.cgi?id=196408
     5        <rdar://problem/49436797>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * fast/events/touch/ios/content-observation/hover-while-loading-subframe-expected.txt: Added.
     10        * fast/events/touch/ios/content-observation/hover-while-loading-subframe.html: Added.
     11
    1122019-03-30  Antti Koivisto  <antti@apple.com>
    213
  • trunk/Source/WebKit/ChangeLog

    r243671 r243677  
     12019-03-30  Zalan Bujtas  <zalan@apple.com>
     2
     3        [ContentChangeObserver] Subframe load should not reset content observation on the mainframe
     4        https://bugs.webkit.org/show_bug.cgi?id=196408
     5        <rdar://problem/49436797>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Hover intent fails when an unrelated frame commits a load the same time.
     10        cancelPotentialTapInFrame is called from didCommitLoad, but what we are looking for here is the user initiated cancel of a tap (cancelPotentialTap).
     11        (If the current frame navigates away, willDetachPage takes care of canceling the observation.)
     12
     13        * WebProcess/WebPage/ios/WebPageIOS.mm:
     14        (WebKit::WebPage::cancelPotentialTap):
     15        (WebKit::WebPage::cancelPotentialTapInFrame):
     16
    1172019-03-29  John Wilander  <wilander@apple.com>
    218
  • trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

    r243557 r243677  
    911911void WebPage::cancelPotentialTap()
    912912{
     913    if (m_potentialTapNode)
     914        m_potentialTapNode->document().contentChangeObserver().willNotProceedWithClick();
    913915    cancelPotentialTapInFrame(*m_mainFrame);
    914916}
     
    917919{
    918920    if (m_potentialTapNode) {
    919         m_potentialTapNode->document().contentChangeObserver().willNotProceedWithClick();
    920921        auto* potentialTapFrame = m_potentialTapNode->document().frame();
    921922        if (potentialTapFrame && !potentialTapFrame->tree().isDescendantOf(frame.coreFrame()))
Note: See TracChangeset for help on using the changeset viewer.