[Pkg-mozext-commits] [firebug] 02/16: Fix getThreadDebuggeeGlobalForContext for cross-origin frames
David Prévot
taffit at moszumanska.debian.org
Fri Feb 6 17:18:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit f1d652af83647d8fec5c12c2cca2e5de108843d7
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Tue Dec 30 15:46:59 2014 +0100
Fix getThreadDebuggeeGlobalForContext for cross-origin frames
---
extension/content/firebug/debugger/debuggerLib.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/extension/content/firebug/debugger/debuggerLib.js b/extension/content/firebug/debugger/debuggerLib.js
index ad44984..ba6eb00 100644
--- a/extension/content/firebug/debugger/debuggerLib.js
+++ b/extension/content/firebug/debugger/debuggerLib.js
@@ -209,6 +209,11 @@ DebuggerLib.getThreadDebugger = function(context)
*/
DebuggerLib.getThreadDebuggeeGlobalForContext = function(context, global)
{
+ // Fx27+; this works even with cross-origin frames.
+ var dbg = DebuggerLib.getThreadDebugger(context);
+ if (dbg && dbg.makeGlobalObjectReference)
+ return dbg.makeGlobalObjectReference(global);
+
var threadActor = DebuggerLib.getThreadActor(context.browser);
if (!threadActor || !threadActor.globalDebugObject)
return null;
--
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