mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
browser-plugin: Correct check for checking the hostname/protocol
While it's extremely unlikely that document.location would not be an object in the browser setting, this check is incorrect and we could possibly crash an NPAPI host if this is the case. https://bugzilla.gnome.org/show_bug.cgi?id=670489
This commit is contained in:
parent
c7a4b307af
commit
9400d8f6db
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ check_origin_and_protocol (NPP instance)
|
|||
&location))
|
||||
goto out;
|
||||
|
||||
if (!NPVARIANT_IS_OBJECT (document))
|
||||
if (!NPVARIANT_IS_OBJECT (location))
|
||||
goto out;
|
||||
|
||||
hostname = get_string_property (instance,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue