Bug 1194208 - Remove storage inspector stores-reloaded event. r=mratcliffe

This commit is contained in:
Jarda Snajdr 2016-07-04 02:48:00 +02:00
parent f261560584
commit 7d691d831b
2 changed files with 3 additions and 9 deletions

View File

@ -539,10 +539,6 @@ StorageActors.createActor({
case "cleared":
this.storageActor.update("cleared", "cookies", hosts);
break;
case "reload":
this.storageActor.update("reloaded", "cookies", hosts);
break;
}
return null;
},
@ -2245,11 +2241,11 @@ let StorageActor = protocol.ActorClassWithSpec(specs.storageSpec, {
* Where host1, host2 are the host in which this change happened and
* [<store_namesX] is an array of the names of the changed store
* objects. Leave it empty if the host was completely removed.
* When the action is "reloaded" or "cleared", `data` is an array of
* hosts for which the stores were cleared or reloaded.
* When the action is "cleared", `data` is an array of
* hosts for which the stores were cleared.
*/
update(action, storeType, data) {
if (action == "cleared" || action == "reloaded") {
if (action == "cleared") {
let toSend = {};
toSend[storeType] = data;
events.emit(this, "stores-" + action, toSend);

View File

@ -49,8 +49,6 @@ interface nsIChannel;
* Note that the array could contain a single cookie.
* "cleared"
* the entire cookie list was cleared. the subject is null.
* "reload"
* the entire cookie list should be reloaded. the subject is null.
*
* topic : "cookie-rejected"
* broadcast whenever a cookie was rejected from being set as a