Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
trying new way of getting indexedDB manager object for newer versions…
Browse files Browse the repository at this point in the history
… of Firefox;

new metrics collection added for some important event types;
updated translations;
1.3.0b2
  • Loading branch information
luckyrat committed Jan 21, 2014
1 parent ad2f295 commit 2f746e2
Show file tree
Hide file tree
Showing 30 changed files with 153 additions and 26 deletions.
3 changes: 3 additions & 0 deletions Firefox addon/Firefox addon.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ echo POSTBUILDSTEP for $(ProjectName) COMPLETED OK
<None Include="KeeFox\chrome\skin\KeeOrange24.png" />
<None Include="KeeFox\chrome\skin\key-highlighted.png" />
<None Include="KeeFox\chrome\skin\main.png" />
<None Include="KeeFox\modules\biginteger.js" />
<None Include="KeeFox\modules\commands.js" />
<None Include="KeeFox\modules\config.js" />
<None Include="KeeFox\modules\CtypesCrypto.js" />
<None Include="KeeFox\modules\FAMS-config.js" />
<None Include="KeeFox\modules\jsonrpcClient.js" />
<None Include="KeeFox\modules\KFExtension.js" />
Expand Down
9 changes: 9 additions & 0 deletions Firefox addon/Firefox addon.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,15 @@
<None Include="KeeFox\modules\metrics.js">
<Filter>JS</Filter>
</None>
<None Include="KeeFox\modules\CtypesCrypto.js">
<Filter>JS</Filter>
</None>
<None Include="KeeFox\modules\commands.js">
<Filter>JS</Filter>
</None>
<None Include="KeeFox\modules\biginteger.js">
<Filter>JS</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Manifest Include="KeeFox\chrome.manifest" />
Expand Down
4 changes: 4 additions & 0 deletions Firefox addon/KeeFox/chrome/content/KFILM.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,8 @@ keefox_win.ILM = {
}

var primaryURL = login.URLs[0];

this._kf.metricsManager.pushEvent ("feature", "addLogin");

if (this._kf._keeFoxExtension.prefs.getValue("saveFavicons",false))
{
Expand Down Expand Up @@ -1047,6 +1049,8 @@ keefox_win.ILM = {
keefox_win.Logger.debug("loading and auto submitting button " + button + ctrlClick + ":" + actionURL);
else
keefox_win.Logger.debug("loading and auto submitting button " + button + ctrlClick + "...");

this._kf.metricsManager.pushEvent ("feature", "loadAndAutoSubmit");

var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
Expand Down
8 changes: 8 additions & 0 deletions Firefox addon/KeeFox/chrome/content/KFILM_Fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ keefox_win.ILM.allSearchesComplete = function (findLoginDoc)
window.keefox_win.ILM._fillManyFormFields(otherFields, matchingLogin.otherFields,
findLoginDoc.currentTabPage, findLoginDoc.overWriteFieldsAutomatically);
findLoginDoc.formsReadyForSubmit++; //TODO2: could we fill more than one form before? i don't think so but why is it a count rather than bool?!
window.keefox_win.ILM._kf.metricsManager.pushEvent ("feature", "AutoFill");
}
}
}
Expand Down Expand Up @@ -798,6 +799,7 @@ keefox_win.ILM.allSearchesComplete = function (findLoginDoc)
&& findLoginDoc.formsReadyForSubmit == 1)
{
keefox_win.Logger.info("Auto-submitting form...");
window.keefox_win.ILM._kf.metricsManager.pushEvent ("feature", "AutoSubmit");
keefox_win.ILM.submitForm(form);
} else if (findLoginDoc.allMatchingLogins.length > 0)
{
Expand Down Expand Up @@ -1037,7 +1039,13 @@ keefox_win.ILM.fillFindLoginsComplete = function (resultWrapper, fillDocumentDat

// now we can submit the form if desired
if (autoSubmitForm)
{
window.keefox_win.ILM._kf.metricsManager.pushEvent ("feature", "MatchedFill");
window.keefox_win.ILM.submitForm(form);
} else
{
window.keefox_win.ILM._kf.metricsManager.pushEvent ("feature", "MatchedSubmit");
}
};

keefox_win.ILM._fillAllFrames = function (window, initialPageLoad)
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/content/KFToolBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,9 @@ keefox_win.toolbar = {
},

generatePassword: function () {
this._currentWindow.keefox_org.generatePassword();
let kf = this._currentWindow.keefox_org;
kf.metricsManager.pushEvent ("feature", "generatePassword");
kf.generatePassword();
},

removeNonMatchingEventHandlers: function (node) {
Expand Down
7 changes: 6 additions & 1 deletion Firefox addon/KeeFox/chrome/content/KFUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ keefox_win.UI = {
};

keefox_win.toolbar.clearTabFormRecordingData();
keefox_win.ILM._kf.metricsManager.pushEvent ("feature", "SaveGroupChooser");
window.openDialog("chrome://keefox/content/groupChooser.xul",
"group", "chrome,centerscreen",
onOK,
Expand Down Expand Up @@ -391,6 +392,7 @@ keefox_win.UI = {
};

keefox_win.toolbar.clearTabFormRecordingData();
keefox_win.ILM._kf.metricsManager.pushEvent ("feature", "SaveGroupChooser");
window.openDialog("chrome://keefox/content/groupChooser.xul",
"group", "chrome,centerscreen",
onOK,
Expand All @@ -408,7 +410,9 @@ keefox_win.UI = {
{
label: notNowButtonText,
accessKey: notNowButtonAccessKey,
callback: function(evt) { keefox_win.toolbar.clearTabFormRecordingData(); }
callback: function(evt) {
keefox_org.metricsManager.pushEvent ("feature", "SaveNotNow");
keefox_win.toolbar.clearTabFormRecordingData(); }
},

// "Never" button
Expand All @@ -417,6 +421,7 @@ keefox_win.UI = {
accessKey: neverButtonAccessKey,
popup: null,
callback: function() {
keefox_org.metricsManager.pushEvent ("feature", "SaveNever");
try
{
let newConfig = keefox_org.config.applyMoreSpecificConfig(JSON.parse(JSON.stringify(keefox_org.config.getConfigDefinitionForURL(urlSchemeHostPort))),{"preventSaveNotification": true}); //TODO1.4: faster clone?
Expand Down
3 changes: 3 additions & 0 deletions Firefox addon/KeeFox/chrome/content/commonDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,13 @@ var keeFoxDialogManager = {
if (autoFill)
{
// fill in the best matching login
keefox_org.metricsManager.pushEvent ("feature", "AutoFillDialog");
dialogFindLoginStorage.document.getElementById("loginTextbox").value = matchedLogins[bestMatch].username;
dialogFindLoginStorage.document.getElementById("password1Textbox").value = matchedLogins[bestMatch].password;
}
if (autoSubmit || dialogFindLoginStorage.mustAutoSubmit)
{
keefox_org.metricsManager.pushEvent ("feature", "AutoSubmitDialog");
Dialog.onButton0();
close();
}
Expand All @@ -751,6 +753,7 @@ var keeFoxDialogManager = {

fill : function (username, password)
{
keefox_org.metricsManager.pushEvent ("feature", "MatchedSubmitDialog");
document.getElementById("loginTextbox").value = username;
document.getElementById("password1Textbox").value = password;
Dialog.onButton0();
Expand Down
6 changes: 6 additions & 0 deletions Firefox addon/KeeFox/chrome/content/siteOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ function setMainPanelConfig(url, newConfig, effectiveConfig)
function addSite()
{
let newURL = window.prompt("Type the new URL, remembering the http:// or https:// at the start");
var wm = Cc["@mozilla.org/appshell/window-mediator;1"]
.getService(Ci.nsIWindowMediator);
var mainWindow = wm.getMostRecentWindow("navigator:browser") ||
wm.getMostRecentWindow("mail:3pane");

mainWindow.keefox_org.metricsManager.pushEvent("feature", "SiteSpecificAdd");
configMan.setConfigForURL(newURL,{});
configMan.save();
go(newURL);
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/cs/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Procházet
KeeFox-FAMS-Options.label= Nastavení oznamování zprávy/tipu
KeeFox-pref-searchAllOpenDBs.label= Prohledat všechny otevřené KeePass databáze
KeeFox-pref-listAllOpenDBs.label= Seznam přihlášení ze všech otevřených KeePass databazí

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


KeeFox-pref-site-options-find.desc=KeeFox zkusí najít přihlašovací údaje pro všechny formuláře obsahující pole s hesly. Nastav toto a více v
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/da/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Gennemse
KeeFox-FAMS-Options.label= Besked/tip notifikationsindstillinger
KeeFox-pref-searchAllOpenDBs.label= Søg i alle åbne KeePass databaser
KeeFox-pref-listAllOpenDBs.label= Vis liste med logins fra alle åbne KeePass databaser

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


KeeFox-pref-site-options-find.desc=KeeFox forsøger at finde login oplysninger til alle formularer der indeholder et felt til en adgangskode. Justér dette og andet i
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/de/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Durchsuchen
KeeFox-FAMS-Options.label= Nachricht / Tipp-Hinweis Optionen
KeeFox-pref-searchAllOpenDBs.label= Alle offenen KeePass-Datenbanken suchen
KeeFox-pref-listAllOpenDBs.label= Alle Anmeldungen aller geöffneten KeePass-Datenbanken auflisten

KeeFox-pref-metrics-desc=KeeFox sammelt anonyme System- und Nutzungsstatistiken zur Problemlösung und zur Erfahrungsverbesserung. Keine privaten Daten werden gesammelt.
KeeFox-pref-metrics-link=Lesen Sie mehr über die anonymen Daten, die KeeFox sammelt
KeeFox-pref-metrics-label=Anonyme Nutzungsstatistiken senden


KeeFox-pref-site-options-find.desc=KeeFox versucht Login-Details in allen Formularen zu finden, die ein Passwort-Feld enthalten. Konfigurieren Sie dies und mehr.
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/fr/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Parcourir
KeeFox-FAMS-Options.label= Options des notifications de messages/astuces
KeeFox-pref-searchAllOpenDBs.label= Chercher dans toutes les bases de données KeePass ouvertes
KeeFox-pref-listAllOpenDBs.label= Lister les entrées de toutes les bases de données KeePass ouvertes

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


KeeFox-pref-site-options-find.desc=KeeFox essaie de trouver des détails de connexion pour tous les formulaires qui contiennent un champ de mots de passe. Ajustez ceci et plus dans
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/hu/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Böngész
KeeFox-FAMS-Options.label= Üzenet / tip értesítési beállítások
KeeFox-pref-searchAllOpenDBs.label= Keresés minden nyitott KeePass adatbázisban
KeeFox-pref-listAllOpenDBs.label= Belépési lista az egész megnyitott KeePass adatbázistól.

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


# KeeFox-pref-site-options-find.desc=KeeFox tries to find log-in details for all forms that contain a password field. Adjust this and more in
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/it/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Sfoglia
KeeFox-FAMS-Options.label= Opzioni di notifica messaggi/suggerimenti
KeeFox-pref-searchAllOpenDBs.label= Cerca in tutti i database KeePass aperti
KeeFox-pref-listAllOpenDBs.label= Elenca gli account di accesso da tutti i database KeePass aperti

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


KeeFox-pref-site-options-find.desc=KeeFox cerca di trovare dei dati identificativi in tutti i form che contengono un campo password. Impostare questo e più in
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/ko-KR/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= 찾아보기
# KeeFox-FAMS-Options.label= Message/tip notification options
KeeFox-pref-searchAllOpenDBs.label= 열려있는 모든 KeePass 데이터베이스 검색
# KeeFox-pref-listAllOpenDBs.label= List logins from all open KeePass databases

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


# KeeFox-pref-site-options-find.desc=KeeFox tries to find log-in details for all forms that contain a password field. Adjust this and more in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@
# tips201201040000o-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Open-Source-Safer
# tips201201040000p-body=If you have old KeePass entries without website-specific icons (favicons) try the KeePass Favicon downloader plugin.
# tips201201040000p-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Favicon-Downloader
# tips201211040000a-body=NEW: You can configure individual websites to work better with KeeFox.
# tips201211040000a-body=You can configure individual websites to work better with KeeFox.
# tips201211040000a-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Site-Specific
# tips201312040000a-body=Keyboard shortcuts can speed up access to many KeeFox features.
# tips201312040000a-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Keyboard-shortcuts
# tips201312040000b-body=KeeFox features can now be found on your context (right mouse click) menu.
# tips201312040000b-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Context-menu
# security-name=Security notices
# security-description=Important security notices that users should not ignore if they wish to remain protected
# security-default-title=KeeFox security warning
Expand All @@ -47,3 +51,5 @@
# messages-help-keefox=Help KeeFox
# messages201201040000a-body=You've been using KeeFox for a while now so please help others by adding a positive review to the Mozilla addons website.
# messages201201040000a-link=https://addons.mozilla.org/en-US/firefox/addon/keefox/reviews/add
# messages201312080000a-body=KeeFox collects anonymous statistics to fix problems and improve your experience. Read more to find out what data is sent and what you can change.
# messages201312080000a-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Metrics-collection
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/nb-NO/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox_Install_admincopyKRPCToKnownKPLocationInstallExpander.description= Trykk
# KeeFox-FAMS-Options.label= Message/tip notification options
# KeeFox-pref-searchAllOpenDBs.label= Search all open KeePass databases
# KeeFox-pref-listAllOpenDBs.label= List logins from all open KeePass databases

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


# KeeFox-pref-site-options-find.desc=KeeFox tries to find log-in details for all forms that contain a password field. Adjust this and more in
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/nl/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Blader
KeeFox-FAMS-Options.label= Berichten/tips instellingen wijzigen
KeeFox-pref-searchAllOpenDBs.label= Doorzoek alle open wachtwoordendatabases
KeeFox-pref-listAllOpenDBs.label= Laat de inloggegevens van alle open wachtwoordendatabases zien in de lijst

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


KeeFox-pref-site-options-find.desc=KeeFox probeert inloggegevens te vinden voor alle formulieren met een wachtwoord veld erin. U kunt dit en meer aanpassen in
Expand Down
8 changes: 7 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/pl/FAMS.keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@
# tips201201040000o-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Open-Source-Safer
# tips201201040000p-body=If you have old KeePass entries without website-specific icons (favicons) try the KeePass Favicon downloader plugin.
# tips201201040000p-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Favicon-Downloader
# tips201211040000a-body=NEW: You can configure individual websites to work better with KeeFox.
# tips201211040000a-body=You can configure individual websites to work better with KeeFox.
# tips201211040000a-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Site-Specific
# tips201312040000a-body=Keyboard shortcuts can speed up access to many KeeFox features.
# tips201312040000a-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Keyboard-shortcuts
# tips201312040000b-body=KeeFox features can now be found on your context (right mouse click) menu.
# tips201312040000b-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Tips-|-Context-menu
# security-name=Security notices
# security-description=Important security notices that users should not ignore if they wish to remain protected
# security-default-title=KeeFox security warning
Expand All @@ -47,3 +51,5 @@
# messages-help-keefox=Help KeeFox
# messages201201040000a-body=You've been using KeeFox for a while now so please help others by adding a positive review to the Mozilla addons website.
# messages201201040000a-link=https://addons.mozilla.org/en-US/firefox/addon/keefox/reviews/add
# messages201312080000a-body=KeeFox collects anonymous statistics to fix problems and improve your experience. Read more to find out what data is sent and what you can change.
# messages201312080000a-link=https://github.com/luckyrat/KeeFox/wiki/en-|-Metrics-collection
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/pl/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-pref-excludedSaveSites.remove= Usun
# KeeFox-FAMS-Options.label= Message/tip notification options
# KeeFox-pref-searchAllOpenDBs.label= Search all open KeePass databases
# KeeFox-pref-listAllOpenDBs.label= List logins from all open KeePass databases

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


# KeeFox-pref-site-options-find.desc=KeeFox tries to find log-in details for all forms that contain a password field. Adjust this and more in
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/pt-BR/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Procurar
KeeFox-FAMS-Options.label= Opções de notificação com mensagens e dicas
KeeFox-pref-searchAllOpenDBs.label= Procurar todos os bancos de dados do KeePass abertos
KeeFox-pref-listAllOpenDBs.label= Listar logins de todos os bancos de dados do KeePass abertos

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


# KeeFox-pref-site-options-find.desc=KeeFox tries to find log-in details for all forms that contain a password field. Adjust this and more in
Expand Down
4 changes: 3 additions & 1 deletion Firefox addon/KeeFox/chrome/locale/ro/keefox.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ KeeFox-browse.label= Caută
# KeeFox-FAMS-Options.label= Message/tip notification options
# KeeFox-pref-searchAllOpenDBs.label= Search all open KeePass databases
# KeeFox-pref-listAllOpenDBs.label= List logins from all open KeePass databases

# KeeFox-pref-metrics-desc=KeeFox collects anonymous system and usage statistics to fix problems and improve your experience. No private data is collected.
# KeeFox-pref-metrics-link=Read more about the anonymous data KeeFox collects
# KeeFox-pref-metrics-label=Send anonymous usage statistics


# KeeFox-pref-site-options-find.desc=KeeFox tries to find log-in details for all forms that contain a password field. Adjust this and more in
Expand Down
Loading

0 comments on commit 2f746e2

Please sign in to comment.