From b8affef2001b82e603d631eabba44f2545cfaf1c Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Fri, 19 Nov 2004 10:12:21 +0000 Subject: [PATCH] Fixing nasty bug which prevented Open/Load to work in GUI among other things: the debugger should enter context using factory.call(...) and not Context.call(...) as the default factory is not the one that is used by GUI. git-svn-id: svn://10.0.0.236/trunk@165510 18797224-902f-48f8-a5cc-f745e15eee43 --- .../toolsrc/org/mozilla/javascript/tools/debugger/Dim.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java b/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java index f410cbef380..7416f622eb0 100644 --- a/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java +++ b/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java @@ -66,6 +66,7 @@ class Dim { private volatile ContextData interruptedContextData = null; + ContextFactory contextFactory; private Object monitor = new Object(); private Object eventThreadMonitor = new Object(); private volatile int returnValue = -1; @@ -488,7 +489,7 @@ class Dim { void withContext() { - Context.call(this); + dim.contextFactory.call(this); } // ContextFactory.Listener interface @@ -537,6 +538,7 @@ class Dim { void attachTo(ContextFactory factory) { + this.contextFactory = factory; factory.addListener(new DimIProxy(this, IPROXY_LISTEN)); }