Anton Bershanskyi removed chromium...@chromium.org from reviewers of this change.
[TEST] KeyboardLayoutMap permission
diff --git a/content/browser/keyboard_lock/keyboard_lock_service_impl.cc b/content/browser/keyboard_lock/keyboard_lock_service_impl.cc
index 31fc6ee..ee3d47a8 100644
--- a/content/browser/keyboard_lock/keyboard_lock_service_impl.cc
+++ b/content/browser/keyboard_lock/keyboard_lock_service_impl.cc
@@ -142,8 +142,7 @@
auto response = GetKeyboardLayoutMapResult::New();
// The keyboard layout map is only accessible from the outermost main frame or
// with the permission policy enabled.
- if (frame_host_impl.GetParentOrOuterDocument() &&
- !frame_host_impl.IsFeatureEnabled(
+ if (!frame_host_impl.IsFeatureEnabled(
network::mojom::PermissionsPolicyFeature::kKeyboardMap)) {
response->status = blink::mojom::GetKeyboardLayoutMapStatus::kDenied;
std::move(callback).Run(std::move(response));
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |