nntoan / scriptify

Automatically exported from code.google.com/p/scriptify
MIT License
0 stars 0 forks source link

Doesn't work in iFrames #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a webpage with an iFrame, say with src="<iframeUrl>"
2. Now define a greasemonkey script to work on iframeUrl. (so, iframeUrl will 
be in its include list)
3. Open/Refresh the main parent page. GreaseMonkey would run perfectly on that 
page containing the iframe, but Scriptified add-on doesn't. 
4. Also, try right clicking the iframe and say This Frame->'Open in New Tab'. 
As soon as that iframe opens in a new tab (where the scriptified add-on works), 
the add-on *now* instantly works on the main container page as well. 

What is the expected output? What do you see instead?
The scriptified add-on should work directly on the container page without 
opening a frameless page. 

What version of the product are you using? On what operating system?
Scriptify 0.2.5

Please provide any additional information below.
Firefox 26/27.

Original issue reported on code.google.com by piyushs...@gmail.com on 14 Feb 2014 at 1:34

GoogleCodeExporter commented 9 years ago
Please note that all this works perfectly with arantius's GreaseMonkey 
compiler. Just doesn't work with Scriptify. 

Original comment by piyushs...@gmail.com on 14 Feb 2014 at 1:37

GoogleCodeExporter commented 9 years ago
It works as expected for me in iframes, and the code doesn't work in a way that 
should lead to iframes being treated any different from top-level documents. 
Can you provide an example add-on.

Original comment by maglion...@gmail.com on 14 Feb 2014 at 10:24