From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- browser/components/about/test/unit/test_getURIFlags.js | 14 ++++++++++++++ browser/components/about/test/unit/xpcshell.ini | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 browser/components/about/test/unit/test_getURIFlags.js create mode 100644 browser/components/about/test/unit/xpcshell.ini (limited to 'browser/components/about/test/unit') diff --git a/browser/components/about/test/unit/test_getURIFlags.js b/browser/components/about/test/unit/test_getURIFlags.js new file mode 100644 index 0000000000..09846b8122 --- /dev/null +++ b/browser/components/about/test/unit/test_getURIFlags.js @@ -0,0 +1,14 @@ +const contract = "@mozilla.org/network/protocol/about;1?what=newtab"; +const am = Cc[contract].getService(Ci.nsIAboutModule); +const uri = Services.io.newURI("about:newtab"); + +function run_test() { + test_AS_enabled_flags(); +} + +// Activity Stream, however, is e10s-capable, and should advertise it. +function test_AS_enabled_flags() { + let flags = am.getURIFlags(uri); + + ok(flags & Ci.nsIAboutModule.URI_MUST_LOAD_IN_CHILD); +} diff --git a/browser/components/about/test/unit/xpcshell.ini b/browser/components/about/test/unit/xpcshell.ini new file mode 100644 index 0000000000..a509dbfc4e --- /dev/null +++ b/browser/components/about/test/unit/xpcshell.ini @@ -0,0 +1,7 @@ +[DEFAULT] +skip-if = toolkit == 'android' # bug 1730213 +head = +# make the firefox services (eg newtab-service) available to xpcshell +firefox-appdir = browser + +[test_getURIFlags.js] -- cgit v1.2.3