[Webkit-unassigned] [Bug 250651] New: display-mode: standalone matches when opening an external link with target=_blank from an install webapp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 15 10:19:59 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=250651

            Bug ID: 250651
           Summary: display-mode: standalone matches when opening an
                    external link with target=_blank from an install
                    webapp
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: alex at harding.dev

Created attachment 464508

  --> https://bugs.webkit.org/attachment.cgi?id=464508&action=review

`display-mode` is incorrectly `standalone` inside of the page of a website opened with an external link (target=_blank) from an installed webapp.

The following evaluates to `true`:

```js
window.matchMedia("(display-mode: standalone)").matches
```

for any external link (target=_blank) opened from a PWA installed to your homescreen on iOS when the manifest has `"display": "standalone"`.

To reproduce:

1. Install elk.zone to your homescreen.
2. Open the following toot: https://elk.zone/social.harding.dev/@alex/109694193072896291
3. Tap the codepen link (https://codepen.io/aeharding/details/eYjEWEq)
4. Observe `display-mode: standalone` evaluates to true.

Expected result:

I would expect it to evaluate to false. Furthermore, I'd expect `display-mode` to have a value similar to opening an external link with SFSafariViewController from a traditional mobile app like Twitter (I'd expect it to be `browser`).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230115/480efa21/attachment.htm>


More information about the webkit-unassigned mailing list