Modified: trunk/Source/WebKit2/ChangeLog (153878 => 153879)
--- trunk/Source/WebKit2/ChangeLog 2013-08-09 09:04:51 UTC (rev 153878)
+++ trunk/Source/WebKit2/ChangeLog 2013-08-09 09:12:44 UTC (rev 153879)
@@ -1,3 +1,15 @@
+2013-08-09 Tim Horton <[email protected]>
+
+ PDFPlugin is disabled by default in nightlies on Mac accidentally
+ https://bugs.webkit.org/show_bug.cgi?id=119615
+
+ Rubber-stamped by Andreas Kling.
+
+ Enable PDFPlugin by default on Mac at the WebKit2 level.
+
+ * Shared/WebPreferencesStore.h:
+ * UIProcess/API/C/WKPreferencesPrivate.h:
+
2013-08-08 Tim Horton <[email protected]>
navigator.plugins has plugins in it when plugins are disabled
Modified: trunk/Source/WebKit2/Shared/WebPreferencesStore.h (153878 => 153879)
--- trunk/Source/WebKit2/Shared/WebPreferencesStore.h 2013-08-09 09:04:51 UTC (rev 153878)
+++ trunk/Source/WebKit2/Shared/WebPreferencesStore.h 2013-08-09 09:12:44 UTC (rev 153879)
@@ -57,9 +57,11 @@
#if PLATFORM(MAC)
#define DEFAULT_HIDDEN_PAGE_DOM_TIMER_THROTTLING_ENABLED true
#define DEFAULT_HIDDEN_PAGE_CSS_ANIMATION_SUSPENSION_ENABLED true
+#define DEFAULT_PDFPLUGIN_ENABLED true
#else
#define DEFAULT_HIDDEN_PAGE_DOM_TIMER_THROTTLING_ENABLED false
#define DEFAULT_HIDDEN_PAGE_CSS_ANIMATION_SUSPENSION_ENABLED false
+#define DEFAULT_PDFPLUGIN_ENABLED false
#endif
#define FOR_EACH_WEBKIT_BOOL_PREFERENCE(macro) \
@@ -147,7 +149,7 @@
macro(SnapshotAllPlugIns, snapshotAllPlugIns, Bool, bool, false) \
macro(AutostartOriginPlugInSnapshottingEnabled, autostartOriginPlugInSnapshottingEnabled, Bool, bool, true) \
macro(PrimaryPlugInSnapshotDetectionEnabled, primaryPlugInSnapshotDetectionEnabled, Bool, bool, true) \
- macro(PDFPluginEnabled, pdfPluginEnabled, Bool, bool, false) \
+ macro(PDFPluginEnabled, pdfPluginEnabled, Bool, bool, DEFAULT_PDFPLUGIN_ENABLED) \
macro(UsesEncodingDetector, usesEncodingDetector, Bool, bool, false) \
macro(TextAutosizingEnabled, textAutosizingEnabled, Bool, bool, false) \
macro(AggressiveTileRetentionEnabled, aggressiveTileRetentionEnabled, Bool, bool, false) \
Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h (153878 => 153879)
--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h 2013-08-09 09:04:51 UTC (rev 153878)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h 2013-08-09 09:12:44 UTC (rev 153879)
@@ -235,7 +235,7 @@
WK_EXPORT void WKPreferencesSetCookieEnabled(WKPreferencesRef preferences, bool enabled);
WK_EXPORT bool WKPreferencesGetCookieEnabled(WKPreferencesRef preferences);
-// Defaults to false
+// Defaults to true on Mac, false elsewhere
WK_EXPORT void WKPreferencesSetPDFPluginEnabled(WKPreferencesRef preferences, bool enabled);
WK_EXPORT bool WKPreferencesGetPDFPluginEnabled(WKPreferencesRef preferences);