зеркало из https://github.com/mozilla/pjs.git
don't handle empty string from pref as valid background image; r=timeless, sr=jag; bug 207501
This commit is contained in:
Родитель
61059074b0
Коммит
aa7d697586
|
@ -2556,7 +2556,8 @@ function EditorSetDefaultPrefsAndDoctype()
|
|||
// Default image is independent of Custom colors???
|
||||
try {
|
||||
var background_image = gPrefs.getCharPref("editor.default_background_image");
|
||||
editor.setAttributeOrEquivalent(bodyelement, "background", background_image, true);
|
||||
if (background_image)
|
||||
editor.setAttributeOrEquivalent(bodyelement, "background", background_image, true);
|
||||
} catch (e) {dump("BACKGROUND EXCEPTION: "+e+"\n"); }
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче