mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 17:38:36 +00:00
6674dad4a2
The preference key 'browser.newtab.url' is only supported for the browser, and undefined on all other targets; such as mobile or b2g. For those targets the function 'nsDocShell::ShouldAddToSessionHistory' warns about the missing key. This patch silences this warning by making Gecko return a default value of 'true' if the key is not present in the preferences.