Skip to content

Commit

Permalink
Bug 1690981 [wpt PR 27500] - CSP: Remove 'plugin-types' directive, a=…
Browse files Browse the repository at this point in the history
…testonly

Automatic update from web-platform-tests
CSP: Remove 'plugin-types' directive

The Content Security Policy directive 'plugin-types' is being removed
by the specification
(w3c/webappsec-csp#456). This CL removes the
code parsing and checking the 'plugin-types' directive from Blink and
from the services/network CSP parser. All WP tests for plugin-types
are removed, too.

When parsing a plugin-types directive, we display a console error
message informing that the directive has been removed and that
object-src can be used instead.

Bug: 1168001
Change-Id: I61420677a0f11f8daf46c473e578d66c932751d1
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643282
Reviewed-by: Arthur Sonzogni <arthursonzognichromium.org>
Reviewed-by: Mike West <mkwstchromium.org>
Commit-Queue: Antonio Sartori <antoniosartorichromium.org>
Cr-Commit-Position: refs/heads/master{#851760}

--

wpt-commits: 8959b13684b68186781340c044d9c1b62a388358
wpt-pr: 27500

UltraBlame original commit: d137cd61151f86944a50e788d152c45f3323d3a8
  • Loading branch information
marco-c committed Feb 16, 2021
1 parent 8b60e77 commit 9ff6cad
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 1,346 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1014,17 +1014,14 @@
"
:
"
Iframe
should
block
if
Removed
plugin
-
types
directive
is
not
subsumed
should
be
ignored
.
"
"
Expand All @@ -1050,24 +1047,23 @@
:
IframeLoad
.
EXPECT_BLOCK
EXPECT_LOAD
}
{
"
name
"
:
"
Iframe
should
load
if
Removed
plugin
-
types
directive
is
subsumed
should
be
ignored
2
.
"
"
Expand Down Expand Up @@ -1109,6 +1105,55 @@
.
EXPECT_LOAD
}
{
"
name
"
:
"
Removed
plugin
-
types
directive
should
be
ignored
3
.
"
"
required_csp
"
:
"
style
-
src
'
none
'
;
plugin
-
types
application
/
pdf
"
"
returned_csp
"
:
null
"
expected
"
:
IframeLoad
.
EXPECT_BLOCK
}
]
;
tests
Expand Down

This file was deleted.

Loading

0 comments on commit 9ff6cad

Please sign in to comment.