[Pkg-mozext-commits] [firebug] 44/59: Issue 7615: Event handler script replaces inline script source
David Prévot
taffit at moszumanska.debian.org
Thu Aug 14 14:52:56 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 54b89648b458cc39d9cc24c2a380a197670b4c17
Author: Florent FAYOLLE <florent.fayolle69 at gmail.com>
Date: Sat Aug 9 12:48:26 2014 +0200
Issue 7615: Event handler script replaces inline script source
---
.../content/firebug/debugger/script/sourceTool.js | 27 ++++++++++++----------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/extension/content/firebug/debugger/script/sourceTool.js b/extension/content/firebug/debugger/script/sourceTool.js
index 55ffe43..69c4624 100644
--- a/extension/content/firebug/debugger/script/sourceTool.js
+++ b/extension/content/firebug/debugger/script/sourceTool.js
@@ -757,18 +757,21 @@ function computeDynamicUrl(script, context)
var type = script.source.introductionType;
switch (type)
{
- case "eventHandler":
- uniqueUrl = url + id + " " + element.textContent;
-
- case "scriptElement":
- // xxxHonza: how else we could identify a <script> based Script if ID attribute
- // is not set and the xpath is like script[2]?
- uniqueUrl = url + id;
-
- case "eval":
- case "Function":
- // xxxHonza: TODO These URLs are already unique, but will be removed (see Bug 977255)
- uniqueUrl = url;
+ case "eventHandler":
+ uniqueUrl = url + id + " " + element.textContent;
+ break;
+
+ case "scriptElement":
+ // xxxHonza: how else we could identify a <script> based Script if ID attribute
+ // is not set and the xpath is like script[2]?
+ uniqueUrl = url + id;
+ break;
+
+ case "eval":
+ case "Function":
+ // xxxHonza: TODO These URLs are already unique, but will be removed (see Bug 977255)
+ uniqueUrl = url;
+ break;
}
// Workaround for issue 7521. Make sure dynamic scripts always have
--
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