WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
101320
Console not displaying all properties of an Object once native Constructor overwritten
https://bugs.webkit.org/show_bug.cgi?id=101320
Summary
Console not displaying all properties of an Object once native Constructor ov...
Yury Semikhatsky
Reported
2012-11-06 01:21:41 PST
Original Chromium bug report:
http://code.google.com/p/chromium/issues/detail?id=159408
Steps to reproduce the problem: 1. Open dev tools and declare object foo with property bar that has value 'hello,world'(used object literal to create object) 2. log foo (bar and __proto__ properties displayed) 3. overwrite Object constructor (Object = function() {}) 4. log foo again (no properties displayed) 5. log foo.bar ('hello,world' printed) What is the expected behavior? All the available properties of the object should still be visible as object has already been created prior to the constructor being overwritten. What went wrong? The console does not display the object's properties when the properties do exist. Can still log the individual values of the properties, but not the entire object.
Attachments
Patch
(3.97 KB, patch)
2012-11-06 01:28 PST
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(3.97 KB, patch)
2012-11-06 01:30 PST
,
Yury Semikhatsky
pfeldman
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2012-11-06 01:28:44 PST
Created
attachment 172515
[details]
Patch
Pavel Feldman
Comment 2
2012-11-06 01:30:01 PST
Comment on
attachment 172515
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=172515&action=review
> Source/WebCore/inspector/InjectedScriptSource.js:37 > +var Object = {}.constructor;
This could be too late, right?
Yury Semikhatsky
Comment 3
2012-11-06 01:30:12 PST
Created
attachment 172516
[details]
Patch
Yury Semikhatsky
Comment 4
2012-11-06 01:46:18 PST
(In reply to
comment #2
)
> (From update of
attachment 172515
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=172515&action=review
> > > Source/WebCore/inspector/InjectedScriptSource.js:37 > > +var Object = {}.constructor; > > This could be too late, right?
Could you elaborate?
WebKit Review Bot
Comment 5
2012-11-06 03:52:53 PST
Comment on
attachment 172516
[details]
Patch Rejecting
attachment 172516
[details]
from commit-queue. New failing tests: inspector/console/command-line-api.html inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html Full output:
http://queues.webkit.org/results/14728814
Build Bot
Comment 6
2012-11-06 05:00:53 PST
Comment on
attachment 172516
[details]
Patch
Attachment 172516
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/14755114
New failing tests: inspector/console/command-line-api.html
WebKit Review Bot
Comment 7
2012-11-06 05:43:02 PST
Comment on
attachment 172516
[details]
Patch
Attachment 172516
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14756009
New failing tests: inspector/console/command-line-api.html
Yury Semikhatsky
Comment 8
2012-11-07 00:33:05 PST
Committed
r133727
: <
http://trac.webkit.org/changeset/133727
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug