/panels.rdf */
+ var sidebar_file = directory_service.get(panels_file_id, Components.interfaces.nsIFile);
+
+ var io_service = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
+ var url = io_service.newFileURI(sidebar_file).QueryInterface(Components.interfaces.nsIFileURL);
+
+ return url.spec;
+ } catch (ex) {}
+}
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/content/contents.rdf 0.15-0ubuntu2/chrome/livehttpheaders.jar!/content/contents.rdf
--- 0.14-1/chrome/livehttpheaders.jar!/content/contents.rdf 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/content/contents.rdf 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ chrome://livehttpheaders/content/PageInfoOverlay.xul
+
+
+ chrome://livehttpheaders/content/TasksOverlay.xul
+
+
+ chrome://livehttpheaders/content/PageInfoOverlay.xul
+
+
+ chrome://livehttpheaders/content/TasksOverlay.xul
+
+
+
+
+
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/content/headerinfo.js 0.15-0ubuntu2/chrome/livehttpheaders.jar!/content/headerinfo.js
--- 0.14-1/chrome/livehttpheaders.jar!/content/headerinfo.js 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/content/headerinfo.js 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,99 @@
+// Utility function, dump an object by reflexion up to niv level
+function dumpall(name,obj,niv) {
+ if (!niv) niv=1;
+ var dumpdict=new Object();
+
+ dump ("\n\n-------------------------------------------------------\n");
+ dump ("Dump of the objet: " + name + " (" + niv + " levels)\n");
+ dump ("Address: " + obj + "\n");
+ dump ("Interfaces: ");
+ for (var i in Components.interfaces) {
+ try {
+ obj.QueryInterface(Components.interfaces[i]);
+ dump(""+Components.interfaces[i]+", ");
+ } catch (ex) {}
+ }
+ dump("\n");
+ _dumpall(dumpdict,obj,niv,"","");
+ dump ("\n\n-------------------------------------------------------\n\n");
+
+ for (i in dumpdict) {
+ delete dumpdict[i];
+ }
+}
+function _dumpall(dumpdict,obj,niv,tab,path) {
+
+ if (obj in dumpdict) {
+ dump(" (Already dumped)");
+ } else {
+ dumpdict[obj]=1;
+
+ var i,r,str,typ;
+ for (i in obj) {
+ try {
+ str = String(obj[i]).replace(/\n/g,"\n"+tab);
+ } catch (ex) {
+ str = String(ex);
+ }
+ try {
+ typ = ""+typeof(obj[i]);
+ } catch (ex) {
+ typ = "unknown";
+ }
+ dump ("\n" + tab + i + " (" + typ + (path?", " + path:"") +"): " + str);
+ if ((niv>1) && (typ=="object")) {
+ _dumpall(dumpdict,obj[i],niv-1,tab+"\t",(path?path+"->"+i:i));
+ }
+ }
+ }
+}
+
+// Utility function to save data to clipboard
+function toClipboard(data) {
+ if (data) {
+ // clipboard helper
+ try
+ {
+ const clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
+ clipboardHelper.copyString(data);
+ } catch(e) {
+ // do nothing, later code will handle the error
+ dump("Unable to get the clipboard helper\n");
+ }
+ }
+}
+
+// Utility function to save data to a file
+function saveAs(data, title)
+{
+ if (!title) title = "LiveHTTPHeaders";
+ const MODE = 0x2A; // MODE_WRONLY | MODE_CREATE | MODE_TRUNCAT
+ const PERM = 00644; // PERM_IRUSR | PERM_IWUSR | PERM_IRGRP | PERM_IROTH
+ const PICKER_CTRID = "@mozilla.org/filepicker;1";
+ const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1";
+ const nsIFilePicker = Components.interfaces.nsIFilePicker;
+ const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream;
+
+ try {
+ var picker = Components.classes[PICKER_CTRID].createInstance(nsIFilePicker);
+ picker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);
+ picker.init (window, title, Components.interfaces.nsIFilePicker.modeSave);
+ var rv = picker.show();
+
+ if (rv != Components.interfaces.nsIFilePicker.returnCancel) {
+ var os = Components.classes[FILEOUT_CTRID].createInstance(nsIFileOutputStream);
+ os.init(picker.file, MODE, PERM, 0);
+ os.write(data, data.length);
+ }
+ } catch (ex) {
+ alert(ex);
+ }
+}
+
+function checkForUpdate(version)
+{
+ var url = "http://livehttpheaders.mozdev.org/";
+ if (version) { url += "?ver=" + version; }
+ document.commandDispatcher.focusedWindow.open(url);
+}
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/PageInfo.dtd 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/PageInfo.dtd
--- 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/PageInfo.dtd 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/PageInfo.dtd 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/contents.rdf 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/contents.rdf
--- 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/contents.rdf 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/contents.rdf 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator-help.xul 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator-help.xul
--- 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator-help.xul 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator-help.xul 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,156 @@
+
+
+
+
+
+ %generatorHelpDTD;
+ " >
+]>
+
+
+
+
+
+The Generator Tool
+
+
+The &space;Generator&space; tool
+is an extension to &space;LiveHTTPHeaders.
+It may be used to feed load test tools like &space;
+Apache-Flood
+&space; or other tools for a kind of web based unit tests.
+
+
+The idea is to sample the pages visited with Mozilla
+in a simple line based ASCII file and
+to transform this file to the designated load test tool
+using an external script by yourself.
+This means: generate a test plan by using a browser instead of coding it.
+Of course the resulting testplan may be further attributed.
+
+
+BUGS:
+Currently redirected requests are not linked together.
+This results in filter bugs as mentioned in the text below.
+
+
+
+List of options
+
+
+
+ - &generator.option.redirect;
+ - &generator.popup.redirect;.
+
+ You usually don't want to check it,
+ at least if your backend supports redirection.
+
+
+ - &generator.option.invalid;
+ - &generator.popup.invalid;.
+
+ These codes indicate client and server errors, see &space;
+ RFC 2616.
+
+ BUG: This won't work correctly if requests are redirected.
+
+
+ - &generator.option.image;
+ - &generator.popup.image;.
+
+ BUG: This won't work correctly if requests are redirected.
+
+
+ - &generator.option.css;
+ - &generator.popup.css;.
+
+ BUG: This won't work correctly if requests are redirected.
+
+
+ - &generator.option.skipped;
+ - &generator.popup.skipped;.
+
+ These requests display in a commentary form written as
+ &space;#somewhat#&space; at the beginning
+ of the line and can easily be filtered afterwards.
+
+
+ - &generator.option.request;
+ - &generator.popup.request;.
+
+ The filters are currently attached to HTTP responses,
+ so we are interested in HTTP responses.
+ However, Mozilla sometimes consults its internal cache,
+ even if all caches are off and cleared.
+ So in this case there is no response.
+
+ Caveat:
+ This option always displays in the commentary form and
+ is not affected by the &generator.option.skipped; option.
+
+
+
+
+
+Format
+
+All request display in a single line each,
+which displays in the following format:
+
+[comment] method url [data]
+
+The elements within a line are separated by white space.
+Description of elements:
+
+- comment
-
+Comments will be displayed if
+&space;&generator.option.skipped;&space; or
+&space;&generator.option.request;&space; are checked.
+The format is &space;
#somewhat#
,
+where &space;somewhat&space; designates the category of this request.
+
+- method
-
+ The HTTP method, usually GET or POST
+
+- url
-
+ The URL requested.
+
Note:
+ It may start with &space;http://
&space; or may not.
+ This depends upon your browser and whether a proxy is used.
+
+- data
-
+ For method POST there is an additional data segment.
+ It is coded as &space;
opt1&opt2&...
+
+
+
+
+Author
+
+Stefan Trcek, ABAS Software AG
+
+
+Licence
+
+
+ Copyright(c) 2004 &space;ABAS Software AG
+ based on LiveHTTPHeaders Copyright(c) 2002-2003 Daniel Savard.
+
+
+ This program is free software; you can redistribute it and/or modify it under
+ the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your option)
+ any later version.
+
+
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator.dtd 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator.dtd
--- 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator.dtd 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/generator.dtd 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.dtd 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.dtd
--- 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.dtd 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.dtd 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.properties 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.properties
--- 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.properties 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/livehttpheaders.properties 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1 @@
+extensions.{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}.description=View HTTP headers of a page and while browsing.
diff -pruN 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/registerComponent.html 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/registerComponent.html
--- 0.14-1/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/registerComponent.html 1970-01-01 01:00:00.000000000 +0100
+++ 0.15-0ubuntu2/chrome/livehttpheaders.jar!/locale/cs-CZ/livehttpheaders/registerComponent.html 2009-08-21 11:56:18.000000000 +0100
@@ -0,0 +1,26 @@
+
+
+
+
+
+ Nepodailo se sprvn zaregistrovat komponentu nsheaderinfo
+
+
+Pro sprvnou funkci Hlaviek HTTP v panelu informac prohlee Mozilla, i Mozilla Firefox je poteba registorvat komponentu nsheaderinfo.
Tato komponenta se nachz v souboru mozilla/components/nsheaderinfo.js.
+Registrace komponenty mla probhnout automaticky pi instalaci, bohuel se tak nestalo. Provete prosm nsledujc kroky, kter umon prohlei nalzt a registorvat tuto komponentu.
+
+ - Smate soubor
mozilla/components/compreg.dat
+ - Smate soubor
mozilla/components/xpti.dat
+
+Tyto dva soubory by se mli automaticky obnovit po restartu balku Mozilla, i prohlee Mozilla Firefox.
+
+
+These two files should be recreated automatically by Mozilla or Firefox
+when it is next started.
+
+Note: if you installed LiveHTTPHeaders in you profile, there
+is a copy of the nsHeadersInfo.js file in your profile/components directory.
+You need to copy it in Mozilla/Components directory first and follow the
+directive above after.
+