Issue metadata
Sign in to add a comment
|
Console prototype inaccessible in Chrome Canary
Reported by
richardk...@gmail.com,
Jun 21 2016
|
||||||||||||||||||||||
Issue description
Chrome Version : 53.0.2770.0 (Official Build) canary (64-bit)
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: OK 9.1.1
Firefox: OK 47.0
Some websites shim console.log/warn/debug/error with empty functions but the user has been able to undo this if needed by running "delete console.log" or using Object.getPrototypeOf() or console.__proto__ to get the original function. In Canary the prototype of console appears to be empty and all of the functions are properties of the console object instead.
What steps will reproduce the problem?
(1) Open the dev console
(2) run "Object.getPrototypeOf(console).log"
What is the expected result?
Output should be should be something like "function log(){[native code]}"
What happens instead?
Output is undefined
Please provide any additional information below. Attach a screenshot if
possible.
Running Object.getOwnPropertyNames(console) in Canary returns ["debug", "error", "info", "log", "warn", "dir", "dirxml", "table", "trace", "group", "groupCollapsed", "groupEnd", "clear", "count", "assert", "markTimeline", "profile", "profileEnd", "timeline", "timelineEnd", "time", "timeEnd", "timeStamp", "memory"] which means that if any of these are replaced they can't be "brought back".
,
Jun 22 2016
Moving this nonessential bug to the next milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 3 2016
This issue has been moved once and is lower than Pri-1. Removing the milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 3 2016
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by kavvaru@chromium.org
, Jun 22 2016Labels: -Type-Bug -Pri-3 M-52 hasbisect OS-Linux OS-Mac OS-Windows Pri-2 Type-Bug-Regression
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)