| Index: third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-auth-denied.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-auth-denied.html b/third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-auth-denied.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..397abee58aa98842d7ff1d36cc54fc6a055e59fc
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/navigation/pushstate-auth-denied.html
|
| @@ -0,0 +1,18 @@
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| +}
|
| +
|
| +// http://username@password:localhost:8000/... should be blocked.
|
| +var originWithAuth = new URL(document.URL);
|
| +originWithAuth.username += 'username';
|
| +originWithAuth.password += 'password';
|
| +originWithAuth = originWithAuth.href;
|
| +
|
| +try {
|
| + history.pushState(null, null, originWithAuth);
|
| + document.write("FAIL: pushState with different auth succeeded.");
|
| +} catch(e) {
|
| + document.write("PASS: pushState with different auth was blocked.");
|
| +}
|
| +</script>
|
|
|