<?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>121208</bug_id>
          
          <creation_ts>2013-09-11 21:06:29 -0700</creation_ts>
          <short_desc>Web Inspector: &apos;arguments&apos; should be accessible from the console</short_desc>
          <delta_ts>2016-12-13 15:37:09 -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>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Mark Lam">mark.lam</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>paul+bugs</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>928126</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2013-09-11 21:06:29 -0700</bug_when>
    <thetext>It&apos;s currently inaccessible because of the scope the Web Inspector sets up before evaluating code. See &lt;http://trac.webkit.org/browser/trunk/Source/WebCore/inspector/InjectedScriptSource.js#L559&gt;.

The steps to fix this are:
(1) Refactor console scope to allow &apos;arguments&apos; access again.
(2) Change the activation object to always provide an &apos;arguments&apos; property, but perform eager tear-off if the user program didn&apos;t use the arguments object.

To avoid regressing bug 121206, and allocating the arguments object when it wasn&apos;t used:
(3) Provide a per-callFrame flag that specifies whether the user program used the arguments object.
(4) ScopeChainDetailsSidebarPanel should make an &quot;excludedProperties&quot; array (the inverse of extraProperties). If the flag is false, it should add &apos;arguments&apos; to the excludedProperties array.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>928127</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-09-11 21:06:39 -0700</bug_when>
    <thetext>&lt;rdar://problem/14972198&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1060433</commentid>
    <comment_count>2</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2015-01-10 10:17:37 -0800</bug_when>
    <thetext>*** Bug 118314 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>