From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- browser/base/content/aboutDialog-appUpdater.js | 2 +- browser/base/content/aboutDialog.xhtml | 2 +- browser/base/content/appmenu-viewcache.inc.xhtml | 35 +- browser/base/content/browser-a11yUtils.js | 8 +- browser/base/content/browser-addons.js | 33 +- browser/base/content/browser-allTabsMenu.js | 6 +- browser/base/content/browser-box.inc.xhtml | 1 + browser/base/content/browser-captivePortal.js | 2 +- browser/base/content/browser-commands.js | 576 +++++++++++++ browser/base/content/browser-context.inc | 2 +- browser/base/content/browser-ctrlTab.js | 4 +- .../content/browser-data-submission-info-bar.js | 2 +- .../content/browser-fullScreenAndPointerLock.js | 43 +- browser/base/content/browser-gestureSupport.js | 10 +- browser/base/content/browser-menubar.inc | 5 +- browser/base/content/browser-pageActions.js | 2 +- browser/base/content/browser-places.js | 14 +- browser/base/content/browser-sets.inc | 38 +- browser/base/content/browser-sidebar.js | 674 ---------------- browser/base/content/browser-siteIdentity.js | 14 +- .../base/content/browser-sitePermissionPanel.js | 4 +- browser/base/content/browser-siteProtections.js | 30 +- browser/base/content/browser-sync.js | 10 +- browser/base/content/browser-tabsintitlebar.js | 2 +- browser/base/content/browser-thumbnails.js | 4 +- browser/base/content/browser-toolbarKeyNav.js | 2 +- browser/base/content/browser.css | 13 +- browser/base/content/browser.js | 894 ++------------------- browser/base/content/browser.js.globals | 22 +- browser/base/content/browser.xhtml | 6 +- browser/base/content/contentTheme.js | 21 +- browser/base/content/main-popupset.inc.xhtml | 26 +- browser/base/content/navigator-toolbox.inc.xhtml | 9 +- browser/base/content/nsContextMenu.js | 58 +- browser/base/content/pageinfo/pageInfo.js | 40 +- browser/base/content/pageinfo/pageInfo.xhtml | 4 + browser/base/content/pageinfo/permissions.js | 2 +- browser/base/content/pageinfo/security.js | 2 +- browser/base/content/sanitizeDialog.js | 23 +- browser/base/content/tabbrowser-tab.js | 26 +- browser/base/content/tabbrowser-tabs.js | 54 +- browser/base/content/tabbrowser.js | 83 +- .../content/test/about/browser_aboutCertError.js | 4 +- .../alerts/browser_notification_open_settings.js | 2 +- browser/base/content/test/alerts/head.js | 2 +- .../browser_captivePortal_certErrorUI.js | 2 +- browser/base/content/test/contextMenu/browser.toml | 4 +- .../test/contextMenu/browser_contextmenu.js | 2 +- .../contextMenu/browser_contextmenu_badiframe.js | 2 +- .../browser_contextmenu_save_blocked.js | 2 +- .../browser_strip_on_share_nested_link.js | 162 ++++ .../content/test/contextMenu/contextmenu_common.js | 4 +- .../test/contextMenu/subtst_contextmenu.html | 4 +- .../contextMenu/subtst_contextmenu_webext.html | 2 +- .../browser_favicon_change_not_in_document.js | 8 +- .../content/test/favicons/browser_favicon_load.js | 2 +- .../test/favicons/browser_favicon_nostore.js | 13 +- .../test/favicons/browser_favicon_referer.js | 4 +- .../test/favicons/browser_missing_favicon.js | 2 +- .../base/content/test/forms/browser_selectpopup.js | 4 +- .../test/forms/browser_selectpopup_colors.js | 2 +- .../content/test/forms/browser_selectpopup_dir.js | 2 +- .../test/forms/browser_selectpopup_large.js | 2 +- .../test/forms/browser_selectpopup_minFontSize.js | 2 +- .../forms/browser_selectpopup_text_transform.js | 2 +- .../test/forms/browser_selectpopup_user_input.js | 2 +- .../test/forms/browser_selectpopup_width.js | 2 +- .../test/forms/browser_selectpopup_xhtml.js | 2 +- .../fullscreen/browser_fullscreen_context_menu.js | 4 +- .../fullscreen/browser_fullscreen_window_focus.js | 2 +- browser/base/content/test/fullscreen/head.js | 2 +- browser/base/content/test/general/browser.toml | 15 +- .../content/test/general/browser_accesskeys.js | 4 +- .../test/general/browser_alltabslistener.js | 15 +- .../browser_beforeunload_duplicate_dialogs.js | 4 +- .../base/content/test/general/browser_bug356571.js | 2 +- .../base/content/test/general/browser_bug417483.js | 2 +- .../base/content/test/general/browser_bug537013.js | 2 +- .../base/content/test/general/browser_bug565575.js | 2 +- .../base/content/test/general/browser_bug567306.js | 2 +- .../base/content/test/general/browser_bug609700.js | 6 +- .../base/content/test/general/browser_bug623893.js | 2 +- .../base/content/test/general/browser_bug676619.js | 12 +- .../base/content/test/general/browser_bug734076.js | 6 +- .../test/general/browser_bug763468_perwindowpb.js | 2 +- .../test/general/browser_bug767836_perwindowpb.js | 2 +- .../base/content/test/general/browser_bug817947.js | 2 +- .../base/content/test/general/browser_clipboard.js | 6 +- .../test/general/browser_clipboard_pastefile.js | 4 +- .../browser_domFullscreen_fullscreenMode.js | 6 +- .../test/general/browser_double_close_tab.js | 2 +- .../content/test/general/browser_focusonkeydown.js | 2 +- .../test/general/browser_fullscreen-window-open.js | 8 +- ...rowser_invalid_uri_back_forward_manipulation.js | 2 +- .../content/test/general/browser_newWindowDrop.js | 2 +- .../content/test/general/browser_plainTextLinks.js | 2 +- .../test/general/browser_private_no_prompt.js | 4 +- .../test/general/browser_remoteTroubleshoot.js | 4 +- .../test/general/browser_save_link-perwindowpb.js | 4 +- .../browser_save_link_when_window_navigates.js | 6 +- .../browser_save_private_link_perwindowpb.js | 6 +- .../content/test/general/browser_save_video.js | 2 +- .../base/content/test/general/browser_tabfocus.js | 4 +- .../content/test/general/browser_tabs_owner.js | 6 +- .../general/browser_viewSourceInTabOnViewSource.js | 6 +- .../content/test/general/browser_zbug569342.js | 2 +- .../base/content/test/general/download_page.html | 12 +- browser/base/content/test/general/head.js | 4 +- browser/base/content/test/general/video.ogg | Bin 285310 -> 0 bytes browser/base/content/test/general/video.webm | Bin 0 -> 222879 bytes browser/base/content/test/general/web_video.html | 2 +- browser/base/content/test/general/web_video1.ogv | Bin 28942 -> 0 bytes .../content/test/general/web_video1.ogv^headers^ | 3 - browser/base/content/test/general/web_video1.webm | Bin 0 -> 17555 bytes .../content/test/general/web_video1.webm^headers^ | 3 + .../browser_historySwipeAnimation.js | 2 +- .../test/keyboard/browser_toolbarButtonKeyPress.js | 93 +-- .../content/test/metaTags/browser_bad_meta_tags.js | 11 +- .../content/test/metaTags/browser_meta_tags.js | 8 +- .../outOfProcess/browser_basic_outofprocess.js | 9 +- browser/base/content/test/pageActions/head.js | 2 +- browser/base/content/test/pageinfo/browser.toml | 2 +- .../browser_pageinfo_firstPartyIsolation.js | 2 +- .../test/pageinfo/browser_pageinfo_iframe_media.js | 2 +- .../test/pageinfo/browser_pageinfo_image_info.js | 2 +- .../test/pageinfo/browser_pageinfo_images.js | 4 +- .../test/pageinfo/browser_pageinfo_permissions.js | 12 +- .../content/test/pageinfo/browser_pageinfo_rtl.js | 25 +- .../test/pageinfo/browser_pageinfo_security.js | 21 +- .../pageinfo/browser_pageinfo_separate_private.js | 4 +- .../test/pageinfo/browser_pageinfo_svg_image.js | 2 +- browser/base/content/test/pageinfo/image.html | 2 +- .../performance/StartupContentSubframe.sys.mjs | 2 +- .../test/performance/browser_preferences_usage.js | 2 +- .../test/performance/browser_startup_content.js | 10 +- .../performance/browser_startup_mainthreadio.js | 1 + .../content/test/performance/browser_tabdetach.js | 4 +- .../content/test/performance/browser_tabopen.js | 2 +- .../test/performance/browser_tabopen_squeeze.js | 2 +- .../browser_tabstrip_overflow_underflow.js | 4 +- .../content/test/performance/browser_tabswitch.js | 14 +- .../test/performance/browser_windowclose.js | 2 +- .../content/test/performance/browser_windowopen.js | 2 +- browser/base/content/test/performance/head.js | 21 +- .../test/permissions/browser_autoplay_blocked.js | 2 +- .../browser_canvas_fingerprinting_resistance.js | 8 +- .../permissions/browser_site_scoped_permissions.js | 89 +- .../browser_temporary_permissions_navigation.js | 2 +- browser/base/content/test/plugins/head.js | 4 +- .../browser_popupNotification.js | 22 +- .../browser_popupNotification_2.js | 20 +- .../browser_popupNotification_3.js | 12 +- .../browser_popupNotification_4.js | 10 +- .../browser_popupNotification_5.js | 14 +- .../browser_popupNotification_accesskey.js | 2 +- .../browser_popupNotification_keyboard.js | 6 +- .../browser_popupNotification_no_anchors.js | 6 +- .../browser_popupNotification_security_delay.js | 2 +- .../test/popups/browser_popup_close_main_window.js | 6 +- .../test/protectionsUI/browser_protectionsUI.js | 2 +- .../browser_protectionsUI_cookies_subview.js | 2 +- .../protectionsUI/browser_protectionsUI_fetch.js | 2 +- .../browser_protectionsUI_info_message.js | 4 +- browser/base/content/test/referrer/head.js | 2 +- .../sanitize/browser_cookiePermission_aboutURL.js | 4 +- .../test/sanitize/browser_sanitize-timespans.js | 2 +- .../test/sanitize/browser_sanitize-timespans_v2.js | 2 +- .../test/sanitize/browser_sanitizeDialog_v2.js | 4 +- .../browser_sanitizeDialog_v2_dataSizes.js | 65 +- browser/base/content/test/sanitize/head.js | 4 +- .../content/test/sidebar/browser_sidebar_move.js | 14 +- .../siteIdentity/browser_identityBlock_focus.js | 2 +- .../browser_identityPopup_clearSiteData.js | 2 +- .../siteIdentity/browser_navigation_failures.js | 4 +- .../browser_secure_transport_insecure_scheme.js | 8 +- browser/base/content/test/siteIdentity/head.js | 12 +- .../test/static/browser_all_files_referenced.js | 26 +- .../content/test/static/browser_parsable_css.js | 14 +- .../content/test/static/browser_parsable_script.js | 8 +- browser/base/content/test/static/head.js | 2 +- .../test/sync/browser_contextmenu_sendtab.js | 2 +- .../content/test/sync/browser_fxa_web_channel.js | 16 +- browser/base/content/test/sync/browser_sync.js | 4 +- .../browser_abort_when_in_modal_state.js | 8 +- .../tabPrompts/browser_auth_spoofing_protection.js | 4 +- .../test/tabPrompts/browser_contentOrigins.js | 6 - .../test/tabPrompts/browser_windowPrompt.js | 16 - .../tabcrashed/browser_aboutRestartRequired.toml | 10 +- .../browser_aboutRestartRequired_noForkServer.toml | 8 + browser/base/content/test/tabcrashed/head.js | 8 +- browser/base/content/test/tabs/browser.toml | 2 + ...low_process_switches_despite_related_browser.js | 2 +- .../base/content/test/tabs/browser_audioTabIcon.js | 4 +- .../browser_e10s_about_page_triggeringprincipal.js | 4 +- .../test/tabs/browser_e10s_about_process.js | 4 +- .../content/test/tabs/browser_lastSeenActive.js | 260 ++++++ .../test/tabs/browser_lazy_tab_browser_events.js | 14 +- ...e_and_url_prefilled_normal_page_blank_target.js | 4 +- ...itle_and_url_prefilled_normal_page_by_script.js | 2 +- ...itle_and_url_prefilled_normal_page_no_target.js | 2 +- ...e_and_url_prefilled_normal_page_other_target.js | 4 +- .../tabs/browser_long_data_url_label_truncation.js | 2 +- ...tiselect_tabs_move_to_new_window_contextmenu.js | 16 +- .../browser_new_tab_bookmarks_toolbar_height.js | 4 +- ...wser_new_tab_in_privilegedabout_process_pref.js | 2 +- .../base/content/test/tabs/browser_new_tab_url.js | 4 +- ...wser_open_newtab_start_observer_notification.js | 4 +- .../tabs/browser_pinnedTabs_closeByKeyboard.js | 4 +- .../tabs/browser_privilegedmozilla_process_pref.js | 2 +- .../content/test/tabs/browser_removeTabs_order.js | 2 +- .../tabs/browser_tab_label_picture_in_picture.js | 2 +- .../test/tabs/browser_tab_manager_visibility.js | 4 +- .../base/content/test/tabs/browser_tab_preview.js | 171 +++- .../base/content/test/tabs/browser_tab_tooltips.js | 2 +- .../content/test/tabs/browser_tabswitch_select.js | 4 +- .../test/tabs/browser_tabswitch_updatecommands.js | 2 +- ...owser_viewsource_of_data_URI_in_file_process.js | 2 +- .../test/tabs/browser_window_open_modifiers.js | 2 +- .../common_link_in_tab_title_and_url_prefilled.js | 2 +- .../browser_extension_update_background.js | 6 +- ...browser_extension_update_background_noprompt.js | 2 +- .../test/webextensions/browser_legacy_webext.xpi | Bin 4243 -> 362 bytes .../browser_permissions_installTrigger.js | 6 + .../browser_permissions_local_file.js | 13 + .../browser_permissions_mozAddonManager.js | 13 + .../browser_permissions_pointerevent.js | 6 +- .../browser_update_checkForUpdates.js | 2 +- .../webextensions/browser_webext_nopermissions.xpi | Bin 4273 -> 7500 bytes .../webextensions/browser_webext_permissions.xpi | Bin 16602 -> 19923 bytes .../test/webextensions/browser_webext_update1.xpi | Bin 4271 -> 326 bytes .../test/webextensions/browser_webext_update2.xpi | Bin 4291 -> 343 bytes .../webextensions/browser_webext_update_icon1.xpi | Bin 16545 -> 12581 bytes .../webextensions/browser_webext_update_icon2.xpi | Bin 16564 -> 12599 bytes .../webextensions/browser_webext_update_perms1.xpi | Bin 4273 -> 320 bytes .../webextensions/browser_webext_update_perms2.xpi | Bin 4282 -> 331 bytes browser/base/content/test/webextensions/head.js | 2 +- .../webrtc/browser_devices_get_user_media_anim.js | 4 +- .../browser_devices_get_user_media_by_device_id.js | 2 +- .../webrtc/browser_devices_get_user_media_grace.js | 6 +- .../webrtc/browser_devices_select_audio_output.js | 2 +- .../content/test/webrtc/browser_webrtc_hooks.js | 28 +- browser/base/content/test/webrtc/head.js | 6 +- browser/base/content/test/zoom/browser.toml | 2 +- .../test/zoom/browser_sitespecific_video_zoom.js | 2 +- .../content/test/zoom/browser_zoom_commands.js | 4 +- browser/base/content/test/zoom/head.js | 8 +- browser/base/content/titlebar-items.inc.xhtml | 2 +- browser/base/content/utilityOverlay.js | 4 +- browser/base/content/webext-panels.js | 12 +- browser/base/content/webrtcIndicator.js | 2 +- 250 files changed, 2116 insertions(+), 2531 deletions(-) create mode 100644 browser/base/content/browser-commands.js delete mode 100644 browser/base/content/browser-sidebar.js create mode 100644 browser/base/content/test/contextMenu/browser_strip_on_share_nested_link.js delete mode 100644 browser/base/content/test/general/video.ogg create mode 100644 browser/base/content/test/general/video.webm delete mode 100644 browser/base/content/test/general/web_video1.ogv delete mode 100644 browser/base/content/test/general/web_video1.ogv^headers^ create mode 100644 browser/base/content/test/general/web_video1.webm create mode 100644 browser/base/content/test/general/web_video1.webm^headers^ create mode 100644 browser/base/content/test/tabs/browser_lastSeenActive.js (limited to 'browser/base/content') diff --git a/browser/base/content/aboutDialog-appUpdater.js b/browser/base/content/aboutDialog-appUpdater.js index 21bf83bc42..5a8cc0561b 100644 --- a/browser/base/content/aboutDialog-appUpdater.js +++ b/browser/base/content/aboutDialog-appUpdater.js @@ -28,7 +28,7 @@ var UPDATING_MIN_DISPLAY_TIME_MS = 1500; var gAppUpdater; -function onUnload(aEvent) { +function onUnload(_aEvent) { if (gAppUpdater) { gAppUpdater.destroy(); gAppUpdater = null; diff --git a/browser/base/content/aboutDialog.xhtml b/browser/base/content/aboutDialog.xhtml index e0fcce367a..55de242415 100644 --- a/browser/base/content/aboutDialog.xhtml +++ b/browser/base/content/aboutDialog.xhtml @@ -138,7 +138,7 @@