Bug 79709

Summary: [Mac] Add an experimental SPI for plug-ins to enter sandbox
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Plug-insAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo.noronha, gustavo, rafael.lobo, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch
none
style fix, and added a comment
andersca: review+, gustavo.noronha: commit-queue-
patch for landing
webkit.review.bot: commit-queue-
patch for landing
none
Patch none

Alexey Proskuryakov
Reported 2012-02-27 15:36:46 PST
...
Attachments
proposed patch (27.32 KB, patch)
2012-02-27 15:42 PST, Alexey Proskuryakov
no flags
style fix, and added a comment (27.44 KB, patch)
2012-02-27 17:12 PST, Alexey Proskuryakov
andersca: review+
gustavo.noronha: commit-queue-
patch for landing (27.71 KB, patch)
2012-02-28 12:48 PST, Alexey Proskuryakov
webkit.review.bot: commit-queue-
patch for landing (27.71 KB, patch)
2012-02-28 12:58 PST, Alexey Proskuryakov
no flags
Patch (2.08 KB, patch)
2012-02-28 14:21 PST, Rafael Brandao
no flags
Alexey Proskuryakov
Comment 1 2012-02-27 15:42:25 PST
Created attachment 129116 [details] proposed patch This has been previously discussed on plugin-futures, adding an experimental implementation to validate the approach.
WebKit Review Bot
Comment 2 2012-02-27 15:49:28 PST
Attachment 129116 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1 Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:32: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alexey Proskuryakov
Comment 3 2012-02-27 17:12:52 PST
Created attachment 129141 [details] style fix, and added a comment
WebKit Review Bot
Comment 4 2012-02-27 17:17:19 PST
Attachment 129141 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1 Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:32: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Collabora GTK+ EWS bot
Comment 5 2012-02-27 17:29:09 PST
Comment on attachment 129141 [details] style fix, and added a comment Attachment 129141 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/11645287
Sam Weinig
Comment 6 2012-02-27 17:50:26 PST
Comment on attachment 129141 [details] style fix, and added a comment View in context: https://bugs.webkit.org/attachment.cgi?id=129141&action=review This seems to have problems building. > Source/WebKit2/ChangeLog:10 > + * PluginProcess/mac/plugin.sb: Added. The sandbox profile for the WebProcess is called, com.apple.WebProcess.sb. Should we match the naming convention? Also, is it possible/a good idea to extract a set of both profiles that are common and share them?
Alexey Proskuryakov
Comment 7 2012-02-27 18:01:11 PST
> This seems to have problems building. Fixed a non-Mac issue locally, but mostly it depends on WKSI changes that are yet to be landed. > The sandbox profile for the WebProcess is called, com.apple.WebProcess.sb. Should we match the naming convention? I don't really care, I liked plugin.sb. > Also, is it possible/a good idea to extract a set of both profiles that are common and share them? I think that at this stage, it's easier to maintain them separately.
Anders Carlsson
Comment 8 2012-02-28 11:22:41 PST
Comment on attachment 129141 [details] style fix, and added a comment I think plugin.sb should be com.apple.PluginProcess.sb to match the WebProcess name.
Alexey Proskuryakov
Comment 9 2012-02-28 12:48:57 PST
Created attachment 129311 [details] patch for landing
WebKit Review Bot
Comment 10 2012-02-28 12:53:05 PST
Comment on attachment 129311 [details] patch for landing Rejecting attachment 129311 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 Ander Carlsson found in /mnt/git/webkit-commit-queue/Source/WebKit2/ChangeLog does not appear to be a valid reviewer according to committers.py. ERROR: /mnt/git/webkit-commit-queue/Source/WebKit2/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://queues.webkit.org/results/11714047
Alexey Proskuryakov
Comment 11 2012-02-28 12:58:23 PST
Created attachment 129313 [details] patch for landing
WebKit Review Bot
Comment 12 2012-02-28 13:16:18 PST
Comment on attachment 129313 [details] patch for landing Clearing flags on attachment: 129313 Committed r109143: <http://trac.webkit.org/changeset/109143>
WebKit Review Bot
Comment 13 2012-02-28 13:16:25 PST
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 14 2012-02-28 14:21:25 PST
Rafael Brandao
Comment 15 2012-02-28 14:21:41 PST
Reopening to attach new patch.
Rafael Brandao
Comment 16 2012-02-28 14:21:46 PST
Created attachment 129330 [details] Patch It looks like this has broken qt buildbots. The following patch is a build fix, please double check it before landing.
Alexey Proskuryakov
Comment 17 2012-02-28 14:26:23 PST
Build fix has already been landed, please see above.
Alexey Proskuryakov
Comment 18 2012-02-28 14:27:41 PST
Comment on attachment 129330 [details] Patch -#if PLATFORM(MAC) && !defined(BUILDING_ON_LEOPARD) || !defined(BUILDING_ON_SNOW_LEOPARD) +#if PLATFORM(MAC) && (!defined(BUILDING_ON_LEOPARD) || !defined(BUILDING_ON_SNOW_LEOPARD)) Also, this is insufficient, there are two instances of this in this file.
Alexey Proskuryakov
Comment 19 2012-02-28 15:18:12 PST
Mac build fix of same kind in <http://trac.webkit.org/changeset/109159>.
Note You need to log in before you can comment on or make changes to this bug.