Bug 617910 - Broken instanceof checks in head_cookies.js. r=sdwilsh

This commit is contained in:
Dão Gottwald 2010-12-09 20:10:30 +01:00
Родитель e14f4787b4
Коммит 2a722f49df
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -398,7 +398,7 @@ CookieDatabaseConnection.prototype =
{
insertCookie: function(cookie)
{
if (!cookie instanceof Cookie)
if (!(cookie instanceof Cookie))
do_throw("not a cookie");
switch (this.schema)
@ -461,7 +461,7 @@ CookieDatabaseConnection.prototype =
deleteCookie: function(cookie)
{
if (!cookie instanceof Cookie)
if (!(cookie instanceof Cookie))
do_throw("not a cookie");
switch (this.db.schemaVersion)
@ -487,7 +487,7 @@ CookieDatabaseConnection.prototype =
updateCookie: function(cookie)
{
if (!cookie instanceof Cookie)
if (!(cookie instanceof Cookie))
do_throw("not a cookie");
switch (this.db.schemaVersion)