window.close in JS causes Firefox 8 to crash

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
agordon10
Posts: 133
Joined: Sun Jun 10, 2007 8:10 pm

window.close in JS causes Firefox 8 to crash

Post by agordon10 » Fri Jan 06, 2012 6:33 pm

I run a batch script which ends in me wanting firefox to close.

I updated to firefox 8 and it crashes upon truing to close thru the window.close command.

Anyone seeing this issue?
Tom, Tech Support
Posts: 3613
Joined: Mon May 31, 2010 4:59 pm

Re: window.close in JS causes Firefox 8 to crash

Post by Tom, Tech Support » Thu Jan 12, 2012 11:18 am

Hi agordon10,

Can you post a snippet of your batch file / and or script that causes the crash?
Regards,

Tom, iMacros Support
agordon10
Posts: 133
Joined: Sun Jun 10, 2007 8:10 pm

Re: window.close in JS causes Firefox 8 to crash

Post by agordon10 » Thu Jan 12, 2012 11:51 am

this is the whole script

i = iimPlay("Macros/011212Hourly")
i = iimPlay("Macros/011312Hourly")
i = iimPlay("Macros/011412Hourly")
i = iimPlay("Macros/011512Hourly")
i = iimPlay("Macros/011612Hourly")
i = iimPlay("Macros/012212Hourly")
i = iimPlay("Macros/012312Hourly")
i = iimPlay("Macros/012812Hourly")
i = iimPlay("Macros/012912Hourly")
i = iimPlay("Macros/013012Hourly")
i = iimPlay("Macros/013112Hourly")
i = iimPlay("Macros/020412Hourly")
i = iimPlay("Macros/020512Hourly")
i = iimPlay("Macros/020612Hourly")
i = iimPlay("Macros/020712Hourly")
i = iimPlay("Macros/020912Hourly")
i = iimPlay("Macros/021012Hourly")

window.close(1)
siniy
Posts: 118
Joined: Sat Nov 07, 2009 7:44 pm

Re: window.close in JS causes Firefox 8 to crash

Post by siniy » Fri Jan 13, 2012 1:09 pm

As far as I know firefox is closed when one remaining tab is closed. Try this code:

Code: Select all

TAB CLOSEALLOTHERS
TAB CLOSE
agordon10
Posts: 133
Joined: Sun Jun 10, 2007 8:10 pm

Re: window.close in JS causes Firefox 8 to crash

Post by agordon10 » Fri Jan 13, 2012 2:32 pm

that is for macros, not for javascripts.
siniy
Posts: 118
Joined: Sat Nov 07, 2009 7:44 pm

Re: window.close in JS causes Firefox 8 to crash

Post by siniy » Fri Jan 13, 2012 4:10 pm

Code: Select all

var macro;
macro =  "CODE:";
macro +=  "TAB CLOSEALLOTHERS" + "\n"; 
macro +=  "TAB CLOSE" + "\n"; 
iimPlay(macro)
agordon10
Posts: 133
Joined: Sun Jun 10, 2007 8:10 pm

Re: window.close in JS causes Firefox 8 to crash

Post by agordon10 » Fri Jan 13, 2012 5:20 pm

Thanks, but that doesn't solve the issue I have.
Tom, Tech Support
Posts: 3613
Joined: Mon May 31, 2010 4:59 pm

Re: window.close in JS causes Firefox 8 to crash

Post by Tom, Tech Support » Tue Jan 24, 2012 10:08 pm

Hi agordon10,

Sorry for the late reply.

I added window.close(1) to the end of the Self-Test.js demo script that installs with iMacros and ran it in Firefox 8.0.1 using iMacros 7.4.0.8 and I do not experience a crash.

It sounds like it could be a machine or profile-specific issue. Do you have access to another computer you can test it on?
Regards,

Tom, iMacros Support
agordon10
Posts: 133
Joined: Sun Jun 10, 2007 8:10 pm

Re: window.close in JS causes Firefox 8 to crash

Post by agordon10 » Mon Feb 20, 2012 3:10 pm

here is the error message imacros gives

ReferenceError: windows is not defined (Error code: 991)
Tom, Tech Support
Posts: 3613
Joined: Mon May 31, 2010 4:59 pm

Re: window.close in JS causes Firefox 8 to crash

Post by Tom, Tech Support » Tue Feb 21, 2012 1:11 am

agordon10 wrote:here is the error message imacros gives

ReferenceError: windows is not defined (Error code: 991)
Did you incorrectly type "windows" in your macro instead of "window"?
Regards,

Tom, iMacros Support
agordon10
Posts: 133
Joined: Sun Jun 10, 2007 8:10 pm

Re: window.close in JS causes Firefox 8 to crash

Post by agordon10 » Tue Feb 21, 2012 2:07 am

it is windows, but I haven't changed it in forever, weird, i'll see if the problem continues now.
garzew2
Posts: 26
Joined: Sat Aug 28, 2010 8:54 pm

Re: window.close in JS causes Firefox 8 to crash

Post by garzew2 » Thu Feb 23, 2012 8:23 pm

Hello. I have simple js

Code: Select all

window.close()
and ihave similar specific problem with this comand.
If i run this script when iOpus iMacros sidebar is open script work fine.
But if iOpus iMacros sidebar is closed and then i run macro it close firefox but return an crushreport.
Can you help me?

1.VERSION BUILD=7401110
2.Operating sysytem: win7, testing too on winxp but same result
3.testing on firefox 8.0, 10.0
agordon10
Posts: 133
Joined: Sun Jun 10, 2007 8:10 pm

Re: window.close in JS causes Firefox 8 to crash

Post by agordon10 » Thu Feb 23, 2012 8:31 pm

mine crashes still as well.
garzew2
Posts: 26
Joined: Sat Aug 28, 2010 8:54 pm

Re: window.close in JS causes Firefox 8 to crash

Post by garzew2 » Thu Feb 23, 2012 10:53 pm

This is very annoying bug. :evil: :evil:
Hope that admins will fix this in next update :idea: :idea: :idea:
garzew2
Posts: 26
Joined: Sat Aug 28, 2010 8:54 pm

Re: window.close in JS causes Firefox 8 to crash

Post by garzew2 » Wed Feb 29, 2012 7:32 pm

Hello. I find a temporary way how to solve this. In mine case this error won't make any damage to firefox, so i rename program crashreporter.exe in firefox install directory. And now there is no crases. 8)
Post Reply