mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
webdriver: Port WebDriverLoadStatus to Generic Channel (#38915)
Ports the channel for WebDriverLoadStatus to GenericChannel. Testing: No functional changes - Covered by existing webdriver tests Part of #38912 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
4a19f66c31
commit
ebf8a35c84
6 changed files with 37 additions and 26 deletions
|
@ -326,7 +326,7 @@ pub(crate) struct Window {
|
|||
|
||||
/// A channel to notify webdriver if there is a navigation
|
||||
#[no_trace]
|
||||
webdriver_load_status_sender: RefCell<Option<IpcSender<WebDriverLoadStatus>>>,
|
||||
webdriver_load_status_sender: RefCell<Option<GenericSender<WebDriverLoadStatus>>>,
|
||||
|
||||
/// The current state of the window object
|
||||
current_state: Cell<WindowState>,
|
||||
|
@ -2863,7 +2863,7 @@ impl Window {
|
|||
|
||||
pub(crate) fn set_webdriver_load_status_sender(
|
||||
&self,
|
||||
sender: Option<IpcSender<WebDriverLoadStatus>>,
|
||||
sender: Option<GenericSender<WebDriverLoadStatus>>,
|
||||
) {
|
||||
*self.webdriver_load_status_sender.borrow_mut() = sender;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue