divyang4481 / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

evaluateJavascript always throws an exception on IE #111

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call BrowserHost::evaluateJavaScript( "alert('test')" ) on IE

What is the expected output?
- An alert in the browser.

What do you see instead?
- The call throws a script_error exception with the message "Error executing 
JavaScript code"

What version of FireBreath are you using? On what operating system and
browsers?
- Firebreath changelist 88f6a8e664 from hg
- Windows Vista Ultimate SP2
- IE 8

Please provide any additional information below.
- In ActiveXBrowserHost::evaluateJavaScript, m_htmlWin->execScript returns 
E_ACCESSDENIED as a HRESULT.

Original issue reported on code.google.com by jaz...@gmail.com on 22 Nov 2010 at 11:22

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I added the following method to FBTestPluginAPI:

void FBTestPluginAPI::eval(std::string str)
{
    m_host->evaluateJavaScript(str);
}

I then from javascript executed: plugin().eval("alert('Test')")

it works just fine for me using IE 8 on Windows 7 with FireBreath 1.3.1

Could you send me a project that reproduces the issue?

Original comment by taxilian on 29 Nov 2010 at 8:20

GoogleCodeExporter commented 8 years ago

Original comment by taxilian on 29 Nov 2010 at 8:23

GoogleCodeExporter commented 8 years ago
Since I haven't been able to reproduce this and it's been nearly a month since 
I requested feedback, we will close this issue unless jazzzz comes back to tell 
us that there is still a problem.

Original comment by richarda...@gmail.com on 21 Dec 2010 at 10:59