The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Javascript Security Problems in 11.52.1100

Forums » Opera for Windows/Mac/Linux » Opera for Windows

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

22. November 2011, 01:59:39

grantph

Posts: 1

Javascript Security Problems in 11.52.1100

I tried searching the forum for an answer on this but the Opera Forum website keeps throwing exceptions - Guru Meditations - cute Amiga reference smile

Prior to 11.52.1100, we were able to use an iframe within the same secure domain and access the top javascript variable. Since 11.52, we now get undefined.

Example

Master Page - https://mysite/mypage
IFrame Page - https://mysite/iframepage

IFrame page has some javascript that accesses the 'top' variable to access the Master Page and perform javascript operations.

My understanding is that this should be permitted. It tests okay in every other browser and previous versions of Opera. But not 11.52.1100.

Was this changed intentionally for some obscure security reason? Or is there a bug in the build?

Any thoughts appreciated!

Regards, Grant.

22. November 2011, 14:17:05

burnout426

Posts: 13202

I tried:

window.addEventListener("DOMContentLoaded", function() {
    alert(top.document.body.innerHTML);
}, false);


in the framed page in 11.52 and 12.x and it alerts the innerHTML of the parent's body.

Could you just show full markup examples of both the parent and framed page of a demo that reproduces the problem?

Forums » Opera for Windows/Mac/Linux » Opera for Windows