зеркало из https://github.com/mozilla/pjs.git
Bug 229903 remove bogus QueryInterface methods from bookmarks.js r=pch sr=dbaron
This commit is contained in:
Родитель
f5d951360d
Коммит
7b5981207c
|
@ -1599,12 +1599,21 @@ BookmarkTransaction.prototype = {
|
||||||
if (this.item.length > this.BATCH_LIMIT) {
|
if (this.item.length > this.BATCH_LIMIT) {
|
||||||
this.BMDS.endUpdateBatch();
|
this.BMDS.endUpdateBatch();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// nsITransaction method stubs
|
||||||
|
doTransaction: function() {},
|
||||||
|
undoTransaction: function() {},
|
||||||
|
redoTransaction: function() { this.doTransaction(); },
|
||||||
|
get isTransient() { return false; },
|
||||||
|
merge: function(aTransaction) { return false; },
|
||||||
|
|
||||||
|
// debugging helper
|
||||||
|
get wrappedJSObject() { return this; }
|
||||||
}
|
}
|
||||||
|
|
||||||
function BookmarkInsertTransaction (aAction)
|
function BookmarkInsertTransaction (aAction)
|
||||||
{
|
{
|
||||||
this.wrappedJSObject = this;
|
|
||||||
this.type = "insert";
|
this.type = "insert";
|
||||||
this.action = aAction;
|
this.action = aAction;
|
||||||
this.item = null;
|
this.item = null;
|
||||||
|
@ -1617,8 +1626,6 @@ BookmarkInsertTransaction.prototype =
|
||||||
{
|
{
|
||||||
__proto__: BookmarkTransaction.prototype,
|
__proto__: BookmarkTransaction.prototype,
|
||||||
|
|
||||||
isTransient: false,
|
|
||||||
|
|
||||||
doTransaction: function ()
|
doTransaction: function ()
|
||||||
{
|
{
|
||||||
this.beginUpdateBatch();
|
this.beginUpdateBatch();
|
||||||
|
@ -1643,24 +1650,12 @@ BookmarkInsertTransaction.prototype =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.endUpdateBatch();
|
this.endUpdateBatch();
|
||||||
},
|
}
|
||||||
|
|
||||||
redoTransaction: function ()
|
|
||||||
{
|
|
||||||
this.doTransaction();
|
|
||||||
},
|
|
||||||
|
|
||||||
merge : function (aTransaction) {return false},
|
|
||||||
QueryInterface : function (aUID) {return this},
|
|
||||||
getHelperForLanguage: function (aCount) {return null},
|
|
||||||
getInterfaces : function (aCount) {return null},
|
|
||||||
canCreateWrapper : function (aIID) {return "AllAccess"}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function BookmarkRemoveTransaction (aAction)
|
function BookmarkRemoveTransaction (aAction)
|
||||||
{
|
{
|
||||||
this.wrappedJSObject = this;
|
|
||||||
this.type = "remove";
|
this.type = "remove";
|
||||||
this.action = aAction;
|
this.action = aAction;
|
||||||
this.item = null;
|
this.item = null;
|
||||||
|
@ -1673,8 +1668,6 @@ BookmarkRemoveTransaction.prototype =
|
||||||
{
|
{
|
||||||
__proto__: BookmarkTransaction.prototype,
|
__proto__: BookmarkTransaction.prototype,
|
||||||
|
|
||||||
isTransient: false,
|
|
||||||
|
|
||||||
doTransaction: function ()
|
doTransaction: function ()
|
||||||
{
|
{
|
||||||
this.beginUpdateBatch();
|
this.beginUpdateBatch();
|
||||||
|
@ -1697,24 +1690,12 @@ BookmarkRemoveTransaction.prototype =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.endUpdateBatch();
|
this.endUpdateBatch();
|
||||||
},
|
}
|
||||||
|
|
||||||
redoTransaction: function ()
|
|
||||||
{
|
|
||||||
this.doTransaction();
|
|
||||||
},
|
|
||||||
|
|
||||||
merge : function (aTransaction) {return false},
|
|
||||||
QueryInterface : function (aUID) {return this},
|
|
||||||
getHelperForLanguage: function (aCount) {return null},
|
|
||||||
getInterfaces : function (aCount) {return null},
|
|
||||||
canCreateWrapper : function (aIID) {return "AllAccess"}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function BookmarkMoveTransaction (aAction, aSelection, aTarget)
|
function BookmarkMoveTransaction (aAction, aSelection, aTarget)
|
||||||
{
|
{
|
||||||
this.wrappedJSObject = this;
|
|
||||||
this.type = "move";
|
this.type = "move";
|
||||||
this.action = aAction;
|
this.action = aAction;
|
||||||
this.selection = aSelection;
|
this.selection = aSelection;
|
||||||
|
@ -1726,8 +1707,6 @@ BookmarkMoveTransaction.prototype =
|
||||||
{
|
{
|
||||||
__proto__: BookmarkTransaction.prototype,
|
__proto__: BookmarkTransaction.prototype,
|
||||||
|
|
||||||
isTransient: false,
|
|
||||||
|
|
||||||
beginUpdateBatch: function()
|
beginUpdateBatch: function()
|
||||||
{
|
{
|
||||||
if (this.selection.length > this.BATCH_LIMIT) {
|
if (this.selection.length > this.BATCH_LIMIT) {
|
||||||
|
@ -1750,19 +1729,12 @@ BookmarkMoveTransaction.prototype =
|
||||||
this.endUpdateBatch();
|
this.endUpdateBatch();
|
||||||
},
|
},
|
||||||
|
|
||||||
undoTransaction : function () {},
|
redoTransaction : function () {}
|
||||||
redoTransaction : function () {},
|
|
||||||
merge : function (aTransaction) {return false},
|
|
||||||
QueryInterface : function (aUID) {return this},
|
|
||||||
getHelperForLanguage: function (aCount) {return null},
|
|
||||||
getInterfaces : function (aCount) {return null},
|
|
||||||
canCreateWrapper : function (aIID) {return "AllAccess"}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function BookmarkImportTransaction (aAction)
|
function BookmarkImportTransaction (aAction)
|
||||||
{
|
{
|
||||||
this.wrappedJSObject = this;
|
|
||||||
this.type = "import";
|
this.type = "import";
|
||||||
this.action = aAction;
|
this.action = aAction;
|
||||||
this.item = [];
|
this.item = [];
|
||||||
|
@ -1775,12 +1747,6 @@ BookmarkImportTransaction.prototype =
|
||||||
{
|
{
|
||||||
__proto__: BookmarkTransaction.prototype,
|
__proto__: BookmarkTransaction.prototype,
|
||||||
|
|
||||||
isTransient: false,
|
|
||||||
|
|
||||||
doTransaction: function ()
|
|
||||||
{
|
|
||||||
},
|
|
||||||
|
|
||||||
undoTransaction: function ()
|
undoTransaction: function ()
|
||||||
{
|
{
|
||||||
this.beginUpdateBatch();
|
this.beginUpdateBatch();
|
||||||
|
@ -1803,12 +1769,6 @@ BookmarkImportTransaction.prototype =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.endUpdateBatch();
|
this.endUpdateBatch();
|
||||||
},
|
}
|
||||||
|
|
||||||
merge : function (aTransaction) {return false},
|
|
||||||
QueryInterface : function (aUID) {return this},
|
|
||||||
getHelperForLanguage: function (aCount) {return null},
|
|
||||||
getInterfaces : function (aCount) {return null},
|
|
||||||
canCreateWrapper : function (aIID) {return "AllAccess"}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче