зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1364483 - Take customizemode attribute into account when saving tabs to disk. r=mikedeboer
This patch adds customizemode attribute data validation when saving tabs to disk. MozReview-Commit-ID: 2GFXpApi0iQ --HG-- extra : rebase_source : ce82001fbdabfda88621277fa750d60c8f1ccd6b
This commit is contained in:
Родитель
b9a37058c8
Коммит
2ad6b7785b
|
@ -4267,9 +4267,12 @@ var SessionStoreInternal = {
|
|||
* @returns boolean
|
||||
*/
|
||||
_shouldSaveTab: function ssi_shouldSaveTab(aTabState) {
|
||||
// If the tab has one of the following transient about: history entry,
|
||||
// then we don't actually want to write this tab's data to disk.
|
||||
// If the tab has one of the following transient about: history entry, no
|
||||
// userTypedValue, and no customizemode attribute, then we don't actually
|
||||
// want to write this tab's data to disk.
|
||||
return aTabState.userTypedValue ||
|
||||
(aTabState.attributes &&
|
||||
aTabState.attributes.customizemode == "true") ||
|
||||
(aTabState.entries.length &&
|
||||
!(aTabState.entries[0].url == "about:printpreview" ||
|
||||
aTabState.entries[0].url == "about:privatebrowsing"));
|
||||
|
|
Загрузка…
Ссылка в новой задаче