Closed Bug 1623268 Opened 5 years ago Closed 5 years ago

Refine ContentBlocking::AllowAccessFor

Categories

(Core :: Privacy: Anti-Tracking, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: dimi, Assigned: dimi)

References

Details

Attachments

(4 files)

No description provided.

The code in the function is not easy to read. Let's refine it to make the future fission-compatible work easier.

This patch doesn't change the current behavior.
The intention is to make this code section easier to understand.

Depends on D67281

This patch does the following:

  • declare local variables right before they are used.
  • remove unused local variables.
  • rename local variables to make its purpose more clear

Depends on D67283

Priority: -- → P1
Pushed by dlee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/270ba3bd1c22 P1. Use BrowsingContext::IsTopContent r=timhuang,baku https://hg.mozilla.org/integration/autoland/rev/5072342655d8 P2. Refine the logic of third-party checks in ContentBlocking::AllowAccessFor r=timhuang,baku https://hg.mozilla.org/integration/autoland/rev/f89b7ec7b51b P3. ContentBlockingAllowList::Check API supports passing BrowsingContext r=timhuang,baku https://hg.mozilla.org/integration/autoland/rev/a217ec8bc94e P4. Rename and reorder variables in ContentBlocking::AllowAccessFor r=timhuang,baku
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: