mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1008450 - Bail on _findIterator when we lack a body node. r=mikedeboer
This commit is contained in:
parent
0fe2edac9f
commit
c5d02a1e51
@ -358,6 +358,9 @@ Finder.prototype = {
|
||||
let body = (doc instanceof Ci.nsIDOMHTMLDocument && doc.body) ?
|
||||
doc.body : doc.documentElement;
|
||||
|
||||
if (!body)
|
||||
return;
|
||||
|
||||
let searchRange = doc.createRange();
|
||||
searchRange.selectNodeContents(body);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user