Detect DevTools using (new Error).message
Categories
(DevTools :: General, defect)
Tracking
(Not tracked)
People
(Reporter: awathefox, Unassigned)
References
Details
Attachments
(1 file)
|
449 bytes,
text/html
|
Details |
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.
Comment 1•1 year ago
|
||
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.
Comment 2•1 year ago
|
||
Comment 3•1 year ago
|
||
Looks like the same issue as Bug 1789258
Description
•