-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WKWebView.createWebArchiveDataWithCompletionHandler should actually r…
…espond with an error if there is no data https://bugs.webkit.org/show_bug.cgi?id=273667 rdar://127469660 Reviewed by Brady Eidson. This makes the API a little more ergonomic. I also add a call to launchInitialProcessIfNecessary and use the main frame if no frame is specified to prevent errors when the main frame hasn't been created yet or if the process hasn't been launched yet. * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView createWebArchiveDataWithCompletionHandler:]): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::getWebArchiveOfFrame): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::getWebArchiveOfFrame): * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/WebPage.messages.in: * Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm: (TestWebKitAPI::(WebArchive, CreateCustomScheme)): Canonical link: https://commits.webkit.org/278542@main
- Loading branch information
1 parent
806925c
commit 44201c4
Showing
6 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters