Skip to content

Commit

Permalink
Disable link preload when sanitizing web content
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=258100
rdar://109675198

Reviewed by Chris Dumez.

Otherwise we get a request in the network process with an invalid pageID,
and it MESSAGE_CHECKs and terminates the process.

* Source/WebCore/editing/markup.cpp:
(WebCore::createPageForSanitizingWebContent):

Canonical link: https://commits.webkit.org/259548.830@safari-7615-branch
  • Loading branch information
achristensen07 authored and johnwilander committed Jun 15, 2023
1 parent fb69567 commit 9cd4491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/WebCore/editing/markup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ std::unique_ptr<Page> createPageForSanitizingWebContent()
page->settings().setHTMLParserScriptingFlagPolicy(HTMLParserScriptingFlagPolicy::Enabled);
page->settings().setPluginsEnabled(false);
page->settings().setAcceleratedCompositingEnabled(false);
page->settings().setLinkPreloadEnabled(false);

Frame& frame = page->mainFrame();
frame.setView(FrameView::create(frame, IntSize { 800, 600 }));
Expand Down

0 comments on commit 9cd4491

Please sign in to comment.