-
-
-"
-`;
-
-exports[`overlay should not show a warning when "client.overlay.warnings" is "false": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show an error when "client.overlay" is "false": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show an error when "client.overlay.errors" is "false": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error and allow to close: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
- need an appropriate loader to handle this file type, currently no
- loaders are configured to process this file. See
- https://webpack.js.org/concepts#loaders > \`;
-
-
-
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error and allow to close: page html after close 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error and allow to close: page html initial 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error and allow to close: page html with error 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then hide on fix: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
- need an appropriate loader to handle this file type, currently no
- loaders are configured to process this file. See
- https://webpack.js.org/concepts#loaders > \`;
-
-
-
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then hide on fix: page html after fix error 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then hide on fix: page html initial 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then hide on fix: page html with error 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then show other error, then hide on fix: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
- need an appropriate loader to handle this file type, currently no
- loaders are configured to process this file. See
- https://webpack.js.org/concepts#loaders > \`;
-
-
-
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then show other error, then hide on fix: overlay html 2`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- ./foo.js 1:1 Module parse failed: Unterminated template (1:1) You may
- need an appropriate loader to handle this file type, currently no
- loaders are configured to process this file. See
- https://webpack.js.org/concepts#loaders > \`;a
-
-
-
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then show other error, then hide on fix: page html after fix error 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then show other error, then hide on fix: page html initial 1`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then show other error, then hide on fix: page html with error 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should not show initially, then show on an error, then show other error, then hide on fix: page html with other error 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning after invalidation: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Warning from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning after invalidation: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning and error for initial compilation and protects against xss: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- <strong>strong</strong>
-
-
-
-
- ERROR
-
-
- <strong>strong</strong>
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning and error for initial compilation and protects against xss: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning and error for initial compilation: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- Warning from compilation
-
-
-
-
- ERROR
-
-
- Warning from compilation
-
-
-
-
- ERROR
-
-
- Error from compilation. Can't find 'test' module.
-
-
-
-
- ERROR
-
-
- Error from compilation. Can't find 'test' module.
-
-
-
-
- ERROR
-
-
- Error from compilation. Can't find 'test' module.
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning and error for initial compilation: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning and hide them after closing connection: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Warning from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning and hide them after closing connection: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning and hide them after closing connection: page html 2`] = `
-"
-
webpack-dev-server is running...
-
-
-"
-`;
-
-exports[`overlay should show a warning for initial compilation: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Warning from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning for initial compilation: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning when "client.overlay" is "true": overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Warning from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning when "client.overlay" is "true": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning when "client.overlay.errors" is "true": overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Warning from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning when "client.overlay.errors" is "true": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning when "client.overlay.warnings" is "true": overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Warning from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show a warning when "client.overlay.warnings" is "true": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show an ansi formatted error for initial compilation: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
-
- 18 |
- Render
- ansi formatted text
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show an ansi formatted error for initial compilation: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error after invalidation: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- Error from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error after invalidation: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error for initial compilation: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- Error from compilation. Can't find 'test' module.
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error for initial compilation: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error when "client.overlay" is "true": overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- Error from compilation. Can't find 'test' module.
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error when "client.overlay" is "true": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error when "client.overlay.errors" is "true": overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- Error from compilation. Can't find 'test' module.
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error when "client.overlay.errors" is "true": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error when "client.overlay.warnings" is "true": overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Warning from compilation
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show an error when "client.overlay.warnings" is "true": page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show error for uncaught promise rejection: overlay html 1`] = `
-"
-
-
- Uncaught runtime errors:
-
-
-
-
-
- ERROR
-
-
- Async error at <anonymous>:3:26
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show error for uncaught runtime error: overlay html 1`] = `
-"
-
-
- Uncaught runtime errors:
-
-
-
-
-
- ERROR
-
-
- Injected error at throwError (<anonymous>:2:15) at
- <anonymous>:3:9 at addScriptContent
- (__puppeteer_evaluation_script__:9:27)
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show error when it is not filtered: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- ERROR
-
-
- Unfiltered error
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show error when it is not filtered: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
-
-exports[`overlay should show warning when it is not filtered: overlay html 1`] = `
-"
-
-
- Compiled with problems:
-
-
-
-
-
- WARNING
-
-
- Unfiltered warning
-
-
-
-
-
-"
-`;
-
-exports[`overlay should show warning when it is not filtered: page html 1`] = `
-"
-
webpack-dev-server is running...
-
-
-
-
-"
-`;
diff --git a/test/e2e/__snapshots__/overlay.test.js.snap.webpack5 b/test/e2e/__snapshots__/overlay.test.js.snap.webpack5
index 11b52c82a1..2a5c43b68d 100644
--- a/test/e2e/__snapshots__/overlay.test.js.snap.webpack5
+++ b/test/e2e/__snapshots__/overlay.test.js.snap.webpack5
@@ -2426,6 +2426,321 @@ exports[`overlay should show error when it is not filtered: page html 1`] = `
"
`;
+exports[`overlay should show overlay when "Content-Security-Policy" is "default-src 'self'" was used: overlay html 1`] = `
+"
+
+
+ Compiled with problems:
+
+
+
+
+
+ ERROR
+
+
+ Error from compilation. Can't find 'test' module.
+
+
+
+
+
+"
+`;
+
+exports[`overlay should show overlay when "Content-Security-Policy" is "default-src 'self'" was used: page html 1`] = `
+"
+
webpack-dev-server is running...
+
+
+
+
+"
+`;
+
+exports[`overlay should show overlay when Trusted Types are enabled and the "require-trusted-types-for 'script'" header was used: overlay html 1`] = `
+"
+
+
+ Compiled with problems:
+
+
+
+
+
+ ERROR
+
+
+ Error from compilation. Can't find 'test' module.
+
+
+
+
+
+"
+`;
+
+exports[`overlay should show overlay when Trusted Types are enabled and the "require-trusted-types-for 'script'" header was used: page html 1`] = `
+"
+
webpack-dev-server is running...
+
+
+
+
+"
+`;
+
+exports[`overlay should show overlay when Trusted Types are enabled: overlay html 1`] = `
+"
+
+
+ Compiled with problems:
+
+
+
+
+
+ ERROR
+
+
+ Error from compilation. Can't find 'test' module.
+
+
+
+
+
+"
+`;
+
+exports[`overlay should show overlay when Trusted Types are enabled: page html 1`] = `
+"
+
webpack-dev-server is running...
+
+
+
+
+"
+`;
+
exports[`overlay should show warning when it is not filtered: overlay html 1`] = `
"