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

Changeset 243678 in webkit


Ignore:
Timestamp:
Mar 30, 2019, 7:09:23 AM (7 years ago)
Author:
Alan Bujtas
Message:

[ContentChangeObserver] Add iFrame elements to the list of "considered clickable" elements.
https://bugs.webkit.org/show_bug.cgi?id=196410
<rdar://problem/49436828>

Reviewed by Simon Fraser.

Source/WebCore:

163.com constructs an iFrame to display the login pane on hover. This patch ensures that we take iFrames into account while observing for visible content change by considering iFrame elements "clickable".
(While iFrames don't necessarily have clickable content, we can't just sit and wait until they are fully loaded.)

Test: fast/events/touch/ios/content-observation/iframe-is-shown-on-hover.html

  • page/ios/ContentChangeObserver.cpp:

(WebCore::ContentChangeObserver::StyleChangeScope::isConsideredClickable const):

LayoutTests:

  • fast/events/touch/ios/content-observation/iframe-is-shown-on-hover-expected.txt: Added.
  • fast/events/touch/ios/content-observation/iframe-is-shown-on-hover.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243677 r243678  
     12019-03-30  Zalan Bujtas  <zalan@apple.com>
     2
     3        [ContentChangeObserver] Add iFrame elements to the list of "considered clickable" elements.
     4        https://bugs.webkit.org/show_bug.cgi?id=196410
     5        <rdar://problem/49436828>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * fast/events/touch/ios/content-observation/iframe-is-shown-on-hover-expected.txt: Added.
     10        * fast/events/touch/ios/content-observation/iframe-is-shown-on-hover.html: Added.
     11
    1122019-03-30  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r243675 r243678  
     12019-03-30  Zalan Bujtas  <zalan@apple.com>
     2
     3        [ContentChangeObserver] Add iFrame elements to the list of "considered clickable" elements.
     4        https://bugs.webkit.org/show_bug.cgi?id=196410
     5        <rdar://problem/49436828>
     6
     7        Reviewed by Simon Fraser.
     8
     9        163.com constructs an iFrame to display the login pane on hover. This patch ensures that we take iFrames into account while observing for visible content change by considering iFrame elements "clickable".
     10        (While iFrames don't necessarily have clickable content, we can't just sit and wait until they are fully loaded.)
     11
     12        Test: fast/events/touch/ios/content-observation/iframe-is-shown-on-hover.html
     13
     14        * page/ios/ContentChangeObserver.cpp:
     15        (WebCore::ContentChangeObserver::StyleChangeScope::isConsideredClickable const):
     16
    1172019-03-30  Antti Koivisto  <antti@apple.com>
    218
  • trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp

    r243673 r243678  
    3131#include "DOMTimer.h"
    3232#include "Document.h"
     33#include "HTMLIFrameElement.h"
    3334#include "HTMLImageElement.h"
    3435#include "Logging.h"
     
    487488
    488489    auto& element = const_cast<Element&>(m_element);
     490    if (is<HTMLIFrameElement>(element))
     491        return true;
     492
    489493    if (is<HTMLImageElement>(element)) {
    490494        // This is required to avoid HTMLImageElement's touch callout override logic. See rdar://problem/48937767.
Note: See TracChangeset for help on using the changeset viewer.