mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 1924167 - shim updates; a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D228372
This commit is contained in:
parent
ba33c4a1a6
commit
4bba8be018
@ -460,23 +460,6 @@ const AVAILABLE_SHIMS = [
|
||||
],
|
||||
onlyIfBlockedByETP: true,
|
||||
},
|
||||
{
|
||||
id: "Google SafeFrame",
|
||||
platform: "all",
|
||||
name: "Google SafeFrame",
|
||||
bug: "1713691",
|
||||
matches: [
|
||||
{
|
||||
patterns: [
|
||||
"*://tpc.googlesyndication.com/safeframe/*/html/container.html",
|
||||
"*://*.safeframe.googlesyndication.com/safeframe/*/html/container.html",
|
||||
],
|
||||
target: "google-safeframe.html",
|
||||
types: ["sub_frame"],
|
||||
},
|
||||
],
|
||||
onlyIfBlockedByETP: true,
|
||||
},
|
||||
{
|
||||
id: "GoogleTrends",
|
||||
platform: "all",
|
||||
|
@ -2,7 +2,7 @@
|
||||
"manifest_version": 2,
|
||||
"name": "Web Compatibility Interventions",
|
||||
"description": "Urgent post-release fixes for web compatibility.",
|
||||
"version": "115.2.0",
|
||||
"version": "115.3.0",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "webcompat@mozilla.org",
|
||||
@ -122,7 +122,6 @@
|
||||
"shims/google-ima.js",
|
||||
"shims/google-page-ad.js",
|
||||
"shims/google-publisher-tags.js",
|
||||
"shims/google-safeframe.html",
|
||||
"shims/history.js",
|
||||
"shims/iam.js",
|
||||
"shims/iaspet.js",
|
||||
|
@ -139,7 +139,6 @@ FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["shims"] += [
|
||||
"shims/google-ima.js",
|
||||
"shims/google-page-ad.js",
|
||||
"shims/google-publisher-tags.js",
|
||||
"shims/google-safeframe.html",
|
||||
"shims/history.js",
|
||||
"shims/iam.js",
|
||||
"shims/iaspet.js",
|
||||
|
@ -1,29 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
Bug 1713691 - Shim Google SafeFrame
|
||||
|
||||
Some sites will break if they cannot load a Google SafeFrame. This
|
||||
shim provides a stand-in for the frame to mitigate that breakage.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>SafeFrame Container</title>
|
||||
<script>
|
||||
try {
|
||||
const F = /^([^;]+);(\d+);([\s\S]*)$/.exec(window.name);
|
||||
window.name = "";
|
||||
const P = window.document;
|
||||
P.open("text/html", "replace");
|
||||
P.write(F[3].substr(0, +F[2]));
|
||||
P.close();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user