Bug 139909 - Rename WebContext to WebProcessPool
Summary: Rename WebContext to WebProcessPool
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords:
Depends on: 139919
Blocks: 139932
  Show dependency treegraph
 
Reported: 2014-12-23 12:07 PST by Sam Weinig
Modified: 2014-12-23 23:48 PST (History)
11 users (show)

See Also:


Attachments
Patch (549.85 KB, patch)
2014-12-23 12:11 PST, Sam Weinig
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2014-12-23 12:07:09 PST
Rename WebContext to WebProcessPool
Comment 1 Sam Weinig 2014-12-23 12:11:57 PST
Created attachment 243684 [details]
Patch
Comment 2 WebKit Commit Bot 2014-12-23 12:15:40 PST
Attachment 243684 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/APIProcessPoolConfiguration.h:26:  #ifndef header guard has wrong style, please use: APIProcessPoolConfiguration_h  [build/header_guard] [5]
ERROR: Source/WebKit2/UIProcess/WebProcessPool.h:279:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/UIProcess/WebProcessPool.cpp:199:  Code inside a namespace should not be indented.  [whitespace/indent] [4]
ERROR: Source/WebKit2/UIProcess/WebProcessPool.cpp:343:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
ERROR: Source/WebKit2/UIProcess/WebProcessPool.cpp:885:  One line control clauses should not use braces.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/WebProcessPool.cpp:1330:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/UIProcess/WebProcessPool.cpp:1358:  One line control clauses should not use braces.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:33:  "WKBrowsingContextControllerInternal.h" already included at Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:32  [build/include] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:219:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:219:  Extra space before ( in function call  [whitespace/parens] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:524:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:528:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:533:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:539:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm:544:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/ChangeLog:13:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
Total errors found: 16 in 103 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Chris Dumez 2014-12-23 16:42:31 PST
May have broken iOS build:
Source/WebKit2/UIProcess/ios/WKContentView.h:64:58: error: expected a type
- (instancetype)initWithFrame:(CGRect)frame processPool:(WebProcessPool&)processPool configuration:(WebKit::WebPageConfiguration)webPageConfiguration webView:(WKWebView *)webView;
Comment 4 Chris Dumez 2014-12-23 16:46:42 PST
(In reply to comment #3)
> May have broken iOS build:
> Source/WebKit2/UIProcess/ios/WKContentView.h:64:58: error: expected a type
> - (instancetype)initWithFrame:(CGRect)frame
> processPool:(WebProcessPool&)processPool
> configuration:(WebKit::WebPageConfiguration)webPageConfiguration
> webView:(WKWebView *)webView;

Build fix landed in <http://trac.webkit.org/changeset/177707>.
Comment 5 Chris Dumez 2014-12-23 16:48:34 PST
BTW, this bug is still open but it looks like it already landed in http://trac.webkit.org/changeset/177692 ?
Comment 6 Chris Dumez 2014-12-23 16:56:30 PST
There are actually more build failures on iOS :(

Source/WebKit2/UIProcess/API/Cocoa/WKProcessGroup.mm:238:90: error: use of undeclared identifier '_context'
        _geolocationProvider = adoptNS([[WKGeolocationProviderIOS alloc] initWithContext:_context.get()]);

Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm:228:80: error: initialization of incomplete type 'WebKit::WebProcessPool'
    _contentView = adoptNS([[WKContentView alloc] initWithFrame:bounds context:*toImpl(contextRef) configuration:WTF::move(webPageConfiguration) webView:nil]);

For the second one, adding the right include is not sufficient as it will complain about missing copy constructor:
Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm:229:80: error: call to implicitly-deleted copy constructor of 'WebKit::WebProcessPool'
    _contentView = adoptNS([[WKContentView alloc] initWithFrame:bounds context:*toImpl(contextRef) configuration:WTF::move(webPageConfiguration) webView:nil]);
                                                                               ^~~~~~~~~~~~~~~~~~~
In file included from Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm:34:
Source/WebKit2/UIProcess/WebProcessPool.h:473:23: note: copy constructor of 'WebProcessPool' is implicitly deleted because field 'm_defaultPageGroup' has a deleted copy constructor
    Ref<WebPageGroup> m_defaultPageGroup;
Comment 7 Sam Weinig 2014-12-23 17:13:06 PST
(In reply to comment #6)
> There are actually more build failures on iOS :(
> 
> Source/WebKit2/UIProcess/API/Cocoa/WKProcessGroup.mm:238:90: error: use of
> undeclared identifier '_context'
>         _geolocationProvider = adoptNS([[WKGeolocationProviderIOS alloc]
> initWithContext:_context.get()]);
> 
> Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm:228:80: error: initialization
> of incomplete type 'WebKit::WebProcessPool'
>     _contentView = adoptNS([[WKContentView alloc] initWithFrame:bounds
> context:*toImpl(contextRef) configuration:WTF::move(webPageConfiguration)
> webView:nil]);
> 
> For the second one, adding the right include is not sufficient as it will
> complain about missing copy constructor:
> Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm:229:80: error: call to
> implicitly-deleted copy constructor of 'WebKit::WebProcessPool'
>     _contentView = adoptNS([[WKContentView alloc] initWithFrame:bounds
> context:*toImpl(contextRef) configuration:WTF::move(webPageConfiguration)
> webView:nil]);
>                                                                             
> ^~~~~~~~~~~~~~~~~~~
> In file included from Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm:34:
> Source/WebKit2/UIProcess/WebProcessPool.h:473:23: note: copy constructor of
> 'WebProcessPool' is implicitly deleted because field 'm_defaultPageGroup'
> has a deleted copy constructor
>     Ref<WebPageGroup> m_defaultPageGroup;

Attempted fix landed in r177710.
Comment 8 Gyuyoung Kim 2014-12-23 20:06:48 PST
EFL and GTK ports have been broken since this patch. I upload a patch for EFL port for now.

https://bugs.webkit.org/show_bug.cgi?id=139932
Comment 9 Csaba Osztrogonác 2014-12-23 23:42:54 PST
Let's close it, the original patch and all buildfixes already landed.
Comment 10 Csaba Osztrogonác 2014-12-23 23:48:11 PST
GTK fix landed in http://trac.webkit.org/changeset/177721