Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #5860: Add window.caches blocking when cookie blocking is enabled #5870

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

cuba
Copy link
Contributor

@cuba cuba commented Aug 15, 2022

Summary of Changes

Block window.caches API when cookie blocking is enabled

This pull request fixes #5860

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()
  • New or updated UI has been tested across:
    • Light & dark mode
    • Different size classes (iPhone, landscape, iPad)
    • Different dynamic type sizes

Test Plan:

You may use the the following test page: https://dev-pages.brave.software/storage/dom-storage.html
Note when cookie blocking is enabled, all frames should show "false"

Screenshots:

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue and pull request is assigned to a milestone (should happen at merge time).

@iccub iccub force-pushed the js/5860-window.caches-blocking branch from 9e6f4bc to c8ba4e8 Compare August 15, 2022 15:14
@cuba cuba requested review from diracdeltas and thypon and removed request for diracdeltas August 15, 2022 16:17
@cuba cuba force-pushed the js/5860-window.caches-blocking branch from c8ba4e8 to 72f53d2 Compare August 15, 2022 20:35
@cuba cuba requested a review from Brandon-T August 15, 2022 20:39
@cuba cuba force-pushed the js/5860-window.caches-blocking branch 2 times, most recently from 14faaa4 to 0ca193e Compare August 15, 2022 20:47
@iccub iccub force-pushed the js/5860-window.caches-blocking branch 2 times, most recently from 41d2705 to e2e6ca0 Compare August 16, 2022 14:13
@iccub iccub force-pushed the js/5860-window.caches-blocking branch from e2e6ca0 to 6e3ad99 Compare August 16, 2022 15:47
@iccub iccub added this to the 1.42 milestone Aug 16, 2022
@iccub iccub merged commit 6a9d721 into development Aug 16, 2022
@iccub iccub deleted the js/5860-window.caches-blocking branch August 16, 2022 16:41
iccub pushed a commit that referenced this pull request Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[hackerone] caches issue
5 participants