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 --- .../base/content/test/general/browser_bug427559.js | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 browser/base/content/test/general/browser_bug427559.js (limited to 'browser/base/content/test/general/browser_bug427559.js') diff --git a/browser/base/content/test/general/browser_bug427559.js b/browser/base/content/test/general/browser_bug427559.js new file mode 100644 index 0000000000..6be32351c2 --- /dev/null +++ b/browser/base/content/test/general/browser_bug427559.js @@ -0,0 +1,41 @@ +"use strict"; + +/* + * Test bug 427559 to make sure focused elements that are no longer on the page + * will have focus transferred to the window when changing tabs back to that + * tab with the now-gone element. + */ + +// Default focus on a button and have it kill itself on blur. +const URL = + "data:text/html;charset=utf-8," + + '