Closed Bug 1904004 Opened 1 year ago Closed 1 year ago

Add a OriginAttributes::IsPrivateBrowsing helper method

Categories

(Core :: Security: CAPS, task)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: tschuster, Assigned: tschuster)

References

Details

Attachments

(2 files)

No description provided.

Have you considered adding a linter to prevent new code from directly inspecting the private browsing id?

Flags: needinfo?(tschuster)

Is this a preparation for something bigger ?

Have you considered adding a linter to prevent new code from directly inspecting the private browsing id?

No, I hadn't really. I think it would be neat to have, but there are some valid use cases like serialization.

Is this a preparation for something bigger ?

No. Just some cleanup to make something like bug 1903559 less likely to happen.

Flags: needinfo?(tschuster)
See Also: → 1903559
Pushed by tschuster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb41003664bc Add OriginAttributes::IsPrivateBrowsing. r=timhuang https://hg.mozilla.org/integration/autoland/rev/9e5df1816e1c Use OriginAttributes::IsPrivateBrowsing instead of open coding PBM checks. r=timhuang,cookie-reviewers,anti-tracking-reviewers,profiler-reviewers,necko-reviewers,kershaw,dom-storage-reviewers,janv,canaltinova,dom-worker-reviewers,asuth
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: