Loading ...
Sorry, an error occurred while loading the content.

88Re: [caplet] Re: Javascript mystery

Expand Messages
  • Mark S. Miller
    Oct 10, 2007
      On 10/9/07, Mike Samuel <mikesamuel@...> wrote:
      > I can't repeat your example under the squarefree shell on FF2.0.0.7 on Linux.
      > And I can't reproduce by playing around with 'with' blocks, window subclasses, or eval.call.

      I've just repeated it on FF2.0.0.7 on Linux. For all the tests I've
      done on both, I haven't yet seen any difference between FF on Linux
      vs. Mac. Ben's msg led to some more experiments:

      When I try this using the standalone squarefree shell page at
      http://www.squarefree.com/shell/shell.html I don't get the peculiar
      behavior. It only happens when I use the squarefree shell bookmarklet
      available from http://www.squarefree.com/bookmarklets/webdevel.html .
      When using the bookmarklet, it does open the shell up in a different
      window from the one it's examining. The mystery window from my example
      is the bookmarklet's new window. Typing

      function foo() {return this;}

      into the bookmarklet's shell does cause it to close itself.

    • Show all 13 messages in this topic