X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=blobdiff_plain;f=chrome%2Fcontent%2Ficedeb.js;h=e6c7adbcc2f0b3d4d487cb5ff04a607c5701e20b;hp=742ca822dafc54c2a1631d55472f31e55995218b;hb=9c0f9450341bf66a1c317322527427a7b834ae28;hpb=233b8f5208d72f460fcb8637c27d8109b39dd940 diff --git a/chrome/content/icedeb.js b/chrome/content/icedeb.js index 742ca82..e6c7adb 100644 --- a/chrome/content/icedeb.js +++ b/chrome/content/icedeb.js @@ -129,6 +129,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 +180,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); } }