From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- browser/base/content/test/pageinfo/all_images.html | 15 + browser/base/content/test/pageinfo/browser.toml | 34 ++ .../browser_pageinfo_firstPartyIsolation.js | 89 ++++++ .../test/pageinfo/browser_pageinfo_iframe_media.js | 32 ++ .../test/pageinfo/browser_pageinfo_image_info.js | 57 ++++ .../test/pageinfo/browser_pageinfo_images.js | 113 +++++++ .../test/pageinfo/browser_pageinfo_permissions.js | 258 +++++++++++++++ .../content/test/pageinfo/browser_pageinfo_rtl.js | 28 ++ .../test/pageinfo/browser_pageinfo_security.js | 356 +++++++++++++++++++++ .../pageinfo/browser_pageinfo_separate_private.js | 49 +++ .../test/pageinfo/browser_pageinfo_svg_image.js | 34 ++ browser/base/content/test/pageinfo/iframes.html | 8 + browser/base/content/test/pageinfo/image.html | 5 + browser/base/content/test/pageinfo/svg_image.html | 11 + 14 files changed, 1089 insertions(+) create mode 100644 browser/base/content/test/pageinfo/all_images.html create mode 100644 browser/base/content/test/pageinfo/browser.toml create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_firstPartyIsolation.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_iframe_media.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_image_info.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_images.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_permissions.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_rtl.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_security.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_separate_private.js create mode 100644 browser/base/content/test/pageinfo/browser_pageinfo_svg_image.js create mode 100644 browser/base/content/test/pageinfo/iframes.html create mode 100644 browser/base/content/test/pageinfo/image.html create mode 100644 browser/base/content/test/pageinfo/svg_image.html (limited to 'browser/base/content/test/pageinfo') diff --git a/browser/base/content/test/pageinfo/all_images.html b/browser/base/content/test/pageinfo/all_images.html new file mode 100644 index 0000000000..c246e25519 --- /dev/null +++ b/browser/base/content/test/pageinfo/all_images.html @@ -0,0 +1,15 @@ + + + Test for media tab + + + + + +
test
+ test link + + +"); diff --git a/browser/base/content/test/pageinfo/browser.toml b/browser/base/content/test/pageinfo/browser.toml new file mode 100644 index 0000000000..ae70eb68ff --- /dev/null +++ b/browser/base/content/test/pageinfo/browser.toml @@ -0,0 +1,34 @@ +[DEFAULT] + +["browser_pageinfo_firstPartyIsolation.js"] +support-files = [ + "image.html", + "../general/audio.ogg", + "../general/moz.png", + "../general/video.ogg", +] + +["browser_pageinfo_iframe_media.js"] +support-files = ["iframes.html"] + +["browser_pageinfo_image_info.js"] +skip-if = ["os == 'linux'"] # bug 1161699 + +["browser_pageinfo_images.js"] +support-files = ["all_images.html"] + +["browser_pageinfo_permissions.js"] + +["browser_pageinfo_rtl.js"] + +["browser_pageinfo_security.js"] +https_first_disabled = true +support-files = ["../general/moz.png"] + +["browser_pageinfo_separate_private.js"] + +["browser_pageinfo_svg_image.js"] +support-files = [ + "svg_image.html", + "../general/title_test.svg", +] diff --git a/browser/base/content/test/pageinfo/browser_pageinfo_firstPartyIsolation.js b/browser/base/content/test/pageinfo/browser_pageinfo_firstPartyIsolation.js new file mode 100644 index 0000000000..354e85a241 --- /dev/null +++ b/browser/base/content/test/pageinfo/browser_pageinfo_firstPartyIsolation.js @@ -0,0 +1,89 @@ +const Cm = Components.manager; + +async function testFirstPartyDomain(pageInfo) { + const EXPECTED_DOMAIN = "example.com"; + await BrowserTestUtils.waitForEvent(pageInfo, "page-info-init"); + info("pageInfo initialized"); + let tree = pageInfo.document.getElementById("imagetree"); + Assert.ok(!!tree, "should have imagetree element"); + + // i=0: + // i=1: