New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 617664 link

Starred by 5 users

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

clear() and console.clear() not working

Reported by nikhilv2...@gmail.com, Jun 6 2016

Issue description

Chrome Version       : 51.0.2704.79 m
URLs (if applicable) : http://www.thehindu.com/
Other browsers tested: Firefox
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Safari:
    Firefox: Ok, v46.0.1
         IE:

What steps will reproduce the problem?
(1) Open developer tools > console tab and make sure that something is on the console
(2) type clear() and hit enter
(3) Also try with console.clear()

What is the expected result?
console should be cleared

What happens instead?
prints undefined

Please provide any additional information below. Attach a screenshot if
possible.

 
chrome_consoleClear.png
317 KB View Download
this issue doesn't seem to be restricted to specified URL but occurs almost on every page..
Cc: rnimmagadda@chromium.org
Labels: Needs-Feedback
Unable to repro this issue on Windows 7 for Google Chrome Stable Version - 51.0.2704.84 

Screen-recording is attached.

@nikhilv2007: Could you please perform the steps mentioned beneath and let us know your observations.

1. Update your Google Chrome to Latest Stable Version - 51.0.2704.84 
2. Re-test the same on a clean profile [chrome://settings -> Add Person]

Thank you.
617664.mp4
1.6 MB Download
Maybe it's caused by some extensions, like this issue https://bugs.chromium.org/p/chromium/issues/detail?id=601085#c7
Updated Chrome to latest version 51.0.2704.84.

Scenario - 1 (existing person profile)
1. Removed access of all extensions in incognito mode.
2. Open new incognito window and navigate to the URL.
3. execute Clear() on console -> doesn't work

Scenario -2 (add new person)
same steps above, works
The problem could have been caused due to some extension/app installed on your Chrome. Please remove unwanted app/ext and re-test the same and let us know your observations.

Thank you.
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 8 2016

Labels: -Needs-Feedback Needs-Review
Owner: rnimmagadda@chromium.org
Thank you for providing more feedback. Adding requester "rnimmagadda@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Have finally figured out the reason for this behavior. "Preserve Log" is checked on console, so the console isn't cleared on cmd execution. 

I'm not sure of what is supposed to be behavior, but I strongly feel console should be cleared on cmd(clear() & console.clear()) irrespective of "Preserve Log" (un)checked.
Cc: brajkumar@chromium.org
Labels: -Needs-Review Needs-Feedback
Owner: ----
Not able to reproduce the issue across all OS platform. Able to clear the console using command clear() & console.clear() as expected. 

nikhil@ - Could you please confirm that are you able to clear console by unchecking "Preserve Log" ? If yes, Can we close this bug? 

Project Member

Comment 11 by sheriffbot@chromium.org, Jun 12 2016

Labels: -Needs-Feedback Needs-Review
Owner: brajkumar@chromium.org
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Documentation
Owner: ----
Labels: -Needs-Review
Cleaning up "Needs-Review" label as we are not using this label for triage anymore. Ref bug for this cleanup 684919
Components: Platform>DevTools

Comment 15 by alph@chromium.org, Mar 2 2018

Owner: l...@chromium.org
Status: WontFix (was: Unconfirmed)
Cannot repro.

Sign in to add a comment