Page MenuHomePhabricator

Block use of "<base />" in the Content Security Policy
ClosedPublic

Authored by epriestley on Mar 1 2018, 2:54 AM.
Tags
None
Referenced Files
F18884842: D19158.diff
Nov 7 2025, 1:58 AM
F18862642: D19158.id45893.diff
Nov 2 2025, 8:05 PM
F18861007: D19158.id.diff
Nov 2 2025, 2:01 PM
F18855356: D19158.diff
Nov 1 2025, 4:59 AM
F18779996: D19158.id45893.diff
Oct 11 2025, 6:21 PM
F18736116: D19158.diff
Oct 1 2025, 4:54 AM
F18658807: D19158.diff
Sep 23 2025, 8:31 AM
F18604971: D19158.id45894.diff
Sep 13 2025, 7:25 PM
Subscribers
None

Details

Summary

Ref T4340. We don't use "<base />" so we can safely block it.

Test Plan

Injected "<base />" into a page, saw an error in the console showing that the browser had blocked it.

Diff Detail

Repository
rP Phabricator
Branch
csp6
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19704
Build 26686: Run Core Tests
Build 26685: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 1 2018, 2:55 AM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.