ThisĮnabled extensions (because there is no extensions install verification)Īnd it ends up being picked as a handler for PDFs. On the value of kPluginsAlwaysOpenPdfExternally profile preference inĪdds/removes PDFJS component when the value changes.Ĭhrome/browser/plugins/plugin_ to use the alternative call. Setting does work, as expected (prompts download), in Chromium Browser version: home/alabamavtec/.config/BraveSoftware/Brave-Browser/Default` usr/bin/brave-browser -enable-tab-audio-muting -disable-domain-reliability -disable-chrome-google-url-tracking-client -no-pings -enable-features=EnableEmojiContextMenu,DesktopPWAWindowing,fill-on-account-select,NewExtensionUpdaterService -disable-features=SharedArrayBuffer,DefaultEnableOopRasterization,VizDispla圜ompositor,AutofillSaveCardSignInAfterLocalSave,kAutofillServerCommunication -flag-switches-begin -flag-switches-end The command line switch to not load PDFJS already applies to all profileĪdds a browser test to check that when the preference is set to alwaysĭownload, a download is initiated when navigating to a pdf url.Īlso reproducible on Ubuntu 18.10 (64-bit): `BraveĠ.56.15 Chromium. Note, that this fix doesn't address being able to turn off opening PDFs If our PDFJS extension isĭisabled via command line, this causes a PDF not being displayed or Is done because on Linux that extension is not removed from profileĮxtensions (because there is no extensions install verification) and itĮnds up being picked as a handler for PDFs. Adds an alternative call for whitelisted extensions inĮxtensions/common/manifest_handlers/mime_types_handler.h that removesĬhrome's PDF Extension ID from whitelisted IDs and patchesĬhrome/browser/plugins/plugin_ to use the alternative all. If the PDFJS extension is disabled from the command line the option toĭownload PDF files instead of opening them in Brave is set to ON and theĤ. Modifies js behind the chrome://settings/content/pdfDocuments so that Watches profile preference value kPluginsAlwaysOpenPdfExternally andĪdds/removes PDFJS extension when the value changes.ģ. On the value of kPluginsAlwaysOpenPdfExternally profile preference.Ģ. Makes the initial decision on whether to load PDFJS extension based
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |