mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Don't return window proxy if it has been discarded
This commit is contained in:
parent
3f2d747689
commit
79f3237692
3 changed files with 11 additions and 16 deletions
|
@ -406,7 +406,7 @@ impl Document {
|
|||
#[inline]
|
||||
pub fn browsing_context(&self) -> Option<Root<WindowProxy>> {
|
||||
if self.has_browsing_context {
|
||||
self.window.maybe_window_proxy()
|
||||
self.window.undiscarded_window_proxy()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue