Skip to content

fix(core): remove apple-touch-icon-precomposed - #66050

Open
bulungasdeveloper wants to merge 1 commit into
nextcloud:masterfrom
bulungasdeveloper:fix/remove-apple-touch-icon-precomposed
Open

bulungasdeveloper wants to merge 1 commit into
nextcloud:masterfrom
bulungasdeveloper:fix/remove-apple-touch-icon-precomposed

Conversation

@bulungasdeveloper

Copy link
Copy Markdown
Contributor

Summary

Both core/templates/layout.user.php and core/templates/layout.public.php emit
rel="apple-touch-icon" and rel="apple-touch-icon-precomposed" pointing to the
same favicon-touch.png.

apple-touch-icon-precomposed has been deprecated since iOS 7, where
apple-touch-icon is already treated as precomposed. The extra link only
duplicates the entry in <head>, and since browsers resolve the last matching
rel, the resulting icon depends on tag order rather than intent.

This drops the deprecated link in both layouts and keeps apple-touch-icon
together with the theming mask-icon, which is unrelated and untouched.

TODO

  • Add a regression test covering both layouts

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests are included: tests/playwright/e2e/core/page-head.spec.ts asserts a
    single apple-touch-icon, no -precomposed, and one mask-icon in the
    user and the public layout
  • Screenshots before/after for front-end changes — not applicable, <head> only
  • Documentation is not required
  • Backports requested — the same duplicated pair exists in stable35/stable33
  • Labels added
  • Milestone added

AI

  • The content of this PR was partly generated using AI

Since iOS 7, apple-touch-icon is already treated as precomposed, so
the extra apple-touch-icon-precomposed link only duplicated the same
favicon-touch.png in the head of every page. Keep a single
apple-touch-icon and mask-icon in both the user and the public
layouts, and cover them with a Playwright head regression spec.

Assisted-by: opencode:deepseek-v4.1-flash-free
Signed-off-by: Braux Martinez <martinezjb@hitss.com>
@bulungasdeveloper
bulungasdeveloper force-pushed the fix/remove-apple-touch-icon-precomposed branch from ec217f4 to a00e635 Compare October 30, 2026 20:12
@bulungasdeveloper bulungasdeveloper added this to the Nextcloud 36 milestone Oct 30, 2026
@bulungasdeveloper bulungasdeveloper added the 3. to review Waiting for reviews label Oct 30, 2026
@skjnldsv
skjnldsv enabled auto-merge October 31, 2026 03:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants