diff --git a/gfx/layers/apz/test/mochitest/browser.ini b/gfx/layers/apz/test/mochitest/browser.ini index 0b50e66da1f2..4e2f3cc3de66 100644 --- a/gfx/layers/apz/test/mochitest/browser.ini +++ b/gfx/layers/apz/test/mochitest/browser.ini @@ -1,9 +1,13 @@ +[DEFAULT] +support-files = + apz_test_native_event_utils.js + [browser_test_group_fission.js] skip-if = (os == 'win' && bits == 32) # Some subtests fail intermittently on Win7. support-files = - apz_test_native_event_utils.js apz_test_utils.js FissionTestHelperParent.jsm FissionTestHelperChild.jsm helper_fission_*.* !/dom/animation/test/testcommon.js +[browser_test_hittest_svg_over_iframe.js] diff --git a/gfx/layers/apz/test/mochitest/browser_test_hittest_svg_over_iframe.js b/gfx/layers/apz/test/mochitest/browser_test_hittest_svg_over_iframe.js new file mode 100644 index 000000000000..03f54c6d0fb4 --- /dev/null +++ b/gfx/layers/apz/test/mochitest/browser_test_hittest_svg_over_iframe.js @@ -0,0 +1,108 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +"use strict"; + +Services.scriptloader.loadSubScript( + "chrome://mochitests/content/browser/gfx/layers/apz/test/mochitest/apz_test_native_event_utils.js", + this +); + +const srcURL = new URL(`http://example.net/document-builder.sjs`); +srcURL.searchParams.append( + "html", + ` + + + OOP Document + + + ` +); +const iframeHTML = `