Page MenuHomePhabricator

cscott (C. Scott Ananian)
Parser whisperer

Projects (17)

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Thursday

  • Clear sailing ahead.

User Details

User Since
Oct 21 2014, 6:47 PM (495 w, 6 d)
Availability
Available
IRC Nick
cscott
LDAP User
Unknown
MediaWiki User
Cscott [ Global Accounts ]

Editor since 2005; WMF developer since 2013. I work on Parsoid and OCG, and dabble with VE, real-time collaboration, and OOjs.

On github: https://github.com/cscott

See https://en.wikipedia.org/wiki/User:cscott for more.

Recent Activity

Yesterday

cscott added a comment to T361396: 1.43.0-wmf.2 deployment blockers.

Thanks for the spot, @ssastry. T363107 has a description of the issue and two belt-and-suspenders patches to fix it. It doesn't look like 1.43.0-wmf.2 has been branched yet (?) but I'll submit them both to backport.

Mon, Apr 22, 3:36 PM · Patch-For-Review, User-brennen, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
cscott updated the task description for T363107: Potential logspam on rollback of 1.43-wmf.2.
Mon, Apr 22, 3:35 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-Parser, Patch-For-Review
cscott added a subtask for T361396: 1.43.0-wmf.2 deployment blockers: T363107: Potential logspam on rollback of 1.43-wmf.2.
Mon, Apr 22, 3:24 PM · Patch-For-Review, User-brennen, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
cscott added a parent task for T363107: Potential logspam on rollback of 1.43-wmf.2: T361396: 1.43.0-wmf.2 deployment blockers.
Mon, Apr 22, 3:24 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-Parser, Patch-For-Review
cscott updated the task description for T363107: Potential logspam on rollback of 1.43-wmf.2.
Mon, Apr 22, 3:24 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-Parser, Patch-For-Review
cscott created T363107: Potential logspam on rollback of 1.43-wmf.2.
Mon, Apr 22, 3:22 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), MediaWiki-Parser, Patch-For-Review

Fri, Apr 19

cscott added a comment to T254063: OAuth extension should support OpenID Connect.

In https://github.com/fedwiki/wiki-security-passportjs/pull/43 there was a slight issue with Extension:OAuth requiring the HTTP Authorization header, as opposed to passing an access token in the query string.

Fri, Apr 19, 11:18 PM · MediaWiki-extensions-OAuth
cscott added a comment to T265148: Login with Wikipedia via OAuth on other websites.

Worked without too much trouble for fedwiki ( https://github.com/fedwiki/wiki-security-passportjs/pull/43 ) although the fact that our resource/profile endpoint required an HTTP Authorization header (as opposed to an access token) was a brief stumbling-block.

Fri, Apr 19, 11:15 PM · Documentation, MediaWiki-Engineering, Platform Engineering Roadmap Decision Making
cscott added a comment to T282499: Consider whether Parsoid will support forced linear parsing..

Two orthogonal issues here:

  1. Current Parsoid calls back to the legacy Parser to handle various types of content. That can cause there to be multiple $parser objects used on a given page. Most *present* issues with "linear parsing" are due to the fact that, even though the parse is technically in order, data being attached to the Parser object is lost because there are multiple parsers in play.
  2. Incremental parsing can still be done in the presence of store-modify-write sorts of changes to shared parser state as long as the shared parser state can be fully serialized for use in a cache key (ie, only reuse this fragment if the incoming parser state is identical to what it was last time) and deserialized (ie, when reusing this fragment, reset the shared parser state to what it what it was *after* the fragment was originally parsed). (Or, simply bypass any caching or incremental parsing if read-modify-write is done.)
Fri, Apr 19, 9:43 PM · MediaWiki-extensions-ExternalData, Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid), MediaWiki-extensions-Variables, Parsoid, MediaWiki-Parser
cscott added a comment to T281608: Rename Bot Passwords to Authentication Tokens or Access Tokens.

Does AWB need to support Extension:OAuth ? That would be one solution...

Fri, Apr 19, 9:42 PM · MediaWiki-Core-AuthManager, MediaWiki-User-management
cscott created T363026: Add tracking category to var_final in the Variables extension.
Fri, Apr 19, 9:36 PM · Content-Transform-Team, MediaWiki-extensions-Variables
cscott created T363025: PortableInfobox is incompatible with Parsoid.
Fri, Apr 19, 9:24 PM · Parsoid
cscott added a comment to T204366: Better varargs for templates.

Some discussion of this along with pragmatic solutions at https://river.me/blog/lua-multi-instance-subtemplates/

Fri, Apr 19, 8:40 PM · Language-Team, Scribunto, MediaWiki-Templates, MediaWiki-Parser, Parsoid

Thu, Apr 18

cscott committed rCSSSd25b9d42ac0f: Bump HISTORY.md after release.
Bump HISTORY.md after release
Thu, Apr 18, 8:20 PM
cscott committed rCSSSdbe2db3dadce: Release css-sanitizer 5.3.0.
Release css-sanitizer 5.3.0
Thu, Apr 18, 8:20 PM

Tue, Apr 16

cscott closed T362692: Expected logspam from ProofreadPage as Resolved.

After the backport, tested https://test.wikipedia.org/wiki/User:Cscott/LST?useparsoid=0&action=purge and https://test.wikipedia.org/wiki/User:Cscott/LST?useparsoid=1&action=purge when 1.43-wmf.1 was on testwikis and couldn't trigger the deprecation warning, so calling this fixed.

Tue, Apr 16, 7:38 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, ProofreadPage, MediaWiki-Parser
cscott closed T362692: Expected logspam from ProofreadPage, a subtask of T361395: 1.43.0-wmf.1 deployment blockers, as Resolved.
Tue, Apr 16, 7:36 PM · Patch-For-Review, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
cscott added a comment to T362692: Expected logspam from ProofreadPage.

Ok, here's the status:

  1. The root cause is that some extensions which use dynamic properties of $parser aren't included in (or aren't adequately tested by) the gated-extensions CI, so there's a risk of log spam about dynamic properties this week during the train.
  2. As mentioned above, I'm traveling to the MediaWiki Users and Developers Conference tonight-Friday this week, so I won't necessarily be available to deal with these in a timely manner.
  3. The "proper" fix to any logspam found involves (a) a new phab task to record the need to eventually remove the newly added property (these should be children of T343227), (b) adding the dynamic property as a real property of Parser, and (c) patching the extension itself to replace any unset($parser->dynamicProperty) with $parser->dynamicProperty = null since after the unset even a declared property will become "dynamic" again and start to trigger warnings. Also phan often has "undeclared property" suppressions that then start to fail once the property /actually exists/ and so to unbreak the extension's CI those need to be removed.
  4. One option is the backport the 4 patches to 1.43-wmf.1 and then either suppress any other logspam found during the train (it is harmless) or else backport additional pairs of patches as in item 3 above: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1020282 and https://gerrit.wikimedia.org/r/c/mediawiki/extensions/LabeledSectionTransclusion/+/1020284 for LST; and https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1020249 and https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ProofreadPage/+/1020250 for ProofreadPage.
  5. The other (preferred) option is to backport https://gerrit.wikimedia.org/r/1020231 to 1.43.0-wmf.1 to temporarily disable the deprecation warnings for 1.43.0-wmf.1. The ProofreadPage/LST patches will ride the train on 1.43.0-wmf.2 along with re-enabled deprecation warnings -- and if any further Bad Extensions are found, I will be back from the conference and available to patch and backport to fix them (or we can cherry-pick the "temporarily disable deprecation warnings" patch and rinse and repeat.)
Tue, Apr 16, 5:44 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, ProofreadPage, MediaWiki-Parser
cscott merged task T362693: Remove dynamic Parser::$mTemplatePath from Parser and LabeledSectionTransclusion extension. into T360573: LabeledSectionTransclusion's use of dynamic Parser::$mTemplatePath must be rewritten.
Tue, Apr 16, 5:11 PM · Patch-For-Review, MediaWiki-extensions-LabeledSectionTransclusion, MediaWiki-Parser
cscott merged T362693: Remove dynamic Parser::$mTemplatePath from Parser and LabeledSectionTransclusion extension. into T360573: LabeledSectionTransclusion's use of dynamic Parser::$mTemplatePath must be rewritten.
Tue, Apr 16, 5:11 PM · Patch-For-Review, MediaWiki-extensions-LabeledSectionTransclusion
cscott created T362693: Remove dynamic Parser::$mTemplatePath from Parser and LabeledSectionTransclusion extension..
Tue, Apr 16, 4:14 PM · Patch-For-Review, MediaWiki-extensions-LabeledSectionTransclusion, MediaWiki-Parser
cscott renamed T362692: Expected logspam from ProofreadPage from Logspam from Proofread page to Expected logspam from ProofreadPage.
Tue, Apr 16, 4:10 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, ProofreadPage, MediaWiki-Parser
cscott added a subtask for T361395: 1.43.0-wmf.1 deployment blockers: T362692: Expected logspam from ProofreadPage.
Tue, Apr 16, 4:06 PM · Patch-For-Review, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
cscott added a parent task for T362692: Expected logspam from ProofreadPage: T361395: 1.43.0-wmf.1 deployment blockers.
Tue, Apr 16, 4:06 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, ProofreadPage, MediaWiki-Parser
cscott created T362692: Expected logspam from ProofreadPage.
Tue, Apr 16, 4:05 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Patch-For-Review, ProofreadPage, MediaWiki-Parser
cscott added a subtask for T361395: 1.43.0-wmf.1 deployment blockers: T362689: "Undefined offset: 5" error when visiting https://phabricator.wikimedia.org/T361395.
Tue, Apr 16, 4:02 PM · Patch-For-Review, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
cscott added a parent task for T362689: "Undefined offset: 5" error when visiting https://phabricator.wikimedia.org/T361395: T361395: 1.43.0-wmf.1 deployment blockers.
Tue, Apr 16, 4:02 PM · User-brennen, Release-Engineering-Team, Phabricator
cscott added a comment to T362666: Deploy Phabricator/Phorge 2024-04-16.

This seems to have broken the train-blocker task for this week, T361395, which gives a RuntimeException when you go there. The previous task T361394 seems unaffected though, and far future tasks like https://phabricator.wikimedia.org/T400000 give a 404 as expected.

Tue, Apr 16, 3:59 PM · collaboration-services, Release-Engineering-Team (Now this 🫠), Phabricator (2024-04-16), User-brennen
cscott added a comment to T362660: WikidataPageBanner doesn't seem to use wpb_banner wpb_banner_focus_x or wpb_banner_focus_y page properties.

Yeah, and if T114424 were to be resurrected, it could/should use ParserOutput::setExtensionData, since all the code paths described have just parsed the banner template and thus have the ParserOutput available. PageProps is for when you want to index content independent of the parse, not when you just want to add metadata to the parse.

Tue, Apr 16, 3:38 PM · Web-Team-Backlog (Needs Prioritization (Tech)), Patch-For-Review, Wikidata-Page-Banner
cscott added a comment to T110843: Banners do not show up in mobile editor preview or new beta feature "wikitext editor".

Rather than page properties, which are stored and indexed in a separate database table, probably ParserOutput::setExtensionData() would be sufficient for this use case.

Tue, Apr 16, 3:37 PM · VisualEditor, Contributors-Team, Wikidata-Page-Banner
cscott created T362664: Remove dynamic Parser::$proofreadRenderingPages from Parser and ProofreadPage extension..
Tue, Apr 16, 2:07 PM · Patch-For-Review, MediaWiki-Parser, ProofreadPage
cscott added a comment to T359887: Use alternative storage to store HashTables data currently stored in Parser.

See also T343229, T343230, etc for context.

Tue, Apr 16, 2:06 PM · MediaWiki-extensions-Other
cscott renamed T362660: WikidataPageBanner doesn't seem to use wpb_banner wpb_banner_focus_x or wpb_banner_focus_y page properties from WikidataPageBannder doesn to WikidataPageBannder doesn't seem to use wpb_banner wpb_banner_focus_x or wpb_banner_focus_y page properties.
Tue, Apr 16, 1:43 PM · Web-Team-Backlog (Needs Prioritization (Tech)), Patch-For-Review, Wikidata-Page-Banner
cscott created T362660: WikidataPageBanner doesn't seem to use wpb_banner wpb_banner_focus_x or wpb_banner_focus_y page properties.
Tue, Apr 16, 1:37 PM · Web-Team-Backlog (Needs Prioritization (Tech)), Patch-For-Review, Wikidata-Page-Banner

Mon, Apr 15

cscott added a comment to T357783: Allow page properties to independently specify value and sort key.

In the discussion at https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1019302 the following method names were proposed:

  • setNumericPageProperty( string $propName, int|float|string $numericValue )
  • setUnsortedPageProperty( string $propName, string $value )
  • setSortedPageProperty( string $propName, string $value, int|float $sortKey )
Mon, Apr 15, 5:08 PM · Patch-For-Review, MediaWiki-General
cscott added a comment to T200517: Emit lint error or category when a page uses duplicate HTML IDs.

This reappeared as related to T358588 and maybe we should re-triage this as maintenance work for Content-Transform-Team .

Mon, Apr 15, 3:22 PM · Parsoid, Patch-For-Review, MediaWiki-extensions-Linter
cscott added a project to T200517: Emit lint error or category when a page uses duplicate HTML IDs: Content-Transform-Team.
Mon, Apr 15, 3:19 PM · Parsoid, Patch-For-Review, MediaWiki-extensions-Linter
cscott moved T359000: Notification misplaced and color contrast issues on mobile from Backlog to To Verify on the Content-Transform-Team-WIP board.
Mon, Apr 15, 3:14 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, MW-1.42-notes (1.42.0-wmf.21; 2024-03-05)
cscott moved T353530: Category defaultsort should be applied in CategoryLinkTable.php from Code Review to To Deploy on the Content-Transform-Team-WIP board.
Mon, Apr 15, 3:11 PM · MW-1.42-notes, Patch-For-Review, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 1 - DiscussionTools support), MediaWiki CodeJam Dec 2023, Parsoid

Fri, Apr 12

cscott updated the task description for T362439: Parsoid category link metadata followup.
Fri, Apr 12, 8:41 PM · Content-Transform-Team-WIP, Patch-For-Review, Parsoid
cscott created T362439: Parsoid category link metadata followup.
Fri, Apr 12, 7:50 PM · Content-Transform-Team-WIP, Patch-For-Review, Parsoid

Wed, Apr 10

cscott added a comment to T362222: PHP Deprecated: Use of MediaWiki\Parser\ParserOutput::addTemplate with interwiki link was deprecated in MediaWiki 1.42. [Called from MediaWiki\Extension\Scribunto\Engines\LuaCommon\TitleLibrary::getContentInternal].

See notes in {T362221#9704263} for the implications of adding external links as page dependencies.

Wed, Apr 10, 3:35 PM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, Content-Transform-Team, Wikimedia-production-error
cscott added a comment to T362221: PHP Deprecated: Use of MediaWiki\Parser\ParserOutput::addTemplate with interwiki link was deprecated in MediaWiki 1.42. [Called from MediaWiki\Parser\Parser::fetchTemplateAndTitle].

The root cause is the redirect resolution inside Parser:statelessFetchTemplate which follows (a limited number of) redirects in order to obtain the "real" template text. It adds each step in the redirect chain to the page dependencies as it goes. The issue is that when redirects point to interwiki links, it goes ahead and adds those external links to the dependencies as well, which eventually causes them to be sent to ParserOutput::addTemplate(). As discussed in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/LabeledSectionTransclusion/+/1004305:

At the moment the call to Parser::fetchTemplateAndTitle (directly or via Parser::getTemplateDom) would register the interwiki as template via ParserOutput::addTemplate and it gets stored in the linktarget table with ns=0 and title=Non-Wiki-Part. When this is a interwiki to a user page, the linktarget has ns=0 and title=User:Name and namespaceDupes.php wants to repair this (the way I have seen this - T355706).

Wed, Apr 10, 3:26 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Patch-For-Review, Wikimedia-production-error
cscott added a comment to T362221: PHP Deprecated: Use of MediaWiki\Parser\ParserOutput::addTemplate with interwiki link was deprecated in MediaWiki 1.42. [Called from MediaWiki\Parser\Parser::fetchTemplateAndTitle].

It's specifically a local transclusion of a page with a #REDIRECT, it doesn't happen if you put the #REDIRECT directly in the action=parse&text=.... request, nor does it happen if the page you are transcluding includes a interwiki link but not as a #REDIRECT. So probably something about how #REDIRECT is handled as a magic word when it is *not* stripped by WikitextContentHandler::extractRedirectTargetAndText. Also happens if parsoid=1 in the API request, oddly (?) enough, since Parsoid by default (a) doesn't strip the #REDIRECT and (b) handles the #REDIRECT locally (generating a <link>) rather than calling the core magic word. Hmm.

Wed, Apr 10, 2:58 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Patch-For-Review, Wikimedia-production-error
cscott added a comment to T362221: PHP Deprecated: Use of MediaWiki\Parser\ParserOutput::addTemplate with interwiki link was deprecated in MediaWiki 1.42. [Called from MediaWiki\Parser\Parser::fetchTemplateAndTitle].

Yeah, the requests are definitely coming from the GlobalUserPage extension: https://codesearch.wmcloud.org/search/?q=GlobalUserPageAPIUrl&files=&excludeFiles=&repos=

Wed, Apr 10, 2:32 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Patch-For-Review, Wikimedia-production-error
cscott added a comment to T362221: PHP Deprecated: Use of MediaWiki\Parser\ParserOutput::addTemplate with interwiki link was deprecated in MediaWiki 1.42. [Called from MediaWiki\Parser\Parser::fetchTemplateAndTitle].

Hm, could this be part of https://www.mediawiki.org/wiki/Extension:GlobalUserPage ? Although it's weird that it's coming in via an API request.

Wed, Apr 10, 2:20 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Patch-For-Review, Wikimedia-production-error

Fri, Apr 5

cscott updated the task description for T361956: Application Security Review Request : css-sanitizer custom property support.
Fri, Apr 5, 4:40 PM · Web-Team-Backlog (Needs Prioritization (Tech)), user-sbassett, css-sanitizer, secscrum, Security, Application Security Reviews
cscott created T361956: Application Security Review Request : css-sanitizer custom property support.
Fri, Apr 5, 4:39 PM · Web-Team-Backlog (Needs Prioritization (Tech)), user-sbassett, css-sanitizer, secscrum, Security, Application Security Reviews
cscott committed rCSSS56912a6a37cd: feat(css-sanitizer): Improve color parsing var func fallback values (authored by Moh'd Khier Abualruz <mkh.ruzz@live.com>).
feat(css-sanitizer): Improve color parsing var func fallback values
Fri, Apr 5, 4:20 PM
cscott committed rCSSS34b37a6a1c9a: Harden security by disallowing custom properties for `border-color`.
Harden security by disallowing custom properties for `border-color`
Fri, Apr 5, 4:20 PM
cscott added a comment to T361934: Support CSS variable fallbacks in template styles.

I'm already worried about the token-gluing possible with:

background: var(--foo) var(--bar) var(--bat);

which is allowed by the current patch. I guess adding default values doesn't make this *worse* but the semantics of var are already very worrying from a security standpoint. As long as users can't define their own custom properties we're probably okaaay, but we're relying on Codex and Skin authors not to inadvertently define custom properties that can be abused by juxtaposing them in unusual and unexpected ways.

Fri, Apr 5, 1:37 PM · Web-Team-Backlog (FY2023-24 Q4 Sprint 1), Patch-For-Review, css-sanitizer, TemplateStyles, FY2023-24-WE 2.1 Typography and palette customizations
cscott added a comment to T359001: Mobile section collapsing doesn't work with Parsoid HTML.

What Parsoid provides:

<section>
<h2></h2>
<p></p><p></p>
</section>

What MobileFrontend needs:

<section>
<h2></h2>
<div><p></p><p></p></div>
</section>

The reason it needs the DIV is that the H2 hide/shows the section content.

Fri, Apr 5, 1:04 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Patch-For-Review, Web-Team-Backlog (FY2023-24 Q4 Sprint 1), Web Team Essential Work 2024, Parsoid (Tracking)
cscott added a comment to T361934: Support CSS variable fallbacks in template styles.

The idea of skin-specific custom properties arose, but I think that can be done without adding additional var() syntax like so:

background-color: #fa11bac;
background-color: var(--skin-specific-custom-property);
Fri, Apr 5, 12:33 PM · Web-Team-Backlog (FY2023-24 Q4 Sprint 1), Patch-For-Review, css-sanitizer, TemplateStyles, FY2023-24-WE 2.1 Typography and palette customizations
cscott added a comment to T361934: Support CSS variable fallbacks in template styles.

Why do we need fallback values? On project, the custom properties should always be defined by codex, etc, and I'd think we'd actually want to hard fail with an error if an unknown property is referenced, rather than fallback.

Fri, Apr 5, 12:31 PM · Web-Team-Backlog (FY2023-24 Q4 Sprint 1), Patch-For-Review, css-sanitizer, TemplateStyles, FY2023-24-WE 2.1 Typography and palette customizations
cscott added a comment to T359001: Mobile section collapsing doesn't work with Parsoid HTML.

I don't think MFE is getting canonical Parsoid HTML -- it is getting the output of ParserOutput:getText() which is postprocessed.
In particular, it is using the OutputPageBeforeHTML hook to fetch the final "read view" HTML and then munging it.

Fri, Apr 5, 3:40 AM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Patch-For-Review, Web-Team-Backlog (FY2023-24 Q4 Sprint 1), Web Team Essential Work 2024, Parsoid (Tracking)

Thu, Apr 4

cscott closed T361330: LabeledSectionTransclusion shouldn't store unreachable interwiki titles in templatelinks database as Resolved.
Thu, Apr 4, 8:35 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Content-Transform-Team-WIP, Patch-For-Review, Content-Transform-Team, MediaWiki-Engineering, MediaWiki-extensions-LabeledSectionTransclusion
cscott updated subscribers of T359881: h1 headings render much larger in Vector skin with Parsoid HTML.

As I understand @matmarex's https://www.mediawiki.org/wiki/Heading_HTML_changes there /will/ be a mw-heading1 added once the legacy parser adopts the new heading HTML, but there's not one from the legacy parser currently (and that's expected). Any CSS rule which targets <h1> should also target .mw-heading1 in the way shown by https://www.mediawiki.org/wiki/Heading_HTML_changes#Skins_and_sitewide_styles.

Thu, Apr 4, 2:50 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, Web-Team-Backlog (FY2023-24 Q4 Sprint 1), Web Team Essential Work 2024, Content-Transform-Team-WIP, Vector (legacy skin), Desktop Improvements (Vector 2022)
cscott added a comment to T355706: Using interwiki on {{PAGESIZE:}} stores external title in linktarget.

T361330 was a repeat of the same issue; Ia8fd49a6f9af18e32d47d1dcd052c5f33123f44b adds a deprecation to ParserOutput to try to catch these (first with a deprecation warning, later with a thrown exception) in a more systematic way.

Thu, Apr 4, 2:44 PM · MW-1.42-notes (1.42.0-wmf.18; 2024-02-13), MediaWiki-Page-derived-data, MediaWiki-Parser
cscott edited projects for T360267: {{TRANSLATIONLANGUAGE}} is not handled in Parsoid parses, added: Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid); removed Parsoid-Read-Views.
Thu, Apr 4, 2:30 PM · Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid), MediaWiki-extensions-Translate, Parsoid
cscott closed T360289: Tabbed languages don't work, a subtask of T13555: .mw-editsection links should not be part of the <h#> element, as Resolved.
Thu, Apr 4, 2:27 PM · MW-1.42-notes (1.42.0-wmf.23; 2024-03-19), User-notice, Patch-For-Review, Editing-team (Kanban Board), Web-Team-Backlog (Needs Prioritization (Tech)), Technical-Debt, Epic, Accessibility, MediaWiki-Parser
cscott closed T360289: Tabbed languages don't work as Resolved.
Thu, Apr 4, 2:27 PM · Content-Transform-Team, Parsoid, Parsoid-Read-Views
cscott closed T361232: Update Parsoid baseconfig for kuswiki as Resolved.

Thanks!

Thu, Apr 4, 2:27 PM · Patch-For-Review, Content-Transform-Team-WIP, Parsoid, Wiki-Setup
cscott closed T361231: Update Parsoid baseconfig for bewwiki as Resolved.

Thanks!

Thu, Apr 4, 2:26 PM · Patch-For-Review, Content-Transform-Team-WIP, Parsoid, Wiki-Setup
cscott closed T361231: Update Parsoid baseconfig for bewwiki, a subtask of T360310: Post-creation work for bewwiki, as Resolved.
Thu, Apr 4, 2:26 PM · Patch-For-Review, Countervandalism-Network, Content-Transform-Team, Wiki-Setup
cscott closed T361232: Update Parsoid baseconfig for kuswiki, a subtask of T360303: Post-creation work for kuswiki, as Resolved.
Thu, Apr 4, 2:23 PM · Patch-For-Review, Countervandalism-Network, Content-Transform-Team, Wiki-Setup
cscott moved T361253: Unexpected section edit links appear on some pages with Parsoid from Needs Triage to Bugs & Crashers on the Parsoid board.
Thu, Apr 4, 2:20 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, Parsoid
cscott added a comment to T357933: Header column cell in template overlaps into next row, pushing the column cells one off.

Seems like this is most likely an editing team bug (adding them), but we'll keep this on 'tracking' CTT to keep an eye on things in case it turns out to be a parsing issue.

Thu, Apr 4, 2:15 PM · Local-Wiki-Template-And-Gadget-Issues, Content-Transform-Team, Wikipedia-iOS-App-Backlog, iOS-app-feature-wikitext-editor
cscott added a project to T357933: Header column cell in template overlaps into next row, pushing the column cells one off: Editing-team.
Thu, Apr 4, 2:14 PM · Local-Wiki-Template-And-Gadget-Issues, Content-Transform-Team, Wikipedia-iOS-App-Backlog, iOS-app-feature-wikitext-editor
cscott claimed T361664: TypeError: Argument 1 passed to MediaWiki\Languages\LanguageNameUtils::isValidCode() must be of the type string, array given, called in /srv/mediawiki/php-1.42.0-wmf.24/extensions/Scribunto/includes/Engines/LuaCommon/LanguageLi.
Thu, Apr 4, 2:08 PM · MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Essential-Work, Patch-For-Review, Content-Transform-Team-WIP, Scribunto, Wikimedia-production-error
Lofhi awarded T360562: CSS sanitizer should support using CSS variables (not setting/creating them) for use in color values in TemplateStyles a Like token.
Thu, Apr 4, 7:58 AM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, FY2023-24-WE 2.1 Typography and palette customizations, TemplateStyles, css-sanitizer, Web-Team-Backlog (FY2023-24 Q3 Sprint 6)

Wed, Apr 3

cscott committed rCSSS9e9fda192638: Bump HISTORY.md after release.
Bump HISTORY.md after release
Wed, Apr 3, 10:00 PM
cscott committed rCSSSf179170330ce: Release css-sanitizer 5.2.0.
Release css-sanitizer 5.2.0
Wed, Apr 3, 10:00 PM
cscott committed rCSSSc0cee4f78f12: Handle custom properties in color attributes (authored by Moh'd Khier Abualruz <mkh.ruzz@live.com>).
Handle custom properties in color attributes
Wed, Apr 3, 9:56 PM
cscott committed rCSSS05f19cdd14e7: Create HISTORY.md; add helper script using wikimedia/update-history.
Create HISTORY.md; add helper script using wikimedia/update-history
Wed, Apr 3, 6:28 PM
cscott added a comment to T360562: CSS sanitizer should support using CSS variables (not setting/creating them) for use in color values in TemplateStyles.

Created https://gerrit.wikimedia.org/r/c/css-sanitizer/+/1016816 to add a HISTORY.md file for css-sanitizer.

Wed, Apr 3, 5:16 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, FY2023-24-WE 2.1 Typography and palette customizations, TemplateStyles, css-sanitizer, Web-Team-Backlog (FY2023-24 Q3 Sprint 6)
cscott updated the task description for T361723: Create project tag for wikimedia/update-history library.
Wed, Apr 3, 4:56 PM · MediaWiki-libs-UpdateHistory, Project-Admins
cscott created T361723: Create project tag for wikimedia/update-history library.
Wed, Apr 3, 4:52 PM · MediaWiki-libs-UpdateHistory, Project-Admins
cscott added a comment to T360562: CSS sanitizer should support using CSS variables (not setting/creating them) for use in color values in TemplateStyles.

Reviewed https://gerrit.wikimedia.org/r/c/css-sanitizer/+/1014653 ; once that is updated and merges I can help release a new version of css-santizier -- that library really needs a HISTORY.md file to document its release history. The dependency in TemplateStyles is ~5.0.0 so it should probably get its composer.json updated to something like "wikimedia/css-sanitizer": "^5.1.0 || ^5.2.0" in preparation for a 5.2.0 release of css-sanitizer.

Wed, Apr 3, 4:33 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, FY2023-24-WE 2.1 Typography and palette customizations, TemplateStyles, css-sanitizer, Web-Team-Backlog (FY2023-24 Q3 Sprint 6)
cscott added a comment to T358980: Images displayed twice in mobile view on main page with Parsoid read views enabled.

The "more modern" way is indeed plugging into the OutputTransform pipeline in core, which would (eventually) allow caching the mobile-transformed content as well, so that would be a performance win. Right now the only extension point is the ParserOutputPostCacheTransform hook, which is a fine way to get started, but as you mention some of this code might want to be integrated in core with a new parser option to control it, something like ParserOption::setLazyLoadTransform(true) and then the transformation code would live in a new OutputTransform\Stages\ApplyLazyLoadTransform class in core. If the mobile transformations contain to live outside core, then we'll probably need to add a way for extensions to define their own output flavors, but those hooks aren't quite defined yet.

Wed, Apr 3, 2:45 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Web-Team-Backlog (FY2023-24 Q4 Sprint 2), Patch-For-Review, Web Team Essential Work 2024, Parsoid (Tracking), MobileFrontend

Mon, Apr 1

cscott updated the task description for T361028: CTT tasks week of 2024-03-29.
Mon, Apr 1, 3:41 PM · Content-Transform-Team-WIP
cscott added a subtask for T13555: .mw-editsection links should not be part of the <h#> element: T360289: Tabbed languages don't work.
Mon, Apr 1, 3:22 PM · MW-1.42-notes (1.42.0-wmf.23; 2024-03-19), User-notice, Patch-For-Review, Editing-team (Kanban Board), Web-Team-Backlog (Needs Prioritization (Tech)), Technical-Debt, Epic, Accessibility, MediaWiki-Parser
cscott added a parent task for T360289: Tabbed languages don't work: T13555: .mw-editsection links should not be part of the <h#> element.
Mon, Apr 1, 3:21 PM · Content-Transform-Team, Parsoid, Parsoid-Read-Views

Fri, Mar 29

cscott renamed T359886: Undefined whitespace handling behavior around category and language links from Undefined whitespace handling behavior around category links to Undefined whitespace handling behavior around category and language links.
Fri, Mar 29, 10:38 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Content-Transform-Team-WIP, Patch-For-Review
cscott renamed T361413: Parsoid should perhaps use LinkUpdate job for lints instead of special Linter API/Hook from Parsoid shoud use LinkUpdate job for lints instead of special Linter API/Hook to Parsoid should perhaps use LinkUpdate job for lints instead of special Linter API/Hook.
Fri, Mar 29, 10:17 PM · MediaWiki-extensions-Linter
cscott added a comment to T361411: Parsoid lints should be added to ParserOutput.

Note that I'm not 100% convinced we should do this -- see the caveats in T361413: Parsoid should perhaps use LinkUpdate job for lints instead of special Linter API/Hook.

Fri, Mar 29, 10:17 PM · MediaWiki-extensions-Linter
cscott added a project to T360809: Linter extension, core, and Parsoid are too entangled: MediaWiki-extensions-Linter.
Fri, Mar 29, 9:48 PM · MediaWiki-extensions-Linter, Technical-Debt, Patch-For-Review, Content-Transform-Team
cscott added a parent task for T361411: Parsoid lints should be added to ParserOutput: T361413: Parsoid should perhaps use LinkUpdate job for lints instead of special Linter API/Hook.
Fri, Mar 29, 9:44 PM · MediaWiki-extensions-Linter
cscott added a subtask for T361413: Parsoid should perhaps use LinkUpdate job for lints instead of special Linter API/Hook: T361411: Parsoid lints should be added to ParserOutput.
Fri, Mar 29, 9:44 PM · MediaWiki-extensions-Linter
cscott created T361413: Parsoid should perhaps use LinkUpdate job for lints instead of special Linter API/Hook.
Fri, Mar 29, 9:44 PM · MediaWiki-extensions-Linter
cscott created T361411: Parsoid lints should be added to ParserOutput.
Fri, Mar 29, 9:41 PM · MediaWiki-extensions-Linter
cscott added a comment to T341659: Please report linter-errors in parse-API too.

We should probably add the lint errors to the ParserOutput object when useParsoid is set; after that is done it ought to be straightforward to export them from the parse API.

Fri, Mar 29, 9:41 PM · MediaWiki-extensions-Linter

Thu, Mar 28

cscott added a project to T360289: Tabbed languages don't work: Content-Transform-Team.
Thu, Mar 28, 2:29 PM · Content-Transform-Team, Parsoid, Parsoid-Read-Views
cscott moved T360903: Parsoid DiscussionTools for arwiki/cswiki/huwiki (phase 2) from Uncategorized to Phase 1 - DiscussionTools support on the Parsoid-Read-Views board.
Thu, Mar 28, 2:28 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Hungarian-Sites, Content-Transform-Team-WIP, Editing-team (Tracking), Parsing-Active-Work, DiscussionTools
cscott updated subscribers of T360289: Tabbed languages don't work.
Thu, Mar 28, 2:28 PM · Content-Transform-Team, Parsoid, Parsoid-Read-Views
cscott moved T361095: Configure and run visualdifftesting for hebrew wikivoyage from Uncategorized to Phase 2 - testwiki Main namespace support on the Parsoid-Read-Views board.
Thu, Mar 28, 2:28 PM · Patch-For-Review, Parsoid, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support), Content-Transform-Team-WIP
cscott moved T360905: Parsoid DiscussionTools, phase 3 from Uncategorized to Phase 1 - DiscussionTools support on the Parsoid-Read-Views board.
Thu, Mar 28, 2:28 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, Editing-team (Tracking), Parsing-Active-Work, DiscussionTools
cscott moved T360906: Parsoid DiscussionTools for dewiki (phase 4) from Uncategorized to Phase 1 - DiscussionTools support on the Parsoid-Read-Views board.
Thu, Mar 28, 2:27 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, Editing-team (Tracking), Parsing-Active-Work, DiscussionTools
cscott moved T361025: Deploy parsoid read views for hebrew wikivoyage from Uncategorized to Phase 2 - testwiki Main namespace support on the Parsoid-Read-Views board.
Thu, Mar 28, 2:27 PM · Patch-For-Review, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support), Parsoid-Rendering, Platform Team Legacy (Designing), MediaWiki-General, Product-Infrastructure-Team-Backlog-Deprecated, Services (designing), Notice, Roadmap, Epic, VisualEditor-Performance, Blocked-on-Services, RESTBase, Service-Architecture, VisualEditor, MediaWiki-User-Interface
cscott added a parent task for T361013: Update lint tables independently of changeprop/restbase: Unknown Object (Task).
Thu, Mar 28, 2:25 PM · Patch-For-Review, RESTBase Sunsetting, Content-Transform-Team
cscott removed a subtask for T361013: Update lint tables independently of changeprop/restbase: Restricted Task.
Thu, Mar 28, 2:24 PM · Patch-For-Review, RESTBase Sunsetting, Content-Transform-Team