[Pkg-mozext-commits] [firebug] 03/17: #7948 Fix "href is null" appearing in the console

David Prévot taffit at moszumanska.debian.org
Fri Oct 30 19:16:18 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 95310817ee82b8dbf66b6e2e6098ddeb84232114
Author: Florent Fayolle <florent.fayolle69 at gmail.com>
Date:   Thu Oct 1 13:36:15 2015 +0200

     #7948 Fix "href is null" appearing in the console
    
    The backend may send a null source location in for a frame.
---
 extension/content/firebug/debugger/stack/stackFrame.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extension/content/firebug/debugger/stack/stackFrame.js b/extension/content/firebug/debugger/stack/stackFrame.js
index 12c91fd..ec04a13 100644
--- a/extension/content/firebug/debugger/stack/stackFrame.js
+++ b/extension/content/firebug/debugger/stack/stackFrame.js
@@ -354,7 +354,7 @@ StackFrame.removeChromeFrames = function(trace)
     for (var i = 0; i < frames.length; i++)
     {
         var href = frames[i].href;
-        if (href.startsWith("chrome:") || href.startsWith("resource:"))
+        if (href && (href.startsWith("chrome:") || href.startsWith("resource:")))
             continue;
 
         // xxxFlorent: should be reverted if we integrate

-- 
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