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
parent d9df44ffe5
commit ce7a61e0dc

View File

@ -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.