зеркало из https://github.com/mozilla/gecko-dev.git
Bug 628970 - test_bug347174_write.html should not load an image over the network. r=sicking a=tests
This commit is contained in:
Родитель
797dab0f87
Коммит
d4477cf044
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче