Page MenuHomePhabricator

Re-enable var() in inline CSS
Closed, ResolvedPublicFeature

Description

Feature summary
Since T208881: CSS using var() to create exponential sized calc() on wiki page will crash visitor's browser was fixed by disabling var in inline CSS, the issue with browser crashes appears to have been fixed in Firefox, Chrome, modern Edge, and Opera.

Steps to reproduce (a list of clear steps to create the situation that made you report this, including full links if applicable):

Use case(s) (describe the actual underlying problem which you want to solve, and not only a solution):

  • some users like to use inline styling for templates. Adapting to different themes would be is easier using theme variables.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 710253 had a related patch set uploaded (by Slayful; author: Slayful):

[mediawiki/core@master] Sanitizer: Don't consider inline var CSS insecure

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

Change 710254 had a related patch set uploaded (by Slayful; author: Slayful):

[mediawiki/core@master] Sanitizer: Don't consider inline var CSS insecure

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

Change 710253 abandoned by Slayful:

[mediawiki/core@master] Sanitizer: Don't consider inline var CSS insecure

Reason:

Abandon in favour of https://gerrit.wikimedia.org/r/c/mediawiki/core/+/710254/

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

Change 710972 had a related patch set uploaded (by Slayful; author: Slayful):

[mediawiki/core@master] Sanitizer: Don't consider inline var CSS insecure

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

Change 710254 abandoned by Slayful:

[mediawiki/core@master] Sanitizer: Don't consider inline var CSS insecure

Reason:

Abandon in favour of https://gerrit.wikimedia.org/r/c/mediawiki/core/+/710972

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

Slayful changed the task status from Open to In Progress.Oct 6 2021, 3:49 PM

2-liner patch waiting for review for 10 months - adding Platform Engineering.

Change 710972 merged by jenkins-bot:

[mediawiki/core@master] Sanitizer: Don't consider inline var CSS insecure

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

Izno assigned this task to Slayful.

I guess this is done?