<?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>110177</bug_id>
          
          <creation_ts>2013-02-18 22:25:54 -0800</creation_ts>
          <short_desc>[JS Binding] ScriptObject default constructor should initialize the Script State to 0</short_desc>
          <delta_ts>2013-02-21 11:22:11 -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>WebCore JavaScript</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="Vivek Galatage">vivekg</reporter>
          <assigned_to name="Vivek Galatage">vivekg</assigned_to>
          <cc>barraclough</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>835957</commentid>
    <comment_count>0</comment_count>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2013-02-18 22:25:54 -0800</bug_when>
    <thetext>ScriptObject default constructor should initialize the Script State to 0.

V8 binding has already done the initialization( http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/v8/ScriptObject.h#L47 ). 

Adding it for JS binding. Patch follows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835959</commentid>
    <comment_count>1</comment_count>
      <attachid>188989</attachid>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2013-02-18 22:28:45 -0800</bug_when>
    <thetext>Created attachment 188989
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>835994</commentid>
    <comment_count>2</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2013-02-18 23:01:59 -0800</bug_when>
    <thetext>Is there a regression test for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836005</commentid>
    <comment_count>3</comment_count>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2013-02-18 23:16:55 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Is there a regression test for this?

Unfortunately I couldn&apos;t find any regression test handy for this at the moment. I am trying to create empty InjectedScript in a case when the JavaScript is disabled across the browser. During this, I found that the ScriptState is not initialized to 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838598</commentid>
    <comment_count>4</comment_count>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2013-02-21 11:08:31 -0800</bug_when>
    <thetext>@Geoffrey

I am not sure how to write a test case for this error scenario as I am finding it as a non-trivial case. Do you have any suggestion about writing the test scenario for it? Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838599</commentid>
    <comment_count>5</comment_count>
      <attachid>188989</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2013-02-21 11:09:30 -0800</bug_when>
    <thetext>Comment on attachment 188989
Patch

OK. r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838605</commentid>
    <comment_count>6</comment_count>
      <attachid>188989</attachid>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2013-02-21 11:11:32 -0800</bug_when>
    <thetext>Comment on attachment 188989
Patch

Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838621</commentid>
    <comment_count>7</comment_count>
      <attachid>188989</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-21 11:22:07 -0800</bug_when>
    <thetext>Comment on attachment 188989
Patch

Clearing flags on attachment: 188989

Committed r143631: &lt;http://trac.webkit.org/changeset/143631&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>838622</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-21 11:22:11 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>188989</attachid>
            <date>2013-02-18 22:28:45 -0800</date>
            <delta_ts>2013-02-21 11:22:07 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-110177-20130219115611.patch</filename>
            <type>text/plain</type>
            <size>1488</size>
            <attacher name="Vivek Galatage">vivekg</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQzMjkzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYzExYWE2MWQ3MzUwMjI5
M2Q1OWViZmMwOTkyYmVjYzc5MTIxMTM0OC4uYmM3MmUwOTNmZjc2MmYxOTY0MWM1MTA0ODUxMzNl
NzYzNThlNzk3OCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDEzLTAyLTE4ICBWaXZl
ayBHYWxhdGFnZSAgPHZpdmVrLnZnQHNhbXN1bmcuY29tPgorCisgICAgICAgIFtKUyBCaW5kaW5n
XSBTY3JpcHRPYmplY3QgZGVmYXVsdCBjb25zdHJ1Y3RvciBzaG91bGQgaW5pdGlhbGl6ZSB0aGUg
U2NyaXB0IFN0YXRlIHRvIDAKKyAgICAgICAga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