[Webkit-unassigned] [Bug 32726] New: Web Inspector: Autocompletion in Console should not invoke getters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 18 11:08:00 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32726

           Summary: Web Inspector: Autocompletion in Console should not
                    invoke getters
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org
                CC: timothy at hatcher.name, rik at webkit.org,
                    keishi at webkit.org, pmuellr at yahoo.com,
                    joepeck at webkit.org, pfeldman at chromium.org,
                    bweinstein at apple.com


The Console's autocompletion seems to be invoking getters on an object. This is
probably a bad idea.

For example:

  > var x = {};
  > x.__defineGetter__('aaaaaaa', function() {
      console.log('here');
    }

As you type, the getter is getting called:

  "here" (3 times)
  > x.a
  > x.aa
  > x.aaa

Video:
http://screencast.com/t/MzRlMDU4NDMt

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list