mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Webdriver GoBack and GoForward commands wait for navigation complete (#37950)
After sending `GoBack` or `GoForward` command, webdriver wait for the navigation complete. It can be achieved by waiting for `WebViewDelegate::notify_history_changed` Testing: `tests/wpt/meta/webdriver/tests/classic/back/back.py` `tests/wpt/meta/webdriver/tests/classic/forward/forward.py` --------- Signed-off-by: batu_hoang <longvatrong111@gmail.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> Signed-off-by: batu_hoang <hoang.binh.trong@huawei.com> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
c817d7b9ce
commit
8e2d2bde6f
16 changed files with 114 additions and 40 deletions
|
@ -20,7 +20,7 @@ use base::cross_process_instant::CrossProcessInstant;
|
|||
use base::id::{MessagePortId, PipelineId, WebViewId};
|
||||
use embedder_traits::{
|
||||
CompositorHitTestResult, Cursor, InputEvent, JavaScriptEvaluationId, MediaSessionActionType,
|
||||
Theme, ViewportDetails, WebDriverCommandMsg, WebDriverCommandResponse,
|
||||
Theme, TraversalId, ViewportDetails, WebDriverCommandMsg, WebDriverCommandResponse,
|
||||
};
|
||||
pub use from_script_message::*;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
|
@ -48,7 +48,7 @@ pub enum EmbedderToConstellationMessage {
|
|||
/// Clear the network cache.
|
||||
ClearCache,
|
||||
/// Request to traverse the joint session history of the provided browsing context.
|
||||
TraverseHistory(WebViewId, TraversalDirection),
|
||||
TraverseHistory(WebViewId, TraversalDirection, TraversalId),
|
||||
/// Inform the Constellation that a `WebView`'s [`ViewportDetails`] have changed.
|
||||
ChangeViewportDetails(WebViewId, ViewportDetails, WindowSizeType),
|
||||
/// Inform the constellation of a theme change.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue