I have popup window that is opened through a button click. If the user searches for a particular item in the child window, I attempt to switch the parent windows location by using window.opener.location in the child window. The parent window will always stay within the same website. This works fine in FireFox 3.07 & 3.1 b3, and IE 7&8. But in Chrome 2.0b (dev branch) and Safari 4 Beta (for Windows) i get this strange error:
Unsafe JavaScript attempt to initiate a navigation change for frame with URL
Here is the weird thing, in Safari it never works, but in Chrome it works if:
*Child window is same protocol(HTTP/HTTPS) as the text i am using setting window.opener.location
*Parent window and child window are the same protocol(HTTP/HTTPS)
edit: In Opera it only works if both the parent and child window are HTTPS...