<?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>109053</bug_id>
          
          <creation_ts>2013-02-06 07:30:15 -0800</creation_ts>
          <short_desc>[WK2][EFL] Eliminate external access to WebPageProxy pointer from EwkView.</short_desc>
          <delta_ts>2017-03-11 10:42:10 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit EFL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          <blocked>107657</blocked>
    
    <blocked>107662</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Pozdnyakov">mikhail.pozdnyakov</reporter>
          <assigned_to name="Mikhail Pozdnyakov">mikhail.pozdnyakov</assigned_to>
          <cc>artvideo2003</cc>
    
    <cc>kenneth</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>826433</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Pozdnyakov">mikhail.pozdnyakov</who>
    <bug_when>2013-02-06 07:30:15 -0800</bug_when>
    <thetext>Means actually making WebKit::WebPageProxy* EwkView::page() private. EwkView clients have to use WKPageRef wkPage() and  C WK2 api instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051229</commentid>
    <comment_count>1</comment_count>
    <who name="Angelina">artvideo2003</who>
    <bug_when>2014-11-28 02:19:29 -0800</bug_when>
    <thetext>I use InjectedBundle C API in WebProcess and ewk API in UIProcess.
I send WKPageRef from WebProcess to UIProcess.
Is it possible convert WKPageRef to Evas_Object*?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051820</commentid>
    <comment_count>2</comment_count>
    <who name="Angelina">artvideo2003</who>
    <bug_when>2014-12-02 05:59:18 -0800</bug_when>
    <thetext>Please see my code:

WebProcess (Injected Bundle) code:
...
WKBundlePageRef page = WKBundleFrameGetPage(frame);
WKBundlePostSynchronousMessage(bundle, messageName, page, 0);
..

UIProcess code:
..
void didReceiveSynchronousMessageFromInjectedBundle(WKContextRef page, WKStringRef messageName, WKTypeRef messageBody, WKTypeRef* returnData, const void *clientInfo) {
    WKPageRef page = (WKPageRef)messageBody
    Evas_Object* ewkView;
    //TODO: Convert WKPageRef to Evas_Object*
}
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1051822</commentid>
    <comment_count>3</comment_count>
    <who name="Angelina">artvideo2003</who>
    <bug_when>2014-12-02 06:05:39 -0800</bug_when>
    <thetext>What you think about this patch?
Thank you.

Source/WebKit2/UIProcess/API/efl/ewk_view.h

#include &quot;WKPage.h&quot;

/**
* Gets a EFL WebKit view object.
*
* @param page WKPageRef object
*
* @return view object on success or NULL on failure 
*/
EAPI Evas_Object* ewk_view_get_view(WKPageRef page);


Source/WebKit2/UIProcess/API/efl/ewk_view.cpp

Evas_Object* EWKViewGetView(WKPageRef page)
{
    if(page)
        return EwkView::toEvasObject(page);
    return 0;
}

Evas_Object* ewk_view_get_view(WKPageRef page)
{
    return EWKViewGetView(page);
}

Source/WebKit2/UIProcess/API/efl/ewk_view_private.h

EAPI Evas_Object* EWKViewGetView(WKPageRef page);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1286496</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-03-11 10:42:10 -0800</bug_when>
    <thetext>Closing this bug because the EFL port has been removed from trunk.

If you feel this bug applies to a different upstream WebKit port and was closed in error, please either update the title and reopen the bug, or leave a comment to request this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>