Skip to content

fix(private): drop the private-browsing indicator id no Firefox ships - #221

Merged
AdamXweb merged 1 commit into
AdamXweb:masterfrom
adamXbot:fix/dead-private-browsing-selector
Sep 1, 2026
Merged

AdamXweb merged 1 commit into
AdamXweb:masterfrom
adamXbot:fix/dead-private-browsing-selector

Conversation

@adamXbot

Copy link
Copy Markdown
Contributor

The rule hiding the built-in private-browsing pill covered three spellings: the old class, the current class, and an id. The id matches nothing on any Firefox this theme supports — id="private-browsing-indicator-with-label" has zero hits in both mozilla-esr140 and mozilla-central.

 #TabsToolbar .private-browsing-indicator,
-#TabsToolbar .private-browsing-indicator-with-label,
-#TabsToolbar #private-browsing-indicator-with-label {
+#TabsToolbar .private-browsing-indicator-with-label {
 	display: none !important;
 }

The two class spellings stay, and the comment above them is still accurate: Firefox did rename the element, and covering the old class alongside the current one is what keeps older builds working.

fxcss audit suggested renaming the id to the class form, which would have produced an exact duplicate of the line directly above it. Deleting is the fix it was reaching for.

What this does and does not fix

This clears one of the two selector findings the weekly firefox-watch acts on. The other is #placesToolbar → #PlacesToolbar, and that one is a false positive the theme must not act on: #placesToolbar is the Library window's toolbar in places.xhtml, while #PlacesToolbar is the main window's bookmarks toolbar in browser.xhtml. Applying it would move Library styling onto the bookmarks bar.

That is an fxcss bug — the audit consulted its shipped-chrome scan after the fuzzy matchers, so a name Firefox genuinely ships lost to a name it merely resembles. Fixed in AdamXweb/fxcss#24.

So the sequence is:

state --strict --strict-vars patch proposed
master today exits 1, 2 findings the harmful #placesToolbar rename
with this PR, on released 0.19.0 exits 1, 1 finding still the harmful rename
with this PR + fxcss#24 released and pinned exits 0 none

Verified locally on Firefox 153 in all three states. Until fxcss#24 ships and the pin bumps, the watch will keep proposing the bad rename — this PR alone does not stop that.

🤖 Generated with Claude Code

The rule hid the built-in private-browsing pill under three spellings: the
old class, the current class, and an id. The id is in neither
mozilla-esr140 nor mozilla-central -- zero hits for
`id="private-browsing-indicator-with-label"` in either tree -- so that line
has never matched anything on any Firefox this theme supports.

The two class spellings stay, and the comment above them is still accurate:
Firefox did rename the element, and covering the old class alongside the
current one is what keeps older builds working.

fxcss audit suggested renaming the id to the class form instead, which
would have produced an exact duplicate of the line above it. Deleting is
the fix it was reaching for.

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions

Copy link
Copy Markdown

Theme preview

Rendered from f66cb1e against the base branch.

Linux — no visual change

Nothing rendered differently. Current appearance:

macOS — no visual change

Nothing rendered differently. Current appearance:

Windows — no visual change

Nothing rendered differently. Current appearance:

No pixel differences on any platform — this PR does not change how the browser chrome renders in these views.

Views: browser window, focused address bar, find bar, modal dialog — each in light and dark. Native popups (app menu, context menus) are OS-level windows and cannot be captured. Workflow run

github-actions Bot added a commit that referenced this pull request Aug 30, 2026
@AdamXweb
AdamXweb merged commit 0fc3ddf into AdamXweb:master Sep 1, 2026
3 checks passed
github-actions Bot added a commit that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants