WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
133015
Need a way to get a WKPageRef from a WKWebView
https://bugs.webkit.org/show_bug.cgi?id=133015
Summary
Need a way to get a WKPageRef from a WKWebView
David Farler
Reported
2014-05-16 15:57:27 PDT
PlatformWebView in WebKitTestRunner has public WKPageRef page() but WKWebView doesn't currently have API to provide this.
Attachments
Patch v1
(2.04 KB, patch)
2014-05-17 08:42 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2014-05-17 08:42:23 PDT
Created
attachment 231634
[details]
Patch v1 I'm sure there are layer violations (like returning a C API struct from an Objective-C class), but I'm assuming we want this to move off the deprecated WKView class first.
Benjamin Poulain
Comment 2
2014-05-17 17:08:13 PDT
Comment on
attachment 231634
[details]
Patch v1 Cool!
WebKit Commit Bot
Comment 3
2014-05-17 17:39:08 PDT
Comment on
attachment 231634
[details]
Patch v1 Clearing flags on attachment: 231634 Committed
r169001
: <
http://trac.webkit.org/changeset/169001
>
WebKit Commit Bot
Comment 4
2014-05-17 17:39:12 PDT
All reviewed patches have been landed. Closing bug.
Sam Weinig
Comment 5
2014-05-17 20:58:00 PDT
I'm worried about why this is being done. If the idea is to use WKPageRef to set up the needed clients in WKTR, that won't work, and we will really need to add an abstraction so the objective-c API can be used there.
Benjamin Poulain
Comment 6
2014-05-17 22:31:18 PDT
(In reply to
comment #5
)
> I'm worried about why this is being done. If the idea is to use WKPageRef to set up the needed clients in WKTR, that won't work, and we will really need to add an abstraction so the objective-c API can be used there.
WKTR will need it to send events and some internal testing stuff. It looks like it also setup the clients in TestController::createOtherPage(). Moving away from that is gonna suck, the C API was awesome to setup cross-port tests.
Anders Carlsson
Comment 7
2014-05-18 09:24:57 PDT
Yeah, this patch is wrong. I'm going to roll it out.
Anders Carlsson
Comment 8
2014-05-18 09:26:42 PDT
It should not be possible to get at the C SPI from the modern API. We're trying to get rid of the modern API.
WebKit Commit Bot
Comment 9
2014-05-18 09:27:09 PDT
Re-opened since this is blocked by
bug 133050
Benjamin Poulain
Comment 10
2014-05-18 14:41:08 PDT
(In reply to
comment #7
)
> Yeah, this patch is wrong. I'm going to roll it out.
Anders, you created this situation in the first place. Any chance you could fix testing?
Anders Carlsson
Comment 11
2014-05-18 14:55:45 PDT
(In reply to
comment #10
)
> (In reply to
comment #7
) > > Yeah, this patch is wrong. I'm going to roll it out. > > Anders, you created this situation in the first place. Any chance you could fix testing?
Sam is interested in fixing it. In any case, I'm going to WONTFIX this since we're never going to expose the old SPI from the new API.
Benjamin Poulain
Comment 12
2014-05-18 14:58:33 PDT
(In reply to
comment #11
)
> (In reply to
comment #10
) > > (In reply to
comment #7
) > > > Yeah, this patch is wrong. I'm going to roll it out. > > > > Anders, you created this situation in the first place. Any chance you could fix testing? > > Sam is interested in fixing it. > > In any case, I'm going to WONTFIX this since we're never going to expose the old SPI from the new API.
I really don't care how we expose the internals. I just want WKView to get out of the way and be able to run certain tests.
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