Advertisement

07.03.2008 at 08:53AM PDT, ID: 23537278
[x]
Attachment Details

Fail to access JS functions in a signed script

Asked by TegRND in Firefox Web Browser, JavaScript, Mozilla Web Browser

Tags: , , , , ,

In our web application we need to read/write several values from the registry, in order to achieve it we use the XPCOM interface in a script and signed it. (DRM.jar)

Our web app loads that Jar file in a hidden IFRAME ("DrmIFrame").
where its src="jar:DRM.jar!/DRM_FF_WIN.htm

And access/invoke its internal JS function in the following way
document.getElementById("DrmIFrame").contentWindow.GetClientID()

Its all works fine till the release of FireFox 3.0.

When trying to invoke the GetClientID function I had an exception which says: Permission denied to get property Window.GetClientID.

Then Ive tried asking for UniversalBrowserRead permission and yet got another exception:
document.getElementById("DrmIFrame").contentWindow. GetClientID is not a function.

My question is how I can access JS function in sign scripts in FireFox 3.0.Start Free Trial
[+][-]07.03.2008 at 09:07AM PDT, ID: 21926812

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 05:30AM PDT, ID: 21962781

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Firefox Web Browser, JavaScript, Mozilla Web Browser
Tags: FireFox Mozila, FireFox, 3.0, Sign Code, JavaScript, FireFox 3.0
Sign Up Now!
Solution Provided By: sybe
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628