Closed Bug 1792256 Opened 2 years ago Closed 1 year ago

iframe documents do not get offscreen state when scrolled beyond visual viewport or in bg tab

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: morgan, Unassigned)

References

Details

STR:

  1. Load data:text/html,<p style="background:blue; height: 100vh; width: 10vw;">hi</p><iframe src="data:text/html,hello world"></iframe>
  2. inspect the state of the iframe document

Expected:
includes states::OFFSCREEN

Actual:
it does not, but the internal frame and the iframe content does, correctly.

This is fixed in the caching implementation, but is wrong in the non-caching case. I can reproduce this for in- and OOP iframe documents.
ex. data:text/html,<p style="background:blue; height: 100vh; width: 10vw;">hi</p><iframe src="https://example.com"></iframe>

Severity: -- → S4
Depends on: 1782873

Based on browser_test_visibility.js it looks like this is also an issue for iframe docs that are in background tabs, not just scrolled offscreen. 🤔

Summary: iframe documents do not get offscreen state when scrolled beyond visual viewport → iframe documents do not get offscreen state when scrolled beyond visual viewport or in bg tab

Cache the World is enabled by default in Firefox 113, so we don't need to fix this.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.