mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Return a reference in BrowserContext::active_document()
This commit is contained in:
parent
6c7f37061b
commit
1f31d5b856
3 changed files with 5 additions and 6 deletions
|
@ -254,7 +254,7 @@ impl Document {
|
|||
let browsing_context = browsing_context.as_ref().unwrap();
|
||||
let active_document = browsing_context.active_document();
|
||||
|
||||
if self != active_document.r() {
|
||||
if self != active_document {
|
||||
return false;
|
||||
}
|
||||
// FIXME: It should also check whether the browser context is top-level or not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue