Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GLib] WebKitNavigationAction should tell whether it is a redirect
https://bugs.webkit.org/show_bug.cgi?id=178178 Source/WebKit: There is no good way to know whether a given navigation action has been caused by a redirect through the glib API. This is necessary to implement some app mode heuristics for Epiphany. Reviewed by Carlos Garcia Campos. * UIProcess/API/glib/WebKitNavigationAction.cpp: (webkit_navigation_action_is_redirect): returns whether the navigation action is a redirect. * UIProcess/API/glib/WebKitNavigationActionPrivate.h: add isRedirect to the wrapper object. (_WebKitNavigationAction::_WebKitNavigationAction): * UIProcess/API/gtk/WebKitNavigationAction.h: add the new API. * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: ditto. * UIProcess/API/wpe/WebKitNavigationAction.h: ditto. Tools: Test that WebKitNavigationAction properly reports being a redirect. Reviewed by Carlos Garcia Campos. * TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp: (testNavigationPolicy): test that loading /redirect leads to a redirect WebKitNavigationAction. (serverCallback): add a /redirect path to the server, which causes a redirect. Canonical link: https://commits.webkit.org/194496@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
74 additions
and
0 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
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