Bug 628970 - test_bug347174_write.html should not load an image over the network. r=sicking a=tests

This commit is contained in:
Mounir Lamouri 2011-01-27 14:53:04 +01:00
Родитель 797dab0f87
Коммит d4477cf044
1 изменённых файлов: 2 добавлений и 5 удалений

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

@ -45,11 +45,8 @@ function frameLoad() {
function load() {
window.loaded = true;
// Thx to netdragon, this is so IE doesn't complain under SSL bugzilla
var protocol = "http";
if (location.href.indexOf("https://") != -1)
protocol = "https";
var imgsrc = "<img onload ='window.parent.imgLoad()' src='" + protocol + "://www.mozilla.org/images/header_logo.gif?noCache="+new Date().getTime()+""+"ignoremefrombuzillabug347174'>\n";
var imgsrc = "<img onload ='window.parent.imgLoad()' src='image.png'>\n";
var doc = $('iframe').contentWindow.document;
doc.writeln(imgsrc);
doc.close();