From 0560aeeeac2f7cc6598410982fca105a7a6b49ef Mon Sep 17 00:00:00 2001 From: owlishDeveloper Date: Mon, 1 May 2023 21:26:40 +0000 Subject: [PATCH] Bug 1822711 - Enable mochitest-plain on Android Fission builds. Disable some of the tests that are currently failing r=jmaher,taskgraph-reviewers,geckoview-reviewers,calu Differential Revision: https://phabricator.services.mozilla.com/D175077 --- docshell/test/mochitest/mochitest.ini | 3 + docshell/test/navigation/mochitest.ini | 2 + dom/base/test/mochitest.ini | 2 + dom/security/test/csp/mochitest.ini | 183 +++++++++++++++++- dom/serviceworkers/test/mochitest-common.ini | 3 + layout/base/tests/mochitest.ini | 2 + .../extensions/test/mochitest/mochitest.ini | 2 + .../mochitest/mixedcontent/mochitest.ini | 2 + taskcluster/ci/test/mochitest.yml | 10 +- 9 files changed, 202 insertions(+), 7 deletions(-) diff --git a/docshell/test/mochitest/mochitest.ini b/docshell/test/mochitest/mochitest.ini index afc3bccd349b..598d6296735f 100644 --- a/docshell/test/mochitest/mochitest.ini +++ b/docshell/test/mochitest/mochitest.ini @@ -76,9 +76,12 @@ skip-if = true skip-if = toolkit != "cocoa" || headless # Headless: bug 1410525 support-files = file_bug511449.html [test_bug529119-1.html] +skip-if = + fission && os == "android" # Bug 1827321 [test_bug529119-2.html] skip-if = http3 + fission && os == "android" # Bug 1827321 [test_bug530396.html] support-files = bug530396-noref.sjs bug530396-subframe.html skip-if = diff --git a/docshell/test/navigation/mochitest.ini b/docshell/test/navigation/mochitest.ini index eb331b0ceea4..1c4fe28309ad 100644 --- a/docshell/test/navigation/mochitest.ini +++ b/docshell/test/navigation/mochitest.ini @@ -170,6 +170,7 @@ skip-if = os == "linux" && bits == 64 # Bug 1572299 win10_2004 # Bug 1572299 win11_2009 # Bug 1797751 + fission && os == "android" # Bug 1827323 [test_popup-navigates-children.html] skip-if = http3 @@ -234,6 +235,7 @@ support-files = [test_recursive_frames.html] skip-if = http3 + fission && os == "android" # Bug 1714698 [test_bug1699721.html] skip-if = !fission # tests fission-only process switching behaviour [test_ship_beforeunload_fired.html] diff --git a/dom/base/test/mochitest.ini b/dom/base/test/mochitest.ini index 69d8fa37fa59..c04ccc7ac688 100644 --- a/dom/base/test/mochitest.ini +++ b/dom/base/test/mochitest.ini @@ -603,6 +603,8 @@ skip-if = [test_bug753278.html] [test_bug761120.html] [test_bug769117.html] +skip-if = + fission && os == "android" # Bug 1827725 [test_bug782342.html] [test_bug787778.html] [test_bug789315.html] diff --git a/dom/security/test/csp/mochitest.ini b/dom/security/test/csp/mochitest.ini index 1f2b9c122e40..a9e98dc7c82a 100644 --- a/dom/security/test/csp/mochitest.ini +++ b/dom/security/test/csp/mochitest.ini @@ -253,113 +253,193 @@ prefs = [test_base-uri.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_blob_data_schemes.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_blob_uri_blocks_modals.html] skip-if = xorigin os == "linux" (asan || tsan) # alert should be blocked by CSP - got false, expected true http3 + fission && os == "android" # Bug 1827756 [test_bug1777572.html] support-files = file_bug1777572.html -skip-if = toolkit == 'android' # This unusual window.close/open test times out on Android. +skip-if = + toolkit == 'android' # This unusual window.close/open test times out on Android. [test_connect-src.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_CSP.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_bug1452037.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_allow_https_schemes.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_bug663567.html] skip-if = fission && xorigin && debug && os == "win" # Bug 1716406 - New fission platform triage + fission && os == "android" # Bug 1827314 [test_bug802872.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_bug885433.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_bug888172.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_bug1505412.html] -skip-if = !debug +skip-if = + !debug + fission && os == "android" # Bug 1827967 [test_evalscript.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_evalscript_blocked_by_strict_dynamic.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_evalscript_allowed_by_strict_dynamic.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_frameancestors.html] skip-if = xorigin # JavaScript error: http://mochi.xorigin-test:8888/tests/SimpleTest/TestRunner.js, line 157: SecurityError: Permission denied to access property "wrappedJSObject" on cross-origin object http3 + fission && os == "android" # Bug 1827756 [test_frameancestors_userpass.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_inlinescript.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_inlinestyle.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_invalid_source_expression.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_bug836922_npolicies.html] skip-if = verify http3 + fission && os == "android" # Bug 1827756 [test_bug886164.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_redirects.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_bug910139.html] -skip-if = verify +skip-if = + verify + fission && os == "android" # Bug 1827756 [test_bug909029.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_bug1229639.html] skip-if = http3 + fission && os == "android" # Bug 1827324 [test_bug1579094.html] +skip-if = + fission && os == "android" # Bug 1828011 [test_frame_ancestors_ro.html] skip-if = http3 [test_policyuri_regression_from_multipolicy.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_nonce_source.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_nonce_redirects.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_bug941404.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_form-action.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_hash_source.html] skip-if = fission && xorigin && debug # Bug 1716406 - New fission platform triage [test_scheme_relative_sources.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_ignore_unsafe_inline.html] -skip-if = xorigin # JavaScript error: http://mochi.xorigin-test:8888/tests/SimpleTest/TestRunner.js, line 157: SecurityError: Permission denied to access property "wrappedJSObject" on cross-origin object, [Child 3789, Main Thread] WARNING: NS_ENSURE_TRUE(request) failed: file /builds/worker/checkouts/gecko/netwerk/base/nsLoadGroup.cpp, line 591 +skip-if = + xorigin # JavaScript error: http://mochi.xorigin-test:8888/tests/SimpleTest/TestRunner.js, line 157: SecurityError: Permission denied to access property "wrappedJSObject" on cross-origin object, [Child 3789, Main Thread] WARNING: NS_ENSURE_TRUE(request) failed: file /builds/worker/checkouts/gecko/netwerk/base/nsLoadGroup.cpp, line 591 + fission && os == "android" # Bug 1827756 [test_self_none_as_hostname_confusion.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_empty_directive.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_path_matching.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_path_matching_redirect.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_report_uri_missing_in_report_only_header.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_report.html] fail-if = xorigin skip-if = http3 + fission && os == "android" # Bug 1827756 [test_301_redirect.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_302_redirect.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_303_redirect.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_307_redirect.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_subframe_run_js_if_allowed.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_leading_wildcard.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_multi_policy_injection_bypass.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_null_baseuri.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_dual_header.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_win_open_blocked.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_upgrade_insecure.html] skip-if = os == 'linux' && bits == 64 # Bug 1620516 @@ -367,79 +447,127 @@ skip-if = [test_upgrade_insecure_reporting.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_upgrade_insecure_cors.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_upgrade_insecure_loopback.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_report_for_import.html] fail-if = xorigin skip-if = http3 + fission && os == "android" # Bug 1827756 [test_blocked_uri_in_reports.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_service_worker.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_child-src_worker.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_child-src_worker_data.html] skip-if = http3 [test_child-src_worker-redirect.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_child-src_iframe.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_meta_element.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_meta_header_dual.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_docwrite_meta.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_multipartchannel.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_fontloader.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_block_all_mixed_content.html] tags = mcb +skip-if = + fission && os == "android" # Bug 1827756 [test_block_all_mixed_content_frame_navigation.html] tags = mcb skip-if = http3 + fission && os == "android" # Bug 1827756 [test_form_action_blocks_url.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_meta_whitespace_skipping.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_iframe_sandbox.html] skip-if = fission && xorigin && debug && (os == "win" || os == "linux") # Bug 1716406 - New fission platform triage http3 [test_iframe_sandbox_top_1.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_sandbox.html] skip-if = true # Bug 1657934 [test_ping.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_sendbeacon.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_upgrade_insecure_docwrite_iframe.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_bug1242019.html] +skip-if = + http3 + fission && os == "android" # Bug 1827677 [test_bug1312272.html] +skip-if = + fission && os == "android" # Bug 1827729 [test_strict_dynamic.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_strict_dynamic_parser_inserted.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_strict_dynamic_default_src.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_upgrade_insecure_navigation.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_punycode_host_src.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_iframe_sandbox_srcdoc.html] skip-if = fission && xorigin && debug && os == "win" # Bug 1716406 - New fission platform triage [test_iframe_srcdoc.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_image_nonce.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_websocket_self.html] skip-if = toolkit == 'android' # no websocket support Bug 982828 @@ -452,23 +580,36 @@ skip-if = skip-if = xorigin # JavaScript error: http://mochi.xorigin-test:8888/tests/SimpleTest/TestRunner.js, line 157: SecurityError: Permission denied to access property "wrappedJSObject" on cross-origin object http3 + fission && os == "android" # Bug 1827756 [test_data_csp_inheritance.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_data_csp_merge.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_report_font_cache.html] skip-if = http3 + fission && os == "android" # Bug 1827756 [test_data_doc_ignore_meta_csp.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_meta_csp_self.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_uir_top_nav.html] support-files = file_uir_top_nav.html file_uir_top_nav_dummy.html skip-if = http3 + fission && os == "android" # Bug 1827756 [test_sandbox_allow_scripts.html] support-files = file_sandbox_allow_scripts.html file_sandbox_allow_scripts.html^headers^ +skip-if = + fission && os == "android" # Bug 1827756 [test_worker_src.html] support-files = file_worker_src_worker_governs.html @@ -480,6 +621,7 @@ support-files = file_spawn_service_worker.js skip-if = http3 + fission && os == "android" # Bug 1827756 [test_frame_src.html] support-files = file_frame_src_frame_governs.html @@ -488,7 +630,10 @@ support-files = file_frame_src_inner.html skip-if = http3 + fission && os == "android" # Bug 1827756 [test_security_policy_violation_event.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_csp_worker_inheritance.html] support-files = worker.sjs @@ -497,9 +642,12 @@ support-files = main_csp_worker.html^headers^ skip-if = http3 + fission && os == "android" # Bug 1827756 [test_nonce_snapshot.html] support-files = file_nonce_snapshot.sjs +skip-if = + fission && os == "android" # Bug 1827756 [test_uir_windowwatcher.html] support-files = file_windowwatcher_frameA.html @@ -509,36 +657,52 @@ support-files = file_windowwatcher_win_open.html skip-if = http3 + fission && os == "android" # Bug 1827756 [test_script_template.html] support-files = file_script_template.html file_script_template.js +skip-if = + fission && os == "android" # Bug 1827756 [test_parent_location_js.html] support-files = file_parent_location_js.html file_iframe_parent_location_js.html +skip-if = + fission && os == "android" # Bug 1827756 [test_navigate_to.html] support-files = file_navigate_to.sjs file_navigate_to_request.html skip-if = http3 + fission && os == "android" # Bug 1827756 [test_independent_iframe_csp.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_xslt_inherits_csp.html] support-files = file_xslt_inherits_csp.xml file_xslt_inherits_csp.xml^headers^ file_xslt_inherits_csp.xsl +skip-if = + fission && os == "android" # Bug 1827756 [test_object_inherit.html] support-files = file_object_inherit.html +skip-if = + fission && os == "android" # Bug 1827756 [test_link_rel_preload.html] support-files = file_link_rel_preload.html +skip-if = + fission && os == "android" # Bug 1827756 [test_image_document.html] support-files = file_image_document_pixel.png file_image_document_pixel.png^headers^ +skip-if = + fission && os == "android" # Bug 1827756 [test_svg_inline_style.html] support-files = file_svg_inline_style_base.html @@ -546,6 +710,8 @@ support-files = file_svg_srcset_inline_style_base.html file_svg_srcset_inline_style_csp.html file_svg_inline_style_server.sjs +skip-if = + fission && os == "android" # Bug 1827756 [test_upgrade_insecure_navigation_redirect.html] support-files = file_upgrade_insecure_navigation_redirect.sjs @@ -553,11 +719,16 @@ support-files = file_upgrade_insecure_navigation_redirect_cross_origin.html skip-if = http3 + fission && os == "android" # Bug 1827756 [test_csp_style_src_empty_hash.html] +skip-if = + fission && os == "android" # Bug 1827756 [test_csp_frame_ancestors_about_blank.html] support-files = file_csp_frame_ancestors_about_blank.html file_csp_frame_ancestors_about_blank.html^headers^ +skip-if = + fission && os == "android" # Bug 1827756 [test_blocked_uri_redirect_frame_src.html] support-files = file_blocked_uri_redirect_frame_src.html @@ -565,14 +736,18 @@ support-files = file_blocked_uri_redirect_frame_src_server.sjs skip-if = http3 + fission && os == "android" # Bug 1827756 [test_blocked_uri_in_violation_event_after_redirects.html] support-files = file_blocked_uri_in_violation_event_after_redirects.html file_blocked_uri_in_violation_event_after_redirects.sjs skip-if = http3 + fission && os == "android" # Bug 1827756 [test_bug1738418.html] support-files = file_bug1738418_parent.html file_bug1738418_parent.html^headers^ file_bug1738418_child.html +skip-if = + fission && os == "android" # Bug 1827314 diff --git a/dom/serviceworkers/test/mochitest-common.ini b/dom/serviceworkers/test/mochitest-common.ini index 2f2da9b0058f..a2542e9a6589 100644 --- a/dom/serviceworkers/test/mochitest-common.ini +++ b/dom/serviceworkers/test/mochitest-common.ini @@ -271,6 +271,7 @@ skip-if = win11_2009 && !debug # Bug 1797751 os == "linux" && bits == 64 && debug # Bug 1749068 apple_catalina && !debug # Bug 1717091 + fission && os == "android" # Bug 1827325 scheme = https [test_imagecache.html] skip-if = @@ -363,6 +364,8 @@ skip-if = [test_streamfilter.html] [test_strict_mode_warning.html] [test_third_party_iframes.html] +skip-if = + fission && os == "android" # Bug 1827327 support-files = window_party_iframes.html [test_unregister.html] diff --git a/layout/base/tests/mochitest.ini b/layout/base/tests/mochitest.ini index 2e67b3632be7..b00b35b321df 100644 --- a/layout/base/tests/mochitest.ini +++ b/layout/base/tests/mochitest.ini @@ -461,4 +461,6 @@ support-files = transformed_scrolling_repaints_3_window.html transformed_scrolling_repaints_3_window_frame.html [test_zoom_restore_bfcache.html] +skip-if = + fission && os == "android" # Bug 1827329 support-files = file_zoom_restore_bfcache.html diff --git a/mobile/android/components/extensions/test/mochitest/mochitest.ini b/mobile/android/components/extensions/test/mochitest/mochitest.ini index cf328b1ce363..a8cadf7b5d2e 100644 --- a/mobile/android/components/extensions/test/mochitest/mochitest.ini +++ b/mobile/android/components/extensions/test/mochitest/mochitest.ini @@ -20,6 +20,8 @@ prefs = [test_ext_tab_runtimeConnect.html] [test_ext_tabs_create.html] [test_ext_tabs_events.html] +skip-if = + fission # Bug 1827754 [test_ext_tabs_executeScript.html] [test_ext_tabs_executeScript_bad.html] [test_ext_tabs_executeScript_no_create.html] diff --git a/security/manager/ssl/tests/mochitest/mixedcontent/mochitest.ini b/security/manager/ssl/tests/mochitest/mixedcontent/mochitest.ini index 7e6d4078cfd1..ec6837109337 100644 --- a/security/manager/ssl/tests/mochitest/mixedcontent/mochitest.ini +++ b/security/manager/ssl/tests/mochitest/mixedcontent/mochitest.ini @@ -59,6 +59,8 @@ disabled=intermitently fails, quite often, bug 487402 [test_unsecureCSS.html] [test_unsecureIframe.html] [test_unsecureIframe2.html] +skip-if = + fission && os == "android" # Bug 1827330 [test_unsecureIframeMetaRedirect.html] disabled=intermittently fails, less often, bug 487632 [test_unsecureIframeRedirect.html] diff --git a/taskcluster/ci/test/mochitest.yml b/taskcluster/ci/test/mochitest.yml index a32181198376..f5093878e058 100644 --- a/taskcluster/ci/test/mochitest.yml +++ b/taskcluster/ci/test/mochitest.yml @@ -121,7 +121,8 @@ mochitest-plain: default: [] default: by-test-platform: - android.*: [] + android-em-7.0-x86_64-qr/debug-isolated-process: [] + android.*: built-projects default: built-projects chunks: by-test-platform: @@ -543,7 +544,8 @@ mochitest-plain-gpu: default: [] default: by-test-platform: - android.*/.*: [] + android-em-7.0-x86_64-qr/debug-isolated-process: [] + android.*: built-projects default: built-projects virtualization: virtual-with-gpu tier: @@ -682,7 +684,9 @@ mochitest-media: default: [] default: by-test-platform: - android.*: [] + android-hw.*/opt: [] + android-em-7.0-x86_64-qr/debug-isolated-process: [] + android.*: built-projects linux.*(asan|ccov)/opt: [] .*(ccov/|asan/|-32).*: built-projects (android|linux|windows10-64-2004|windows11-64-2009|macos)(?!.*-qr).*: []