Skip to content

Commit

Permalink
[Unified Text Replacement] Ensure resources are preserved when creati…
Browse files Browse the repository at this point in the history
…ng fragments

https://bugs.webkit.org/show_bug.cgi?id=273637
rdar://127437226

Reviewed by Abrar Rahman Protyasha and Richard Robinson.

* Source/WebKit/WebProcess/WebPage/Cocoa/UnifiedTextReplacementController.mm:
(WebKit::UnifiedTextReplacementController::textReplacementSessionDidReceiveTextWithReplacementRange):

Canonical link: https://commits.webkit.org/278287@main
  • Loading branch information
pxlcoder committed May 2, 2024
1 parent 065a0ff commit d1d9950
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
m_originalDocumentNodes.set(uuid, contents.returnValue()); // Deep clone.
}

RefPtr fragment = WebCore::createFragment(*document->frame(), attributedText.nsAttributedString().get(), { WebCore::FragmentCreationOptions::IgnoreResources, WebCore::FragmentCreationOptions::NoInterchangeNewlines });
RefPtr fragment = WebCore::createFragment(*document->frame(), attributedText.nsAttributedString().get(), { WebCore::FragmentCreationOptions::NoInterchangeNewlines });
if (!fragment) {
ASSERT_NOT_REACHED();
return;
Expand Down

0 comments on commit d1d9950

Please sign in to comment.