WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(69.73 KB, patch)
2015-01-16 15:37 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Patch
(68.21 KB, patch)
2015-01-16 17:54 PST
,
Sam Weinig
andersca
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2015-01-16 12:46:13 PST
Created
attachment 244788
[details]
Patch
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
Created
attachment 244810
[details]
Patch
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
Created
attachment 244825
[details]
Patch
Sam Weinig
Comment 7
2015-01-16 18:07:32 PST
Committed
r178618
: <
http://trac.webkit.org/changeset/178618
>
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.
Top of Page
Format For Printing
XML
Clone This Bug