Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed <rdar://problem/7254127> WebKit can load plug-ins even when
plug-ins are disabled Reviewed by Anders Carlsson. Ensure that the shared WebPluginDatabase is not instantiated if no WebViews are used that have plug-ins enabled. * DefaultDelegates/WebDefaultPolicyDelegate.m: (-[WebDefaultPolicyDelegate webView:decidePolicyForMIMEType:request:frame:decisionListener:]): Call -[WebView _canShowMIMEType:] on the WebView instead of calling the class method. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::canShowMIMEType): Ditto. (WebFrameLoaderClient::transitionToCommittedForNewPage): Call -[WebFrameView _viewClassForMIMEType:] on the WebView instead of calling the class method. (WebFrameLoaderClient::objectContentType): Ditto. * WebView/WebDataSource.mm: (+[WebDataSource _representationClassForMIMEType:allowingPlugins:]): Added the allowPlugins parameter, which is passed through to +[WebView _viewClass:andRepresentationClass:forMIMEType:allowingPlugins:]. (-[WebDataSource _makeRepresentation]): Pass an allowPlugins value based on the WebView’s preferences. * WebView/WebFrameView.mm: (-[WebFrameView _makeDocumentViewForDataSource:]): Call -[WebFrameView _viewClassForMIMEType:] instead of calling the class method. (+[WebFrameView _viewClassForMIMEType:allowingPlugins:]): Added the allowPlugins parameter, which is passed through to +[WebView _viewClass:andRepresentationClass:forMIMEType:allowingPlugins:]. (-[WebFrameView _viewClassForMIMEType:]): Added. Passes an allowPlugins value based on the WebView’s preferences. * WebView/WebFrameViewInternal.h: * WebView/WebView.mm: (+[WebView _viewClass:andRepresentationClass:forMIMEType:allowingPlugins:]): Added the allowPlugins parameter. If false, skip the instantiation of the shared WebPluginDatabase. (-[WebView _viewClass:andRepresentationClass:forMIMEType:]): Pass an allowPlugins value based on the WebView’s preferences. (+[WebView _canShowMIMEType:allowingPlugins:]): Passes allowPlugins to +_viewClass:andRepresentationClass:forMIMEType:allowingPlugins:. (+[WebView canShowMIMEType:]): Changed to pass YES to +_canShowMIMEType:allowingPlugins:. (-[WebView _canShowMIMEType:]): Added. Passes an allowPlugins value based on the WebView’s preferences. (-[WebView _pluginForMIMEType:]): Return nil if plug-ins are disabled. (-[WebView _pluginForExtension:]): Ditto. (-[WebView _isMIMETypeRegisteredAsPlugin:]): Return NO if plug-ins are disabled. * WebView/WebViewInternal.h: Canonical link: https://commits.webkit.org/43044@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Dan Bernstein
committed
Dec 3, 2009
1 parent
cad0c06
commit d00123776aeefc7438a772080a4651ae67d73ec9
Showing
8 changed files
with
102 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters