mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1253236 - Reuse element.isXULElement; r=automatedtester
MozReview-Commit-ID: 7P02xsSLuCl
This commit is contained in:
parent
949f6d94b5
commit
33219f7083
@ -818,10 +818,8 @@ element.inViewport = function(el, x = undefined, y = undefined) {
|
||||
element.isVisible = function(el, x = undefined, y = undefined) {
|
||||
let win = el.ownerDocument.defaultView;
|
||||
|
||||
// Bug 1094246: Webdriver's isShown doesn't work with content xul
|
||||
let ns = atom.getElementAttribute(el, "namespaceURI", win);
|
||||
if (ns.indexOf("there.is.only.xul") < 0 &&
|
||||
!atom.isElementDisplayed(el, win)) {
|
||||
// Bug 1094246: webdriver's isShown doesn't work with content xul
|
||||
if (!element.isXULElement(el) && !atom.isElementDisplayed(el, win)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user