| Index: third_party/WebKit/LayoutTests/fast/frames/unique-name-main-frame-conflict.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/frames/unique-name-main-frame-conflict.html b/third_party/WebKit/LayoutTests/fast/frames/unique-name-main-frame-conflict.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3a4010096f2c3cd04a6a70b4b1f4ebfe4091c62b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/frames/unique-name-main-frame-conflict.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script>
|
| +function runTest()
|
| +{
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.dumpChildFramesAsText();
|
| + }
|
| + // Before https://crrev.com/1968213002 main frame's unique name would be
|
| + // set without any checks for conflicts with names of subframes.
|
| + //
|
| + // Note that layout tests do not include the name of the main frame
|
| + // in test output - this means that the test verification of uniqueness
|
| + // depends on the assert in FrameTree::setUniqueName (which should make
|
| + // this test crash if the main frame's unique name is not truly unique).
|
| + window.name = "subframeName";
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<iframe name="subframeName"></iframe>
|
| +</body>
|
| +</html>
|
|
|