Bug 1503410 [wpt PR 13794] - [Presentation API] Remove from insecure contexts., a=testonly

Automatic update from web-platform-tests[Presentation API] Remove from insecure contexts.

This patch removes the Presentation API from insecure contexts.  The number of presentations started on insecure contexts is 0.0001% of page views on desktop and 0.0004 on Android.

In addition it updates layout tests and WPT to use https: for presentation URLs.

Blink-dev thread:
https://groups.google.com/a/chromium.org/d/topic/blink-dev/lumj0lVdtHA/discussion

chromestatus.com feature entry:
https://www.chromestatus.com/feature/5766218384408576

Bug: 733381
Change-Id: I9ae3025160b0e0bcf987fda0068a0e6bd92c24fd
Reviewed-on: https://chromium-review.googlesource.com/c/1306336
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604621}

--

wpt-commits: 68c63e96b88dfaceb492a8247ea8830484bf8007
wpt-pr: 13794
This commit is contained in:
mark a. foltz 2018-11-09 16:57:54 +00:00 коммит произвёл moz-wptsync-bot
Родитель 9531a8aa7d
Коммит 96a4f1100c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -18,7 +18,7 @@
}, 'Call PresentationRequest constructor with an empty sequence. NotSupportedError Exception expected.');
assert_throws('SyntaxError', () => {
new PresentationRequest('http://@');
new PresentationRequest('https://@');
}, 'Call PresentationRequest constructor with an invalid URL. SyntaxError Exception expected.');
assert_throws('NotSupportedError', () => {
@ -26,7 +26,7 @@
}, 'Call PresentationRequest constructor with an unsupported URL. NotSupportedError expected.');
assert_throws('SyntaxError', function() {
new PresentationRequest(['presentation.html', 'http://@']);
new PresentationRequest(['presentation.html', 'https://@']);
}, 'Call PresentationRequest constructor with a sequence of URLs, one of them invalid. SyntaxError Exception expected.');
assert_throws('NotSupportedError', function() {