Bug 99218

Summary: [WK2] Add SharedWorkerProcess
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit2Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: gtk-ews, gustavo, roger_fong, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch
sam: review+, gyuyoung.kim: commit-queue-
with build fix buildbot: commit-queue-

Alexey Proskuryakov
Reported 2012-10-12 16:42:29 PDT
Multiple web processes should share shared workers.
Attachments
proposed patch (88.02 KB, patch)
2012-10-12 16:52 PDT, Alexey Proskuryakov
sam: review+
gyuyoung.kim: commit-queue-
with build fix (88.99 KB, patch)
2012-10-13 12:12 PDT, Alexey Proskuryakov
buildbot: commit-queue-
Alexey Proskuryakov
Comment 1 2012-10-12 16:52:28 PDT
Created attachment 168515 [details] proposed patch
Sam Weinig
Comment 2 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.
WebKit Review Bot
Comment 3 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.
Gyuyoung Kim
Comment 4 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
Build Bot
Comment 5 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
Build Bot
Comment 6 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
Early Warning System Bot
Comment 7 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
kov's GTK+ EWS bot
Comment 8 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
Alexey Proskuryakov
Comment 9 2012-10-13 12:12:07 PDT
Created attachment 168561 [details] with build fix
WebKit Review Bot
Comment 10 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.
Build Bot
Comment 11 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
Alexey Proskuryakov
Comment 12 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>.
Note You need to log in before you can comment on or make changes to this bug.