From 6718ebbe1bee52bfcc006bef3292e35193120be6 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sat, 6 Jan 2018 10:24:37 +0200 Subject: [PATCH] 0.4.8 --- CHANGELOG | 12 ++++++++ README.md | 40 ------------------------- keepassxc-browser/background/keepass.js | 4 +-- keepassxc-browser/keepassxc-browser.js | 15 +++++++++- keepassxc-browser/manifest.json | 13 ++++---- 5 files changed, 35 insertions(+), 49 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 348c786..dbee36f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +0.4.8 (06-01-2018) +========================= +- Changed native messaging host name to org.keepassxc.keepassxc_browser +- Exclude XSD files from content scripts +- Switched default keyboard shortcuts to Alt+Shift+U and Alt+Shift+P + +0.4.5 (28-12-2017) +========================= +- Added support for aria-hidden attribute when checking input field visibility +- Fixed a bug in redetecting credentials +- Small CSS fixes + 0.4.4 (17-12-2017) ========================= - Added support for OTP codes via context menu diff --git a/README.md b/README.md index 7837d47..aee63be 100644 --- a/README.md +++ b/README.md @@ -39,43 +39,3 @@ The following improvements and features have been made after the fork. At this p ## Protocol The details about the messaging protocol used with the browser extension and KeePassXC can be found [here](keepassxc-protocol.md). - -## Licenses - -``` -keepassxc-browser Copyright (C) 2017 Sami Vänttinen -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, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -``` - -``` -PassIFox & ChromeIPass Copyright © 2010-2017 Perry Nguyen -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, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -``` - -## Donations - -Feel free to support this project: -- Donate via [PayPal](https://paypal.me/varjolintu) -- Donate via Bitcoin: 1LHbD69CcmpLW5hjUXs2MGJhw3GxwqLdw3 - -Also consider donating to [KeePassXC](https://flattr.com/submit/auto?fid=x7yqz0&url=https%3A%2F%2Fkeepassxc.org) and [KeePassHttp-Connector](https://github.com/smorks/keepasshttp-connector) teams. They are doing great job. diff --git a/keepassxc-browser/background/keepass.js b/keepassxc-browser/background/keepass.js index b924fe7..3ab6fd5 100644 --- a/keepassxc-browser/background/keepass.js +++ b/keepassxc-browser/background/keepass.js @@ -11,8 +11,8 @@ keepass.isDatabaseClosed = false; keepass.isKeePassXCAvailable = false; keepass.isEncryptionKeyUnrecognized = false; keepass.currentKeePassXC = {'version': 0, 'versionParsed': 0}; -keepass.requiredKeePassXC = 220; -keepass.nativeHostName = 'com.varjolintu.keepassxc_browser'; +keepass.requiredKeePassXC = 224; // TODO: Change to 230 when the official release is done +keepass.nativeHostName = 'org.keepassxc.keepassxc_browser'; keepass.nativePort = null; keepass.keySize = 24; keepass.latestVersionUrl = 'https://api.github.com/repos/keepassxreboot/keepassxc/releases/latest'; diff --git a/keepassxc-browser/keepassxc-browser.js b/keepassxc-browser/keepassxc-browser.js index 49c1ceb..559790d 100644 --- a/keepassxc-browser/keepassxc-browser.js +++ b/keepassxc-browser/keepassxc-browser.js @@ -63,7 +63,7 @@ browser.runtime.onMessage.addListener(function(req, sender, callback) { browser.runtime.sendMessage({ action: 'load_settings', }).then((response) => { - cip.settings = response.data; + cip.settings = response; cip.initCredentialFields(true); }); } @@ -811,12 +811,25 @@ cipFields.getAriaHidden = function(field) { return 'false'; }; +cipFields.getOverflowHidden = function(field) { + let $par = jQuery(field).parents(); + for (p of $par) { + const val = $(p).css('overflow'); + if (val === 'hidden') { + return true; + } + } + return false; +}; + cipFields.getAllFields = function() { let fields = []; // get all input fields which are text, email or password and visible jQuery(cipFields.inputQueryPattern).each(function() { let ariaHidden = cipFields.getAriaHidden(this); + let overflowHidden = cipFields.getOverflowHidden(this); + if (jQuery(this).is(':visible') && jQuery(this).css('visibility') !== 'hidden' && jQuery(this).css('visibility') !== 'collapsed' && ariaHidden === 'false') { cipFields.setUniqueId(jQuery(this)); fields.push(jQuery(this)); diff --git a/keepassxc-browser/manifest.json b/keepassxc-browser/manifest.json index 9754c83..93ff65b 100644 --- a/keepassxc-browser/manifest.json +++ b/keepassxc-browser/manifest.json @@ -1,9 +1,9 @@ { "manifest_version": 2, "name": "keepassxc-browser", - "version": "0.4.5", + "version": "0.4.8", "description": "KeePassXC integration for modern web browsers", - "author": "Sami Vänttinen", + "author": "KeePassXC Team", "icons": { "16": "icons/keepassxc_16x16.png", "48": "icons/keepassxc_48x48.png", @@ -42,7 +42,8 @@ "" ], "exclude_matches": [ - "*://*/*.xml" + "*://*/*.xml", + "*://*/*.xsd" ], "js": [ "browser-polyfill.min.js", @@ -63,8 +64,8 @@ "fill-username-password": { "description": "Insert username + password", "suggested_key": { - "default": "Ctrl+Shift+U", - "mac": "Command+Shift+U" + "default": "Alt+Shift+U", + "mac": "Alt+Shift+U" } }, "fill-password": { @@ -93,7 +94,7 @@ ], "applications": { "gecko": { - "id": "keepassxc-browser@sami.vanttinen", + "id": "keepassxc-browser@keepassxc.org", "strict_min_version": "55.0" } }