| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.testRunner) { |
| 6 testRunner.grantWebNotificationPermission("file://", true); |
| 7 testRunner.dumpAsText(); |
| 8 testRunner.dumpChildFramesAsText(); |
| 9 } |
| 10 </script> |
| 11 </head> |
| 12 <body> |
| 13 <p> |
| 14 Tests that the <iframe sandbox> attribute influences whether notific
ation permissions |
| 15 will be inherit by an iframe. |
| 16 </p> |
| 17 <h1>Normal iframe. Should inherit permissions.</h1> |
| 18 <iframe src="resources/display-permission.html"></iframe> |
| 19 |
| 20 <h1>Sandboxed iframe with allow-same-origin. Should inherit permissions.</h1
> |
| 21 <iframe src="resources/display-permission.html" sandbox="allow-scripts allow
-same-origin"></iframe> |
| 22 |
| 23 <h1>Sandboxed iframe without allow-same-origin. Should not inherit permissio
ns.</h1> |
| 24 <iframe src="resources/display-permission.html" sandbox="allow-scripts"></if
rame> |
| 25 </body> |
| 26 </body> |
| OLD | NEW |