Repository navigation
Commit 9b5cb7e
Restore per-component vector-fix module loading
`AbstractComponent::augmentParserOutput()` used to load each
component's per-skin module variants by calling `getModulesFor()`
with a hard-coded `'vector'` skin name, which the JSON registry
treats as "always include the vector entry alongside the default".
That published the `modal.vector-fix` and `popover.vector-fix` CSS
to every skin's output, hiding the `.modal-backdrop` element on
Vector-family chromes that would otherwise overlay the page.
MediaWiki 1.43's ParserOutputAccess lifecycle change broke that
publication path: the modules attached via the augment hook no
longer reach the OutputPage. The earlier sparse-loading patch in
`HooksHandler::onParserAfterParse` (5.2.3) routed the default
modules through `ParserAfterParse` instead, but its foreach didn't
pass any skin argument, so the per-skin entries stopped loading
on every skin. Users on Vector, Vector 2022, MonoBook, and Timeless
all end up with the BS4 modal backdrop covering the page once a
modal opens.
Pass the same hard-coded `'vector'` into the post-parse foreach so
the registry returns the per-skin variants exactly as it did
pre-1.43. The redesign of this path (route by active skin name,
audit per-skin requirements) belongs in the next major release.
Drop the heavy mock-based unit test that landed alongside the
original sparse-loading patch. Per the reviewer comment at
#80 (review)
the test pinned a single argument literal through deep mocks of
every collaborator on `HooksHandler`, coupling to call signatures
rather than behaviour. Integration verification on the running
rig covers the regression more reliably.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 8b3ce9a commit 9b5cb7e
2 files changed
Lines changed: 1 addition & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 76 | | |
0 commit comments