[SERVER-2049] killOp doesn't work for js in xulrunner-1.9.2 Created: 02/Nov/10  Updated: 31/Jan/12  Resolved: 31/Jan/12

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Antoine Girbal
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Isolated issue to xulrunner-1.9.2
This is the default for ubuntu 10.04 for example.
If you don't have a good env for testing this assign back to me.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 31/Jan/12 ]

No longer support xulrunner

Comment by Eliot Horowitz (Inactive) [ 05/Dec/10 ]

Only should do this if don't switch to v8

Comment by Aaron Staple [ 02/Nov/10 ]

ok assigning to you as a reminder then

Comment by Eliot Horowitz (Inactive) [ 02/Nov/10 ]

I can take a 1st look when i'm back in ny next week

Comment by Aaron Staple [ 02/Nov/10 ]

This may be related to the ifdefs below - I'm not sure both cases are tested:

void installInterrupt( int timeoutMs ) {
if ( timeoutMs != 0 || ScriptEngine::haveCheckInterruptCallback() )

{ TimeoutSpec *spec = new TimeoutSpec; spec->timeout = boost::posix_time::millisec( timeoutMs ); spec->start = boost::posix_time::microsec_clock::local_time(); spec->count = 0; JS_SetContextPrivate( _context, (void*)spec ); #if defined(SM181) && !defined(XULRUNNER190) JS_SetOperationCallback( _context, _interrupt ); #else JS_SetBranchCallback( _context, interrupt ); #endif }

}

void uninstallInterrupt( int timeoutMs ) {
if ( timeoutMs != 0 || ScriptEngine::haveCheckInterruptCallback() )

{ #if defined(SM181) && !defined(XULRUNNER190) JS_SetOperationCallback( _context , 0 ); #else JS_SetBranchCallback( _context, 0 ); #endif delete (TimeoutSpec *)JS_GetContextPrivate( _context ); JS_SetContextPrivate( _context, 0 ); }

}

Don't really have a good testing env, but I could get a ubuntu image or something if that makes sense.

Generated at Thu Feb 08 02:58:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.