Closed Bug 1891352 Opened 1 year ago Closed 1 year ago

Detect DevTools using (new Error).message

Categories

(DevTools :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1789258

People

(Reporter: awathefox, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0

Steps to reproduce:

Step to produce:

const err = new Error('Detect DevTools');
Object.defineProperty(err, 'message', { get() { console.log('triggered'); return 'NoDevTools'; } });
console.log(err); // err.message getter is automatically called when open DevTools.

Actual results:

if DevTools is opened it will output 'triggered', otherwise nothing.

Expected results:

This method should not be able to detect DevTools.

The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → DevTools

Looks like the same issue as Bug 1789258

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1789258
Resolution: --- → DUPLICATE
See Also: → 1789258
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: