Re: [webkit-dev] safari extension script loading within injected file

2011-02-02 Thread Adam Roben
This list is for discussion of the development of the WebKit project itself, not questions about how to use WebKit (or a browser that uses WebKit, such as Safari). See http://webkit.org/contact.html for details. You'll have better luck asking in a Safari-specific venue, such as

Re: [webkit-dev] safari extension script loading within injected file

2011-02-02 Thread Lou Zell
On Tue, Feb 1, 2011 at 5:44 PM, Nick Guenther nick.guent...@dossierview.com wrote: Cluestick (or n00b question): What's 'document' within the extension scope? It is not the same as 'document' of the loaded page. I am no expert with terminology here, so in case that makes zero sense: If I

Re: [webkit-dev] safari extension script loading within injected file

2011-02-02 Thread Lou Zell
On Wed, Feb 2, 2011 at 10:59 PM, Lou Zell lzel...@gmail.com wrote: I made a simple test where I load a single javascript file from within the injected js. This single file creates a variable, window.MyGlobal. What is very interesting to me is that this object is accessible from the loaded

[webkit-dev] safari extension script loading within injected file

2011-02-01 Thread Lou Zell
Hello list, I am seeing some behavior that I cannot explain with a safari 5 extension. First, let me show a bit of code that works as expected outside the extension environment. This loads jQuery from javascript: (function(){ var node = document.createElement('script'); node.onload =

Re: [webkit-dev] safari extension script loading within injected file

2011-02-01 Thread Nick Guenther
Cluestick (or n00b question): What's 'document' within the extension scope? - Original message - Hello list, I am seeing some behavior that I cannot explain with a safari 5 extension. First, let me show a bit of code that works as expected outside the extension environment.  This