Bug 545734 - need to hide the iframe used for submitting plugin crash reports. r=ted.mielczarek

This commit is contained in:
Justin Dolske 2010-02-15 19:29:00 -08:00
Родитель b312f3e0d2
Коммит 928696cee9
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -266,6 +266,7 @@ Submitter.prototype = {
onStateChange: function(aWebProgress, aRequest, aFlag, aStatus)
{
if(aFlag & STATE_STOP) {
this.iframe.docShell.QueryInterface(Ci.nsIWebProgress);
this.iframe.docShell.removeProgressListener(this);
// check general request status first
@ -311,6 +312,8 @@ Submitter.prototype = {
this.extra = extra;
let iframe = this.document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "iframe");
iframe.setAttribute("type", "content");
iframe.style.width = 0;
iframe.style.minWidth = 0;
let self = this;
function loadHandler() {
@ -366,4 +369,4 @@ let CrashSubmit = {
};
// Run this when first loaded
getL10nStrings();
getL10nStrings();