Bug 380422 - The evaluating iframe may contain nuts (and other remainders)
p=Simon Bunzli <zeniko@gmail.com> r=gavin, sr=neil@parkwaycc git-svn-id: svn://10.0.0.236/trunk@226342 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user