mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2ger
Fixes #5112, #3960
This commit is contained in:
commit
67548a6244
3 changed files with 7 additions and 7 deletions
|
@ -244,7 +244,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
|
|||
let browser_context = browser_context.as_ref().unwrap();
|
||||
let active_document = browser_context.active_document().root();
|
||||
|
||||
if self.clone() != active_document.r() {
|
||||
if self != active_document.r() {
|
||||
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