There is a button to open/start our web based help-desk-app in a new window which is located on another server/domain (domain2).
The window-object is then stored in a global js-var (winHD).
This works ok and fine for the first time to open it, but when we hit the button again there is a check if it is already opened (to open it again or to bring it back to focus).
This check leads to the following error:
"Permission denied to access property 'valueOf'"
Code-row is : var show=(winHD=="");
(see below)
I assume this is because of the new security restrictions/limitations comes
with ff 4 since it works ok and fine in ff 3.x
I think it's because of the default "same origin" security policy,
preventing cross-site scripting attacks.
Is there a way to go around that and to enable xss via about:config prefs?
I want to give "allAccess" scripting for domain1 and domain2.
How can i do that?
Regards,
Bernd
---
PS: Here's some code of domain 1. DoShowHD is called onclick on the button i mentioned.
var winHD="";
function DoShowHD(intern) {
var intern = intern || 0;
var show=(winHD=="");
if (!show) {
try {
if (winHD.closed==true) {
show=true;
} else {
winHD.focus();
if (intern==1) {
winHD.location.href='http://<domain2>/...';
}
}
} catch(e) {
show = true;
}
}
if (!show) { return; }
LoginHD(intern);
}
function LoginHD(intern,ext) {
var ext = ext || "";
if (ext!='') myUrl=myUrl+ext;
winHD = OpenHDWindow(myUrl);
}
function OpenHDWindow(url) {
var myWidth=screen.availWidth-10;
var myHeight=screen.availHeight-150;
return window.open(url,"","width="+myWidth+",height="+myHeight+",left=0,top=0,resizable=yes,scrollbars=yes,toolbar=yes,location=yes,menubar=yes,status=yes");
}
That would be fine.
Thx
Bernd
> did anyone led me to a better place to ask such questions?
>
What is the question?
Very funny!
--- Original Message ---
Why is this "funny", you didn't state or ask any questions in the body
of your post. The subject says something about your issue but you should
ask your question in detail in the body of your post, thanks.
If we know the answer(s) it will be posted in a reply and if not then we
will advise you of a better group to ask.
--
*Jay Garcia - Netscape Champion*
www.ufaq.org
Netscape - Firefox - SeaMonkey - Thunderbird
Hi Bernd,
It's not funny to people who try to answer questions, if you expect someone
to read the subject line to find out what the question is. But even so there is
only one question -- is this the place to ask a question.
The answer basically is depends on the question, what is the question.
The answer was probably asking you for
the question so you could presumably be told the answer or where to ask it instead.
Even if I look at the subject there is only one question I see.
Including the subject does not say what you want to know or expect or where
this came up. (How, when, why, where, how much? -- try to minimize useless
back and forward feedback asking for more information)
I expect you'd want to check these out: and as one can see there is more
to the message than you provided. These were from a Google search including the quotes:
firefox "Permission denied to access property"
and as you can see those question include more detail than you provided.
I keep getting this error "JavaScript Application Error: Permission denied to access property 'host'", mostly appears when using
Facebook. | Firefox Support Forum | Firefox Help
http://support.mozilla.com/en-US/questions/769313
Issue 2075 - fbug - Permission denied to access property 'XYZ' from a non-chrome context on Fx anonymous-div inside INPUT - Web
development evolved - Google Project Hosting
http://code.google.com/p/fbug/issues/detail?id=2075
We'll need some more info about your Firefox setup. Go to
Help-->Troubleshooting_Information, then click [Copy all to Clipboard].
Open a reply to this post, and go to Edit-->Paste to paste the info from
your Troubleshooting Information page.
--
Chris Ilias <http://ilias.ca>
Mailing list/Newsgroup moderator
Glad you're amused.
I think its funny asking for an answer to no question,,,
But here it is once more:
------------------
> Sorry, i don't know that nobody read my first/original post.
> Don't want to post it double.
>
I don't remember ever seeing 1st post but I'm not as attentive as others
here.
Your issue should probably be asked at the newsgroup
mozilla.dev.apps.firefox.
This group is for basic user support, which is not to say that someone
here can't answer your question - it just isn't a normal issue faced here.
I think that may be a result of posting via the new Google Groups
interface. Each message from GG appears as a new thread.
If you go to <https://groups.google.com/forum/#!overview>, you should
see a link in the blue box in the top right, to switch back to the old
version.