Changeset 98513 in webkit
- Timestamp:
- Oct 26, 2011, 1:19:14 PM (15 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/WebContext.cpp (modified) (1 diff)
-
UIProcess/WebContext.h (modified) (1 diff)
-
UIProcess/WebFrameProxy.cpp (modified) (1 diff)
-
UIProcess/mac/WebContextMac.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r98509 r98513 1 2011-10-26 Jeff Miller <jeffm@apple.com> 2 3 WebKit2 should respect secret WebKitOmitPDFSupport preference on the Mac 4 https://bugs.webkit.org/show_bug.cgi?id=70943 5 6 If WebKitOmitPDFSupport pref is set, disable both the new "plug-in" for subframes and the PDFKit-based support for the main frame only. 7 8 Reviewed by Alexey Proskuryakov. 9 10 * UIProcess/WebContext.cpp: 11 (WebKit::WebContext::getPlugins): Don't register built-in PDF plugin if WebKitOmitPDFSupport pref is set. 12 13 * UIProcess/WebContext.h: Added omitPDFSupport(). 14 15 * UIProcess/WebFrameProxy.cpp: 16 (WebKit::WebFrameProxy::canShowMIMEType): Don't show PDFs if WebKitOmitPDFSupport is set. 17 18 * UIProcess/mac/WebContextMac.mm: 19 (WebKit::WebContext::omitPDFSupport): Added. 20 1 21 2011-10-26 Sam Weinig <sam@webkit.org> 2 22 -
trunk/Source/WebKit2/UIProcess/WebContext.cpp
r96969 r98513 569 569 #if PLATFORM(MAC) 570 570 // Add built-in PDF last, so that it's not used when a real plug-in is installed. 571 pluginInfos.append(BuiltInPDFView::pluginInfo()); 571 if (!omitPDFSupport()) 572 pluginInfos.append(BuiltInPDFView::pluginInfo()); 572 573 #endif 573 574 } -
trunk/Source/WebKit2/UIProcess/WebContext.h
r96969 r98513 185 185 void garbageCollectJavaScriptObjects(); 186 186 187 #if PLATFORM(MAC) 188 static bool omitPDFSupport(); 189 #endif 190 187 191 private: 188 192 WebContext(ProcessModel, const String& injectedBundlePath); -
trunk/Source/WebKit2/UIProcess/WebFrameProxy.cpp
r96653 r98513 112 112 // On Mac, we can show PDFs. 113 113 if (!mimeType.isEmpty()) 114 return WebContext::pdfAndPostScriptMIMETypes().contains(mimeType) ;114 return WebContext::pdfAndPostScriptMIMETypes().contains(mimeType) && !WebContext::omitPDFSupport(); 115 115 #endif 116 116 -
trunk/Source/WebKit2/UIProcess/mac/WebContextMac.mm
r96969 r98513 140 140 } 141 141 142 bool WebContext::omitPDFSupport() 143 { 144 // Since this is a "secret default" we don't bother registering it. 145 return [[NSUserDefaults standardUserDefaults] boolForKey:@"WebKitOmitPDFSupport"]; 146 } 147 142 148 } // namespace WebKit 143 149
Note:
See TracChangeset
for help on using the changeset viewer.