Bug 113372

Summary: PDFPlugin: Enable PDFPlugin only if its dependencies exist on the system
Product: WebKit Reporter: Tim Horton <thorton>
Component: PDFAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, webkit-ews
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch ap: review+, eflews.bot: commit-queue-

Tim Horton
Reported 2013-03-27 01:34:20 PDT
Otherwise, fall back to PDFViewController/etc. <rdar://problem/12685301>
Attachments
patch (2.20 KB, patch)
2013-03-27 01:37 PDT, Tim Horton
ap: review+
eflews.bot: commit-queue-
Tim Horton
Comment 1 2013-03-27 01:37:06 PDT
EFL EWS Bot
Comment 2 2013-03-27 01:44:08 PDT
Tim Horton
Comment 3 2013-03-27 01:44:52 PDT
Comment on attachment 195243 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=195243&action=review > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:42 > +#include "PDFKitImports.h" This needs #if PLATFORM(MAC) too.
Early Warning System Bot
Comment 4 2013-03-27 01:46:45 PDT
Alexey Proskuryakov
Comment 5 2013-03-27 08:48:40 PDT
Comment on attachment 195243 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=195243&action=review >> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:42 >> +#include "PDFKitImports.h" > > This needs #if PLATFORM(MAC) too. (probably in the file itself, not around the include) > Source/WebKit2/WebProcess/WebPage/WebPage.h:616 > + bool pdfPluginEnabled() const; It's not great that this function named as a simple accessor is no longer an accessor. Can we instead perform the check on setting m_pdfPluginEnabled?
Tim Horton
Comment 6 2013-03-27 10:58:22 PDT
(In reply to comment #5) > (From update of attachment 195243 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=195243&action=review > > >> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:42 > >> +#include "PDFKitImports.h" > > > > This needs #if PLATFORM(MAC) too. > > (probably in the file itself, not around the include) > > > Source/WebKit2/WebProcess/WebPage/WebPage.h:616 > > + bool pdfPluginEnabled() const; > > It's not great that this function named as a simple accessor is no longer an accessor. Can we instead perform the check on setting m_pdfPluginEnabled? Since checking for PDFLayerController existence requires soft-linking in PDFKit, which we previously only did when it was needed, it seems best to only link it in when we absolutely need the answer (about whether or not we have it), instead of when setting up preferences, no?
Alexey Proskuryakov
Comment 7 2013-03-27 11:34:11 PDT
Good point. I'm not sure what a better name would be.
Tim Horton
Comment 8 2013-03-27 11:36:28 PDT
(In reply to comment #7) > Good point. I'm not sure what a better name would be. Maybe I should have both pdfPluginEnabled and shouldUsePDFPlugin or something? Only the latter of which does the class check?
Tim Horton
Comment 9 2013-03-27 23:23:29 PDT
Note You need to log in before you can comment on or make changes to this bug.