[Pkg-mozext-commits] [firebug] 28/35: Issue 7473: Jump to functions doesn't work within frames

David Prévot taffit at moszumanska.debian.org
Sat May 24 14:54:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firebug.

commit 1722eee690e6ab649eb12f4e8b9c614105fcf128
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Fri May 23 08:58:43 2014 +0200

    Issue 7473: 	Jump to functions doesn't work within frames
---
 extension/content/firebug/debugger/script/sourceFile.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/extension/content/firebug/debugger/script/sourceFile.js b/extension/content/firebug/debugger/script/sourceFile.js
index d8ce172..7da819f 100644
--- a/extension/content/firebug/debugger/script/sourceFile.js
+++ b/extension/content/firebug/debugger/script/sourceFile.js
@@ -17,6 +17,7 @@ function(Firebug, FBTrace, Events, Str, Url, DebuggerLib, SourceLink, NetUtils)
 // ********************************************************************************************* //
 // Constants
 
+var Cu = Components.utils;
 var Cc = Components.classes;
 var Ci = Components.interfaces;
 
@@ -223,7 +224,8 @@ SourceFile.getSourceFileByUrl = function(context, url)
 
 SourceFile.findScriptForFunctionInContext = function(context, fn)
 {
-    var dbgGlobal = DebuggerLib.getThreadDebuggeeGlobalForContext(context);
+    var global = Cu.getGlobalForObject(fn);
+    var dbgGlobal = DebuggerLib.getThreadDebuggeeGlobalForContext(context, global);
     if (!dbgGlobal)
     {
         Trace.sysout("sourceFile.findScriptForFunctionInContext; no debugger");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list