mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Ensure we get the post-redirect url
This commit is contained in:
parent
2a701cc339
commit
f44470ef52
6 changed files with 14 additions and 7 deletions
|
@ -336,7 +336,6 @@ impl MozBrowserEvent {
|
|||
#[derive(Deserialize, Serialize)]
|
||||
pub enum WebDriverCommandMsg {
|
||||
LoadUrl(PipelineId, LoadData, IpcSender<LoadStatus>),
|
||||
GetUrl(PipelineId, IpcSender<Url>),
|
||||
Refresh(PipelineId, IpcSender<LoadStatus>),
|
||||
ScriptCommand(PipelineId, WebDriverScriptCommand),
|
||||
TakeScreenshot(PipelineId, IpcSender<Option<Image>>)
|
||||
|
|
|
@ -6,6 +6,7 @@ use constellation_msg::{PipelineId, SubpageId};
|
|||
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use rustc_serialize::json::{Json, ToJson};
|
||||
use url::Url;
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum WebDriverScriptCommand {
|
||||
|
@ -17,6 +18,7 @@ pub enum WebDriverScriptCommand {
|
|||
GetElementTagName(String, IpcSender<Result<String, ()>>),
|
||||
GetElementText(String, IpcSender<Result<String, ()>>),
|
||||
GetFrameId(WebDriverFrameId, IpcSender<Result<Option<(PipelineId, SubpageId)>, ()>>),
|
||||
GetUrl(IpcSender<Url>),
|
||||
GetTitle(IpcSender<String>)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue