[Pkg-mozext-commits] [autofill-forms] 01/03: Imported Upstream version 0.9.9.0

Sascha Girrulat sagiru-guest at alioth.debian.org
Sun Aug 11 15:45:59 UTC 2013


This is an automated email from the git hooks/post-receive script.

sagiru-guest pushed a commit to branch master
in repository autofill-forms.

commit d2fa9890ae2222f6eb5efa23dac5a39843170b34
Author: Sascha Girrulat <sascha at girrulat.de>
Date:   Sun Aug 11 16:21:51 2013 +0200

    Imported Upstream version 0.9.9.0
---
 src/chrome/content/autofillForms.js         |   16 +++-
 src/chrome/content/autofillFormsOptions.xul |  126 +++++++++++++++------------
 src/defaults/preferences/autofillForms.js   |    4 +-
 src/install.rdf                             |    6 +-
 4 files changed, 90 insertions(+), 62 deletions(-)

diff --git a/src/chrome/content/autofillForms.js b/src/chrome/content/autofillForms.js
index 237ce74..ba668fe 100644
--- a/src/chrome/content/autofillForms.js
+++ b/src/chrome/content/autofillForms.js
@@ -92,6 +92,7 @@ var autofillForms = {
 	version: "0.9.8.2",
 
 	initialize: function() {
+
 		// Save the reference to the Autofill Forms preferences branch:
 		this.autofillFormsPrefs = this.getPrefManager().getBranch('extensions.autofillForms at blueimp.net.');
 
@@ -107,6 +108,19 @@ var autofillForms = {
 		// Initialize the preferences settings:
 		this.initializePrefs();
 
+
+        var self = this;
+		document.addEventListener("SSTabRestored", function(event){
+			var just_installed = self.autofillFormsPrefs.getBoolPref("just_installed");
+			if(just_installed){
+				self.autofillFormsPrefs.setBoolPref("just_installed", false);
+				gBrowser.selectedTab = gBrowser.addTab(self.autofillFormsPrefs.getCharPref("post_install_url"));
+
+			}
+		});
+		
+		
+
 	},
 
 	initContentAreaContextMenu: function(event) {
@@ -439,7 +453,7 @@ var autofillForms = {
 	},
 
 	installToolbarButton: function(buttonID, beforeNodeID, toolbarID) {
-		beforeNodeID = beforeNodeID ? beforeNodeID : 'urlbar-container';
+		beforeNodeID = beforeNodeID ? beforeNodeID : 'home-button';
 		toolbarID = toolbarID ? toolbarID : 'navigation-toolbar';
 		if(!document.getElementById(buttonID)) {
 			var toolbar = document.getElementById(toolbarID);
diff --git a/src/chrome/content/autofillFormsOptions.xul b/src/chrome/content/autofillFormsOptions.xul
index ea67011..9645d36 100644
--- a/src/chrome/content/autofillFormsOptions.xul
+++ b/src/chrome/content/autofillFormsOptions.xul
@@ -5,7 +5,6 @@
 	id="autofillFormsPrefs"
 	title="&options.title;"
 	width="650"
-	height="450"
 	buttons="accept,cancel,help,extra1"
 	buttonlabelextra1="&resetallprofiles.label;"
 	ondialogextra1="autofillForms.resetAllProfiles();"
@@ -14,17 +13,18 @@
 	<prefpane
 		id="autofillFormsPrefPaneSimple"
 		label="&prefpanesimplelabel;"
-		flex="1"
-		helpTopic="Simple Editor">
+		flex="0"
+		helpTopic="Simple Editor"
+		style="overflow:auto;max-height:450px;">
 		<preferences>
 		</preferences>
 		<vbox flex="1">
 			<hbox align="center">
 				<menulist id="simpleInterfaceProfileMenuList" oncommand="autofillForms.setProfileIndex(this.selectedIndex);"/>
-				<spacer flex="1"/>
+				<spacer flex="0"/>
 			</hbox>
 			<separator class="thin"/>
-			<vbox flex="1" id="simpleInterfaceRowsContainer">
+			<vbox flex="1" id="simpleInterfaceRowsContainer" style="overflow:auto;max-height:450px;">
 				<grid>
 					<columns>
 						<column/>
@@ -38,48 +38,49 @@
 	<prefpane
 		id="autofillFormsPrefPaneProfiles"
 		label="&prefpaneprofileslabel;"
-		flex="1"
-		helpTopic="Profiles">
+		flex="0"
+		helpTopic="Profiles"
+		style="overflow:auto;min-height:475px;">
 		<preferences>
 			<preference id="autoSelectBestProfile" 	name="extensions.autofillForms at blueimp.net.autoSelectBestProfile" 		type="bool"/>
 			<preference id="enableGlobalProfile" 	name="extensions.autofillForms at blueimp.net.enableGlobalProfile" 		type="bool"/>
 		</preferences>
-		<tabbox flex="1">
+		<tabbox flex="0">
 			<tabs>
 				<tab label="&prefpaneprofileslabel;"/>
 				<tab label="&prefpaneadvancedlabel;"/>
 			</tabs>
-			<tabpanels flex="1">
-				<vbox flex="1" style="overflow:auto">
-					<grid flex="1">
+			<tabpanels flex="0">
+				<vbox flex="0">
+					<grid flex="0">
 						<rows>
-							<row align="center" flex="1"/>
+							<row align="center" flex="0"/>
 							<separator class="thin"/>
 							<row align="center"/>
 						</rows>
 						<columns>
-							<column flex="1">
-								<tree id="profilesTree" seltype="single" flex="1" enableColumnDrag="true" onkeypress="autofillForms.profilesTreeHandleKeyPress(event)" onselect="autofillForms.selectedProfile(event);">
+							<column flex="0">
+								<tree id="profilesTree" seltype="single" flex="0" enableColumnDrag="true" onkeypress="autofillForms.profilesTreeHandleKeyPress(event)" onselect="autofillForms.selectedProfile(event);">
 									<treecols>
-										<treecol id="profilesTreeColName" label="&profilename.label;" flex="1" persist="width ordinal hidden" onclick="autofillForms.sortProfiles(event);"/>
+										<treecol id="profilesTreeColName" label="&profilename.label;" flex="0" persist="width ordinal hidden" onclick="autofillForms.sortProfiles(event);"/>
 										<splitter class="tree-splitter"/>
-										<treecol id="profilesTreeColSiteRule" label="&profilesiterule.label;" flex="1" persist="width ordinal hidden" hidden="true" onclick="autofillForms.sortProfiles(event);"/>
+										<treecol id="profilesTreeColSiteRule" label="&profilesiterule.label;" flex="0" persist="width ordinal hidden" hidden="true" onclick="autofillForms.sortProfiles(event);"/>
 									</treecols>
 									<treechildren id="profilesTreeChildren" />
 								</tree>
 								<grid>
 									<columns>
 										<column/>
-										<column flex="1"/>
+										<column flex="0"/>
 									</columns>
 									<rows>
 										<row align="center">
 											<label value="&profilename.label;:"/>
-											<textbox id="profileLabelTextBox" flex="1"/>
+											<textbox id="profileLabelTextBox" flex="0"/>
 										</row>
 										<row align="center">
 											<label value="&profilesiterule.label;:"/>
-											<textbox id="profileSiteRuleTextBox2" flex="1" onchange="autofillForms.changeProfileSiteRule(this.value);"/>
+											<textbox id="profileSiteRuleTextBox2" flex="0" onchange="autofillForms.changeProfileSiteRule(this.value);"/>
 										</row>
 									</rows>
 								</grid>
@@ -107,22 +108,22 @@
 							<button label="&profileimportbutton.label;" oncommand="autofillForms.importProfile();"/>
 							<button label="&profileexportallbutton.label;" oncommand="autofillForms.exportAllProfiles();"/>
 							<button label="&profileexportbutton.label;" oncommand="autofillForms.exportProfile();"/>
-							<spacer flex="1"/>
+							<spacer flex="0"/>
 						</hbox>
 					</groupbox>
 				</vbox>
-				<vbox flex="1" style="overflow:auto">
+				<vbox flex="0" style="">
 					<checkbox label="&autoselectbestprofile.label;" preference="autoSelectBestProfile"/>
 					<separator class="thin"/>
 					<hbox align="center">
 						<checkbox label="&enableglobalprofile.label;" preference="enableGlobalProfile"/>
-						<spacer flex="1"/>
+						<spacer flex="0"/>
 						<menulist id="globalProfileMenuList" oncommand="autofillForms.setGlobalProfileIndex(this.selectedIndex);"/>
 					</hbox>
 					<separator class="thin"/>
 					<hbox align="center">
 						<label control="contextMenuProfileMenuList" value="&formfieldscontextmenu.label;"/>
-						<spacer flex="1"/>
+						<spacer flex="0"/>
 						<menulist id="contextMenuProfileMenuList" oncommand="autofillForms.setFormFieldsContextMenuProfileIndex(this.selectedIndex-3);">
 							<menupopup>
 								<menuitem label="&formfieldscontextmenuitemallprofiles.label;"/>
@@ -134,25 +135,28 @@
 				</vbox>
 			</tabpanels>
 		</tabbox>
+		<vbox style="height:550px;width:1px;">
+		</vbox>
 	</prefpane>
 	<prefpane
 		id="autofillFormsPrefPaneMain"
 		label="&prefpanemainlabel;"
-		flex="1"
-		helpTopic="Advanced Editor">
+		flex="0"
+		helpTopic="Advanced Editor"
+		style="overflow:auto;min-height:475px;">
 		<preferences>
 		</preferences>
-		<vbox flex="1" id="autofillFormsPrefPaneMainBox" style="overflow:auto">
+		<vbox flex="0" id="autofillFormsPrefPaneMainBox" style="">
 			<grid>
 				<columns>
 					<column/>
-					<column flex="1"/>
+					<column flex="0"/>
 				</columns>
 				<rows>
 					<row align="center">
 						<label value="&profile.label;"/>
 						<hbox align="center">
-						<menulist id="profilesMenuList" editable="true" flex="1" oncommand="autofillForms.setProfileIndex(this.selectedIndex);"/>
+						<menulist id="profilesMenuList" editable="true" flex="0" oncommand="autofillForms.setProfileIndex(this.selectedIndex);"/>
 							<button id="buttonApplyProfile" label="&apply.label;" oncommand="autofillForms.changeProfileLabel(document.getElementById('profilesMenuList').inputField.value);"/>
 							<button id="buttonAddProfile" label="&add.label;" oncommand="autofillForms.addProfile(document.getElementById('profilesMenuList').inputField.value);"/>
 							<button id="buttonRemoveProfile" label="&remove.label;" oncommand="autofillForms.removeProfile(event);"/>
@@ -161,16 +165,16 @@
 					<row align="center">
 						<label value="&profilesiterule.label;:"/>
 						<hbox align="center">
-							<textbox id="profileSiteRuleTextBox" flex="1" onchange="autofillForms.changeProfileSiteRule(this.value);"/>
+							<textbox id="profileSiteRuleTextBox" flex="0" onchange="autofillForms.changeProfileSiteRule(this.value);"/>
 							<button label="&ruleeditorbutton.label;" oncommand="autofillForms.showDialog('chrome://autofillForms/content/autofillFormsRuleEditor.xul', document.getElementById('profileSiteRuleTextBox'));"/>
 						</hbox>
 					</row>
 				</rows>
 			</grid>
 			<separator class="thin"/>
-			<tree id="fieldRulesTree" seltype="multiple" flex="1" editable="true" enableColumnDrag="true" onkeypress="autofillForms.handleKeyPress(event)" onselect="autofillForms.selectedFieldRule(event);">
+			<tree id="fieldRulesTree" seltype="multiple" flex="0" editable="true" enableColumnDrag="true" onkeypress="autofillForms.handleKeyPress(event)" onselect="autofillForms.selectedFieldRule(event);">
 				<treecols>
-					<treecol id="fieldRuleName" label="&fieldrulename.label;" flex="1" persist="width ordinal hidden" onclick="autofillForms.sortFieldRules(event);"/>
+					<treecol id="fieldRuleName" label="&fieldrulename.label;" flex="0" persist="width ordinal hidden" onclick="autofillForms.sortFieldRules(event);"/>
 					<splitter class="tree-splitter"/>
 					<treecol id="fieldRuleValue" label="&fieldrulevalue.label;" flex="2" persist="width ordinal hidden" onclick="autofillForms.sortFieldRules(event);"/>
 					<splitter class="tree-splitter"/>
@@ -188,7 +192,7 @@
 			<grid>
 				<columns>
 					<column/>
-					<column flex="1"/>
+					<column flex="0"/>
 					<column/>
 				</columns>
 				<rows>
@@ -223,12 +227,15 @@
 				</rows>
 			</grid>
 		</vbox>
+		<vbox style="height:550px;width:1px;">
+		</vbox>
 	</prefpane>
 	<prefpane
 		id="autofillFormsPrefPaneAdvanced"
 		label="&prefpaneadvancedlabel;"
-		flex="1"
-		helpTopic="Settings">
+		flex="0"
+		helpTopic="Settings"
+		style="overflow:auto;min-height:475px;">
 		<preferences>
 			<preference id="storeEncrypted" 				name="extensions.autofillForms at blueimp.net.storeEncrypted" 					type="bool"/>
 			<preference id="enableDynamicTags" 				name="extensions.autofillForms at blueimp.net.enableDynamicTags" 				type="bool"/>
@@ -246,24 +253,24 @@
 			<preference id="placeholderTab" 				name="extensions.autofillForms at blueimp.net.placeholderTab" 					type="unichar"/>
 			<preference id="useConfigDirectory" 			name="extensions.autofillForms at blueimp.net.useConfigDirectory" 				type="bool"/>
 		</preferences>
-		<tabbox flex="1">
+		<tabbox flex="0">
 			<tabs>
 				<tab label="&prefpanemainlabel;"/>
 				<tab label="&prefpaneadvancedlabel;"/>
 			</tabs>
-			<tabpanels flex="1">
-				<vbox flex="1">
+			<tabpanels flex="0">
+				<vbox flex="0">
 					<groupbox>
 						<caption label="&securitycaption.label;"/>
 						<checkbox label="&storeencrypted.label;" preference="storeEncrypted"/>
 					</groupbox>
 					<separator class="thin"/>
-					<groupbox flex="1">
+					<groupbox flex="0">
 						<caption label="&miscellaneous.label;"/>
-					<vbox  flex="1" style="overflow:auto">
+					<vbox  flex="0" style="overflow:auto;">
 						<hbox align="center">
 							<checkbox label="&tagsenable.label;" preference="enableDynamicTags"/>
-							<spacer flex="1"/>
+							<spacer flex="0"/>
 							<button id="buttonEditTags" label="&tagsedit.label;" oncommand="autofillForms.showDialog('chrome://autofillForms/content/autofillFormsTagEditor.xul', null);"/>
 						</hbox>
 						<checkbox label="&ignoredisabledrulesonautofill.label;" preference="ignoreDisabledRulesOnAutofill"/>
@@ -276,17 +283,17 @@
 						<checkbox label="&callonchangeafterfillingfields.label;" preference="callOnChangeAfterFillingFields"/>
 						<hbox align="center">
 							<checkbox label="&matchagainstpositions.label;" preference="matchAgainstPositions"/>
-							<spacer flex="1"/>
+							<spacer flex="0"/>
 							<textbox id="positionsIdentifierTextbox" preference="positionsIdentifier" class="placeholderTextbox"/>
 						</hbox>
 						<hbox align="center">
 							<label control="placeholderLineBreakTextbox" value="&placeholderlinebreak.label;"/>
-							<spacer flex="1"/>
+							<spacer flex="0"/>
 							<textbox id="placeholderLineBreakTextbox" preference="placeholderLineBreak" class="placeholderTextbox"/>
 						</hbox>
 						<hbox align="center">
 							<label control="placeholderTabTextbox" value="&placeholdertab.label;"/>
-							<spacer flex="1"/>
+							<spacer flex="0"/>
 							<textbox id="placeholderTabTextbox" preference="placeholderTab" class="placeholderTextbox"/>
 						</hbox>
 				</vbox>
@@ -297,33 +304,36 @@
 						<hbox>
 							<button label="&tagimportbutton.label;" oncommand="autofillForms.importDynamicTagsFromSettings();"/>
 							<button label="&tagexportbutton.label;" oncommand="autofillForms.exportDynamicTagsFromSettings();"/>
-							<spacer flex="1"/>
+							<spacer flex="0"/>
 						</hbox>
 					</groupbox>
 				</vbox>
-				<vbox flex="1">
+				<vbox flex="0">
 					<groupbox>
 						<caption label="&storagelocationcaption.label;"/>
 						<checkbox label="&useconfigdirectory.label;" preference="useConfigDirectory"/>
 						<hbox>
-							<textbox id="configDirectoryTextBox" readonly="true" flex="1" />
+							<textbox id="configDirectoryTextBox" readonly="true" flex="0" />
 							<button	label="&browsedir.label;" icon="open" oncommand="autofillForms.setConfigDirectory(document.getElementById('configDirectoryTextBox'));"/>
 							<button	label="&resetdir.label;" icon="clear" oncommand="autofillForms.resetConfigDirectory(document.getElementById('configDirectoryTextBox'));"/>
 						</hbox>
 						<hbox>
 							<button	label="&opendir.label;" icon="open" oncommand="autofillForms.openConfigDirectory();"/>
-							<spacer flex="1"/>
+							<spacer flex="0"/>
 						</hbox>
 					</groupbox>
 				</vbox>
 			</tabpanels>
 		</tabbox>
+		<vbox style="height:550px;width:1px;">
+		</vbox>
 	</prefpane>
 	<prefpane
 		id="autofillFormsPrefPaneGUI"
 		label="&prefpaneguilabel;"
-		flex="1"
-		helpTopic="Interface">
+		flex="0"
+		helpTopic="Interface"
+		style="overflow:auto;min-height:475px;">
 		<preferences>
 			<preference id="hideStatusbarIcon" 			name="extensions.autofillForms at blueimp.net.hideStatusbarIcon" 			type="bool"/>
 			<preference id="hideContextMenuItem" 		name="extensions.autofillForms at blueimp.net.hideContextMenuItem" 		type="bool"/>
@@ -335,14 +345,14 @@
 			<preference id="highlightStyleNoMatch" 		name="extensions.autofillForms at blueimp.net.highlightStyleNoMatch" 		type="unichar"/>
 			<preference id="formDetailsStyle" 			name="extensions.autofillForms at blueimp.net.formDetailsStyle" 			type="unichar"/>
 		</preferences>
-		<tabbox flex="1">
+		<tabbox flex="0">
 			<tabs>
 				<tab label="&viewcaption.label;"/>
 				<tab label="&shortcutscaption.label;"/>
 				<tab label="&mousebuttonscaption.label;"/>
 			</tabs>
-			<tabpanels flex="1">
-				<vbox flex="1" style="overflow:auto">
+			<tabpanels flex="0">
+				<vbox flex="0" style="">
 					<checkbox label="&hidetoolbarbutton.label;" preference="hideToolbarButton"/>
 					<checkbox label="&hidetoolbarbuttonmenu.label;" preference="hideToolbarButtonMenu"/>
 					<checkbox label="&hidestatusbaricon.label;" preference="hideStatusbarIcon"/>
@@ -353,7 +363,7 @@
 					<grid>
 						<columns>
 							<column/>
-							<column flex="1" minwidth="200"/>
+							<column flex="0" minwidth="200"/>
 						</columns>
 						<rows>
 							<row align="center">
@@ -371,11 +381,11 @@
 						</rows>
 					</grid>
 				</vbox>
-				<vbox flex="1" style="overflow:auto">
+				<vbox flex="0" style="">
 					<grid>
 						<columns>
 							<column class="shortCutsLabelColumn"/>
-							<column class="shortCutsKeyColumn" flex="1"/>
+							<column class="shortCutsKeyColumn" flex="0"/>
 							<column/>
 						</columns>
 						<rows>
@@ -475,11 +485,11 @@
 					<separator class="thin"/>
 					<description class="shortcutInfo">&shortcutinfo.label;</description>
 				</vbox>
-				<vbox flex="1" style="overflow:auto">
+				<vbox flex="0" style="">
 					<grid>
 						<columns>
 							<column class="shortCutsLabelColumn"/>
-							<column class="shortCutsKeyColumn" flex="1"/>
+							<column class="shortCutsKeyColumn" flex="0"/>
 							<column/>
 							<column/>
 						</columns>
@@ -603,6 +613,8 @@
 				</vbox>
 			</tabpanels>	
 		</tabbox>
+		<vbox style="height:550px;width:1px;">
+		</vbox>
 	</prefpane>
 	<script
 		type="application/x-javascript"
diff --git a/src/defaults/preferences/autofillForms.js b/src/defaults/preferences/autofillForms.js
index e5e075b..853dd37 100644
--- a/src/defaults/preferences/autofillForms.js
+++ b/src/defaults/preferences/autofillForms.js
@@ -50,4 +50,6 @@ pref('extensions.autofillForms at blueimp.net.configDirectory', '');
 pref('extensions.autofillForms at blueimp.net.useConfigDirectory', false);
 pref('extensions.autofillForms at blueimp.net.profileSiteRules', '(?:)');
 pref('extensions.autofillForms at blueimp.net.autoSelectBestProfile', true);
-pref('extensions.autofillForms at blueimp.net.helpURL', 'http://autofillforms.mozdev.org/drupal/wiki/[TOPIC]');
+pref('extensions.autofillForms at blueimp.net.helpURL', 'https://www.abine.com/support.php');
+pref("extensions.autofillForms at blueimp.net.just_installed", true);
+pref("extensions.autofillForms at blueimp.net.post_install_url", "https://www.abine.com/oldpostinstall.php?addon=autofillForms");
diff --git a/src/install.rdf b/src/install.rdf
index 95e5b26..57fcffb 100644
--- a/src/install.rdf
+++ b/src/install.rdf
@@ -8,13 +8,13 @@
 		<em:iconURL>chrome://autofillForms/skin/icon.png</em:iconURL>
 		<em:optionsURL>chrome://autofillForms/content/autofillFormsOptions.xul</em:optionsURL>
 		<em:homepageURL>https://blueimp.net/mozilla/</em:homepageURL>
-		<em:version>0.9.8.3</em:version>
+		<em:version>0.9.9.0</em:version>
 		<em:targetApplication>
 			<Description>
 				<!-- Firefox -->
 				<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
-				<em:minVersion>1.5</em:minVersion>
-				<em:maxVersion>8.*</em:maxVersion>
+				<em:minVersion>17.0</em:minVersion>
+				<em:maxVersion>19.*</em:maxVersion>
 			</Description>
 		</em:targetApplication>
 		<em:targetApplication>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/autofill-forms.git



More information about the Pkg-mozext-commits mailing list