Commit 8a743026 authored by Jay Harris's avatar Jay Harris Committed by Commit Bot

Only exposes Badge API on secure contexts.

Previously, it was available on all pages, regardless of whether they
were considered secure. Policy for new web apis is to only expose them
in secure contexts.

Bug: 1013493
Change-Id: Id2c810309d4b21554b2ab11300d959a0bcf31102
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1855149
Commit-Queue: Jay Harris <harrisjay@chromium.org>
Commit-Queue: Matt Giuca <mgiuca@chromium.org>
Auto-Submit: Jay Harris <harrisjay@chromium.org>
Reviewed-by: default avatarMatt Giuca <mgiuca@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704994}
parent fb80a99b
......@@ -4,6 +4,7 @@
// https://wicg.github.io/badging/
[
SecureContext,
RuntimeEnabled=Badging,
ImplementedAs=NavigatorBadge
] partial interface Navigator {
......
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