RESOLVED FIXED 140559
Add a basic configuration object for WKView
https://bugs.webkit.org/show_bug.cgi?id=140559
Summary Add a basic configuration object for WKView
Sam Weinig
Reported 2015-01-16 12:40:54 PST
Add a basic configuration object for WKView
Attachments
Patch (53.08 KB, patch)
2015-01-16 12:46 PST, Sam Weinig
no flags
Patch (69.73 KB, patch)
2015-01-16 15:37 PST, Sam Weinig
no flags
Patch (68.21 KB, patch)
2015-01-16 17:54 PST, Sam Weinig
andersca: review+
Sam Weinig
Comment 1 2015-01-16 12:46:13 PST
WebKit Commit Bot
Comment 2 2015-01-16 12:48:14 PST
Attachment 244788 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/APIPageConfiguration.cpp:50: More than one command on the same line [whitespace/newline] [4] ERROR: Source/WebKit2/UIProcess/API/APIPageConfiguration.cpp:60: More than one command on the same line [whitespace/newline] [4] Total errors found: 2 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 3 2015-01-16 15:37:20 PST
Anders Carlsson
Comment 4 2015-01-16 16:47:01 PST
Comment on attachment 244810 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=244810&action=review > Source/WebKit2/UIProcess/API/APIPageConfiguration.h:45 > + static PassRefPtr<PageConfiguration> create() Ref. > Source/WebKit2/UIProcess/API/C/WKUserContentControllerRef.cpp:44 > +WKArrayRef WKUserContentControllerGetUserScripts(WKUserContentControllerRef userContentControllerRef) This should probably copy the user scripts. > Source/WebKit2/UIProcess/UserContent/WebUserContentControllerProxy.h:60 > + static RefPtr<WebUserContentControllerProxy> create() Ref! > Tools/TestWebKitAPI/Tests/WebKit2/WKPageConfiguration.cpp:44 > + ASSERT_NULL(WKPageConfigurationGetContext(configuration.get())); > + ASSERT_NULL(WKPageConfigurationGetUserContentController(configuration.get())); > + ASSERT_NULL(WKPageConfigurationGetPageGroup(configuration.get())); > + ASSERT_NULL(WKPageConfigurationGetPreferences(configuration.get())); > + ASSERT_NULL(WKPageConfigurationGetRelatedPage(configuration.get())); Shouldn't these be instantiated when you ask for them?
Sam Weinig
Comment 5 2015-01-16 17:09:11 PST
(In reply to comment #4) > Comment on attachment 244810 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=244810&action=review > > > Source/WebKit2/UIProcess/API/APIPageConfiguration.h:45 > > + static PassRefPtr<PageConfiguration> create() > > Ref. > Will change. > > Source/WebKit2/UIProcess/API/C/WKUserContentControllerRef.cpp:44 > > +WKArrayRef WKUserContentControllerGetUserScripts(WKUserContentControllerRef userContentControllerRef) > > This should probably copy the user scripts. Ok. > > > Source/WebKit2/UIProcess/UserContent/WebUserContentControllerProxy.h:60 > > + static RefPtr<WebUserContentControllerProxy> create() > > Ref! Will change. > > > Tools/TestWebKitAPI/Tests/WebKit2/WKPageConfiguration.cpp:44 > > + ASSERT_NULL(WKPageConfigurationGetContext(configuration.get())); > > + ASSERT_NULL(WKPageConfigurationGetUserContentController(configuration.get())); > > + ASSERT_NULL(WKPageConfigurationGetPageGroup(configuration.get())); > > + ASSERT_NULL(WKPageConfigurationGetPreferences(configuration.get())); > > + ASSERT_NULL(WKPageConfigurationGetRelatedPage(configuration.get())); > > Shouldn't these be instantiated when you ask for them? I want that to be the case eventually, but I need to do more refactoring a bit lower down to make it clean.
Sam Weinig
Comment 6 2015-01-16 17:54:10 PST
Sam Weinig
Comment 7 2015-01-16 18:07:32 PST
David Kilzer (:ddkilzer)
Comment 8 2015-01-17 08:50:12 PST
(In reply to comment #7) > Committed r178618: <http://trac.webkit.org/changeset/178618> Looks like you could have used an iOS EWS bot, Sam. :( Attempted iOS build fix: Committed r178625: <http://trac.webkit.org/changeset/178625>
Note You need to log in before you can comment on or make changes to this bug.