mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-10 17:10:55 +01:00
Use the same PDF plugin name as official Chrome
This commit is contained in:
parent
3b5fb0d526
commit
b89329b0fa
@ -26,7 +26,10 @@ const char kPdfResourceIdentifier[] = "google-chrome-pdf";
|
|||||||
const char kPdfResourceIdentifier[] = "chromium-pdf";
|
const char kPdfResourceIdentifier[] = "chromium-pdf";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char kPdfPluginName[] = "Chromium PDF Viewer";
|
// Match the GOOGLE_CHROME_BUILD value from ChromeContentClient::kPDFPluginName
|
||||||
|
// to avoid breaking Websites that specifically look for this string in the
|
||||||
|
// plugin list.
|
||||||
|
const char kPdfPluginName[] = "Chrome PDF Viewer";
|
||||||
|
|
||||||
std::string GetManifest() {
|
std::string GetManifest() {
|
||||||
std::string manifest_contents =
|
std::string manifest_contents =
|
||||||
|
@ -233,7 +233,7 @@ class PluginTestHandler : public RoutingTestHandler,
|
|||||||
void WaitForNavigatorPlugins(CefRefPtr<CefFrame> frame) const {
|
void WaitForNavigatorPlugins(CefRefPtr<CefFrame> frame) const {
|
||||||
// Test if the `navigator.plugins` list includes the PDF extension.
|
// Test if the `navigator.plugins` list includes the PDF extension.
|
||||||
const std::string& code =
|
const std::string& code =
|
||||||
" if (navigator.plugins['Chromium PDF Viewer'].filename == "
|
" if (navigator.plugins['Chrome PDF Viewer'].filename == "
|
||||||
" 'mhjfbmdgcfjbbpaeojofohoefgiehjai') {"
|
" 'mhjfbmdgcfjbbpaeojofohoefgiehjai') {"
|
||||||
" window.testQuery({request:'pdf_plugin_found'});"
|
" window.testQuery({request:'pdf_plugin_found'});"
|
||||||
"} else {"
|
"} else {"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user