mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix panic in embedded-opener-remove-frame (#33122)
Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
parent
32a298f3a2
commit
91adf39de7
2 changed files with 3 additions and 2 deletions
|
@ -713,7 +713,9 @@ impl WindowMethods for Window {
|
||||||
fn SetOpener(&self, cx: JSContext, value: HandleValue) -> ErrorResult {
|
fn SetOpener(&self, cx: JSContext, value: HandleValue) -> ErrorResult {
|
||||||
// Step 1.
|
// Step 1.
|
||||||
if value.is_null() {
|
if value.is_null() {
|
||||||
self.window_proxy().disown();
|
if let Some(proxy) = self.window_proxy.get() {
|
||||||
|
proxy.disown();
|
||||||
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
// Step 2.
|
// Step 2.
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[embedded-opener-remove-frame.html]
|
[embedded-opener-remove-frame.html]
|
||||||
expected: CRASH
|
|
||||||
[opener of discarded nested browsing context]
|
[opener of discarded nested browsing context]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue