Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 768651 - Cfx run hangs on windows on sites using flash
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Krizsanits committed Jul 15, 2013
1 parent d717a91 commit 465b49e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions python-lib/mozrunner/winprocess.py
Expand Up @@ -330,13 +330,9 @@ def ErrCheckResumeThread(result, func, args):
GetExitCodeProcess.errcheck = ErrCheckBool

def CanCreateJobObject():
currentProc = GetCurrentProcess()
if IsProcessInJob(currentProc):
jobinfo = QueryInformationJobObject(HANDLE(0), 'JobObjectExtendedLimitInformation')
limitflags = jobinfo['BasicLimitInformation']['LimitFlags']
return bool(limitflags & JOB_OBJECT_LIMIT_BREAKAWAY_OK) or bool(limitflags & JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK)
else:
return True
# Running firefox in a job (from cfx) hangs on sites using flash plugin
# so job creation is turned off for now. (see Bug 768651).
return False

### testing functions

Expand Down

0 comments on commit 465b49e

Please sign in to comment.