mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb+LibWebView+WebContent: Remove now-unused history change IPC
This commit is contained in:
parent
6eb2052d40
commit
9c608b46fd
Notes:
sideshowbarker
2024-07-16 20:12:13 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/9c608b46fd Pull-request: https://github.com/SerenityOS/serenity/pull/23965 Issue: https://github.com/SerenityOS/serenity/issues/23961
8 changed files with 0 additions and 29 deletions
|
@ -9,7 +9,6 @@
|
|||
#include <LibWeb/HTML/History.h>
|
||||
#include <LibWeb/HTML/StructuredSerialize.h>
|
||||
#include <LibWeb/HTML/TraversableNavigable.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -213,11 +212,6 @@ WebIDL::ExceptionOr<void> History::shared_history_push_replace_state(JS::Value d
|
|||
// and classicHistoryAPIState set to serializedData.
|
||||
// FIXME: 9. If continue is false, then return.
|
||||
|
||||
auto navigable = document->navigable();
|
||||
if (navigable->is_top_level_traversable()) {
|
||||
navigable->active_browsing_context()->page().client().page_did_history_api_push_or_replace(new_url, history_handling);
|
||||
}
|
||||
|
||||
// 10. Run the URL and history update steps given document and newURL, with serializedData set to
|
||||
// serializedData and historyHandling set to historyHandling.
|
||||
perform_url_and_history_update_steps(document, new_url, serialized_data, history_handling);
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include <LibWeb/HTML/AudioPlayState.h>
|
||||
#include <LibWeb/HTML/ColorPickerUpdateState.h>
|
||||
#include <LibWeb/HTML/FileFilter.h>
|
||||
#include <LibWeb/HTML/HistoryHandlingBehavior.h>
|
||||
#include <LibWeb/HTML/SelectItem.h>
|
||||
#include <LibWeb/HTML/TokenizedFeatures.h>
|
||||
#include <LibWeb/HTML/WebViewHints.h>
|
||||
|
@ -266,7 +265,6 @@ public:
|
|||
virtual void page_did_change_active_document_in_top_level_browsing_context(Web::DOM::Document&) { }
|
||||
virtual void page_did_destroy_document(Web::DOM::Document&) { }
|
||||
virtual void page_did_finish_loading(URL::URL const&) { }
|
||||
virtual void page_did_history_api_push_or_replace(URL::URL const&, Web::HTML::HistoryHandlingBehavior) { }
|
||||
virtual void page_did_request_cursor_change(Gfx::StandardCursor) { }
|
||||
virtual void page_did_request_context_menu(CSSPixelPoint) { }
|
||||
virtual void page_did_request_link_context_menu(CSSPixelPoint, URL::URL const&, [[maybe_unused]] ByteString const& target, [[maybe_unused]] unsigned modifiers) { }
|
||||
|
|
|
@ -146,7 +146,6 @@ public:
|
|||
Function<void(URL::URL const&)> on_url_change;
|
||||
Function<void(URL::URL const&, bool)> on_load_start;
|
||||
Function<void(URL::URL const&)> on_load_finish;
|
||||
Function<void(URL::URL const&, Web::HTML::HistoryHandlingBehavior)> on_history_api_push_or_replace;
|
||||
Function<void(ByteString const& path, i32)> on_request_file;
|
||||
Function<void()> on_navigate_back;
|
||||
Function<void()> on_navigate_forward;
|
||||
|
|
|
@ -66,16 +66,6 @@ void WebContentClient::did_finish_loading(u64 page_id, URL::URL const& url)
|
|||
}
|
||||
}
|
||||
|
||||
void WebContentClient::did_history_api_push_or_replace(u64 page_id, URL::URL const& url, Web::HTML::HistoryHandlingBehavior history_behavior)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
view->set_url({}, url);
|
||||
|
||||
if (view->on_history_api_push_or_replace)
|
||||
view->on_history_api_push_or_replace(url, history_behavior);
|
||||
}
|
||||
}
|
||||
|
||||
void WebContentClient::did_finish_text_test(u64 page_id)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <LibIPC/ConnectionToServer.h>
|
||||
#include <LibWeb/HTML/ActivateTab.h>
|
||||
#include <LibWeb/HTML/FileFilter.h>
|
||||
#include <LibWeb/HTML/HistoryHandlingBehavior.h>
|
||||
#include <LibWeb/HTML/SelectItem.h>
|
||||
#include <LibWeb/HTML/WebViewHints.h>
|
||||
#include <WebContent/WebContentClientEndpoint.h>
|
||||
|
@ -40,7 +39,6 @@ private:
|
|||
virtual void notify_process_information(WebView::ProcessHandle const&) override;
|
||||
virtual void did_paint(u64 page_id, Gfx::IntRect const&, i32) override;
|
||||
virtual void did_finish_loading(u64 page_id, URL::URL const&) override;
|
||||
virtual void did_history_api_push_or_replace(u64 page_id, URL::URL const& url, Web::HTML::HistoryHandlingBehavior history_behavior) override;
|
||||
virtual void did_request_navigate_back(u64 page_id) override;
|
||||
virtual void did_request_navigate_forward(u64 page_id) override;
|
||||
virtual void did_request_refresh(u64 page_id) override;
|
||||
|
|
|
@ -376,11 +376,6 @@ void PageClient::page_did_finish_loading(URL::URL const& url)
|
|||
client().async_did_finish_loading(m_id, url);
|
||||
}
|
||||
|
||||
void PageClient::page_did_history_api_push_or_replace(URL::URL const& url, Web::HTML::HistoryHandlingBehavior history_behavior)
|
||||
{
|
||||
client().async_did_history_api_push_or_replace(m_id, url, history_behavior);
|
||||
}
|
||||
|
||||
void PageClient::page_did_finish_text_test()
|
||||
{
|
||||
client().async_did_finish_text_test(m_id);
|
||||
|
|
|
@ -121,7 +121,6 @@ private:
|
|||
virtual void page_did_change_active_document_in_top_level_browsing_context(Web::DOM::Document&) override;
|
||||
virtual void page_did_destroy_document(Web::DOM::Document&) override;
|
||||
virtual void page_did_finish_loading(URL::URL const&) override;
|
||||
virtual void page_did_history_api_push_or_replace(URL::URL const&, Web::HTML::HistoryHandlingBehavior) override;
|
||||
virtual void page_did_request_alert(String const&) override;
|
||||
virtual void page_did_request_confirm(String const&) override;
|
||||
virtual void page_did_request_prompt(String const&, String const&) override;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <LibWeb/HTML/ActivateTab.h>
|
||||
#include <LibWeb/HTML/AudioPlayState.h>
|
||||
#include <LibWeb/HTML/FileFilter.h>
|
||||
#include <LibWeb/HTML/HistoryHandlingBehavior.h>
|
||||
#include <LibWeb/HTML/SelectedFile.h>
|
||||
#include <LibWeb/HTML/SelectItem.h>
|
||||
#include <LibWeb/HTML/WebViewHints.h>
|
||||
|
@ -23,7 +22,6 @@ endpoint WebContentClient
|
|||
|
||||
did_start_loading(u64 page_id, URL::URL url, bool is_redirect) =|
|
||||
did_finish_loading(u64 page_id, URL::URL url) =|
|
||||
did_history_api_push_or_replace(u64 page_id, URL::URL url, Web::HTML::HistoryHandlingBehavior history_behavior) =|
|
||||
did_request_navigate_back(u64 page_id) =|
|
||||
did_request_navigate_forward(u64 page_id) =|
|
||||
did_request_refresh(u64 page_id) =|
|
||||
|
|
Loading…
Reference in a new issue