Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on Problems with iframes within the Plugins Development section, part of the Chrome Plugins category: Hey everyone, I am building a plugin for chrome atm and I am having trouble getting it to work reliably. ...


  1. #1
    Mesafina is offline Junior Member
    Join Date
    Oct 2009
    Posts
    2

    Smile Problems with iframes

    Hey everyone, I am building a plugin for chrome atm and I am having trouble getting it to work reliably. Here's what it needs to do:

    When a user navigates to a webpage, it needs to clear all the html from the page, insert and iframe, and then load the current page inside the iframe.

    I have it set up and it works just fine on some sites right now, but on some sites that have alot of ads and javascript, sometimes even deleting the entire head and body tags of all their content doesn't seem to work, somehow javascript files still are getting injected into the body of the document.

    Does anyone know why this might be happening? I would have thought that by deleting all the contents of the page, and then reloading the page in an iframe, there would be no way that the page could manipulate the DOM outside of the iframe.

    Thanks in advance for your help!

  2. #2
    deVars's Avatar
    deVars is offline Member
    Join Date
    Oct 2009
    Posts
    44

    Default

    Hi Mesafina,

    They use a technique called "frame busting". If you could take out the script that runs the frame buster then you'll be okay.

    http://scriptplayground.com/tutorials/js/Frame-Busting/
    Lead me not into temptation,
    I already know the way.

Similar Threads

  1. problems with javascript
    By p.fil in forum Chrome Troubleshooting
    Replies: 1
    Last Post: 10-04-2009, 03:19 AM
  2. A couple of problems...
    By grosella in forum Chrome Troubleshooting
    Replies: 13
    Last Post: 09-23-2009, 03:28 PM
  3. pogo problems
    By needa in forum Bugs and Vulnerabilities
    Replies: 0
    Last Post: 02-18-2009, 05:52 PM
  4. load links as hidden iframes
    By David in forum Chrome Talk
    Replies: 0
    Last Post: 12-20-2008, 03:13 PM
  5. Iframes in a separate process?
    By baconbutty in forum Chrome Talk
    Replies: 0
    Last Post: 09-24-2008, 09:38 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •