зеркало из https://github.com/mozilla/gecko-dev.git
Bug 617910 - Broken instanceof checks in head_cookies.js. r=sdwilsh
This commit is contained in:
Родитель
e14f4787b4
Коммит
2a722f49df
|
@ -398,7 +398,7 @@ CookieDatabaseConnection.prototype =
|
||||||
{
|
{
|
||||||
insertCookie: function(cookie)
|
insertCookie: function(cookie)
|
||||||
{
|
{
|
||||||
if (!cookie instanceof Cookie)
|
if (!(cookie instanceof Cookie))
|
||||||
do_throw("not a cookie");
|
do_throw("not a cookie");
|
||||||
|
|
||||||
switch (this.schema)
|
switch (this.schema)
|
||||||
|
@ -461,7 +461,7 @@ CookieDatabaseConnection.prototype =
|
||||||
|
|
||||||
deleteCookie: function(cookie)
|
deleteCookie: function(cookie)
|
||||||
{
|
{
|
||||||
if (!cookie instanceof Cookie)
|
if (!(cookie instanceof Cookie))
|
||||||
do_throw("not a cookie");
|
do_throw("not a cookie");
|
||||||
|
|
||||||
switch (this.db.schemaVersion)
|
switch (this.db.schemaVersion)
|
||||||
|
@ -487,7 +487,7 @@ CookieDatabaseConnection.prototype =
|
||||||
|
|
||||||
updateCookie: function(cookie)
|
updateCookie: function(cookie)
|
||||||
{
|
{
|
||||||
if (!cookie instanceof Cookie)
|
if (!(cookie instanceof Cookie))
|
||||||
do_throw("not a cookie");
|
do_throw("not a cookie");
|
||||||
|
|
||||||
switch (this.db.schemaVersion)
|
switch (this.db.schemaVersion)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче