mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Backed out changeset bcec28b46718 (bug 1163745)
This commit is contained in:
parent
ddafaf7012
commit
6450ad809c
@ -61,9 +61,7 @@ let TabAttributesInternal = {
|
||||
|
||||
// Set attributes.
|
||||
for (let name in data) {
|
||||
if (!this._skipAttrs.has(name)) {
|
||||
tab.setAttribute(name, data[name]);
|
||||
}
|
||||
tab.setAttribute(name, data[name]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -36,8 +36,7 @@ add_task(function* test() {
|
||||
// Make sure we're backwards compatible and restore old 'image' attributes.
|
||||
let state = {
|
||||
entries: [{url: "about:mozilla"}],
|
||||
attributes: {custom: "foobaz"},
|
||||
image: gBrowser.getIcon(tab)
|
||||
attributes: {custom: "foobaz", image: gBrowser.getIcon(tab)}
|
||||
};
|
||||
|
||||
// Prepare a pending tab waiting to be restored.
|
||||
@ -46,8 +45,7 @@ add_task(function* test() {
|
||||
yield promise;
|
||||
|
||||
ok(tab.hasAttribute("pending"), "tab is pending");
|
||||
is(gBrowser.getIcon(tab), state.image, "tab has correct icon");
|
||||
ok(!state.attributes.image, "'image' attribute not saved");
|
||||
is(gBrowser.getIcon(tab), state.attributes.image, "tab has correct icon");
|
||||
|
||||
// Let the pending tab load.
|
||||
gBrowser.selectedTab = tab;
|
||||
|
Loading…
x
Reference in New Issue
Block a user