Bug 99218 - [WK2] Add SharedWorkerProcess
Summary: [WK2] Add SharedWorkerProcess
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-12 16:42 PDT by Alexey Proskuryakov
Modified: 2012-10-15 09:29 PDT (History)
5 users (show)

See Also:


Attachments
proposed patch (88.02 KB, patch)
2012-10-12 16:52 PDT, Alexey Proskuryakov
sam: review+
gyuyoung.kim: commit-queue-
Details | Formatted Diff | Diff
with build fix (88.99 KB, patch)
2012-10-13 12:12 PDT, Alexey Proskuryakov
buildbot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2012-10-12 16:42:29 PDT
Multiple web processes should share shared workers.
Comment 1 Alexey Proskuryakov 2012-10-12 16:52:28 PDT
Created attachment 168515 [details]
proposed patch
Comment 2 Sam Weinig 2012-10-12 16:59:21 PDT
Comment on attachment 168515 [details]
proposed patch

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

I'd love to see this share more code, but looks good.

> Source/WebKit2/Shared/SharedWorkerProcessCreationParameters.h:33
> +#if PLATFORM(MAC)
> +#include "MachPort.h"
> +#endif

This does not seem to be used.

> Source/WebKit2/SharedWorkerProcess/mac/SharedWorkerProcessMac.mm:71
> +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
> +    initializeSandbox();
> +#endif

This is not an ideal place to initialize the sandbox. Instead, it should initialized directly from main as we do for the WebProcess.
Comment 3 WebKit Review Bot 2012-10-12 17:14:29 PDT
Attachment 168515 [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/UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:94:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessManager.h:36:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Source/WebKit2/Shared/SharedWorkerProcessCreationParameters.h:36:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:36:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:74:  The parameter name "parameters" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.h:41:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.h:48:  The parameter name "webProcessConnection" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 7 in 28 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Gyuyoung Kim 2012-10-12 17:17:17 PDT
Comment on attachment 168515 [details]
proposed patch

Attachment 168515 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/14293078
Comment 5 Build Bot 2012-10-12 17:25:42 PDT
Comment on attachment 168515 [details]
proposed patch

Attachment 168515 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/14299062
Comment 6 Build Bot 2012-10-12 17:35:53 PDT
Comment on attachment 168515 [details]
proposed patch

Attachment 168515 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/14286083
Comment 7 Early Warning System Bot 2012-10-12 17:41:43 PDT
Comment on attachment 168515 [details]
proposed patch

Attachment 168515 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/14290097
Comment 8 kov's GTK+ EWS bot 2012-10-12 18:26:10 PDT
Comment on attachment 168515 [details]
proposed patch

Attachment 168515 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/14334004
Comment 9 Alexey Proskuryakov 2012-10-13 12:12:07 PDT
Created attachment 168561 [details]
with build fix
Comment 10 WebKit Review Bot 2012-10-13 12:16:23 PDT
Attachment 168561 [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/UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:94:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessManager.h:36:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Source/WebKit2/Shared/SharedWorkerProcessCreationParameters.h:36:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:36:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
Source/WebKit2/UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:74:  The parameter name "parameters" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.h:41:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.h:48:  The parameter name "webProcessConnection" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 7 in 29 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Build Bot 2012-10-13 12:40:14 PDT
Comment on attachment 168561 [details]
with build fix

Attachment 168561 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/14291289
Comment 12 Alexey Proskuryakov 2012-10-15 09:29:53 PDT
The Windows build failure doesn't look like something that can be resolved blindly, will have to land and work on fixing the build afterwards.

Committed <http://trac.webkit.org/changeset/131308>.