diff --git a/resources/panel.html b/resources/panel.html index 3a6dd983..91862b0a 100644 --- a/resources/panel.html +++ b/resources/panel.html @@ -4,9 +4,9 @@ - -
diff --git a/src/webview.rs b/src/webview.rs index 8d2c7fe6..bcdafb3b 100644 --- a/src/webview.rs +++ b/src/webview.rs @@ -1,9 +1,13 @@ use arboard::Clipboard; -use base::id::{PipelineNamespace, PipelineNamespaceId, WebViewId}; +use base::id::{BrowsingContextId, PipelineNamespace, PipelineNamespaceId, WebViewId}; use compositing_traits::ConstellationMsg; use crossbeam_channel::Sender; use embedder_traits::{CompositorEventVariant, EmbedderMsg, PromptDefinition}; -use script_traits::TraversalDirection; +use ipc_channel::ipc; +use script_traits::{ + webdriver_msg::{WebDriverJSResult, WebDriverScriptCommand}, + TraversalDirection, WebDriverCommandMsg, +}; use servo_url::ServoUrl; use url::Url; use webrender_api::units::DeviceIntRect; @@ -119,6 +123,23 @@ impl Window { } } } + EmbedderMsg::HistoryChanged(list, index) => { + let url = list.get(index).unwrap(); + if let Some(panel) = self.panel.as_ref() { + let (tx, rx) = ipc::channel::