mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 874900 - Add a null-check in BrowserElementChild's observe() function. r=ehsan
This fixes benign JS exceptions thrown here.
This commit is contained in:
parent
fc522869fc
commit
2c7d68e8fb
@ -264,8 +264,9 @@ BrowserElementChild.prototype = {
|
||||
},
|
||||
|
||||
observe: function(subject, topic, data) {
|
||||
// Ignore notifications not about our document.
|
||||
if (subject != content.document)
|
||||
// Ignore notifications not about our document. (Note that |content| /can/
|
||||
// be null; see bug 874900.)
|
||||
if (!content || subject != content.document)
|
||||
return;
|
||||
switch (topic) {
|
||||
case 'fullscreen-origin-change':
|
||||
|
Loading…
Reference in New Issue
Block a user