Open Bug 1556148 Opened 5 years ago Updated 2 years ago

Add a way to emulate focus on a page

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

Details

(Keywords: parity-chrome)

There should be an option within the DevTools to emulate the currently inspected page being focused, allowing the page to react to that. That also means that document.hasFocus() returns true.

See the related Stack Overflow question.

In the Chrome DevTools this can be achieved by opening the Command Menu and running the Emulate a focused page command.

Sebastian

Moving to Inspector for now, as Print (bug 1534984) and :focus emulation also live there.

Interestingly print has a similar limitation – that it doesn't trigger the print JS events but only triggers the CSS print media queries.

Component: General → Inspector
Keywords: parity-chrome
Priority: -- → P3

Is there any update on this ticket?

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.