Differential D299541
Bug 1803078 - Add Pref to expose media metadata in private browsing ClosedPublic Authored by ahmubashshir on May 9 2026, 3:07 PM. Referenced Files
Subscribers
Details
Summary Add a new pref, , to control Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diff Detail
Event Timelineahmubashshir planned changes to this revision.May 9 2026, 3:07 PM ahmubashshir created this revision. phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".May 9 2026, 3:07 PM phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)". phab-bot removed a project: secure-revision. Comment Actions SummarizationIntentThe changes aim to address a user request to allow media metadata (such as track title, artist, and album information) to be exposed through system media controls (e.g., MPRIS on Linux) even when the user is in private browsing mode. By default, Firefox suppresses this metadata in private browsing to protect user privacy, but some users may prefer the convenience of seeing media information in their system's media controls regardless of the browsing mode. This patch introduces a preference that lets users opt in to this behavior. SolutionThe solution introduces a new boolean preference, , defaulting to (preserving the existing privacy-respecting behavior). When this preference is set to , the code in that determines whether media metadata should be hidden (by checking if the document is in private browsing) is effectively bypassed. Specifically, in the method that checks whether metadata should be blocked for private browsing contexts, the new code checks the preference value before evaluating the private browsing state of the document. If the preference is enabled, the method returns early (indicating metadata should be exposed), skipping the subsequent private browsing check that would otherwise suppress the metadata. This gives users explicit control over whether their media metadata is visible in system media interfaces during private browsing sessions. Please use / reactions on inline comments to provide feedback. This will have a significant impact on the quality of future reviews.
Comment Actions Fix logic bug and update doc comment reviewhelper-bot added inline comments.May 9 2026, 3:42 PM
ahmubashshir published this revision for review.May 9 2026, 4:58 PM ahmubashshir added a reviewer: alwu. alwu accepted this revision.May 11 2026, 10:05 PM alwu added a project: testing-exception-unchanged (Doesn't change behavior for users). Comment ActionsLGTM, thanks! This revision is now accepted and ready to land.May 11 2026, 10:05 PM alwu retitled this revision from WIP: Bug 1803078 - Add Pref to expose media metadata in private browsing to Bug 1803078 - Add Pref to expose media metadata in private browsing.May 11 2026, 10:07 PM alwu edited the summary of this revision. (Show Details) ahmubashshir edited the summary of this revision. (Show Details) ahmubashshir edited the summary of this revision. (Show Details) This revision was landed with ongoing or failed builds.May 12 2026, 7:58 PM Closed by commit rFIREFOXAUTOLAND1361ccb99a93: Bug 1803078 - Add Pref to expose media metadata in private browsing r=alwu (authored by ahmubashshir, committed by alwu). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 1273085 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
