Open Bug 1720838 Opened 4 years ago Updated 3 months ago

[devtools-rfc] DevTools remote-debugging should enable navigator.webdriver

Categories

(DevTools :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

(Blocks 1 open bug)

Details

Even though RDP is not really intended to be used by external tools, people can still use it to automate Firefox and potentially use it for scraping purposes.

Websites can normally detect automation tools & scrapers by checking the navigator.webdriver property.

We might have to enable this as soon as the DevTools server accepts a remote debugging connection.

This will have the side effect that legitimate remote debugging (eg testing a website on Firefox for Android) will also be detected as automation from the website's point of view. But it's apparently what happens for Chrome as soon --remote-debugging-port is passed.

Similarly this will also impact 3rd party tools which use RDP for DevTools-like purposes such as the VSCode plugin.

We should first check the current behavior of other browsers to verify that they enable navigator.webdriver in remote debugging scenarios.

Summary: DevTools remote-debugging should enable navigator.webdriver → [devtools-rfc] DevTools remote-debugging should enable navigator.webdriver
See Also: → 1719505

Just to add this might only be necessary when DevToolsSocketStatus.opened is true, means -start-debugger-server is set. But as James pointed out on Slack it might be good to check how Chrome behaves under such a condition.

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.