forked from mirrors/gecko-dev
- 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
19 lines
524 B
JavaScript
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() {},
|
|
};
|
|
}
|