зеркало из https://github.com/mozilla/gecko-dev.git
Bug 380422 - The evaluating iframe may contain nuts (and other remainders)p=Simon Bunzli <zeniko@gmail.com>r=gavin, sr=neil@parkwaycc
This commit is contained in:
Родитель
bd7484271c
Коммит
5a7bf31fdf
|
@ -106,8 +106,9 @@ function onEvalKeyPress(aEvent)
|
|||
function evaluateTypein()
|
||||
{
|
||||
var code = gTextBoxEval.value;
|
||||
var iframe = document.getElementById("Evaluator");
|
||||
iframe.contentDocument.location = "javascript: " + encodeURIComponent(code);
|
||||
var evaluator = document.getElementById("Evaluator").contentWindow;
|
||||
evaluator.location = "about:blank"; // reset the iframe
|
||||
evaluator.location = "javascript: " + encodeURIComponent(code);
|
||||
}
|
||||
|
||||
function displayResult()
|
||||
|
|
|
@ -134,8 +134,9 @@ function onEvalKeyPress(aEvent)
|
|||
function evaluateTypein()
|
||||
{
|
||||
var code = document.getElementById("TextboxEval").value;
|
||||
var iframe = document.getElementById("Evaluator");
|
||||
iframe.contentDocument.location = "javascript: " + encodeURIComponent(code);
|
||||
var evaluator = document.getElementById("Evaluator").contentWindow;
|
||||
evaluator.location = "about:blank"; // reset the iframe
|
||||
evaluator.location = "javascript: " + encodeURIComponent(code);
|
||||
}
|
||||
|
||||
function displayResult()
|
||||
|
|
Загрузка…
Ссылка в новой задаче