Bug 145009 - Support blocking a plug-in for non-security reasons
Summary: Support blocking a plug-in for non-security reasons
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gordon Sheridan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-14 09:54 PDT by Jessie Berlin
Modified: 2015-07-20 16:46 PDT (History)
7 users (show)

See Also:


Attachments
Patch (8.69 KB, patch)
2015-05-14 10:54 PDT, Gordon Sheridan
no flags Details | Formatted Diff | Diff
This patch adds plumbing for supporting the ability to block plugins for non-security reasons. (8.28 KB, patch)
2015-07-15 00:46 PDT, Alan Sien Wei Hshieh
no flags Details | Formatted Diff | Diff
Add plumbing for the ability to block plugins for non-security reasons (8.28 KB, patch)
2015-07-15 02:25 PDT, Alan Sien Wei Hshieh
no flags Details | Formatted Diff | Diff
WKSI support for blocking a plug-in for non-security reasons. (342.77 KB, patch)
2015-07-17 19:40 PDT, Gordon Sheridan
no flags Details | Formatted Diff | Diff
WKSI support for blocking a plug-in for non-security reasons. (Take 2) (342.77 KB, patch)
2015-07-17 19:48 PDT, Gordon Sheridan
no flags Details | Formatted Diff | Diff
WKSI support for blocking a plug-in for non-security reasons. (Take 3) (25.71 KB, patch)
2015-07-17 19:58 PDT, Gordon Sheridan
no flags Details | Formatted Diff | Diff
WKSI support for blocking a plug-in for non-security reasons. (Take 4) (342.78 KB, patch)
2015-07-17 20:03 PDT, Gordon Sheridan
no flags Details | Formatted Diff | Diff
WKSI support for blocking a plug-in for non-security reasons. (Take 5) (341.99 KB, patch)
2015-07-17 20:11 PDT, Gordon Sheridan
no flags Details | Formatted Diff | Diff
WKSI support for blocking a plug-in for non-security reasons. (Take 6) (341.79 KB, patch)
2015-07-20 12:24 PDT, Gordon Sheridan
no flags Details | Formatted Diff | Diff
WebKit support for blocking a plugin-in for non-security reasons. (10.76 KB, patch)
2015-07-20 14:59 PDT, Gordon Sheridan
andersca: review+
andersca: commit-queue+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jessie Berlin 2015-05-14 09:54:53 PDT
rdar://problem/20860410
Comment 1 Gordon Sheridan 2015-05-14 10:54:41 PDT
Created attachment 253128 [details]
Patch
Comment 2 Darin Adler 2015-05-17 11:05:43 PDT
Comment on attachment 253128 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=253128&action=review

Does this patch require a change to WebKitSystemInterface?

> Source/WebKit2/UIProcess/Plugins/mac/PluginInfoStoreMac.mm:114
> +    return toPluginModuleLoadPolicy(WKLoadPolicyForPluginVersion(plugin.bundleIdentifier, plugin.versionString));

Source/WebKit2/UIProcess/Plugins/mac/PluginInfoStoreMac.mm:114:37: error: use of undeclared identifier 'WKLoadPolicyForPluginVersion'
    return toPluginModuleLoadPolicy(WKLoadPolicyForPluginVersion(plugin.bundleIdentifier, plugin.versionString));
Comment 3 Alan Sien Wei Hshieh 2015-07-15 00:46:28 PDT
Created attachment 256829 [details]
This patch adds plumbing for supporting the ability to block plugins for non-security reasons.

I'm submitting this patch on behalf of Gordon Sheridan, since responsibility for related work was transferred to me. This is intended to obsolete his previous attachment ~2 months ago since we have made a change to WKSI.
Comment 4 Alan Sien Wei Hshieh 2015-07-15 02:25:35 PDT
Created attachment 256830 [details]
Add plumbing for the ability to block plugins for non-security reasons

(Trying this again)
Comment 5 Conrad Shultz 2015-07-15 13:58:09 PDT
I think there's a WKSI change missing... but can we do this without adding new code there?
Comment 6 Gordon Sheridan 2015-07-17 19:40:20 PDT
Created attachment 257017 [details]
WKSI support for blocking a plug-in for non-security reasons.
Comment 7 Gordon Sheridan 2015-07-17 19:48:07 PDT
Created attachment 257018 [details]
WKSI support for blocking a plug-in for non-security reasons. (Take 2)
Comment 8 Gordon Sheridan 2015-07-17 19:58:17 PDT
Created attachment 257019 [details]
WKSI support for blocking a plug-in for non-security reasons. (Take 3)
Comment 9 Gordon Sheridan 2015-07-17 20:03:21 PDT
Created attachment 257020 [details]
WKSI support for blocking a plug-in for non-security reasons. (Take 4)
Comment 10 Gordon Sheridan 2015-07-17 20:11:31 PDT
Created attachment 257021 [details]
WKSI support for blocking a plug-in for non-security reasons. (Take 5)
Comment 11 WebKit Commit Bot 2015-07-17 20:14:20 PDT
Attachment 257021 [details] did not pass style-queue:


ERROR: WebKitLibraries/WebKitSystemInterface.h:57:  The parameter name "request" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:73:  The parameter name "cgContext" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:96:  The parameter name "font" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:96:  The parameter name "options" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:104:  The parameter name "image" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:104:  The parameter name "transform" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:107:  The parameter name "context" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:108:  The parameter name "context" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:138:  The parameter name "port" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:147:  The parameter name "layer" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:147:  The parameter name "context" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:160:  The parameter name "request" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:165:  The parameter name "response" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:183:  The parameter name "type" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:184:  The parameter name "sandboxExtension" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:186:  The parameter name "sandboxExtension" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:187:  The parameter name "sandboxExtension" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:189:  The parameter name "sandboxExtension" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:194:  The parameter name "path" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:194:  The parameter name "rect" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:423:  The parameter name "subsystem" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:441:  The parameter name "eventRef" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:442:  The parameter name "window" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: WebKitLibraries/WebKitSystemInterface.h:443:  The parameter name "windowRef" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 24 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 12 Gordon Sheridan 2015-07-20 12:24:16 PDT
Created attachment 257117 [details]
WKSI support for blocking a plug-in for non-security reasons. (Take 6)
Comment 13 WebKit Commit Bot 2015-07-20 14:49:24 PDT
Comment on attachment 257117 [details]
WKSI support for blocking a plug-in for non-security reasons. (Take 6)

Clearing flags on attachment: 257117

Committed r187038: <http://trac.webkit.org/changeset/187038>
Comment 14 WebKit Commit Bot 2015-07-20 14:49:28 PDT
All reviewed patches have been landed.  Closing bug.
Comment 15 Gordon Sheridan 2015-07-20 14:59:52 PDT
Created attachment 257130 [details]
WebKit support for blocking a plugin-in for non-security reasons.
Comment 16 Gordon Sheridan 2015-07-20 16:36:13 PDT
Reopened bug to take second patch.
Comment 17 Anders Carlsson 2015-07-20 16:46:59 PDT
Committed r187047: <http://trac.webkit.org/changeset/187047>