Commit bbbd51db authored by Felipe Gomes's avatar Felipe Gomes
Browse files

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
parent eca56447
......@@ -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();
}
},
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment