зеркало из https://github.com/mozilla/gecko-dev.git
Bug 958809 - Don't put broadcasted data into the regular TabStateCache r=yoric
From c4c69269516391beb36f362d76f3e440bb8cd50b Mon Sep 17 00:00:00 2001
This commit is contained in:
Родитель
adb698da95
Коммит
8af872bb5f
|
@ -295,12 +295,8 @@ let TabStateCacheInternal = {
|
|||
for (let key of Object.keys(newData)) {
|
||||
let value = newData[key];
|
||||
if (value === null) {
|
||||
// Remove the field if the value is null.
|
||||
this.removeField(browser, key);
|
||||
delete data[key];
|
||||
} else {
|
||||
// Update the field otherwise.
|
||||
this.updateField(browser, key, value);
|
||||
data[key] = value;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче