| Index: third_party/WebKit/Source/core/frame/Navigator.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/Navigator.cpp b/third_party/WebKit/Source/core/frame/Navigator.cpp
|
| index 27ce6317f03466cf931450e820af2f6a60466e1b..5a49f43db1ba85293a4e97feae031d81b4c3ac2d 100644
|
| --- a/third_party/WebKit/Source/core/frame/Navigator.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/Navigator.cpp
|
| @@ -73,6 +73,17 @@ bool Navigator::cookieEnabled() const {
|
| return CookiesEnabled(GetFrame()->GetDocument());
|
| }
|
|
|
| +bool Navigator::webdriver() const {
|
| + if (!GetFrame())
|
| + return false;
|
| +
|
| + Settings* settings = GetFrame()->GetSettings();
|
| + if (!settings)
|
| + return false;
|
| +
|
| + return settings->GetAutomationControlled() || settings->GetHeadless();
|
| +}
|
| +
|
| Vector<String> Navigator::languages() {
|
| Vector<String> languages;
|
|
|
|
|