mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777490 - Only dereference body after checking to see if body is null. r=gavin
This commit is contained in:
parent
a832fde353
commit
7d608a648e
@ -348,7 +348,7 @@ var SocialToolbar = {
|
||||
let doc = notifBrowser.contentDocument;
|
||||
// "notif" is an implementation detail that we should get rid of
|
||||
// eventually
|
||||
let body = doc.getElementById("notif") || doc.body.firstChild;
|
||||
let body = doc.getElementById("notif") || (doc.body && doc.body.firstChild);
|
||||
if (!body)
|
||||
return;
|
||||
let h = body.scrollHeight > 0 ? body.scrollHeight : 300;
|
||||
|
Loading…
Reference in New Issue
Block a user