<?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>85209</bug_id>
          
          <creation_ts>2012-04-30 10:50:23 -0700</creation_ts>
          <short_desc>[EFL] Remove unnecessary extra call to set developer extras setting on the test startup</short_desc>
          <delta_ts>2012-05-24 22:00:48 -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>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="Sudarsana Nagineni (babu)">naginenis</reporter>
          <assigned_to name="Sudarsana Nagineni (babu)">naginenis</assigned_to>
          <cc>gyuyoung.kim</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>rakuco</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>612747</commentid>
    <comment_count>0</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-04-30 10:50:23 -0700</bug_when>
    <thetext>enable_developer_extras_set() called twice on the test startup. Calling this function with wrong value from resetDefaultsToConsistentValues()is unnecessary because the same function with the correct value called again from createLayoutTestController().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>612792</commentid>
    <comment_count>1</comment_count>
      <attachid>139489</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-04-30 11:31:24 -0700</bug_when>
    <thetext>Created attachment 139489
Patch

Remove an unnecessary extra call enable_developer_extras_set().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614002</commentid>
    <comment_count>2</comment_count>
      <attachid>139489</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2012-05-01 22:56:48 -0700</bug_when>
    <thetext>Comment on attachment 139489
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=139489&amp;action=review

&gt; Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp:-228
&gt; -    ewk_view_setting_enable_developer_extras_set(browser-&gt;mainView(), EINA_FALSE);

I think we need to keep this developer extras setting in this function. Although resetDefaultsToConsistentValues() is only called by runTest in EFL DRT, other functions is able to call this function. I think we need to modify why we set developer_extras_set as true regardless of inspector tests. I think we can only enable this option when test is for inspector.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614172</commentid>
    <comment_count>3</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2012-05-02 04:15:18 -0700</bug_when>
    <thetext>In GTK port case, they have a function to check if developer extras option is enabled. But, they don&apos;t check it as below,

static bool shouldEnableDeveloperExtras(const string&amp; pathOrURL)
{
    return true;
}

I take a look what is developer_extra option. It seems the option is used by inspector and to support additional features. For example, message is shown on console or support worker thread on inspector and so on. I&apos;m still thinking we can enable this feature when we run test regarding inspector. It look other ports  just enable this feature regardless of inspector.

By the way, I think resetDefaultsToConsistentValues() is to reset all options. So, IMO, developerExtras option needs to be set as false by default. If other places wanna reset all options by this function, we can&apos;t set it as false by this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614220</commentid>
    <comment_count>4</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2012-05-02 06:03:32 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; In GTK port case, they have a function to check if developer extras option is enabled. But, they don&apos;t check it as below,
&gt; 
&gt; static bool shouldEnableDeveloperExtras(const string&amp; pathOrURL)
&gt; {
&gt;     return true;
&gt; }
&gt; 
&gt; I take a look what is developer_extra option. It seems the option is used by inspector and to support additional features. For example, message is shown on console or support worker thread on inspector and so on. I&apos;m still thinking we can enable this feature when we run test regarding inspector. It look other ports  just enable this feature regardless of inspector.

Initially, other ports had a check that enables developer extras only for tests that have inspector-enabled/ in their path. But, the following commit removed the condition and enabled the setting always in DRT.
http://trac.webkit.org/changeset/72366

&gt; 
&gt; By the way, I think resetDefaultsToConsistentValues() is to reset all options. So, IMO, developerExtras option needs to be set as false by default. If other places wanna reset all options by this function, we can&apos;t set it as false by this patch.

Currently resetDefaultsToConsistentValues() is getting called only on the test startup. So, I thought it&apos;s an unnecessary to set the setting FALSE first and change to TRUE again on the test startup. As this is a trivial case, I can keep this as it is, if you think we might use reset*() function in other places to reset the values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614296</commentid>
    <comment_count>5</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-05-02 07:45:52 -0700</bug_when>
    <thetext>Interesting, I had not noticed we sort of reset the settings in two different places (createLTC and resetDefaultsToConsistentValues). I understand Gyuyoung&apos;s concern, however the way I see it is that after the commit Sudarsana pointed out we always need to enable developer extras and we currently effectively have two contradicting calls immediately following each other, so we either just leave the call in createLTC as it is or remove it and pass EINA_TRUE to the ewk_view_setting call in resetDefaults. I tend to favour the former just to make the API more similar to the one used by other ports so changes such as the very one cited by Sudarsana can be made more easily in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>628875</commentid>
    <comment_count>6</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2012-05-21 01:39:33 -0700</bug_when>
    <thetext>If DRT needs to enable/disable developer_extras_set during the layout test, I&apos;m still thinking we need to keep ewk_view_setting_enable_developer_extras_set(browser-&gt;mainView(), EINA_FALSE); in resetDefaultsToConsistentValues(). But, as Sudarsana said, if this option needs to be turned on always, I agree with submitting patch for now.

Kubo, is this similar your opinion ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>631738</commentid>
    <comment_count>7</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-05-23 09:48:46 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; If DRT needs to enable/disable developer_extras_set during the layout test, I&apos;m still thinking we need to keep ewk_view_setting_enable_developer_extras_set(browser-&gt;mainView(), EINA_FALSE); in resetDefaultsToConsistentValues(). But, as Sudarsana said, if this option needs to be turned on always, I agree with submitting patch for now.
&gt; 
&gt; Kubo, is this similar your opinion ?

Yes. Right now we&apos;re duplicating calls already made in createLTC(). If we remove that, we can even get rid of a FIXME I added in r117540.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633536</commentid>
    <comment_count>8</comment_count>
      <attachid>139489</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-05-24 21:52:39 -0700</bug_when>
    <thetext>Comment on attachment 139489
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=139489&amp;action=review

&gt; Tools/ChangeLog:9
&gt; +        an unnecessary extra call which set wrong value. 

sets</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633544</commentid>
    <comment_count>9</comment_count>
      <attachid>139489</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-24 22:00:36 -0700</bug_when>
    <thetext>Comment on attachment 139489
Patch

Clearing flags on attachment: 139489

Committed r118473: &lt;http://trac.webkit.org/changeset/118473&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633546</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-24 22:00:48 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>139489</attachid>
            <date>2012-04-30 11:31:24 -0700</date>
            <delta_ts>2012-05-24 22:00:35 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>85209.patch</filename>
            <type>text/plain</type>
            <size>1650</size>
            <attacher name="Sudarsana Nagineni (babu)">naginenis</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCAyZTY5
OTQ4Li4yYjg4ZTFmIDEwMDY0NAotLS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTYgQEAKKzIwMTItMDQtMzAgIFN1ZGFyc2FuYSBOYWdpbmVuaSAg
PHN1ZGFyc2FuYS5uYWdpbmVuaUBsaW51eC5pbnRlbC5jb20+CisKKyAgICAgICAgW0VGTF0gUmVt
b3ZlIHVubmVjZXNzYXJ5IGV4dHJhIGNhbGwgdG8gc2V0IGRldmVsb3BlciBleHRyYXMgc2V0dGlu
ZyBvbiB0aGUgdGVzdCBzdGFydHVwCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD04NTIwOQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEp
LgorCisgICAgICAgIFNldCBkZXZlbG9wZXIgZXh0cmFzIHNldHRpbmcgY2FsbGVkIHR3aWNlIG9u
IHRoZSB0ZXN0IHN0YXJ0dXAuIEhlbmNlLCByZW1vdmluZworICAgICAgICBhbiB1bm5lY2Vzc2Fy
eSBleHRyYSBjYWxsIHdoaWNoIHNldCB3cm9uZyB2YWx1ZS4gCisKKyAgICAgICAgKiBEdW1wUmVu
ZGVyVHJlZS9lZmwvRHVtcFJlbmRlclRyZWVDaHJvbWUuY3BwOgorICAgICAgICAoRHVtcFJlbmRl
clRyZWVDaHJvbWU6OnJlc2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W5WaWV3KCksIEVJTkFfRkFMU0UpOwogICAgIGV3a192aWV3X3Nl
dHRpbmdfbWluaW11bV90aW1lcl9pbnRlcnZhbF9zZXQoYnJvd3Nlci0+bWFpblZpZXcoKSwgMC4w
MTApOyAvLyAxMCBtaWxsaXNlY29uZHMgKERPTVRpbWVyOjpzX21pbkRlZmF1bHRUaW1lckludGVy
dmFsKQogCiAgICAgZXdrX3ZpZXdfem9vbV9zZXQobWFpblZpZXcoKSwgMS4wLCAwLCAwKTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>