[webkit-changes] [WebKit/WebKit] 6f1325: REGRESSION(257749 at main): Copying table in Confluen...

Ryosuke Niwa noreply at github.com
Mon Jul 10 23:26:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6f132509a670a1b3e8ef9aa552736926b456e8ee
      https://github.com/WebKit/WebKit/commit/6f132509a670a1b3e8ef9aa552736926b456e8ee
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    A LayoutTests/editing/pasteboard/copy-content-with-user-select-none-quirks-expected.txt
    A LayoutTests/editing/pasteboard/copy-content-with-user-select-none-quirks.html
    M Source/WebCore/editing/Editor.cpp
    M Source/WebCore/editing/cocoa/HTMLConverter.mm
    M Source/WebCore/editing/markup.cpp
    M Source/WebCore/html/HTMLMetaElement.cpp
    M Source/WebCore/page/DOMSelection.cpp
    M Source/WebCore/page/Quirks.h
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/CopyRTF.mm

  Log Message:
  -----------
  REGRESSION(257749 at main): Copying table in Confluence on Safari doesn't copy header rows
https://bugs.webkit.org/show_bug.cgi?id=259091

Reviewed by Wenson Hsieh.

Add a Confluence specific quirk to copy `-webkit-user-select: none` contents.

* LayoutTests/editing/pasteboard/copy-content-with-user-select-none-quirks-expected.txt: Added.
* LayoutTests/editing/pasteboard/copy-content-with-user-select-none-quirks.html: Added.
* Source/WebCore/editing/Editor.cpp:
(WebCore::Editor::selectedText const):
(WebCore::Editor::selectedTextForDataTransfer const):
* Source/WebCore/editing/cocoa/HTMLConverter.mm:
(HTMLConverter::HTMLConverter):
(HTMLConverter::_enterElement):
(HTMLConverter::_processText):
* Source/WebCore/editing/markup.cpp:
(WebCore::StyledMarkupAccumulator::StyledMarkupAccumulator):
* Source/WebCore/html/HTMLMetaElement.cpp:
(WebCore::HTMLMetaElement::process):
* Source/WebCore/page/DOMSelection.cpp:
(WebCore::DOMSelection::toString const):
* Source/WebCore/page/Quirks.h:
(WebCore::Quirks::needsToCopyUserSelectNoneQuirk const):
(WebCore::Quirks::setNeedsToCopyUserSelectNoneQuirk):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/CopyRTF.mm:
(TEST):

Canonical link: https://commits.webkit.org/265939@main




More information about the webkit-changes mailing list