---------

**Commit 1:**
Bug #8063 Safari crash in private browsing mode

Catch the crash and display a more useful error message to the user
about a work around.

* Original sha: 7dbb786dcd
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-16T19:15:43Z

**Commit 2:**
Merge branch 'master' of https://github.com/elastic/kibana into bug/8063/no-safari-crash

* Original sha: 85786666a9
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T13:27:21Z

**Commit 3:**
Merge remote-tracking branch 'elastic/master' into bug/8063/no-safari-crash

* Original sha: f29b60a9aa
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T20:23:07Z

**Commit 4:**
Clean up error message a tad

* Original sha: 36e298d957
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T20:34:21Z
This commit is contained in:
Elastic Jasper 2016-09-19 17:03:50 -04:00
parent c4f6c2d17d
commit ea4fafe3dd

View file

@ -8,6 +8,17 @@ module.exports = function (chrome, internals) {
}
internals.appUrlStore = internals.appUrlStore || window.sessionStorage;
try {
const verifySessionStorage = 'verify sessionStorage';
internals.appUrlStore.setItem(verifySessionStorage, 1);
internals.appUrlStore.removeItem(verifySessionStorage);
} catch (error) {
throw new Error(
'Kibana requires access to sessionStorage, and it looks like ' +
'your browser is restricting it. If you\'re ' +
'using Safari with private browsing enabled, you can solve this ' +
'problem by disabling private browsing, or by using another browser.');
}
/**
* ui/chrome apps API
@ -50,6 +61,4 @@ module.exports = function (chrome, internals) {
chrome.setLastUrlFor = function (appId, url) {
internals.appUrlStore.setItem(`appLastUrl:${appId}`, url);
};
};