зеркало из https://github.com/mozilla/gecko-dev.git
Bug 827976 - Use an existing window for media telemetry. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21086 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
fe436b6b68
Коммит
b9f00633df
|
@ -1443,9 +1443,11 @@ BrowserGlue.prototype = {
|
|||
},
|
||||
|
||||
_sendMediaTelemetry() {
|
||||
let win = Services.appShell.hiddenDOMWindow;
|
||||
let v = win.document.createElementNS("http://www.w3.org/1999/xhtml", "video");
|
||||
v.reportCanPlayTelemetry();
|
||||
let win = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
if (win) {
|
||||
let v = win.document.createElementNS("http://www.w3.org/1999/xhtml", "video");
|
||||
v.reportCanPlayTelemetry();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче