Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 14871 by derrickorama: Userscripts applied to URL that's loaded  
in an iframe throws errors
http://code.google.com/p/chromium/issues/detail?id=14871

Chromium Version       : 3.0.190.0 (18901)
URLs (if applicable) :
Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 4:
   Firefox 3.x: OK
          IE 7:
          IE 8:

What steps will reproduce the problem?
1. Create a userscript that applies to a certain URL/page.
2. Create a page that loads this URL/page in an iframe.
3. Navigate to the page containing the iframe in Chromium.

What is the expected result?
Userscript runs on iframe just as it would if you had navigated to the page
inside the iframe (as the iframe is the URL where the script is being
applied).

What happens instead?
When you load the page with the userscript running, it throws security
errors (depending on what you're doing). For instance, if you have jQuery
in the script it throws an error: NO_MODIFICATION_ALLOWED_ERR: DOM
Exception 7. It seems like it believes I'm trying to manipulate the
elements in the iframe from outside the iframe.

Please provide any additional information below. Attach a screenshot if
possible.
I am able to run userscripts on iframes (by matching their URL) in Firefox
using Greasemonkey and I get no security errors. I am not accessing the
iframe from the container page, it should be running the script inside the
iframe as though I was viewing that page.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to