Page MenuHomePhabricator

The “mwext-jsbreadcrumbs” cookie will be rejected in the future
Closed, ResolvedPublic

Description

Setup

  • MediaWiki 1.35.0-rc.2 (37ef236) 17:21, 22 August 2020
  • PHP 7.2.24-0ubuntu0.18.04.6 (apache2handler)
  • MariaDB 10.1.44-MariaDB-0ubuntu0.18.04.1
  • JSBreadCrumbs 1.0.3 (4cbd644) 13:49, 13 July 2020

Issue
I guess this message was prevented from showing up due to the T261065 issue. After checking out the patch it appears to be visible. Creating a new issue to keep these apart.

Das Cookie “mwext-jsbreadcrumbs” wird in Zukunft bald abgelehnt werden, da es für das Attribut "sameSite" entweder "none" oder einen ungültigen Wert angibt, ohne das "secure"-Attribut zu verwenden. Weitere Informationen zum "sameSite"-Attribut finden Sie unter https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

Quick translation:

The “mwext-jsbreadcrumbs” cookie will be rejected in the future, since it uses for attribut "sameSite" either the value "none" or nothing whichout specifying a "secure" attribut. More information at https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

@cicalese FYI

Event Timeline

Change 771992 had a related patch set uploaded (by Seb35; author: Seb35):

[mediawiki/extensions/JSBreadCrumbs@master] Add Secure and SameSite to the cookie

https://gerrit.wikimedia.org/r/771992

I propose this patch, adding Secure and SameSite="Strict". For https websites, the Secure attribute is sufficient, but SameSite="Strict" is useful for http websites.

I hesited with SameSite="Lax" since JSBreadCrumbs can display the pages from other wikis in the same domain (like Wikipedia with wikis in *.wikipedia.org), but "Lax" is not needed since this feature works with SameSite="Strict" when the cookie is set with domain: ".my-top-level-domain.com". It is not included in this patch but it could be a separate task.

Change 771992 merged by jenkins-bot:

[mediawiki/extensions/JSBreadCrumbs@master] Add Secure and SameSite to the cookie

https://gerrit.wikimedia.org/r/771992

Change 930913 had a related patch set uploaded (by Cicalese; author: Seb35):

[mediawiki/extensions/JSBreadCrumbs@REL1_39] Add Secure and SameSite to the cookie

https://gerrit.wikimedia.org/r/930913

Change 930914 had a related patch set uploaded (by Cicalese; author: Seb35):

[mediawiki/extensions/JSBreadCrumbs@REL1_40] Add Secure and SameSite to the cookie

https://gerrit.wikimedia.org/r/930914

Change 930913 merged by jenkins-bot:

[mediawiki/extensions/JSBreadCrumbs@REL1_39] Add Secure and SameSite to the cookie

https://gerrit.wikimedia.org/r/930913

Change 930914 merged by jenkins-bot:

[mediawiki/extensions/JSBreadCrumbs@REL1_40] Add Secure and SameSite to the cookie

https://gerrit.wikimedia.org/r/930914

cicalese claimed this task.