Diff
Modified: trunk/LayoutTests/ChangeLog (195150 => 195151)
--- trunk/LayoutTests/ChangeLog 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/ChangeLog 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,3 +1,26 @@
+2016-01-15 Jiewen Tan <[email protected]>
+
+ Refine http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer*
+ https://bugs.webkit.org/show_bug.cgi?id=153140
+
+ Reviewed by Alexey Proskuryakov.
+
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always.html:
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default.html:
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never.html:
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade.html:
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer.html:
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin.html:
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url.html:
+ * http/tests/contentdispositionattachmentsandbox/referer-header-stripped.html:
+ * http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js:
+ (onload):
+ (navigation): Deleted.
+ The reason why the tests are not completed after calling testRunner.notifyDone() is that the original navigation()
+ is bound as the onload of the iframe which will dispatch two load events. Therefore, navigation() will be called
+ twice. Here, change the navigation() to be bound with the main frame's onload function, which will restrict it to
+ be called only once.
+
2016-01-15 Myles C. Maxfield <[email protected]>
[Cocoa] Font features are not applied to the system font
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-always.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-default.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-never.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer-when-downgrade.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-no-referrer.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-origin.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped-with-meta-referer-unsafe-url.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
\ No newline at end of file
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped.html (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped.html 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/referer-header-stripped.html 2016-01-15 23:03:02 UTC (rev 195151)
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<script src=""
<p>This test verifies that a link redirected by a document which is loaded with Content-Disposition:attachment will not have http referer. Tess passes if no referer is printed.</p>
-<iframe src="" _onload_="navigation()"></iframe>
+<iframe src=""
Modified: trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js (195150 => 195151)
--- trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js 2016-01-15 22:58:45 UTC (rev 195150)
+++ trunk/LayoutTests/http/tests/contentdispositionattachmentsandbox/resources/referer-header-stripped.js 2016-01-15 23:03:02 UTC (rev 195151)
@@ -7,7 +7,7 @@
testRunner.waitUntilDone();
}
-function navigation() {
+_onload_ = function() {
// Due to the sandbox, it's not possible to run script in the iframe or even access its contentDocument.
var element = document.getElementsByTagName("iframe")[0];
var x = element.offsetLeft + 10;