(From bug 238898 comment #24)
> load, e.g. evaluating ("const a=1;", "a;", "a;") will result in ("", 1, error)
> when it should result in ("", error, error), but I guess that happens currently
> too because displayResult() is only called onload. This was mentioned in bug
> 158475 comment 4, so I guess it's known. Might be worth filing a bug on it
+ iframe.contentDocument.location = "about:blank"; // reset the iframe
I'll add a patch once bug 238898 has been fixed.
Created attachment 264505 [details] [diff] [review]
Comment on attachment 264505 [details] [diff] [review]
I'm sure what I said on IRC was to use contentWindow, not contentDocument (nsDocument simply calls GetLocation on its nsIDOMWindowInternal). But as you're repeating yourself I now prefer var Evaluator = document.getElementById("Evaluator").contentWindow; etc. sr=me with that fixed.
Created attachment 264518 [details] [diff] [review]
... but keeping |evaluator| lower-cased as all other variables are.
This bitrots my patch to bug 369097. I'll update it after this one's been checked in.
(In reply to comment #2)
> (From update of attachment 264505 [details] [diff] [review])
> I'm sure what I said on IRC was to use contentWindow, not contentDocument
> (nsDocument simply calls GetLocation on its nsIDOMWindowInternal).
Oops, that's right. Sorry about that.
This caused bug 386501.