Skip to content

Instantly share code, notes, and snippets.

@devinrhode2
Created March 27, 2012 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devinrhode2/2220237 to your computer and use it in GitHub Desktop.
Save devinrhode2/2220237 to your computer and use it in GitHub Desktop.
framing.... ARG!
I can either
1. Not give the frame top navigation permission, but ensure navigation occurs by intercepting requests, and making them occur in scout, in the frame. If the frame needs to take over the top frame, if can postMessage up and I can handle it intelligently.
2. Wrap all javascript in a spoofer, so it doesn't think it's in a frame. ...Still potentially has the issue of _top targeted links. onBeforeRequest can detect this, and point back to frame navigation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment