Update On Sun Sep 17 20:58:30 CEST 2023
This commit is contained in:
parent
c8b7e31718
commit
337f677e35
1261 changed files with 21080 additions and 18896 deletions
|
@ -32,22 +32,22 @@ DIRS += [
|
|||
TEST_DIRS += ["tests/mochitest"]
|
||||
|
||||
BROWSER_CHROME_MANIFESTS += [
|
||||
"tests/browser/bounds/browser.ini",
|
||||
"tests/browser/browser.ini",
|
||||
"tests/browser/e10s/browser.ini",
|
||||
"tests/browser/events/browser.ini",
|
||||
"tests/browser/fission/browser.ini",
|
||||
"tests/browser/general/browser.ini",
|
||||
"tests/browser/hittest/browser.ini",
|
||||
"tests/browser/mac/browser.ini",
|
||||
"tests/browser/pivot/browser.ini",
|
||||
"tests/browser/role/browser.ini",
|
||||
"tests/browser/scroll/browser.ini",
|
||||
"tests/browser/selectable/browser.ini",
|
||||
"tests/browser/states/browser.ini",
|
||||
"tests/browser/telemetry/browser.ini",
|
||||
"tests/browser/text/browser.ini",
|
||||
"tests/browser/tree/browser.ini",
|
||||
"tests/browser/bounds/browser.toml",
|
||||
"tests/browser/browser.toml",
|
||||
"tests/browser/e10s/browser.toml",
|
||||
"tests/browser/events/browser.toml",
|
||||
"tests/browser/fission/browser.toml",
|
||||
"tests/browser/general/browser.toml",
|
||||
"tests/browser/hittest/browser.toml",
|
||||
"tests/browser/mac/browser.toml",
|
||||
"tests/browser/pivot/browser.toml",
|
||||
"tests/browser/role/browser.toml",
|
||||
"tests/browser/scroll/browser.toml",
|
||||
"tests/browser/selectable/browser.toml",
|
||||
"tests/browser/states/browser.toml",
|
||||
"tests/browser/telemetry/browser.toml",
|
||||
"tests/browser/text/browser.toml",
|
||||
"tests/browser/tree/browser.toml",
|
||||
]
|
||||
|
||||
with Files("**"):
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/mochitest/letters.gif
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_accessible_moved.js]
|
||||
[browser_caret_rect.js]
|
||||
[browser_position.js]
|
||||
[browser_test_resolution.js]
|
||||
skip-if = os == 'win' # bug 1372296
|
||||
[browser_test_zoom.js]
|
||||
skip-if = true # Bug 1734271
|
||||
[browser_test_zoom_text.js]
|
||||
https_first_disabled = true
|
||||
skip-if = os == 'win' # bug 1372296
|
||||
[browser_zero_area.js]
|
||||
[browser_test_display_contents.js]
|
||||
[browser_test_simple_transform.js]
|
||||
[browser_test_iframe_transform.js]
|
||||
skip-if =
|
||||
os == "win" && os_version == "6.1" # Skip on Azure - frequent failure
|
34
accessible/tests/browser/bounds/browser.toml
Normal file
34
accessible/tests/browser/bounds/browser.toml
Normal file
|
@ -0,0 +1,34 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/mochitest/letters.gif",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_accessible_moved.js"]
|
||||
|
||||
["browser_caret_rect.js"]
|
||||
|
||||
["browser_position.js"]
|
||||
|
||||
["browser_test_display_contents.js"]
|
||||
|
||||
["browser_test_iframe_transform.js"]
|
||||
|
||||
["browser_test_resolution.js"]
|
||||
skip-if = ["os == 'win'"] # bug 1372296
|
||||
|
||||
["browser_test_simple_transform.js"]
|
||||
|
||||
["browser_test_zoom.js"]
|
||||
skip-if = ["true"] # Bug 1734271
|
||||
|
||||
["browser_test_zoom_text.js"]
|
||||
https_first_disabled = true
|
||||
skip-if = ["os == 'win'"] # bug 1372296
|
||||
|
||||
["browser_zero_area.js"]
|
|
@ -1,39 +0,0 @@
|
|||
[DEFAULT]
|
||||
skip-if = a11y_checks # 1534855
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
!/accessible/tests/mochitest/*.js
|
||||
*.sys.mjs
|
||||
head.js
|
||||
shared-head.js
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_shutdown_acc_reference.js]
|
||||
[browser_shutdown_doc_acc_reference.js]
|
||||
[browser_shutdown_multi_acc_reference_doc.js]
|
||||
[browser_shutdown_multi_acc_reference_obj.js]
|
||||
[browser_shutdown_multi_proxy_acc_reference_doc.js]
|
||||
skip-if =
|
||||
os == "linux" && verify && debug
|
||||
[browser_shutdown_multi_proxy_acc_reference_obj.js]
|
||||
skip-if =
|
||||
os == "linux" && verify && debug
|
||||
[browser_shutdown_multi_reference.js]
|
||||
[browser_shutdown_parent_own_reference.js]
|
||||
skip-if =
|
||||
os == "win" && verify && debug
|
||||
[browser_shutdown_pref.js]
|
||||
[browser_shutdown_proxy_acc_reference.js]
|
||||
[browser_shutdown_proxy_doc_acc_reference.js]
|
||||
skip-if =
|
||||
os == "win" && verify && debug
|
||||
[browser_shutdown_remote_no_reference.js]
|
||||
skip-if =
|
||||
os == "win" && verify && debug
|
||||
[browser_shutdown_remote_only.js]
|
||||
[browser_shutdown_remote_own_reference.js]
|
||||
[browser_shutdown_scope_lifecycle.js]
|
||||
[browser_shutdown_start_restart.js]
|
||||
skip-if =
|
||||
verify && debug
|
49
accessible/tests/browser/browser.toml
Normal file
49
accessible/tests/browser/browser.toml
Normal file
|
@ -0,0 +1,49 @@
|
|||
[DEFAULT]
|
||||
skip-if = ["a11y_checks"] # 1534855
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"*.sys.mjs",
|
||||
"head.js",
|
||||
"shared-head.js",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_shutdown_acc_reference.js"]
|
||||
|
||||
["browser_shutdown_doc_acc_reference.js"]
|
||||
|
||||
["browser_shutdown_multi_acc_reference_doc.js"]
|
||||
|
||||
["browser_shutdown_multi_acc_reference_obj.js"]
|
||||
|
||||
["browser_shutdown_multi_proxy_acc_reference_doc.js"]
|
||||
skip-if = ["os == 'linux' && verify && debug"]
|
||||
|
||||
["browser_shutdown_multi_proxy_acc_reference_obj.js"]
|
||||
skip-if = ["os == 'linux' && verify && debug"]
|
||||
|
||||
["browser_shutdown_multi_reference.js"]
|
||||
|
||||
["browser_shutdown_parent_own_reference.js"]
|
||||
skip-if = ["os == 'win' && verify && debug"]
|
||||
|
||||
["browser_shutdown_pref.js"]
|
||||
|
||||
["browser_shutdown_proxy_acc_reference.js"]
|
||||
|
||||
["browser_shutdown_proxy_doc_acc_reference.js"]
|
||||
skip-if = ["os == 'win' && verify && debug"]
|
||||
|
||||
["browser_shutdown_remote_no_reference.js"]
|
||||
skip-if = ["os == 'win' && verify && debug"]
|
||||
|
||||
["browser_shutdown_remote_only.js"]
|
||||
|
||||
["browser_shutdown_remote_own_reference.js"]
|
||||
|
||||
["browser_shutdown_scope_lifecycle.js"]
|
||||
|
||||
["browser_shutdown_start_restart.js"]
|
||||
skip-if = ["verify && debug"]
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
doc_treeupdate_ariadialog.html
|
||||
doc_treeupdate_ariaowns.html
|
||||
doc_treeupdate_imagemap.html
|
||||
doc_treeupdate_removal.xhtml
|
||||
doc_treeupdate_visibility.html
|
||||
doc_treeupdate_whitespace.html
|
||||
fonts/Ahem.sjs
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/mochitest/events/slow_image.sjs
|
||||
!/accessible/tests/mochitest/letters.gif
|
||||
!/accessible/tests/mochitest/moz.png
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
# Caching tests
|
||||
[browser_caching_actions.js]
|
||||
[browser_caching_attributes.js]
|
||||
[browser_caching_description.js]
|
||||
[browser_caching_document_props.js]
|
||||
[browser_caching_domnodeid.js]
|
||||
[browser_caching_hyperlink.js]
|
||||
[browser_caching_innerHTML.js]
|
||||
skip-if = os != 'win'
|
||||
[browser_caching_interfaces.js]
|
||||
[browser_caching_large_update.js]
|
||||
[browser_caching_name.js]
|
||||
[browser_caching_position.js]
|
||||
[browser_caching_relations.js]
|
||||
[browser_caching_relations_002.js]
|
||||
[browser_caching_states.js]
|
||||
[browser_caching_table.js]
|
||||
[browser_caching_text_bounds.js]
|
||||
[browser_caching_uniqueid.js]
|
||||
[browser_caching_value.js]
|
||||
|
||||
# Events tests
|
||||
[browser_events_announcement.js]
|
||||
skip-if = os == 'win' # Bug 1288839
|
||||
[browser_events_caretmove.js]
|
||||
[browser_events_hide.js]
|
||||
[browser_events_show.js]
|
||||
[browser_events_statechange.js]
|
||||
[browser_events_textchange.js]
|
||||
|
||||
[browser_language.js]
|
||||
|
||||
[browser_obj_group.js]
|
||||
[browser_obj_group_002.js]
|
||||
|
||||
# Tree update tests
|
||||
[browser_treeupdate_ariadialog.js]
|
||||
[browser_treeupdate_ariaowns.js]
|
||||
[browser_treeupdate_canvas.js]
|
||||
[browser_treeupdate_csscontentvisibility.js]
|
||||
[browser_treeupdate_cssoverflow.js]
|
||||
[browser_treeupdate_doc.js]
|
||||
[browser_treeupdate_gencontent.js]
|
||||
[browser_treeupdate_hidden.js]
|
||||
[browser_treeupdate_image.js]
|
||||
[browser_treeupdate_imagemap.js]
|
||||
[browser_treeupdate_list.js]
|
||||
[browser_treeupdate_list_editabledoc.js]
|
||||
[browser_treeupdate_listener.js]
|
||||
[browser_treeupdate_move.js]
|
||||
skip-if =
|
||||
os == "win" && os_version == "6.1" # Skip on Azure - frequent failure
|
||||
[browser_treeupdate_optgroup.js]
|
||||
[browser_treeupdate_removal.js]
|
||||
[browser_treeupdate_select_dropdown.js]
|
||||
[browser_treeupdate_table.js]
|
||||
[browser_treeupdate_textleaf.js]
|
||||
[browser_treeupdate_visibility.js]
|
||||
[browser_treeupdate_whitespace.js]
|
120
accessible/tests/browser/e10s/browser.toml
Normal file
120
accessible/tests/browser/e10s/browser.toml
Normal file
|
@ -0,0 +1,120 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"doc_treeupdate_ariadialog.html",
|
||||
"doc_treeupdate_ariaowns.html",
|
||||
"doc_treeupdate_imagemap.html",
|
||||
"doc_treeupdate_removal.xhtml",
|
||||
"doc_treeupdate_visibility.html",
|
||||
"doc_treeupdate_whitespace.html",
|
||||
"fonts/Ahem.sjs",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/mochitest/events/slow_image.sjs",
|
||||
"!/accessible/tests/mochitest/letters.gif",
|
||||
"!/accessible/tests/mochitest/moz.png",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
# Caching tests
|
||||
["browser_caching_actions.js"]
|
||||
|
||||
["browser_caching_attributes.js"]
|
||||
|
||||
["browser_caching_description.js"]
|
||||
|
||||
["browser_caching_document_props.js"]
|
||||
|
||||
["browser_caching_domnodeid.js"]
|
||||
|
||||
["browser_caching_hyperlink.js"]
|
||||
|
||||
["browser_caching_innerHTML.js"]
|
||||
skip-if = ["os != 'win'"]
|
||||
|
||||
["browser_caching_interfaces.js"]
|
||||
|
||||
["browser_caching_large_update.js"]
|
||||
|
||||
["browser_caching_name.js"]
|
||||
|
||||
["browser_caching_position.js"]
|
||||
|
||||
["browser_caching_relations.js"]
|
||||
|
||||
["browser_caching_relations_002.js"]
|
||||
|
||||
["browser_caching_states.js"]
|
||||
|
||||
["browser_caching_table.js"]
|
||||
|
||||
["browser_caching_text_bounds.js"]
|
||||
|
||||
["browser_caching_uniqueid.js"]
|
||||
|
||||
["browser_caching_value.js"]
|
||||
|
||||
# Events tests
|
||||
["browser_events_announcement.js"]
|
||||
skip-if = ["os == 'win'"] # Bug 1288839
|
||||
|
||||
["browser_events_caretmove.js"]
|
||||
|
||||
["browser_events_hide.js"]
|
||||
|
||||
["browser_events_show.js"]
|
||||
|
||||
["browser_events_statechange.js"]
|
||||
|
||||
["browser_events_textchange.js"]
|
||||
|
||||
["browser_language.js"]
|
||||
|
||||
["browser_obj_group.js"]
|
||||
|
||||
["browser_obj_group_002.js"]
|
||||
|
||||
# Tree update tests
|
||||
["browser_treeupdate_ariadialog.js"]
|
||||
|
||||
["browser_treeupdate_ariaowns.js"]
|
||||
|
||||
["browser_treeupdate_canvas.js"]
|
||||
|
||||
["browser_treeupdate_csscontentvisibility.js"]
|
||||
|
||||
["browser_treeupdate_cssoverflow.js"]
|
||||
|
||||
["browser_treeupdate_doc.js"]
|
||||
|
||||
["browser_treeupdate_gencontent.js"]
|
||||
|
||||
["browser_treeupdate_hidden.js"]
|
||||
|
||||
["browser_treeupdate_image.js"]
|
||||
|
||||
["browser_treeupdate_imagemap.js"]
|
||||
|
||||
["browser_treeupdate_list.js"]
|
||||
|
||||
["browser_treeupdate_list_editabledoc.js"]
|
||||
|
||||
["browser_treeupdate_listener.js"]
|
||||
|
||||
["browser_treeupdate_move.js"]
|
||||
|
||||
["browser_treeupdate_optgroup.js"]
|
||||
|
||||
["browser_treeupdate_removal.js"]
|
||||
|
||||
["browser_treeupdate_select_dropdown.js"]
|
||||
|
||||
["browser_treeupdate_table.js"]
|
||||
|
||||
["browser_treeupdate_textleaf.js"]
|
||||
|
||||
["browser_treeupdate_visibility.js"]
|
||||
|
||||
["browser_treeupdate_whitespace.js"]
|
|
@ -1,24 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_alert.js]
|
||||
[browser_test_A11yUtils_announce.js]
|
||||
[browser_test_caret_move_granularity.js]
|
||||
[browser_test_docload.js]
|
||||
skip-if = true
|
||||
[browser_test_focus_browserui.js]
|
||||
[browser_test_focus_dialog.js]
|
||||
[browser_test_focus_urlbar.js]
|
||||
skip-if =
|
||||
os == "win" # Bug 1818994
|
||||
[browser_test_panel.js]
|
||||
[browser_test_scrolling.js]
|
||||
[browser_test_selection_urlbar.js]
|
||||
[browser_test_textcaret.js]
|
34
accessible/tests/browser/events/browser.toml
Normal file
34
accessible/tests/browser/events/browser.toml
Normal file
|
@ -0,0 +1,34 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_alert.js"]
|
||||
|
||||
["browser_test_A11yUtils_announce.js"]
|
||||
|
||||
["browser_test_caret_move_granularity.js"]
|
||||
|
||||
["browser_test_docload.js"]
|
||||
skip-if = ["true"]
|
||||
|
||||
["browser_test_focus_browserui.js"]
|
||||
|
||||
["browser_test_focus_dialog.js"]
|
||||
|
||||
["browser_test_focus_urlbar.js"]
|
||||
skip-if = ["os == 'win'"] # Bug 1818994
|
||||
|
||||
["browser_test_panel.js"]
|
||||
|
||||
["browser_test_scrolling.js"]
|
||||
|
||||
["browser_test_selection_urlbar.js"]
|
||||
|
||||
["browser_test_textcaret.js"]
|
||||
|
|
@ -43,7 +43,7 @@ async function runTests(browser, accDoc) {
|
|||
],
|
||||
});
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
`data:text/html;charset=utf-8,
|
||||
<html><body id="body2">
|
||||
|
@ -59,7 +59,7 @@ async function runTests(browser, accDoc) {
|
|||
[EVENT_REORDER, getAccessible(browser)],
|
||||
]);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, "about:about");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "about:about");
|
||||
|
||||
await onLoadEvents;
|
||||
|
||||
|
@ -79,7 +79,7 @@ async function runTests(browser, accDoc) {
|
|||
[EVENT_REORDER, getAccessible(browser)],
|
||||
]);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, "about:mozilla");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "about:mozilla");
|
||||
|
||||
await onLoadEvents;
|
||||
|
||||
|
@ -100,8 +100,11 @@ async function runTests(browser, accDoc) {
|
|||
[EVENT_REORDER, getAccessible(browser)],
|
||||
]);
|
||||
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
BrowserTestUtils.loadURIString(browser, "http://www.wronguri.wronguri/");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
"http://www.wronguri.wronguri/"
|
||||
);
|
||||
|
||||
await onLoadEvents;
|
||||
|
||||
|
@ -111,7 +114,10 @@ async function runTests(browser, accDoc) {
|
|||
[EVENT_REORDER, getAccessible(browser)],
|
||||
]);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, "https://nocert.example.com:443/");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
"https://nocert.example.com:443/"
|
||||
);
|
||||
|
||||
await onLoadEvents;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ function caretMoveChecker(target, caretOffset) {
|
|||
async function checkURLBarCaretEvents() {
|
||||
const kURL = "about:mozilla";
|
||||
let newWin = await BrowserTestUtils.openNewBrowserWindow();
|
||||
BrowserTestUtils.loadURIString(newWin.gBrowser.selectedBrowser, kURL);
|
||||
BrowserTestUtils.startLoadingURIString(newWin.gBrowser.selectedBrowser, kURL);
|
||||
newWin.gBrowser.selectedBrowser.focus();
|
||||
|
||||
await waitForEvent(EVENT_DOCUMENT_LOAD_COMPLETE, event => {
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_content_tree.js]
|
||||
[browser_hidden_iframe.js]
|
||||
https_first_disabled = true
|
||||
[browser_nested_iframe.js]
|
||||
skip-if =
|
||||
os == "win" && os_version == "6.1" # Skip on Azure - frequent failure
|
||||
[browser_reframe_root.js]
|
||||
[browser_reframe_visibility.js]
|
||||
[browser_src_change.js]
|
||||
[browser_take_focus.js]
|
24
accessible/tests/browser/fission/browser.toml
Normal file
24
accessible/tests/browser/fission/browser.toml
Normal file
|
@ -0,0 +1,24 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_content_tree.js"]
|
||||
|
||||
["browser_hidden_iframe.js"]
|
||||
https_first_disabled = true
|
||||
|
||||
["browser_nested_iframe.js"]
|
||||
|
||||
["browser_reframe_root.js"]
|
||||
|
||||
["browser_reframe_visibility.js"]
|
||||
|
||||
["browser_src_change.js"]
|
||||
|
||||
["browser_take_focus.js"]
|
|
@ -1,12 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
head.js
|
||||
!/accessible/tests/mochitest/*.js
|
||||
skip-if = a11y_checks
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_test_doc_creation.js]
|
||||
[browser_test_urlbar.js]
|
14
accessible/tests/browser/general/browser.toml
Normal file
14
accessible/tests/browser/general/browser.toml
Normal file
|
@ -0,0 +1,14 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"head.js",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
]
|
||||
skip-if = ["a11y_checks"]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_test_doc_creation.js"]
|
||||
|
||||
["browser_test_urlbar.js"]
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/mochitest/letters.gif
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_test_browser.js]
|
||||
[browser_test_general.js]
|
||||
[browser_test_scroll_hittest.js]
|
||||
[browser_test_shadowroot.js]
|
||||
[browser_test_text.js]
|
||||
[browser_test_zoom.js]
|
||||
[browser_test_zoom_text.js]
|
25
accessible/tests/browser/hittest/browser.toml
Normal file
25
accessible/tests/browser/hittest/browser.toml
Normal file
|
@ -0,0 +1,25 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/mochitest/letters.gif",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_test_browser.js"]
|
||||
|
||||
["browser_test_general.js"]
|
||||
|
||||
["browser_test_scroll_hittest.js"]
|
||||
|
||||
["browser_test_shadowroot.js"]
|
||||
|
||||
["browser_test_text.js"]
|
||||
|
||||
["browser_test_zoom.js"]
|
||||
|
||||
["browser_test_zoom_text.js"]
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
skip-if = os != 'mac'
|
||||
support-files =
|
||||
head.js
|
||||
doc_aria_tabs.html
|
||||
doc_textmarker_test.html
|
||||
doc_rich_listbox.xhtml
|
||||
doc_menulist.xhtml
|
||||
doc_tree.xhtml
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/mochitest/letters.gif
|
||||
!/accessible/tests/mochitest/moz.png
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_app.js]
|
||||
https_first_disabled = true
|
||||
[browser_aria_current.js]
|
||||
[browser_aria_expanded.js]
|
||||
[browser_details_summary.js]
|
||||
[browser_label_title.js]
|
||||
[browser_range.js]
|
||||
[browser_roles_elements.js]
|
||||
[browser_table.js]
|
||||
[browser_selectables.js]
|
||||
[browser_radio_position.js]
|
||||
[browser_toggle_radio_check.js]
|
||||
[browser_link.js]
|
||||
[browser_aria_haspopup.js]
|
||||
[browser_required.js]
|
||||
[browser_popupbutton.js]
|
||||
[browser_mathml.js]
|
||||
[browser_input.js]
|
||||
[browser_focus.js]
|
||||
[browser_text_leaf.js]
|
||||
[browser_webarea.js]
|
||||
[browser_text_basics.js]
|
||||
[browser_text_input.js]
|
||||
skip-if =
|
||||
os == "mac" # Bug 1778821
|
||||
[browser_rotor.js]
|
||||
[browser_rootgroup.js]
|
||||
[browser_text_selection.js]
|
||||
[browser_navigate.js]
|
||||
[browser_outline.js]
|
||||
[browser_outline_xul.js]
|
||||
[browser_hierarchy.js]
|
||||
[browser_menulist.js]
|
||||
[browser_rich_listbox.js]
|
||||
[browser_live_regions.js]
|
||||
[browser_aria_busy.js]
|
||||
[browser_aria_controls_flowto.js]
|
||||
[browser_attributed_text.js]
|
||||
[browser_bounds.js]
|
||||
[browser_heading.js]
|
93
accessible/tests/browser/mac/browser.toml
Normal file
93
accessible/tests/browser/mac/browser.toml
Normal file
|
@ -0,0 +1,93 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
skip-if = ["os != 'mac'"]
|
||||
support-files = [
|
||||
"head.js",
|
||||
"doc_aria_tabs.html",
|
||||
"doc_textmarker_test.html",
|
||||
"doc_rich_listbox.xhtml",
|
||||
"doc_menulist.xhtml",
|
||||
"doc_tree.xhtml",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/mochitest/letters.gif",
|
||||
"!/accessible/tests/mochitest/moz.png",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_app.js"]
|
||||
https_first_disabled = true
|
||||
|
||||
["browser_aria_busy.js"]
|
||||
|
||||
["browser_aria_controls_flowto.js"]
|
||||
|
||||
["browser_aria_current.js"]
|
||||
|
||||
["browser_aria_expanded.js"]
|
||||
|
||||
["browser_aria_haspopup.js"]
|
||||
|
||||
["browser_attributed_text.js"]
|
||||
|
||||
["browser_bounds.js"]
|
||||
|
||||
["browser_details_summary.js"]
|
||||
|
||||
["browser_focus.js"]
|
||||
|
||||
["browser_heading.js"]
|
||||
|
||||
["browser_hierarchy.js"]
|
||||
|
||||
["browser_input.js"]
|
||||
|
||||
["browser_label_title.js"]
|
||||
|
||||
["browser_link.js"]
|
||||
|
||||
["browser_live_regions.js"]
|
||||
|
||||
["browser_mathml.js"]
|
||||
|
||||
["browser_menulist.js"]
|
||||
|
||||
["browser_navigate.js"]
|
||||
|
||||
["browser_outline.js"]
|
||||
|
||||
["browser_outline_xul.js"]
|
||||
|
||||
["browser_popupbutton.js"]
|
||||
|
||||
["browser_radio_position.js"]
|
||||
|
||||
["browser_range.js"]
|
||||
|
||||
["browser_required.js"]
|
||||
|
||||
["browser_rich_listbox.js"]
|
||||
|
||||
["browser_roles_elements.js"]
|
||||
|
||||
["browser_rootgroup.js"]
|
||||
|
||||
["browser_rotor.js"]
|
||||
|
||||
["browser_selectables.js"]
|
||||
|
||||
["browser_table.js"]
|
||||
|
||||
["browser_text_basics.js"]
|
||||
|
||||
["browser_text_input.js"]
|
||||
skip-if = ["os == 'mac'"] # Bug 1778821
|
||||
|
||||
["browser_text_leaf.js"]
|
||||
|
||||
["browser_text_selection.js"]
|
||||
|
||||
["browser_toggle_radio_check.js"]
|
||||
|
||||
["browser_webarea.js"]
|
|
@ -1,10 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
head.js
|
||||
!/accessible/tests/mochitest/*.js
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_pivot.js]
|
11
accessible/tests/browser/pivot/browser.toml
Normal file
11
accessible/tests/browser/pivot/browser.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"head.js",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_pivot.js"]
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/browser/*.mjs
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_computedARIARole.js]
|
12
accessible/tests/browser/role/browser.toml
Normal file
12
accessible/tests/browser/role/browser.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/browser/*.mjs",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_computedARIARole.js"]
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_scrollToPoint.js]
|
||||
[browser_test_zoom_text.js]
|
||||
[browser_test_scroll_bounds.js]
|
||||
[browser_test_scrollTo.js]
|
||||
[browser_test_scroll_substring.js]
|
19
accessible/tests/browser/scroll/browser.toml
Normal file
19
accessible/tests/browser/scroll/browser.toml
Normal file
|
@ -0,0 +1,19 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_scrollToPoint.js"]
|
||||
|
||||
["browser_test_scrollTo.js"]
|
||||
|
||||
["browser_test_scroll_bounds.js"]
|
||||
|
||||
["browser_test_scroll_substring.js"]
|
||||
|
||||
["browser_test_zoom_text.js"]
|
|
@ -1,12 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_test_aria_select.js]
|
||||
[browser_test_select.js]
|
14
accessible/tests/browser/selectable/browser.toml
Normal file
14
accessible/tests/browser/selectable/browser.toml
Normal file
|
@ -0,0 +1,14 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_test_aria_select.js"]
|
||||
|
||||
["browser_test_select.js"]
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_test_link.js]
|
||||
https_first_disabled = true
|
||||
skip-if = verify
|
||||
[browser_test_select_visibility.js]
|
||||
https_first_disabled = true
|
||||
[browser_test_visibility.js]
|
||||
https_first_disabled = true
|
||||
[browser_test_visibility_2.js]
|
||||
https_first_disabled = true
|
23
accessible/tests/browser/states/browser.toml
Normal file
23
accessible/tests/browser/states/browser.toml
Normal file
|
@ -0,0 +1,23 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_test_link.js"]
|
||||
https_first_disabled = true
|
||||
skip-if = ["verify"]
|
||||
|
||||
["browser_test_select_visibility.js"]
|
||||
https_first_disabled = true
|
||||
|
||||
["browser_test_visibility.js"]
|
||||
https_first_disabled = true
|
||||
|
||||
["browser_test_visibility_2.js"]
|
||||
https_first_disabled = true
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_HCM_telemetry.js]
|
||||
support-files =
|
||||
!/browser/components/preferences/tests/head.js
|
7
accessible/tests/browser/telemetry/browser.toml
Normal file
7
accessible/tests/browser/telemetry/browser.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_HCM_telemetry.js"]
|
||||
support-files = ["!/browser/components/preferences/tests/head.js"]
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
!/accessible/tests/mochitest/*.js
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_editabletext.js]
|
||||
[browser_text.js]
|
||||
[browser_text_caret.js]
|
||||
[browser_text_paragraph_boundary.js]
|
||||
[browser_text_selection.js]
|
||||
[browser_text_spelling.js]
|
||||
skip-if = true # Bug 1800400
|
||||
[browser_textleafpoint.js]
|
25
accessible/tests/browser/text/browser.toml
Normal file
25
accessible/tests/browser/text/browser.toml
Normal file
|
@ -0,0 +1,25 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_editabletext.js"]
|
||||
|
||||
["browser_text.js"]
|
||||
|
||||
["browser_text_caret.js"]
|
||||
|
||||
["browser_text_paragraph_boundary.js"]
|
||||
|
||||
["browser_text_selection.js"]
|
||||
|
||||
["browser_text_spelling.js"]
|
||||
skip-if = ["true"] # Bug 1800400
|
||||
|
||||
["browser_textleafpoint.js"]
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
[DEFAULT]
|
||||
subsuite = a11y
|
||||
support-files =
|
||||
head.js
|
||||
!/accessible/tests/browser/shared-head.js
|
||||
!/accessible/tests/mochitest/*.js
|
||||
!/accessible/tests/browser/*.jsm
|
||||
prefs =
|
||||
javascript.options.asyncstack_capture_debuggee_only=false
|
||||
|
||||
[browser_aria_owns.js]
|
||||
skip-if = true || (verify && !debug && (os == 'linux')) #Bug 1445513
|
||||
[browser_browser_element.js]
|
||||
[browser_css_content_visibility.js]
|
||||
[browser_general.js]
|
||||
[browser_lazy_tabs.js]
|
||||
[browser_link.js]
|
||||
[browser_searchbar.js]
|
||||
[browser_shadowdom.js]
|
||||
[browser_test_nsIAccessibleDocument_URL.js]
|
31
accessible/tests/browser/tree/browser.toml
Normal file
31
accessible/tests/browser/tree/browser.toml
Normal file
|
@ -0,0 +1,31 @@
|
|||
[DEFAULT]
|
||||
subsuite = "a11y"
|
||||
support-files = [
|
||||
"head.js",
|
||||
"!/accessible/tests/browser/shared-head.js",
|
||||
"!/accessible/tests/mochitest/*.js",
|
||||
"!/accessible/tests/browser/*.jsm",
|
||||
]
|
||||
prefs = ["javascript.options.asyncstack_capture_debuggee_only=false"]
|
||||
|
||||
["browser_aria_owns.js"]
|
||||
skip-if = [
|
||||
"true", #Bug 1445513
|
||||
"verify && !debug && os == 'linux'",
|
||||
]
|
||||
|
||||
["browser_browser_element.js"]
|
||||
|
||||
["browser_css_content_visibility.js"]
|
||||
|
||||
["browser_general.js"]
|
||||
|
||||
["browser_lazy_tabs.js"]
|
||||
|
||||
["browser_link.js"]
|
||||
|
||||
["browser_searchbar.js"]
|
||||
|
||||
["browser_shadowdom.js"]
|
||||
|
||||
["browser_test_nsIAccessibleDocument_URL.js"]
|
|
@ -34,7 +34,7 @@
|
|||
let docLoaded = waitForEvent(EVENT_DOCUMENT_LOAD_COMPLETE, event =>
|
||||
event.accessible.QueryInterface(nsIAccessibleDocument).URL === ABOUT_LICENSE_URL,
|
||||
`Loaded tab: ${ABOUT_LICENSE_URL}`);
|
||||
BrowserTestUtils.loadURIString(win.gBrowser.selectedBrowser,
|
||||
BrowserTestUtils.startLoadingURIString(win.gBrowser.selectedBrowser,
|
||||
"about:license");
|
||||
await loaded;
|
||||
await docLoaded;
|
||||
|
|
|
@ -750,6 +750,10 @@ pref("browser.shopping.experience2023.ads.enabled", false);
|
|||
// Unlike `browser.shopping.experience2023.ads.enabled`, this pref is controlled by users
|
||||
// using the visible toggle.
|
||||
pref("browser.shopping.experience2023.ads.userEnabled", false);
|
||||
|
||||
// Saves if shopping survey is enabled.
|
||||
pref("browser.shopping.experience2023.survey.enabled", true);
|
||||
|
||||
// Saves if shopping survey is seen.
|
||||
pref("browser.shopping.experience2023.survey.hasSeen", false);
|
||||
|
||||
|
@ -1684,6 +1688,7 @@ pref("browser.newtabpage.activity-stream.discoverystream.spocAdTypes", "");
|
|||
pref("browser.newtabpage.activity-stream.discoverystream.spocZoneIds", "");
|
||||
pref("browser.newtabpage.activity-stream.discoverystream.spocTopsitesAdTypes", "");
|
||||
pref("browser.newtabpage.activity-stream.discoverystream.spocTopsitesZoneIds", "");
|
||||
pref("browser.newtabpage.activity-stream.discoverystream.spocTopsitesPlacement.enabled", true);
|
||||
pref("browser.newtabpage.activity-stream.discoverystream.spocSiteId", "");
|
||||
|
||||
pref("browser.newtabpage.activity-stream.discoverystream.sendToPocket.enabled", true);
|
||||
|
|
|
@ -415,9 +415,19 @@ var FullScreen = {
|
|||
if (shiftSize > 0) {
|
||||
toolbox.style.setProperty("transform", `translateY(${shiftSize}px)`);
|
||||
toolbox.style.setProperty("z-index", "2");
|
||||
|
||||
// If the mouse tracking missed our fullScreenToggler, then the toolbox
|
||||
// might not have been shown before the menubar is animated down. Make
|
||||
// sure it is shown now.
|
||||
if (!this.fullScreenToggler.hidden) {
|
||||
this.showNavToolbox();
|
||||
}
|
||||
} else {
|
||||
toolbox.style.removeProperty("transform");
|
||||
toolbox.style.removeProperty("z-index");
|
||||
|
||||
// If menubar is animating away, we might need to hide the toolbox also.
|
||||
this.hideNavToolbox(false);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -10046,6 +10046,12 @@ var ShoppingSidebarManager = {
|
|||
this._enabled =
|
||||
NimbusFeatures.shopping2023.getVariable("enabled") && !isPBM && !optedOut;
|
||||
|
||||
if (!this.isActive) {
|
||||
document.querySelectorAll("shopping-sidebar").forEach(sidebar => {
|
||||
sidebar.hidden = true;
|
||||
});
|
||||
}
|
||||
|
||||
if (!this._enabled) {
|
||||
document.querySelectorAll("shopping-sidebar").forEach(sidebar => {
|
||||
sidebar.remove();
|
||||
|
@ -10130,6 +10136,14 @@ var ShoppingSidebarManager = {
|
|||
// This is the auto-enable behavior that toggles the `active` pref. It
|
||||
// must be at the end of this function, or 2 sidebars could be created.
|
||||
ShoppingUtils.handleAutoActivateOnProduct();
|
||||
|
||||
if (!this.isActive) {
|
||||
ShoppingUtils.sendTrigger({
|
||||
browser: aBrowser,
|
||||
id: "shoppingProductPageWithSidebarClosed",
|
||||
context: { isSidebarClosing: !!sidebar },
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -10167,7 +10181,6 @@ var ShoppingSidebarManager = {
|
|||
|
||||
// Only record if the state of the icon will change from hidden to visible.
|
||||
if (button.hidden && isCurrentBrowserProduct) {
|
||||
console.log("visibility of shopping address bar icon changed");
|
||||
Glean.shopping.addressBarIconDisplayed.record();
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ add_task(async function checkReturnToPreviousPage() {
|
|||
tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, GOOD_PAGE);
|
||||
browser = tab.linkedBrowser;
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, GOOD_PAGE_2);
|
||||
BrowserTestUtils.startLoadingURIString(browser, GOOD_PAGE_2);
|
||||
await BrowserTestUtils.browserLoaded(browser, false, GOOD_PAGE_2);
|
||||
await injectErrorPageFrame(tab, BAD_CERT);
|
||||
} else {
|
||||
|
@ -93,7 +93,7 @@ add_task(async function checkReturnToPreviousPage() {
|
|||
|
||||
info("Loading and waiting for the cert error");
|
||||
let certErrorLoaded = BrowserTestUtils.waitForErrorPage(browser);
|
||||
BrowserTestUtils.loadURIString(browser, BAD_CERT);
|
||||
BrowserTestUtils.startLoadingURIString(browser, BAD_CERT);
|
||||
await certErrorLoaded;
|
||||
}
|
||||
|
||||
|
|
|
@ -213,7 +213,7 @@ add_task(async function onlyAllow3DESWithDeprecatedTLS() {
|
|||
await BrowserTestUtils.withNewTab(
|
||||
{ gBrowser, url: "about:blank" },
|
||||
async browser => {
|
||||
BrowserTestUtils.loadURIString(browser, TRIPLEDES_PAGE);
|
||||
BrowserTestUtils.startLoadingURIString(browser, TRIPLEDES_PAGE);
|
||||
await BrowserTestUtils.waitForErrorPage(browser);
|
||||
}
|
||||
);
|
||||
|
@ -223,7 +223,7 @@ add_task(async function onlyAllow3DESWithDeprecatedTLS() {
|
|||
await BrowserTestUtils.withNewTab(
|
||||
{ gBrowser, url: "about:blank" },
|
||||
async browser => {
|
||||
BrowserTestUtils.loadURIString(browser, TRIPLEDES_PAGE);
|
||||
BrowserTestUtils.startLoadingURIString(browser, TRIPLEDES_PAGE);
|
||||
await BrowserTestUtils.browserLoaded(browser, false, TRIPLEDES_PAGE);
|
||||
}
|
||||
);
|
||||
|
@ -236,7 +236,7 @@ add_task(async function onlyAllow3DESWithDeprecatedTLS() {
|
|||
await BrowserTestUtils.withNewTab(
|
||||
{ gBrowser, url: "about:blank" },
|
||||
async browser => {
|
||||
BrowserTestUtils.loadURIString(browser, TRIPLEDES_PAGE);
|
||||
BrowserTestUtils.startLoadingURIString(browser, TRIPLEDES_PAGE);
|
||||
await BrowserTestUtils.waitForErrorPage(browser);
|
||||
}
|
||||
);
|
||||
|
|
|
@ -80,7 +80,7 @@ async function setupPage(htmlPageName, blockedPage) {
|
|||
true
|
||||
);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, iFramePage);
|
||||
BrowserTestUtils.startLoadingURIString(browser, iFramePage);
|
||||
await browserLoaded;
|
||||
info("The error page has loaded!");
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ async function setupPage(htmlPageName, blockedPage) {
|
|||
true
|
||||
);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, iFramePage);
|
||||
BrowserTestUtils.startLoadingURIString(browser, iFramePage);
|
||||
await browserLoaded;
|
||||
info("The error page has loaded!");
|
||||
|
||||
|
|
|
@ -18,7 +18,10 @@ add_task(async function bookmarks_toolbar_shown_on_newtab() {
|
|||
ok(isBookmarksToolbarVisible(), "Toolbar should be visible on newtab");
|
||||
|
||||
// 2: Test that the toolbar is hidden when the browser is navigated away from newtab
|
||||
BrowserTestUtils.loadURIString(newtab.linkedBrowser, "https://example.com");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
newtab.linkedBrowser,
|
||||
"https://example.com"
|
||||
);
|
||||
await BrowserTestUtils.browserLoaded(newtab.linkedBrowser);
|
||||
await waitForBookmarksToolbarVisibility({
|
||||
visible: false,
|
||||
|
@ -31,7 +34,7 @@ add_task(async function bookmarks_toolbar_shown_on_newtab() {
|
|||
);
|
||||
|
||||
// 3: Re-load about:newtab in the browser for the following tests and confirm toolbar reappears
|
||||
BrowserTestUtils.loadURIString(newtab.linkedBrowser, "about:newtab");
|
||||
BrowserTestUtils.startLoadingURIString(newtab.linkedBrowser, "about:newtab");
|
||||
await BrowserTestUtils.browserLoaded(newtab.linkedBrowser);
|
||||
await waitForBookmarksToolbarVisibility({
|
||||
visible: true,
|
||||
|
@ -65,7 +68,7 @@ add_task(async function bookmarks_toolbar_shown_on_newtab() {
|
|||
});
|
||||
|
||||
// 7: Similar to #3 above, loading about:newtab in example should show toolbar
|
||||
BrowserTestUtils.loadURIString(example.linkedBrowser, "about:newtab");
|
||||
BrowserTestUtils.startLoadingURIString(example.linkedBrowser, "about:newtab");
|
||||
await BrowserTestUtils.browserLoaded(example.linkedBrowser);
|
||||
await waitForBookmarksToolbarVisibility({
|
||||
visible: true,
|
||||
|
@ -88,7 +91,10 @@ add_task(async function bookmarks_toolbar_shown_on_newtab() {
|
|||
await BrowserTestUtils.switchTab(gBrowser, newtab);
|
||||
await waitForBookmarksToolbarVisibility({ visible: false });
|
||||
ok(!isBookmarksToolbarVisible(), "Toolbar should hide with custom newtab");
|
||||
BrowserTestUtils.loadURIString(example.linkedBrowser, AboutNewTab.newTabURL);
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
example.linkedBrowser,
|
||||
AboutNewTab.newTabURL
|
||||
);
|
||||
await BrowserTestUtils.browserLoaded(example.linkedBrowser);
|
||||
await BrowserTestUtils.switchTab(gBrowser, example);
|
||||
await waitForBookmarksToolbarVisibility({ visible: true });
|
||||
|
|
|
@ -57,7 +57,7 @@ add_task(async function checkDontShowStopFromLocalURI() {
|
|||
stopReloadContainerObserver.observe(stopReloadContainer, {
|
||||
attributeFilter: ["animate"],
|
||||
});
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, "about:mozilla");
|
||||
BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, "about:mozilla");
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
|
||||
Assert.ok(
|
||||
|
@ -82,7 +82,7 @@ add_task(async function checkDontShowStopFromNonLocalURI() {
|
|||
stopReloadContainerObserver.observe(stopReloadContainer, {
|
||||
attributeFilter: ["animate"],
|
||||
});
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, "about:mozilla");
|
||||
BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, "about:mozilla");
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
|
||||
Assert.ok(
|
||||
|
@ -132,7 +132,10 @@ add_task(async function checkAnimateStopOnTabAfterTabFinishesOpening() {
|
|||
return !gBrowser.tabAnimationsInProgress;
|
||||
});
|
||||
let animatePromise = getAnimatePromise(stopReloadContainer);
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, "https://example.com");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
tab.linkedBrowser,
|
||||
"https://example.com"
|
||||
);
|
||||
await animatePromise;
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
|
||||
|
@ -158,7 +161,10 @@ add_task(async function checkDoShowStopFromLocalURI() {
|
|||
return !gBrowser.tabAnimationsInProgress;
|
||||
});
|
||||
let animatePromise = getAnimatePromise(stopReloadContainer);
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, "https://example.com");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
tab.linkedBrowser,
|
||||
"https://example.com"
|
||||
);
|
||||
await animatePromise;
|
||||
await waitForNoAnimation(stopReloadContainer);
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
|
|
|
@ -22,7 +22,7 @@ add_task(async function checkSwitchPageToOnlineMode() {
|
|||
let netErrorLoaded = BrowserTestUtils.waitForErrorPage(browser);
|
||||
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
BrowserTestUtils.loadURIString(browser, "http://example.com/");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "http://example.com/");
|
||||
await netErrorLoaded;
|
||||
|
||||
// Re-enable the proxy so example.com is resolved to localhost, rather than
|
||||
|
|
|
@ -142,7 +142,7 @@ function promiseTabLoadEvent(tab, url) {
|
|||
let loaded = BrowserTestUtils.browserLoaded(tab.linkedBrowser, false, handle);
|
||||
|
||||
if (url) {
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, url);
|
||||
}
|
||||
|
||||
return loaded;
|
||||
|
|
|
@ -19,7 +19,7 @@ let testcases = [
|
|||
false,
|
||||
CANONICAL_URL_REDIRECTED
|
||||
);
|
||||
BrowserTestUtils.loadURIString(browser, CANONICAL_URL_REDIRECTED);
|
||||
BrowserTestUtils.startLoadingURIString(browser, CANONICAL_URL_REDIRECTED);
|
||||
await loadPromise;
|
||||
await freePortal(true);
|
||||
ensurePortalTab(win);
|
||||
|
|
|
@ -36,7 +36,7 @@ async function openTestPage() {
|
|||
},
|
||||
true /* maybeErrorPage */
|
||||
);
|
||||
BrowserTestUtils.loadURIString(browser, testPage);
|
||||
BrowserTestUtils.startLoadingURIString(browser, testPage);
|
||||
await pageAndIframesLoaded;
|
||||
|
||||
// Make sure both the top-level document and the iframe documents have
|
||||
|
|
|
@ -20,7 +20,10 @@ async function rightClickOpenInNewTabAndReturnContent(selector) {
|
|||
false,
|
||||
RESOURCE_LINK
|
||||
);
|
||||
BrowserTestUtils.loadURIString(gBrowser.selectedBrowser, RESOURCE_LINK);
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
gBrowser.selectedBrowser,
|
||||
RESOURCE_LINK
|
||||
);
|
||||
await loaded;
|
||||
|
||||
const generatedBlobURL = await ContentTask.spawn(
|
||||
|
@ -97,7 +100,10 @@ async function openInNewTabAndReturnContent(selector) {
|
|||
false,
|
||||
RESOURCE_LINK
|
||||
);
|
||||
BrowserTestUtils.loadURIString(gBrowser.selectedBrowser, RESOURCE_LINK);
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
gBrowser.selectedBrowser,
|
||||
RESOURCE_LINK
|
||||
);
|
||||
await loaded;
|
||||
|
||||
const generatedBlobURL = await ContentTask.spawn(
|
||||
|
|
|
@ -185,7 +185,7 @@ add_task(async function test_text_input_spellcheck_deadactor() {
|
|||
contextMenu.hidePopup();
|
||||
|
||||
// Now go back to the input testcase:
|
||||
BrowserTestUtils.loadURIString(gBrowser.selectedBrowser, MAIN_URL);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser.selectedBrowser, MAIN_URL);
|
||||
await BrowserTestUtils.browserLoaded(
|
||||
gBrowser.selectedBrowser,
|
||||
false,
|
||||
|
@ -206,7 +206,7 @@ add_task(async function test_text_input_spellcheck_deadactor() {
|
|||
wgp = gBrowser.selectedBrowser.browsingContext.currentWindowGlobal;
|
||||
|
||||
const NEW_URL = MAIN_URL.replace(".com", ".org");
|
||||
BrowserTestUtils.loadURIString(gBrowser.selectedBrowser, NEW_URL);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser.selectedBrowser, NEW_URL);
|
||||
await BrowserTestUtils.browserLoaded(
|
||||
gBrowser.selectedBrowser,
|
||||
false,
|
||||
|
@ -229,7 +229,7 @@ add_task(async function test_text_input_spellcheck_deadactor() {
|
|||
// again; now the context menu stuff should be destroyed by the menu
|
||||
// hiding, nothing else.
|
||||
wgp = gBrowser.selectedBrowser.browsingContext.currentWindowGlobal;
|
||||
BrowserTestUtils.loadURIString(gBrowser.selectedBrowser, NEW_URL);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser.selectedBrowser, NEW_URL);
|
||||
await BrowserTestUtils.browserLoaded(
|
||||
gBrowser.selectedBrowser,
|
||||
false,
|
||||
|
|
|
@ -63,7 +63,7 @@ add_task(async function test_back_forward_button_contextmenu_touch() {
|
|||
() => !backbutton.hasAttribute("disabled")
|
||||
);
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
BrowserTestUtils.loadURIString(browser, "http://example.org");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "http://example.org");
|
||||
await notDisabled;
|
||||
await openAndCheckContextMenu(contextMenu, backbutton);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ add_task(async function test() {
|
|||
const expectedIcon = testPath + "file_generic_favicon.ico";
|
||||
let faviconPromise = waitForLinkAvailable(tabBrowser);
|
||||
|
||||
BrowserTestUtils.loadURIString(tabBrowser, URI);
|
||||
BrowserTestUtils.startLoadingURIString(tabBrowser, URI);
|
||||
|
||||
let iconURI = await faviconPromise;
|
||||
is(iconURI, expectedIcon, "Correct icon before pushState.");
|
||||
|
|
|
@ -8,7 +8,7 @@ add_task(async function test() {
|
|||
const expectedIcon = testPath + "file_generic_favicon.ico";
|
||||
let faviconPromise = waitForLinkAvailable(tabBrowser);
|
||||
|
||||
BrowserTestUtils.loadURIString(tabBrowser, URI);
|
||||
BrowserTestUtils.startLoadingURIString(tabBrowser, URI);
|
||||
|
||||
let iconURI = await faviconPromise;
|
||||
is(iconURI, expectedIcon, "Correct icon before pushState.");
|
||||
|
|
|
@ -12,7 +12,7 @@ add_task(async () => {
|
|||
async browser => {
|
||||
let faviconPromise = waitForFaviconMessage(true, `${ROOT}accept.sjs`);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, ROOT + "accept.html");
|
||||
BrowserTestUtils.startLoadingURIString(browser, ROOT + "accept.html");
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
try {
|
||||
|
|
|
@ -12,7 +12,7 @@ add_task(async () => {
|
|||
async browser => {
|
||||
let faviconPromise = waitForFaviconMessage(true, `${ROOT}auth_test.png`);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, `${ROOT}auth_test.html`);
|
||||
BrowserTestUtils.startLoadingURIString(browser, `${ROOT}auth_test.html`);
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
await Assert.rejects(
|
||||
|
|
|
@ -27,7 +27,7 @@ add_task(async () => {
|
|||
ok(seenCookie, "Should have seen the cookie.");
|
||||
|
||||
faviconPromise = waitForLinkAvailable(browser);
|
||||
BrowserTestUtils.loadURIString(browser, testPath);
|
||||
BrowserTestUtils.startLoadingURIString(browser, testPath);
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
await faviconPromise;
|
||||
cookies = Services.cookies.getCookiesFromHost(
|
||||
|
|
|
@ -14,7 +14,7 @@ add_task(async function () {
|
|||
TEST_ROOT + "file_bug970276_favicon1.ico"
|
||||
);
|
||||
|
||||
BrowserTestUtils.loadURIString(extraTab.linkedBrowser, TEST_URL);
|
||||
BrowserTestUtils.startLoadingURIString(extraTab.linkedBrowser, TEST_URL);
|
||||
await BrowserTestUtils.browserLoaded(extraTab.linkedBrowser);
|
||||
await haveChanged;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ add_task(async function () {
|
|||
let expectedFavicon = TEST_ROOT + "file_generic_favicon.ico";
|
||||
let faviconPromise = waitForFavicon(extraTab.linkedBrowser, expectedFavicon);
|
||||
|
||||
BrowserTestUtils.loadURIString(extraTab.linkedBrowser, TEST_URL);
|
||||
BrowserTestUtils.startLoadingURIString(extraTab.linkedBrowser, TEST_URL);
|
||||
await BrowserTestUtils.browserLoaded(extraTab.linkedBrowser);
|
||||
|
||||
await faviconPromise;
|
||||
|
|
|
@ -32,7 +32,7 @@ function run_test(url, shouldHaveCookies, description) {
|
|||
async browser => {
|
||||
const faviconPromise = waitForFaviconMessage(true, FAVICON_URL);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, url);
|
||||
BrowserTestUtils.startLoadingURIString(browser, url);
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
await faviconPromise;
|
||||
|
|
|
@ -27,7 +27,10 @@ function run_test(root, shouldSucceed, description) {
|
|||
async browser => {
|
||||
const faviconPromise = waitForFaviconMessage(true, FAVICON_URL);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, `${root}crossorigin.html`);
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
`${root}crossorigin.html`
|
||||
);
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
if (shouldSucceed) {
|
||||
|
|
|
@ -20,7 +20,10 @@ add_task(async function test_check_referrer_for_discovered_favicon() {
|
|||
}
|
||||
).then(([chan]) => chan.getRequestHeader("Referer"));
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, `${FOLDER}discovery.html`);
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
`${FOLDER}discovery.html`
|
||||
);
|
||||
|
||||
let referrer = await referrerPromise;
|
||||
is(
|
||||
|
@ -45,7 +48,7 @@ add_task(
|
|||
}
|
||||
).then(([chan]) => chan.getRequestHeader("Referer"));
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
`${FOLDER}file_favicon_no_referrer.html`
|
||||
);
|
||||
|
|
|
@ -12,7 +12,7 @@ add_task(async () => {
|
|||
{ gBrowser, url: "about:blank" },
|
||||
async browser => {
|
||||
let faviconPromise = waitForLinkAvailable(browser);
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
testPath + "file_invalid_href.html"
|
||||
);
|
||||
|
|
|
@ -13,7 +13,7 @@ add_task(async () => {
|
|||
const expectedIcon = testPath + "file_generic_favicon.ico";
|
||||
let faviconPromise = waitForLinkAvailable(browser);
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
testPath + "file_with_favicon.html"
|
||||
);
|
||||
|
@ -22,7 +22,7 @@ add_task(async () => {
|
|||
let iconURI = await faviconPromise;
|
||||
is(iconURI, expectedIcon, "Got correct icon.");
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, testPath + "blank.html");
|
||||
BrowserTestUtils.startLoadingURIString(browser, testPath + "blank.html");
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
is(browser.mIconURL, null, "Should have blanked the icon.");
|
||||
|
|
|
@ -10,7 +10,10 @@ add_task(async () => {
|
|||
async browser => {
|
||||
let faviconPromise = waitForFaviconMessage(true, `${ROOT}large.png`);
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, ROOT + "large_favicon.html");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
ROOT + "large_favicon.html"
|
||||
);
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
await Assert.rejects(
|
||||
|
|
|
@ -15,7 +15,7 @@ add_task(async () => {
|
|||
is(iconURI, expectedIcon, "Got correct initial icon.");
|
||||
|
||||
faviconPromise = waitForLinkAvailable(browser);
|
||||
BrowserTestUtils.loadURIString(browser, testPath);
|
||||
BrowserTestUtils.startLoadingURIString(browser, testPath);
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
iconURI = await faviconPromise;
|
||||
is(iconURI, expectedIcon, "Got correct icon on second load.");
|
||||
|
|
|
@ -38,7 +38,7 @@ add_task(async () => {
|
|||
{ gBrowser, url: "about:blank" },
|
||||
async browser => {
|
||||
let tab = gBrowser.getTabForBrowser(browser);
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
TEST_PATH + "file_with_slow_favicon.html"
|
||||
);
|
||||
|
@ -147,7 +147,7 @@ add_task(async () => {
|
|||
gBrowser.pinTab(tab);
|
||||
|
||||
let bounds = tab.getBoundingClientRect();
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
TEST_PATH + "file_with_slow_favicon.html"
|
||||
);
|
||||
|
|
|
@ -322,7 +322,10 @@ add_task(async function test_large_popup_in_small_window() {
|
|||
let browserLoadedPromise = BrowserTestUtils.browserLoaded(
|
||||
newWin.gBrowser.selectedBrowser
|
||||
);
|
||||
BrowserTestUtils.loadURIString(newWin.gBrowser.selectedBrowser, pageUrl);
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
newWin.gBrowser.selectedBrowser,
|
||||
pageUrl
|
||||
);
|
||||
await browserLoadedPromise;
|
||||
|
||||
newWin.gBrowser.selectedBrowser.focus();
|
||||
|
|
|
@ -14,7 +14,7 @@ add_task(async function test_identityPopupCausesFSExit() {
|
|||
|
||||
await BrowserTestUtils.withNewTab("about:blank", async browser => {
|
||||
let loaded = BrowserTestUtils.browserLoaded(browser, false, url);
|
||||
BrowserTestUtils.loadURIString(browser, url);
|
||||
BrowserTestUtils.startLoadingURIString(browser, url);
|
||||
await loaded;
|
||||
|
||||
let identityPermissionBox = document.getElementById(
|
||||
|
|
|
@ -198,8 +198,8 @@ async function test() {
|
|||
BrowserTestUtils.browserStopped(gBackgroundBrowser, kBasePage),
|
||||
BrowserTestUtils.browserStopped(gForegroundBrowser, kBasePage),
|
||||
];
|
||||
BrowserTestUtils.loadURIString(gBackgroundBrowser, kBasePage);
|
||||
BrowserTestUtils.loadURIString(gForegroundBrowser, kBasePage);
|
||||
BrowserTestUtils.startLoadingURIString(gBackgroundBrowser, kBasePage);
|
||||
BrowserTestUtils.startLoadingURIString(gForegroundBrowser, kBasePage);
|
||||
await Promise.all(promises);
|
||||
// If we process switched, the tabbrowser may still be processing the state_stop
|
||||
// notification here because of how microtasks work. Ensure that that has
|
||||
|
@ -214,7 +214,7 @@ function runTest(browser, url, next) {
|
|||
gAllNotificationsPos = 0;
|
||||
gNextTest = next;
|
||||
gTestBrowser = browser;
|
||||
BrowserTestUtils.loadURIString(browser, url);
|
||||
BrowserTestUtils.startLoadingURIString(browser, url);
|
||||
}
|
||||
|
||||
function startTest1() {
|
||||
|
|
|
@ -5,7 +5,7 @@ add_task(async function () {
|
|||
);
|
||||
const htmlContent =
|
||||
"data:text/html, <iframe src='data:text/html,text text'></iframe>";
|
||||
BrowserTestUtils.loadURIString(gBrowser, htmlContent);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser, htmlContent);
|
||||
await loadedPromise;
|
||||
|
||||
await SpecialPowers.spawn(gBrowser.selectedBrowser, [], async function (arg) {
|
||||
|
|
|
@ -6,7 +6,10 @@ add_task(async function () {
|
|||
gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);
|
||||
|
||||
let promise = BrowserTestUtils.waitForErrorPage(gBrowser.selectedBrowser);
|
||||
BrowserTestUtils.loadURIString(gBrowser, "https://nocert.example.com/");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
gBrowser,
|
||||
"https://nocert.example.com/"
|
||||
);
|
||||
await promise;
|
||||
|
||||
await remote(() => {
|
||||
|
|
|
@ -13,7 +13,7 @@ const URIS = [
|
|||
add_task(async function () {
|
||||
for (let uri of URIS) {
|
||||
let tab = BrowserTestUtils.addTab(gBrowser);
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, uri);
|
||||
BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, uri);
|
||||
await BrowserTestUtils.browserLoaded(tab.linkedBrowser);
|
||||
let isRemote = tab.linkedBrowser.isRemoteBrowser;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ function test() {
|
|||
gBrowser.addProgressListener(progressListener1);
|
||||
gBrowser.addProgressListener(progressListener2);
|
||||
gBrowser.addProgressListener(progressListener3);
|
||||
BrowserTestUtils.loadURIString(gBrowser, "data:text/plain,bug519216");
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser, "data:text/plain,bug519216");
|
||||
}
|
||||
|
||||
var calledListener1 = false;
|
||||
|
|
|
@ -27,7 +27,7 @@ add_task(async function test_remove_bookmark_with_tag_via_edit_bookmark() {
|
|||
"the test url is bookmarked"
|
||||
);
|
||||
|
||||
BrowserTestUtils.loadURIString(gBrowser, testURL);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser, testURL);
|
||||
|
||||
await TestUtils.waitForCondition(
|
||||
() => BookmarkingUI.status == BookmarkingUI.STATUS_STARRED,
|
||||
|
|
|
@ -2,13 +2,13 @@ add_task(async function test() {
|
|||
await BrowserTestUtils.withNewTab(
|
||||
"data:text/plain;charset=utf-8,1",
|
||||
async function (browser) {
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
"data:text/plain;charset=utf-8,2"
|
||||
);
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
"data:text/plain;charset=utf-8,3"
|
||||
);
|
||||
|
|
|
@ -41,7 +41,7 @@ function test() {
|
|||
}
|
||||
});
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
tab.linkedBrowser,
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
"http://example.com/browser/browser/base/content/test/general/dummy_page.html"
|
||||
|
|
|
@ -10,7 +10,7 @@ add_task(async function test_blank() {
|
|||
{ gBrowser, url: "about:blank" },
|
||||
async function (browser) {
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
BrowserTestUtils.loadURIString(browser, "http://example.com");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "http://example.com");
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
ok(!gBrowser.canGoBack, "about:blank wasn't added to session history");
|
||||
}
|
||||
|
@ -23,13 +23,13 @@ add_task(async function test_newtab() {
|
|||
async function (browser) {
|
||||
// Can't load it directly because that'll use a preloaded tab if present.
|
||||
let stopped = BrowserTestUtils.browserStopped(browser, "about:newtab");
|
||||
BrowserTestUtils.loadURIString(browser, "about:newtab");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "about:newtab");
|
||||
await stopped;
|
||||
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
stopped = BrowserTestUtils.browserStopped(browser, "http://example.com/");
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
BrowserTestUtils.loadURIString(browser, "http://example.com/");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "http://example.com/");
|
||||
await stopped;
|
||||
|
||||
// This makes sure the parent process has the most up-to-date notion
|
||||
|
|
|
@ -124,7 +124,7 @@ add_task(async function () {
|
|||
let loadedPromise = BrowserTestUtils.browserLoaded(
|
||||
gBrowser.selectedBrowser
|
||||
);
|
||||
BrowserTestUtils.loadURIString(gBrowser, test.url);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser, test.url);
|
||||
await loadedPromise;
|
||||
|
||||
info("Run subtest " + test.name);
|
||||
|
|
|
@ -121,7 +121,7 @@ add_task(async function () {
|
|||
false,
|
||||
testPage1
|
||||
);
|
||||
BrowserTestUtils.loadURIString(gBrowser.selectedBrowser, testPage1);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser.selectedBrowser, testPage1);
|
||||
await page1Promise;
|
||||
|
||||
// When the urlbar is focused, pressing F6 should focus the root of the content page.
|
||||
|
|
|
@ -18,7 +18,7 @@ add_task(async function findbar_test() {
|
|||
false,
|
||||
url
|
||||
);
|
||||
BrowserTestUtils.loadURIString(newTab.linkedBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(newTab.linkedBrowser, url);
|
||||
await promise;
|
||||
|
||||
await gFindBarPromise;
|
||||
|
|
|
@ -111,7 +111,7 @@ async function testRealRefresh(refreshPage, delay) {
|
|||
async function (browser) {
|
||||
await pushPrefs(["accessibility.blockautorefresh", true]);
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
refreshPage + "?p=" + TARGET_PAGE + "&d=" + delay
|
||||
);
|
||||
|
@ -177,7 +177,7 @@ add_task(async function test_can_update_notification() {
|
|||
await pushPrefs(["accessibility.blockautorefresh", true]);
|
||||
|
||||
// First, attempt a redirect
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
META_PAGE + "?d=0&p=" + TARGET_PAGE
|
||||
);
|
||||
|
|
|
@ -42,7 +42,7 @@ add_task(async function navigate() {
|
|||
isAppTab = isBrowserAppTab(browser);
|
||||
ok(isAppTab, "Docshell should think it is an app tab");
|
||||
|
||||
BrowserTestUtils.loadURIString(gBrowser, DUMMY);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser, DUMMY);
|
||||
await BrowserTestUtils.browserStopped(gBrowser);
|
||||
isAppTab = isBrowserAppTab(browser);
|
||||
ok(isAppTab, "Docshell should think it is an app tab");
|
||||
|
@ -55,7 +55,7 @@ add_task(async function navigate() {
|
|||
isAppTab = isBrowserAppTab(browser);
|
||||
ok(isAppTab, "Docshell should think it is an app tab");
|
||||
|
||||
BrowserTestUtils.loadURIString(gBrowser, "about:robots");
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser, "about:robots");
|
||||
await BrowserTestUtils.browserStopped(gBrowser);
|
||||
isAppTab = isBrowserAppTab(browser);
|
||||
ok(isAppTab, "Docshell should think it is an app tab");
|
||||
|
|
|
@ -15,7 +15,7 @@ function triggerSave(aWindow, aCallback) {
|
|||
// This page sets a cookie if and only if a cookie does not exist yet
|
||||
let testURI =
|
||||
"http://mochi.test:8888/browser/browser/base/content/test/general/bug792517-2.html";
|
||||
BrowserTestUtils.loadURIString(testBrowser, testURI);
|
||||
BrowserTestUtils.startLoadingURIString(testBrowser, testURI);
|
||||
BrowserTestUtils.browserLoaded(testBrowser, false, testURI).then(() => {
|
||||
waitForFocus(function () {
|
||||
info("register to handle popupshown");
|
||||
|
|
|
@ -43,7 +43,7 @@ function triggerSave(aWindow, aCallback) {
|
|||
windowObserver.setCallback(onUCTDialog);
|
||||
}
|
||||
|
||||
BrowserTestUtils.loadURIString(testBrowser, testURI);
|
||||
BrowserTestUtils.startLoadingURIString(testBrowser, testURI);
|
||||
|
||||
// Create the folder the link will be saved into.
|
||||
var destDir = createTemporarySaveDirectory();
|
||||
|
|
|
@ -12,7 +12,7 @@ add_task(async function () {
|
|||
var fileName;
|
||||
|
||||
let loadPromise = BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
gBrowser,
|
||||
"http://mochi.test:8888/browser/browser/base/content/test/general/web_video.html"
|
||||
);
|
||||
|
|
|
@ -82,6 +82,6 @@ function promiseTabLoadEvent(aTab, aURL, aFinalURL) {
|
|||
}
|
||||
|
||||
info("Wait for load tab event");
|
||||
BrowserTestUtils.loadURIString(aTab.linkedBrowser, aURL);
|
||||
BrowserTestUtils.startLoadingURIString(aTab.linkedBrowser, aURL);
|
||||
return BrowserTestUtils.browserLoaded(aTab.linkedBrowser, false, aFinalURL);
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ add_task(async function () {
|
|||
}
|
||||
|
||||
let tab = BrowserTestUtils.addTab(gBrowser);
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, uri);
|
||||
BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, uri);
|
||||
await BrowserTestUtils.browserLoaded(tab.linkedBrowser, false, uri);
|
||||
await TabStateFlusher.flush(tab.linkedBrowser);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ var clickTest = async function (tab) {
|
|||
};
|
||||
|
||||
function loadURI(tab, url) {
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, url);
|
||||
return BrowserTestUtils.browserLoaded(tab.linkedBrowser);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ function insertAndClickAnchor(browser) {
|
|||
* Promise that resolves when the browser is no longer remote.
|
||||
*/
|
||||
function prepareNonRemoteBrowser(aWindow, browser) {
|
||||
BrowserTestUtils.loadURIString(browser, NON_REMOTE_PAGE);
|
||||
BrowserTestUtils.startLoadingURIString(browser, NON_REMOTE_PAGE);
|
||||
return BrowserTestUtils.browserLoaded(browser);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ add_task(async function () {
|
|||
// Calls focus event on the TabContextMenu early in the test.
|
||||
testWindow.gBrowser.selectedTab.focus();
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
testWindow.gBrowser,
|
||||
"data:text/html,<h1>A Page</h1>"
|
||||
);
|
||||
|
|
|
@ -48,7 +48,7 @@ add_task(async function unknownContentType_title_with_pref_enabled() {
|
|||
|
||||
is(gBrowser.contentTitle, "Test Page", "Should have the right title.");
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, unknown_url);
|
||||
BrowserTestUtils.startLoadingURIString(browser, unknown_url);
|
||||
let win = await waitForNewWindow();
|
||||
is(
|
||||
win.location.href,
|
||||
|
@ -73,7 +73,7 @@ add_task(async function unknownContentType_title_with_pref_disabled() {
|
|||
|
||||
is(gBrowser.contentTitle, "Test Page", "Should have the right title.");
|
||||
|
||||
BrowserTestUtils.loadURIString(browser, unknown_url);
|
||||
BrowserTestUtils.startLoadingURIString(browser, unknown_url);
|
||||
// If the pref is disabled, then the downloads panel should open right away
|
||||
// since there is no UCT window prompt to block it.
|
||||
let waitForPanelShown = BrowserTestUtils.waitForCondition(() => {
|
||||
|
|
|
@ -238,7 +238,7 @@ function promiseTabLoadEvent(tab, url) {
|
|||
let loaded = BrowserTestUtils.browserLoaded(tab.linkedBrowser, false, handle);
|
||||
|
||||
if (url) {
|
||||
BrowserTestUtils.loadURIString(tab.linkedBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(tab.linkedBrowser, url);
|
||||
}
|
||||
|
||||
return loaded;
|
||||
|
@ -329,7 +329,7 @@ function promiseOnBookmarkItemAdded(aExpectedURI) {
|
|||
|
||||
async function loadBadCertPage(url) {
|
||||
let loaded = BrowserTestUtils.waitForErrorPage(gBrowser.selectedBrowser);
|
||||
BrowserTestUtils.loadURIString(gBrowser.selectedBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(gBrowser.selectedBrowser, url);
|
||||
await loaded;
|
||||
|
||||
await SpecialPowers.spawn(gBrowser.selectedBrowser, [], async function () {
|
||||
|
|
|
@ -72,7 +72,7 @@ add_task(async () => {
|
|||
);
|
||||
});
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
newWindow.gBrowser.selectedBrowser,
|
||||
"about:mozilla"
|
||||
);
|
||||
|
@ -81,7 +81,7 @@ add_task(async () => {
|
|||
false,
|
||||
"about:mozilla"
|
||||
);
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
newWindow.gBrowser.selectedBrowser,
|
||||
"about:about"
|
||||
);
|
||||
|
@ -179,7 +179,7 @@ add_task(async () => {
|
|||
);
|
||||
});
|
||||
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
newWindow.gBrowser.selectedBrowser,
|
||||
"about:mozilla"
|
||||
);
|
||||
|
@ -188,7 +188,7 @@ add_task(async () => {
|
|||
false,
|
||||
"about:mozilla"
|
||||
);
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
newWindow.gBrowser.selectedBrowser,
|
||||
"about:about"
|
||||
);
|
||||
|
|
|
@ -139,7 +139,7 @@ add_task(async function testBackForwardButtonPress() {
|
|||
await BrowserTestUtils.withNewTab(
|
||||
"https://example.com/1",
|
||||
async function (aBrowser) {
|
||||
BrowserTestUtils.loadURIString(aBrowser, "https://example.com/2");
|
||||
BrowserTestUtils.startLoadingURIString(aBrowser, "https://example.com/2");
|
||||
|
||||
await BrowserTestUtils.browserLoaded(aBrowser);
|
||||
let backButton = document.getElementById("back-button");
|
||||
|
|
|
@ -117,7 +117,7 @@ add_setup(async function () {
|
|||
let bookmarks = new Array(BOOKMARKS_COUNT);
|
||||
for (let i = 0; i < BOOKMARKS_COUNT; ++i) {
|
||||
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
|
||||
bookmarks[i] = { url: `http://test.places.${i}/` };
|
||||
bookmarks[i] = { url: `http://test.places.${i}y/` };
|
||||
}
|
||||
await PlacesUtils.bookmarks.insertTree({
|
||||
guid: PlacesUtils.bookmarks.toolbarGuid,
|
||||
|
@ -315,7 +315,7 @@ add_task(async function testArrowsDisabledButtons() {
|
|||
"ArrowLeft on Reload button when prior buttons disabled does nothing"
|
||||
);
|
||||
|
||||
BrowserTestUtils.loadURIString(aBrowser, "https://example.com/2");
|
||||
BrowserTestUtils.startLoadingURIString(aBrowser, "https://example.com/2");
|
||||
await BrowserTestUtils.browserLoaded(aBrowser);
|
||||
await waitUntilReloadEnabled();
|
||||
startFromUrlBar();
|
||||
|
|
|
@ -10,7 +10,7 @@ add_setup(async () => {
|
|||
// makes it easier to be consistent with closing and opening
|
||||
// behaviours between the two kinds of migration wizards.
|
||||
let browser = gBrowser.selectedBrowser;
|
||||
BrowserTestUtils.loadURIString(browser, "https://example.com");
|
||||
BrowserTestUtils.startLoadingURIString(browser, "https://example.com");
|
||||
await BrowserTestUtils.browserLoaded(browser);
|
||||
});
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ add_task(async function test() {
|
|||
let win = await BrowserTestUtils.openNewBrowserWindow();
|
||||
await SimpleTest.promiseFocus(win);
|
||||
Assert.greater(win.outerWidth, 700, "window is bigger than 700px");
|
||||
BrowserTestUtils.loadURIString(
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
win.gBrowser,
|
||||
"data:text/html,<h1>A Page</h1>"
|
||||
);
|
||||
|
@ -86,7 +86,7 @@ add_task(async function bookmark() {
|
|||
const url = "data:text/html,<h1>A Page</h1>";
|
||||
let win = await BrowserTestUtils.openNewBrowserWindow();
|
||||
await SimpleTest.promiseFocus(win);
|
||||
BrowserTestUtils.loadURIString(win.gBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(win.gBrowser, url);
|
||||
await BrowserTestUtils.browserLoaded(win.gBrowser.selectedBrowser);
|
||||
|
||||
// The pageAction implementation enables the button at the next animation
|
||||
|
|
|
@ -39,7 +39,7 @@ add_task(async function contextMenu_removeExtension_panel() {
|
|||
const url = "data:text/html,<h1>A Page</h1>";
|
||||
let win = await BrowserTestUtils.openNewBrowserWindow();
|
||||
await SimpleTest.promiseFocus(win);
|
||||
BrowserTestUtils.loadURIString(win.gBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(win.gBrowser, url);
|
||||
await BrowserTestUtils.browserLoaded(win.gBrowser.selectedBrowser);
|
||||
|
||||
info("Shrink the window if necessary, check the meatball menu is visible");
|
||||
|
@ -243,7 +243,7 @@ add_task(async function contextMenu_removeExtension_disabled_in_panel() {
|
|||
const url = "data:text/html,<h1>A Page</h1>";
|
||||
let win = await BrowserTestUtils.openNewBrowserWindow();
|
||||
await SimpleTest.promiseFocus(win);
|
||||
BrowserTestUtils.loadURIString(win.gBrowser, url);
|
||||
BrowserTestUtils.startLoadingURIString(win.gBrowser, url);
|
||||
await BrowserTestUtils.browserLoaded(win.gBrowser.selectedBrowser);
|
||||
|
||||
info("Shrink the window if necessary, check the meatball menu is visible");
|
||||
|
|
|
@ -34,7 +34,10 @@ add_task(async function test_menu() {
|
|||
false
|
||||
);
|
||||
let browser = tab.linkedBrowser;
|
||||
BrowserTestUtils.loadURIString(browser, WEB_ROOT + "page_style_sample.html");
|
||||
BrowserTestUtils.startLoadingURIString(
|
||||
browser,
|
||||
WEB_ROOT + "page_style_sample.html"
|
||||
);
|
||||
await promiseStylesheetsLoaded(browser, kStyleSheetsInPageStyleSample);
|
||||
|
||||
let menuitems = fillPopupAndGetItems();
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue