X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=blobdiff_plain;f=chrome%2Fcontent%2Ficedeb.js;h=19cf1207f1a64fc3dc798c94ddb04d43353270ee;hp=742ca822dafc54c2a1631d55472f31e55995218b;hb=cf48a5c534dc3c9b62246b298be6c15e3d6e7737;hpb=233b8f5208d72f460fcb8637c27d8109b39dd940 diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js index 742ca82..19cf120 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -39,6 +39,7 @@ IceDeb = { word = word.replace(/^[^a-zA-Z0-9]+/, ''); word = word.replace(/[^a-zA-Z0-9]+$/, ''); + word = word.replace(/^Bug#/i, ''); } while ( oldword != word ); return word; @@ -129,6 +130,21 @@ IceDeb = { loadURI(uri); } }, + lookup_security: function(in_new) { + var keyword = IceDeb.trim_keyword(IceDeb.getClipboardText()); + var uri="http://security-tracker.debian.org/"; + + if (keyword) uri += "tracker/" + keyword; + + if (in_new) { + var b = getBrowser(); + var new_tab = b.addTab(uri); + b.selectedTab = new_tab; + } + else { + loadURI(uri); + } + }, btsButton: function (e) { if ( e.button == 0 ) @@ -165,6 +181,12 @@ IceDeb = { IceDeb.lookup_buildd(false) else if ( e.button == 1 ) IceDeb.lookup_buildd(true); + }, + securityButton: function (e) { + if ( e.button == 0 ) + IceDeb.lookup_security(false) + else if ( e.button == 1 ) + IceDeb.lookup_security(true); } }