Restrict notification permission requests to top-level secure contexts
Requesting notification permission could previously happen from any context, which included iframes and insecure origins. Starting with Chrome 61 we're restricting this to top-level secure contexts. Usage will continue to be allowed in iframes once permission has been granted from a top-level frame. Origins could easily work around such a restriction by posting a message to their Service Worker, so it doesn't make sense to impose it. BUG=695693 TBR=stevenjb (http -> https in site settings unit test) Change-Id: I33fe4278ed3ecd388872c74e6f299589855ea835 Reviewed-on: https://chromium-review.googlesource.com/558095Reviewed-by:Peter Beverloo <peter@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Reviewed-by:
Raymes Khoury <raymes@chromium.org> Commit-Queue: Peter Beverloo <peter@chromium.org> Cr-Commit-Position: refs/heads/master@{#487935}
Showing
Please register or sign in to comment