Bug 1377851 - Use srcdoc instead of data: URI within devtools/client/sourceeditor/editor.js. r=pbrosset

This commit is contained in:
Christoph Kerschbaumer 2017-07-03 12:16:13 +02:00
parent e82e0967b4
commit bd62dfe80f

View File

@ -67,7 +67,7 @@ const CM_SCRIPTS = [
];
const CM_IFRAME =
"data:text/html;charset=utf8,<!DOCTYPE html>" +
"<!DOCTYPE html>" +
"<html dir='ltr'>" +
" <head>" +
" <style>" +
@ -298,7 +298,7 @@ Editor.prototype = {
};
env.addEventListener("load", onLoad, true);
env.setAttribute("src", CM_IFRAME);
env.setAttribute("srcdoc", CM_IFRAME);
el.appendChild(env);
this.once("destroy", () => el.removeChild(env));