<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>133015</bug_id>
          
          <creation_ts>2014-05-16 15:57:27 -0700</creation_ts>
          <short_desc>Need a way to get a WKPageRef from a WKWebView</short_desc>
          <delta_ts>2014-05-18 14:58:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>133050</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Farler">dfarler</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>andersca</cc>
    
    <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1009880</commentid>
    <comment_count>0</comment_count>
    <who name="David Farler">dfarler</who>
    <bug_when>2014-05-16 15:57:27 -0700</bug_when>
    <thetext>PlatformWebView in WebKitTestRunner has public WKPageRef page() but WKWebView doesn&apos;t currently have API to provide this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1009981</commentid>
    <comment_count>1</comment_count>
      <attachid>231634</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-05-17 08:42:23 -0700</bug_when>
    <thetext>Created attachment 231634
Patch v1

I&apos;m sure there are layer violations (like returning a C API struct from an Objective-C class), but I&apos;m assuming we want this to move off the deprecated WKView class first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010011</commentid>
    <comment_count>2</comment_count>
      <attachid>231634</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2014-05-17 17:08:13 -0700</bug_when>
    <thetext>Comment on attachment 231634
Patch v1

Cool!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010012</commentid>
    <comment_count>3</comment_count>
      <attachid>231634</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-05-17 17:39:08 -0700</bug_when>
    <thetext>Comment on attachment 231634
Patch v1

Clearing flags on attachment: 231634

Committed r169001: &lt;http://trac.webkit.org/changeset/169001&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010013</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-05-17 17:39:12 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010033</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2014-05-17 20:58:00 -0700</bug_when>
    <thetext>I&apos;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&apos;t work, and we will really need to add an abstraction so the objective-c API can be used there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010042</commentid>
    <comment_count>6</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2014-05-17 22:31:18 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; I&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010075</commentid>
    <comment_count>7</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-05-18 09:24:57 -0700</bug_when>
    <thetext>Yeah, this patch is wrong. I&apos;m going to roll it out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010076</commentid>
    <comment_count>8</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-05-18 09:26:42 -0700</bug_when>
    <thetext>It should not be possible to get at the C SPI from the modern API. We&apos;re trying to get rid of the modern API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010078</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-05-18 09:27:09 -0700</bug_when>
    <thetext>Re-opened since this is blocked by bug 133050</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010111</commentid>
    <comment_count>10</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2014-05-18 14:41:08 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Yeah, this patch is wrong. I&apos;m going to roll it out.

Anders, you created this situation in the first place. Any chance you could fix testing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010112</commentid>
    <comment_count>11</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-05-18 14:55:45 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #7)
&gt; &gt; Yeah, this patch is wrong. I&apos;m going to roll it out.
&gt; 
&gt; 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&apos;m going to WONTFIX this since we&apos;re never going to expose the old SPI from the new API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010113</commentid>
    <comment_count>12</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2014-05-18 14:58:33 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; (In reply to comment #10)
&gt; &gt; (In reply to comment #7)
&gt; &gt; &gt; Yeah, this patch is wrong. I&apos;m going to roll it out.
&gt; &gt; 
&gt; &gt; Anders, you created this situation in the first place. Any chance you could fix testing?
&gt; 
&gt; Sam is interested in fixing it.
&gt; 
&gt; In any case, I&apos;m going to WONTFIX this since we&apos;re never going to expose the old SPI from the new API.

I really don&apos;t care how we expose the internals. I just want WKView to get out of the way and be able to run certain tests.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>231634</attachid>
            <date>2014-05-17 08:42:23 -0700</date>
            <delta_ts>2014-05-17 17:39:08 -0700</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-133015-20140517084116.patch</filename>
            <type>text/plain</type>
            <size>2090</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTY4OTEwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggMTNlODY5N2U0NTM4YjI2
YmVmYjA4YmM2ZjA0ODM3ZGRlZWU4OGUxOC4uZjYzM2QwMzgxMzQwZGZkNWFkMjc5ZjdiNGRjZTRi
MzBjNzlmMmYzOSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDE0LTA1LTE3ICBEYXZp
ZCBLaWx6ZXIgIDxkZGtpbHplckBhcHBsZS5jb20+CisKKyAgICAgICAgTmVlZCBhIHdheSB0byBn
ZXQgYSBXS1BhZ2VSZWYgZnJvbSBhIFdLV2ViVmlldworICAgICAgICA8aHR0cDovL3dlYmtpdC5v
cm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