Closed Bug 1786976 Opened 2 years ago Closed 2 years ago

Hide Inspect (DevTools) action button if DevTools is fully disabled

Categories

(Firefox :: Address Bar, enhancement)

enhancement

Tracking

()

VERIFIED FIXED
106 Branch
Tracking Status
firefox106 --- verified
firefox107 --- verified

People

(Reporter: daisuke, Assigned: daisuke)

References

Details

Attachments

(2 files)

This is a follow-up for bug 1783877.

As Julian suggested in phabricator, may be better to hide Inspect action button completely instead of disabling, if DevTools is fully disabled.

Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f62b95d76d4d Hide Inspect action button if DevTools is fully disabled. r=daleharvey https://hg.mozilla.org/integration/autoland/rev/99e0920487ff Define functions that does not need to commonize at each action. r=daleharvey
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

Hello Daisuke,
I've tested this using the latest nightly (Fx107.0a1) on Windows and Ubuntu, but the 'inspector' button is still visible.
I've set 'devtools.policy.disabled' to true and the in the address bar I've typed 'insp' and the quick-actions button showed up, but it was disabled. Was this patch supposed to disable it or hide it completely?

Flags: needinfo?(daisuke)

Hello Cristian, thank you very much for your comment!
Well, we need to set one more pref devtools.selfxss.count to 0 to disable DevTools completely.
https://searchfox.org/mozilla-central/rev/ffa4d00965c5281def6d3ddcbcdf6259d38c9b9a/devtools/startup/DevToolsStartup.sys.mjs#674-683

Flags: needinfo?(daisuke)

The issue is verified fixed using the latest Fx107.0a1 on Windows 10 and Ubuntu 22.04. When setting devtools.selfxss.count to 0 and devtools.policy.disabled to true the Inspect quickaction button is no longer visible.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: