Use the same PDF plugin name as official Chrome

This commit is contained in:
Marshall Greenblatt
2016-08-24 16:25:11 +03:00
parent 3b5fb0d526
commit b89329b0fa
2 changed files with 5 additions and 2 deletions

View File

@ -233,7 +233,7 @@ class PluginTestHandler : public RoutingTestHandler,
void WaitForNavigatorPlugins(CefRefPtr<CefFrame> frame) const {
// Test if the `navigator.plugins` list includes the PDF extension.
const std::string& code =
" if (navigator.plugins['Chromium PDF Viewer'].filename == "
" if (navigator.plugins['Chrome PDF Viewer'].filename == "
" 'mhjfbmdgcfjbbpaeojofohoefgiehjai') {"
" window.testQuery({request:'pdf_plugin_found'});"
"} else {"