Bug 1643673 - Guard against a null default application. r=tkikuchi

Differential Revision: https://phabricator.services.mozilla.com/D78551
This commit is contained in:
Jared Wein 2020-06-05 18:19:12 +00:00
Родитель d9df44ffe5
Коммит ce7a61e0dc
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -94,7 +94,8 @@ nsMIMEInfoWin::LaunchWithFile(nsIFile* aFile) {
"nsMIMEInfoBase should have mClass == eMIMEInfo");
if (mPreferredAction == useSystemDefault) {
if (StaticPrefs::browser_pdf_launchDefaultEdgeAsApp()) {
if (mDefaultApplication &&
StaticPrefs::browser_pdf_launchDefaultEdgeAsApp()) {
// Since Edgium is the default PDF handler, if we're using the OS default
// and it's Edgium prefer it's app mode so it operates as a PDF viewer
// (without browser toolbars). Bug 1632277.