mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Added a timeout to SetWindowSize.
This commit is contained in:
parent
e2203f81d3
commit
3962ffc501
4 changed files with 22 additions and 11 deletions
|
@ -293,7 +293,7 @@ impl<'a> Iterator for FrameTreeIterator<'a> {
|
|||
|
||||
struct WebDriverData {
|
||||
load_channel: Option<(PipelineId, IpcSender<webdriver_msg::LoadStatus>)>,
|
||||
resize_channel: Option<IpcSender<WindowSizeData>>,
|
||||
resize_channel: Option<IpcSender<Option<WindowSizeData>>>,
|
||||
}
|
||||
|
||||
impl WebDriverData {
|
||||
|
@ -1713,7 +1713,7 @@ impl<LTF: LayoutThreadFactory, STF: ScriptThreadFactory> Constellation<LTF, STF>
|
|||
}
|
||||
|
||||
if let Some(resize_channel) = self.webdriver.resize_channel.take() {
|
||||
let _ = resize_channel.send(new_size);
|
||||
let _ = resize_channel.send(Some(new_size));
|
||||
}
|
||||
|
||||
self.window_size = new_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue