mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1377851 - Use srcdoc instead of data: URI within devtools/client/sourceeditor/editor.js. r=pbrosset
This commit is contained in:
parent
e82e0967b4
commit
bd62dfe80f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user