fune/browser/extensions/webcompat/shims/adsafeprotected-ima.js
Thomas Wisniewski b4f317ed6c Bug 1713690 - Improve the SmartBlock shimming for Google IMA3; r=denschub,webcompat-reviewers
- adds an actual shim for Google IMA3, rather than shimming with an empty file
- simplifies the AdSafeProtected IMA shim:
  - no longer needs to opt in to the original script for videos to play
  - it can now just be a basic stub shim for the API

Differential Revision: https://phabricator.services.mozilla.com/D119337
2021-07-08 15:08:27 +00:00

19 lines
524 B
JavaScript

/* 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/. */
"use strict";
/**
*
* Sites relying on Ad Safe Protected's adapter for Google IMA may
* have broken videos when the script is blocked. This shim stubs
* out the API to help mitigate major breakage.
*/
if (!window.googleImaVansAdapter) {
window.googleImaVansAdapter = {
init() {},
dispose() {},
};
}