haikuwebkit/LayoutTests/media/auto-play-in-sandbox-with-a...

11 lines
291 B
HTML
Raw Permalink Normal View History

<script>
Use testRunner instead of layoutTestController in ietestcenter, inspector, java, jquery, loader, mathml, media, and mhtml tests https://bugs.webkit.org/show_bug.cgi?id=89176 Reviewed by Kent Tamura. * ietestcenter/css3/bordersbackgrounds/background-attachment-local-scrolling.htm: * inspector/audits/resources/audits-style1.css: * inspector/console/console-long-eval-crash.html: * inspector/extensions/extensions-audits-content-script.html: * inspector/extensions/extensions-eval-content-script.html: * inspector/profiler/cpu-profiler-profiling-without-inspector.html: * inspector/timeline/timeline-animation-frame.html: * inspector/timeline/timeline-paint.html: * inspector/timeline/timeline-receive-response-event.html: * inspector/timeline/timeline-timer.html: * java/argument-to-object-type.html: * java/array-return.html: * java/array-sort.html: * java/embedding-java-with-object.html: * java/inaccessible-class.html: * java/inline-applet-crash.html: * java/java-and-plugins.html: * java/lc3/: * jquery/resources/helper.js: * loader/go-back-to-different-window-size.html: * loader/load-defer-resume-crash.html: * loader/navigation-while-deferring-loads.html: * loader/reload-subresource-when-type-changes.html: * mathml/EmptyMFracCrash.xhtml: * mathml/EmptyMunderOverCrash.xhtml: * mathml/empty-mroot-crash.xhtml: * mathml/empty-msubsup-crash.html: * mathml/fenced-whitespace-separators-crash.html: * mathml/msub-anonymous-child-render-crash.html: * mathml/msubsup-no-grandchild.xhtml: * mathml/msubsup-remove-children.xhtml: * mathml/munderover-remove-children.html: * mathml/operator-hijacks-fenced-node.xhtml: * mathml/wbr-in-mroot-crash.html: * media/W3C/w3cwrapper.js: (test): (async_test.t.done): (async_test): * media/adopt-node-crash.html: * media/audio-controls-do-not-fade-out.html: * media/audio-controls-rendering.html: * media/audio-delete-while-slider-thumb-clicked.html: * media/audio-delete-while-step-button-clicked.html: * media/audio-garbage-collect.html: * media/audio-no-installed-engines.html: * media/audio-only-video-intrinsic-size.html: * media/audio-repaint.html: * media/context-menu-actions.html: * media/controls-after-reload.html: * media/controls-drag-timebar.html: * media/controls-layout-direction.html: * media/controls-right-click-on-timebar.html: * media/controls-without-preload.html: * media/crash-closing-page-with-media-as-plugin-fallback.html: * media/fallback.html: * media/media-blocked-by-beforeload.html: * media/media-blocked-by-willsendrequest.html: * media/media-controls-clone-crash.html: * media/media-controls-invalid-url.html: * media/media-document-audio-repaint.html: * media/media-document-audio-size.html: * media/media-fullscreen.js: (canplaythrough): * media/media-volume-slider-rendered-normal.html: * media/no-auto-play-in-sandbox.html: * media/remove-from-document-before-load.html: * media/resources/foreignobject-media.svg: * media/restore-from-page-cache.html: * media/svg-as-image-with-media-blocked.html: * media/video-beforeload-remove-source.html: * media/video-canvas-alpha.html: * media/video-canvas.html-disabled: * media/video-click-dblckick-standalone.html: * media/video-controls-in-media-document.html: * media/video-controls-no-scripting.html: * media/video-controls-toggling.html: * media/video-controls-visible-audio-only.html: * media/video-controls-with-mutation-event-handler.html: * media/video-delay-load-event.html: * media/video-display-toggle.html: * media/video-document-types.html: * media/video-element-other-namespace-crash.html: * media/video-empty-source.html: * media/video-no-audio.html: * media/video-paint-test.js: (init.waitForMultipleEvents): (initAndPause.waitForMultipleEvents): (initAndPause): * media/video-plays-past-end-of-test.html: * media/video-poster-blocked-by-willsendrequest.html: * media/video-replaces-poster.html: * media/video-source-inserted.html: * media/video-test.js: (endTest): * media/video-volume-slider.html: * media/video-zoom.html: * mhtml/check_domain.mht: * mhtml/multi_frames.html_original: * mhtml/multi_frames_binary.mht: * mhtml/multi_frames_ie.mht: * mhtml/multi_frames_unmht.mht: * mhtml/page_with_css_and_js_ie.mht: * mhtml/page_with_css_and_js_unmht.mht: * mhtml/page_with_image.html_original: * mhtml/page_with_image_ie.mht: * mhtml/page_with_image_unmht.mht: * mhtml/simple_page.html_original: * mhtml/simple_page_ie.mht: * mhtml/simple_page_unmht.mht: * networkinformation/resources/event-after-navigation-new.html: * networkinformation/script-tests/event-after-navigation.js: * platform/chromium/media/video-frame-size-change.html: Canonical link: https://commits.webkit.org/107030@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120416 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-06-15 07:33:22 +00:00
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
}
</script>
<iframe
style="width: 400px; height: 600px"
sandbox="allow-scripts allow-same-origin"
Automatic features should work in sandboxed iframes if "allow-scripts" flag is set https://bugs.webkit.org/show_bug.cgi?id=93961 Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-09-04 Reviewed by Adam Barth. Source/WebCore: Allow automatic features (video autoplay and form control autofocus) in a sandboxed iframe that has "allow-scripts" flag set. This behavior is according to the latest specification at: http://dev.w3.org/html5/spec/browsers.html#attr-iframe-sandbox-allow-same-origin This sandboxed automatic features browsing context flag is relaxed by the same keyword as scripts, because when scripts are enabled these features are trivially possible anyway, and it would be unfortunate to force authors to use script to do them when sandboxed rather than allowing them to use the declarative features. Tests: fast/forms/autofocus-in-sandbox-with-allow-scripts.html media/auto-play-in-sandbox-with-allow-scripts.html * dom/SecurityContext.cpp: (WebCore::SecurityContext::parseSandboxPolicy): LayoutTests: Add layout tests to check that automatic features (video autoplay and form control autofocus) are allowed / working in sandboxed iframes if the "allow-scripts" flag is set. This behavior is according to the latest specification at: http://dev.w3.org/html5/spec/browsers.html#attr-iframe-sandbox-allow-same-origin The tests to check that automatic features are blocked in sandboxed iframes have been removed since they relied on the "allow-scripts" flag to work. * fast/forms/autofocus-in-sandbox-with-allow-scripts-expected.txt: Added. * fast/forms/autofocus-in-sandbox-with-allow-scripts.html: Renamed from LayoutTests/fast/forms/no-autofocus-in-sandbox.html. * fast/forms/no-autofocus-in-sandbox-expected.txt: Removed. * media/auto-play-in-sandbox-with-allow-scripts-expected.txt: Added. * media/auto-play-in-sandbox-with-allow-scripts.html: Renamed from LayoutTests/media/no-auto-play-in-sandbox.html. * media/no-auto-play-in-sandbox-expected.txt: Removed. * media/resources/auto-play-in-sandbox-with-allow-scripts-iframe.html: Added. * media/resources/no-auto-play-in-sandbox-iframe.html: Removed. Canonical link: https://commits.webkit.org/113633@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@127481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-09-04 18:58:19 +00:00
src="resources/auto-play-in-sandbox-with-allow-scripts-iframe.html"></iframe>