Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

308
Views
Why does maximized Chrome report its display-mode as 'fullscreen'?

In my web app, I need to know whether I can open a new window or not (e.g. with target='_blank'). I can safely open a new window when running in a browser, but not when running as a PWA (in standalone mode).

To test whether I can open a new window, I'm using the display-mode media query, like this:

document.body.innerText = 'Your display-mode is ' +JSON.stringify(
  ['fullscreen', 'standalone', 'minimal-ui', 'browser'].filter(
    mode => window.matchMedia(`(display-mode: ${mode})`).matches))

This works in Firefox and Safari, which both report the mode browser. But Chrome, when its window is maximized, reports the mode fullscreen! This doesn't make sense, because the meaning of fullscreen is "All of the available display area is used and no user agent chrome is shown."

Questions:

  1. Is this a bug in Chrome? Should it not always report the mode browser?
  2. Is there a less hacky way I can test for the ability to open a new window?
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!