Bug 124445

Summary: No way for policy client to determine if a the response’s MIME type can be shown
Product: WebKit Reporter: mitz
Component: WebKit2Assignee: mitz
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eflews.bot, gyuyoung.kim
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Add -[WKBrowsingContextController canShowMIMEType:]
none
Add canShowMIMEType to DecidePolicyForResponseSync and expose it via the UI process API sam: review+, eflews.bot: commit-queue-

Description mitz 2013-11-15 17:02:53 PST
[Cocoa] Add -[WKBrowsingContextController canShowMIMEType:]
Comment 1 mitz 2013-11-15 17:04:25 PST
Created attachment 217105 [details]
Add -[WKBrowsingContextController canShowMIMEType:]
Comment 2 mitz 2013-11-15 17:09:43 PST
Comment on attachment 217105 [details]
Add -[WKBrowsingContextController canShowMIMEType:]

Going to do something different to address the need for this.
Comment 3 mitz 2013-11-16 12:54:05 PST
Created attachment 217132 [details]
Add canShowMIMEType to DecidePolicyForResponseSync and expose it via the UI process API
Comment 4 WebKit Commit Bot 2013-11-16 12:56:30 PST
Attachment 217132 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/Platform/CoreIPC/HandleMessage.h', u'Source/WebKit2/UIProcess/API/C/WKPage.h', u'Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm', u'Source/WebKit2/UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h', u'Source/WebKit2/UIProcess/WebInspectorProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/UIProcess/WebPageProxy.messages.in', u'Source/WebKit2/UIProcess/WebPolicyClient.cpp', u'Source/WebKit2/UIProcess/WebPolicyClient.h', u'Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp', u'Tools/ChangeLog', u'Tools/MiniBrowser/mac/WK2BrowserWindowController.m', u'Tools/TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp', u'Tools/WebKitTestRunner/TestController.cpp', u'Tools/WebKitTestRunner/TestController.h']" exit_code: 1
Source/WebKit2/UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h:39:  One space before end of line comments  [whitespace/comments] [5]
Total errors found: 1 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 EFL EWS Bot 2013-11-16 13:05:17 PST
Comment on attachment 217132 [details]
Add canShowMIMEType to DecidePolicyForResponseSync and expose it via the UI process API

Attachment 217132 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/25278002
Comment 6 mitz 2013-11-17 12:28:35 PST
Fixed in <http://trac.webkit.org/r159387>.