Bug 850435 - Android Patch: separately measure UI telemetry for iframes and top level. r=felipe

This commit is contained in:
Devdatta Akhawe 2013-03-30 17:51:53 -07:00
parent 5f5845529d
commit 12ca09149d

View File

@ -4393,6 +4393,8 @@ var ErrorPageEventHandler = {
let isMalware = /e=malwareBlocked/.test(errorDoc.documentURI);
let bucketName = isMalware ? "WARNING_MALWARE_PAGE_" : "WARNING_PHISHING_PAGE_";
let nsISecTel = Ci.nsISecurityUITelemetry;
let isIframe = (aOwnerDoc.defaultView.parent === aOwnerDoc.defaultView);
bucketName += isIframe ? "TOP_" : "FRAME_";
let formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].getService(Ci.nsIURLFormatter);