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

Issue 619889 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Consider adding command to disable JavaScript in the new Command Menu

Reported by cont...@jaygeorge.co.uk, Jun 14 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2766.0 Safari/537.36

Steps to reproduce the problem:
1. Open DevTools
2. Press cmd + shift + p to open the new Command Menu
3. Search for "Disable JavaScript"

What is the expected behavior?
"Disable JavaScript" should appear

What went wrong?
"Disable JavaScript" is not a command currently available in the new Command Menu

Did this work before? No 

Chrome version: 53.0.2766.0  Channel: n/a
OS Version: OS X 10.11.5
Flash Version: Shockwave Flash 22.0 r0

Disabling JavaScript is a common enough operation for developing/testing websites, especially for accessibility testing. Therefore I think it should be an included command.
 
We don't want to promote Disable JavaScript since it is unrecoverable toggle. Why do you use it?
I'm not quite sure what you mean by unrecoverable toggle.

> Why do you use it?

Do you mean why do I disable JavaScript? Because I'm web designer and I need to test that sites are accessible with/without JavaScript. Therefore there are periods where I frequently toggle JS off/on.

Currently the only way I know to do this is to:
1. Go to the elements tab
2. Press cmd + / to get to "Settings"
3. Click the "Disable JavaScript" checkbox with my mouse (the checkbox here is not keyboard accessible as far as I'm aware)

This is a bit painful, especially as there is no way to do this without moving my mouse around.

The Command Menu is great addition for power users who are frequently in DevTools and I thought this would be a perfect use case.
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Agree its useful in some situations (testing progressive enhancement, a/b testing performance).

We should surface in the cmd menu. cmd menu all the things!
Project Member

Comment 4 by bugdroid1@chromium.org, Jul 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4069e89321d82c86500fc78dc0b1848e4783be44

commit 4069e89321d82c86500fc78dc0b1848e4783be44
Author: kozyatinskiy <kozyatinskiy@chromium.org>
Date: Fri Jul 29 04:17:26 2016

[DevTools] Add "Disable JavaScript" into command menu

BUG= 619889 
R=lushnikov@chromium.org

Review-Url: https://codereview.chromium.org/2194753002
Cr-Commit-Position: refs/heads/master@{#408575}

[modify] https://crrev.com/4069e89321d82c86500fc78dc0b1848e4783be44/third_party/WebKit/Source/devtools/front_end/main/module.json

Labels: -OS-Mac OS-All
Status: Fixed (was: Assigned)

Sign in to add a comment