Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New presentation start tests that trigger a mixed content error #3590

Conversation

tidoust
Copy link
Contributor

@tidoust tidoust commented Aug 26, 2016

The tests need to run over HTTPS, hence the .https.html extension. They create a PresentationRequest with an HTTP URL and ensure that start reports a SecurityError exception.

Note the tests will pass if they are run over HTTP by mistake (since there would not be any "mixed content" anymore), which could be confusing. A short exchange on IRC suggested that individual test files should not check the protocol themselves, but that the test harness could perhaps be updated to report the error. I prepared a PR on testharness.js accordingly: w3c/testharness.js#207

The tests need to run over HTTPS, hence the ".https.html" extension. They
create a PresentationRequest with an HTTP URL and ensure that "start" reports
a SecurityError exception.
@wpt-pr-bot
Copy link
Collaborator

Reviewers for this pull request are: @louaybassbouss, @tidoust, and @zqzhang.

The tests are semi-manual and the test harness gets confused if the button
gets clicked more than once. Disabling the button ensures the user will only
run the test once.

Also, since the page only contains one test, it is good practice to use the
title of the page to convey the name of the test.
The tests check "reconnect" and "getAvailability" mixed content steps.
@tidoust
Copy link
Contributor Author

tidoust commented Aug 29, 2016

I extended the scope of this pull request to cover other parts of the Presentation API that also require user agents to check for mixed content and throw a SecurityError. The tests should now cover start, reconnect, and getAvailability, the latter two through automated tests.

@louaybassbouss
Copy link
Contributor

Thx @tidoust LGTM

@louaybassbouss louaybassbouss merged commit f9ee769 into web-platform-tests:master Aug 29, 2016
@tidoust tidoust deleted the presentation-api-startNewPresentation-mixedcontent branch December 21, 2016 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants