Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Preventing framebreaking code from working

0 views
Skip to first unread message

Hardip

unread,
Dec 29, 2009, 9:54:42 AM12/29/09
to
if you have a page that contains iframes and one of the iframes
contains the following code:
http://pastebin.mozilla.org/693696
then the structure of the page is broken and the iframe has "broken
out of the frames". this is a security measure (sort of) for the
owners of the iframed pages who don't want their content to be framed
like that.
there's no way to overcome it via simple Javascript from the HTML
document itself

however, since extensions have more power in this area, is there a way
to disable framebreaking code with an extension running in browser.xul
scope.
in other words, i need to disable, for a certain tab's window, the
javascript calls of its iframes that could change the top.location
property

i have tried to watch for the change of top.location, but it just
doesn't seem to work.

any ideas?

0 new messages