Changeset 288420 in webkit
- Timestamp:
- Jan 23, 2022 8:59:15 AM (6 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/anchor-active-contenteditable-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLAnchorElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r288402 r288420 1 2022-01-23 Ziran Sun <zsun@igalia.com> 2 3 [forms] Prevent contenteditable anchors from being stuck 4 https://bugs.webkit.org/show_bug.cgi?id=235438 5 6 Reviewed by Darin Adler. 7 8 Update 1 WPT test expectation file as the test is now passing. 9 * web-platform-tests/html/semantics/forms/the-input-element/anchor-active-contenteditable-expected.txt: 10 1 11 2022-01-21 Antoine Quint <graouts@webkit.org> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/anchor-active-contenteditable-expected.txt
r279427 r288420 1 1 anchor 2 2 3 FAIL Anchor elements should not stay :active when contentEditable is enabled. assert_equals: expected null but got Element node <a id="anchorid" href="nonexistant" contenteditable="true...3 PASS Anchor elements should not stay :active when contentEditable is enabled. 4 4 -
trunk/Source/WebCore/ChangeLog
r288419 r288420 1 2022-01-23 Ziran Sun <zsun@igalia.com> 2 3 [forms] Prevent contenteditable anchors from being stuck 4 https://bugs.webkit.org/show_bug.cgi?id=235438 5 6 Reviewed by Darin Adler. 7 8 Anchors can be stuck in the :active state if contenteditable is enabled before 9 :active is removed. With this patch setActive() can remove :active during 10 contenteditable in order to prevent anchors from navigating during contenteditable. 11 12 This is an import of Chromium CL at 13 https://chromium-review.googlesource.com/c/chromium/src/+/2595978 14 15 * html/HTMLAnchorElement.cpp: 16 (WebCore::HTMLAnchorElement::setActive): 17 1 18 2022-01-23 Tyler Wilcock <tyler_w@apple.com> 2 19 -
trunk/Source/WebCore/html/HTMLAnchorElement.cpp
r287731 r288420 214 214 void HTMLAnchorElement::setActive(bool down, bool pause, Style::InvalidationScope invalidationScope) 215 215 { 216 if ( hasEditableStyle()) {216 if (down && hasEditableStyle()) { 217 217 switch (document().settings().editableLinkBehavior()) { 218 218 case EditableLinkBehavior::Default:
Note: See TracChangeset
for help on using the changeset viewer.