diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index ee04b995fa34168bbd1a576605c5b02fd96a92b1..07d28f57d91fe97202ede15e5ed530c03460cc70 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,19 @@ +2011-01-01 Justin Schuh + + Reviewed by Eric Seidel. + + sandbox iframes have access to top.history methods + https://bugs.webkit.org/show_bug.cgi?id=38152 + + Test that sandboxed iframes cannot use history to navigate the top + frame. This test is less than ideal, as described in the test itself. + If I was really on top of things, I'd add a test for successful use of + the history API when allow-top-navigation is set, but that test would + be complicated and I'm lazy (enough to copy directly from abarth). + + * fast/frames/sandboxed-iframe-history-denied-expected.txt: Added. + * fast/frames/sandboxed-iframe-history-denied.html: Added. + 2011-01-01 Kent Tamura Unreviewed, test expectation update. diff --git a/LayoutTests/fast/frames/sandboxed-iframe-history-denied-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-history-denied-expected.txt new file mode 100644 index 0000000000000000000000000000000000000000..a18c293a688071b512a0f1592e9ae8a578ff683f --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-history-denied-expected.txt @@ -0,0 +1,4 @@ +ALERT: PASS +This test verifies that a sandboxed IFrame cannot navigate the top-level frame using the history API. + + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-history-denied.html b/LayoutTests/fast/frames/sandboxed-iframe-history-denied.html new file mode 100644 index 0000000000000000000000000000000000000000..8617aff0afdf2bd106f35e6da6e11c2d570631bd --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-history-denied.html @@ -0,0 +1,32 @@ + + + + + +

This test verifies that a sandboxed IFrame cannot navigate the top-level frame using the history API.

+