зеркало из https://github.com/mozilla/pjs.git
bug 380912 - handle homepage urls with pipes properly when clicking 'get me out of here'. r=gavin
This commit is contained in:
Родитель
4c327b1d7e
Коммит
f7abd6c44c
|
@ -172,6 +172,10 @@ PROT_PhishMsgDisplayerBase.prototype.getMeOutOfHereUrl_ = function() {
|
|||
try {
|
||||
url = prefs.getComplexValue("browser.startup.homepage",
|
||||
Ci.nsIPrefLocalizedString).data;
|
||||
// If url is a pipe-delimited set of pages, just take the first one.
|
||||
// This will need to change once bug 221445 is fixed.
|
||||
if (url.indexOf("|") != -1)
|
||||
url = url.split("|")[0];
|
||||
} catch(e) {
|
||||
G_Debug(this, "Couldn't get homepage pref: " + e);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче