Commit b94978cf authored by Gary Kacmarcik's avatar Gary Kacmarcik Committed by Commit Bot

Remove flag check for clipboard-read/write permission.query

The AsyncClipboardAPI feature flag used to control access to the entire
async clipboard API, but (since we're now shipping the text portions of
the API) its meaning has been changed to control access only to the parts
of the API that are still under development (e.g., image and delayed
generation support).

The Clipboard permission is shipping as part of the text APIs, so it
should no longer be checking this feature flag.

Bug: 677564,821947
Change-Id: Ia57b57df3eae03c2d4372cf5e7472ef1d0532f49
Reviewed-on: https://chromium-review.googlesource.com/963287Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Gary Kacmarcik <garykac@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543504}
parent e5feb7e8
...@@ -127,11 +127,6 @@ PermissionDescriptorPtr ParsePermission(ScriptState* script_state, ...@@ -127,11 +127,6 @@ PermissionDescriptorPtr ParsePermission(ScriptState* script_state,
return CreatePermissionDescriptor(PermissionName::ACCESSIBILITY_EVENTS); return CreatePermissionDescriptor(PermissionName::ACCESSIBILITY_EVENTS);
} }
if (name == "clipboard-read" || name == "clipboard-write") { if (name == "clipboard-read" || name == "clipboard-write") {
if (!RuntimeEnabledFeatures::AsyncClipboardEnabled()) {
exception_state.ThrowTypeError("Async Clipboard flag is not enabled.");
return nullptr;
}
PermissionName permission_name = PermissionName::CLIPBOARD_READ; PermissionName permission_name = PermissionName::CLIPBOARD_READ;
if (name == "clipboard-write") if (name == "clipboard-write")
permission_name = PermissionName::CLIPBOARD_WRITE; permission_name = PermissionName::CLIPBOARD_WRITE;
......
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