Commit c05284d8 authored by Mathias Bynens's avatar Mathias Bynens Committed by Commit Bot

Mark NavigatorAutomationInformation attributes as non-configurable

Context: go/navigator-webdriver-legacyunforgeable

Change-Id: I5adcc41f519f6b97a88f2f9c74fe6db094b60b81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2460744
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarMathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816257}
parent 9d058e92
......@@ -7,5 +7,5 @@
[
RuntimeEnabled=AutomationControlled
] interface mixin NavigatorAutomationInformation {
readonly attribute boolean webdriver;
[LegacyUnforgeable] readonly attribute boolean webdriver;
};
......@@ -20,9 +20,9 @@ test(function() {
test(function() {
var descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(navigator), "webdriver");
var descriptor = Object.getOwnPropertyDescriptor(navigator, "webdriver");
assert_true(descriptor !== undefined);
assert_true(descriptor.configurable);
assert_false(descriptor.configurable);
assert_true(descriptor.enumerable);
assert_true(descriptor.set === undefined);
}, "Test that the navigator.webdriver descriptor has expected properties");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment