diff options
-rw-r--r-- | data/rhlib/rhbzpage.js | 3 | ||||
-rw-r--r-- | lib/libbugzilla.js | 5 | ||||
-rw-r--r-- | lib/main.js | 4 |
3 files changed, 2 insertions, 10 deletions
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index abc84c7..eb10238 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -271,7 +271,8 @@ function displayResultsInPanel(results) { innerString += "No matching lines found!"; } - self.postMessage(new Message("OpenStringInPanel", + self.postMessage(new Message("OpenURLinPanel", + 'data:text/html;charset=utf-8,' + '<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">' + "<html><head><title>Xorg.0.log analysis</title></head><body><pre>\n" + innerString.trim() + diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index f7ae37b..928555e 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -248,11 +248,6 @@ exports.setClipboard = function setClipboard(stuff) { clipboard.set(stuff, "text"); }; -exports.openStringInNewPanel = function openStringInNewPanel(inHTMLStr) { - openURLInNewPanel("data:text/html;charset=utf-8," + - inHTMLStr); -}; - var openURLInNewPanel = exports.openURLInNewPanel = function openURLInNewPanel(url) { var panel = panelMod.Panel({ contentURL: url, diff --git a/lib/main.js b/lib/main.js index 6a5e58c..0beb947 100644 --- a/lib/main.js +++ b/lib/main.js @@ -77,10 +77,6 @@ var messageHandler = exports.messageHandler = function messageHandler( case "OpenURLinTab": libbz.openURLInNewTab(msg.data); break; - // Needed because Panel is add-on module - case "OpenStringInPanel": - libbz.openStringInNewPanel(msg.data); - break; // Needed because creating additional page-mods on remote bugzilla case "OpenBugUpstream": libbz.createUpstreamBug(msg.data.url, msg.data.subject, |