зеркало из https://github.com/mozilla/pjs.git
Bug 295582 Clean up after bug 281988 p=jklippl@xtux.org r=me sr=jag a=bsmedberg
This commit is contained in:
Родитель
364153f180
Коммит
f5564859bd
|
@ -1521,9 +1521,8 @@ var BookmarksUtils = {
|
|||
var name = "";
|
||||
var charset;
|
||||
try {
|
||||
var doc = new XPCNativeWrapper(webNav.document, "title", "characterSet");
|
||||
name = doc.title || url;
|
||||
charset = doc.characterSet;
|
||||
name = webNav.document.title || url;
|
||||
charset = webNav.document.characterSet;
|
||||
} catch (e) {
|
||||
name = url;
|
||||
}
|
||||
|
@ -1550,9 +1549,8 @@ var BookmarksUtils = {
|
|||
var url = aDocShell.currentURI.spec;
|
||||
var title, docCharset = null;
|
||||
try {
|
||||
var doc = new XPCNativeWrapper(aDocShell.document, "title", "characterSet");
|
||||
title = doc.title || url;
|
||||
docCharset = doc.characterSet;
|
||||
title = aDocShell.document.title || url;
|
||||
docCharset = aDocShell.document.characterSet;
|
||||
}
|
||||
catch (e) {
|
||||
title = url;
|
||||
|
|
Загрузка…
Ссылка в новой задаче