<?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>109917</bug_id>
          
          <creation_ts>2013-02-15 02:17:10 -0800</creation_ts>
          <short_desc>[WK2][EFL] WebPageProxy::setThemePath() should check that the page is valid</short_desc>
          <delta_ts>2013-03-05 11:52:07 -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>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail Pozdnyakov">mikhail.pozdnyakov</reporter>
          <assigned_to name="Mikhail Pozdnyakov">mikhail.pozdnyakov</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>kenneth</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>rakuco</cc>
    
    <cc>ryuan.choi</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>833818</commentid>
    <comment_count>0</comment_count>
    <who name="Mikhail Pozdnyakov">mikhail.pozdnyakov</who>
    <bug_when>2013-02-15 02:17:10 -0800</bug_when>
    <thetext>WebPageProxy::setThemePath() should check that the page is valid before sending IPC message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>833820</commentid>
    <comment_count>1</comment_count>
      <attachid>188519</attachid>
    <who name="Mikhail Pozdnyakov">mikhail.pozdnyakov</who>
    <bug_when>2013-02-15 02:20:21 -0800</bug_when>
    <thetext>Created attachment 188519
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>833823</commentid>
    <comment_count>2</comment_count>
      <attachid>188519</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-02-15 02:23:46 -0800</bug_when>
    <thetext>Comment on attachment 188519
patch

LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>833885</commentid>
    <comment_count>3</comment_count>
      <attachid>188519</attachid>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2013-02-15 04:28:37 -0800</bug_when>
    <thetext>Comment on attachment 188519
patch

LGTM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834156</commentid>
    <comment_count>4</comment_count>
      <attachid>188519</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-02-15 10:32:31 -0800</bug_when>
    <thetext>Comment on attachment 188519
patch

Why? This breaks calling this method while the process is launching.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>834167</commentid>
    <comment_count>5</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2013-02-15 10:48:51 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 188519 [details])
&gt; Why? This breaks calling this method while the process is launching.

I don’t think this is true. isValid() will only return false if the page has been closed using WebPageProxy::closed(), or if the process has crashed and the page hasn’t been reattached to the new process yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836439</commentid>
    <comment_count>6</comment_count>
    <who name="Mikhail Pozdnyakov">mikhail.pozdnyakov</who>
    <bug_when>2013-02-19 08:48:04 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (From update of attachment 188519 [details] [details])
&gt; &gt; Why? This breaks calling this method while the process is launching.
&gt; 
&gt; I don’t think this is true. isValid() will only return false if the page has been closed using WebPageProxy::closed(), or if the process has crashed and the page hasn’t been reattached to the new process yet.

Indeed, it just should not allow send IPC messages if web process is not running any more. 
Most of WebPageProxy methods check isValid() before sending and return if it returns false, some methods are trying to re-launch the web process (for instance loadURL()) but this is not the desired behaviour for WebPageProxy::setThemePath() I guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838569</commentid>
    <comment_count>7</comment_count>
    <who name="Mikhail Pozdnyakov">mikhail.pozdnyakov</who>
    <bug_when>2013-02-21 10:43:01 -0800</bug_when>
    <thetext>Could please anyone review it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847879</commentid>
    <comment_count>8</comment_count>
      <attachid>188519</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-05 11:52:01 -0800</bug_when>
    <thetext>Comment on attachment 188519
patch

Clearing flags on attachment: 188519

Committed r144794: &lt;http://trac.webkit.org/changeset/144794&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847880</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-05 11:52:07 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>188519</attachid>
            <date>2013-02-15 02:20:21 -0800</date>
            <delta_ts>2013-03-05 11:52:01 -0800</delta_ts>
            <desc>patch</desc>
            <filename>bug109917</filename>
            <type>text/plain</type>
            <size>1451</size>
            <attacher name="Mikhail Pozdnyakov">mikhail.pozdnyakov</attacher>
            
              <data encoding="base64">Y29tbWl0IGQ2MzBhYjg1ZTQ0N2M1MzE3ZTAyMjA3YTA3YTYzMmJmYjdjZGU0OGYKQXV0aG9yOiBN
aWtoYWlsIFBvemRueWFrb3YgPG1pa2hhaWwucG96ZG55YWtvdkBpbnRlbC5jb20+CkRhdGU6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