Commit graph

885 commits

Author SHA1 Message Date
Razvan Maries
444ee13e14 Merge mozilla-inbound to mozilla-central a=merge 2019-04-26 12:46:15 +03:00
Jonas Allmann
2fddbb5d45 Bug 1545415 - Remove new Function from parent_utils.js, r=MattN
Remove `new Function` from parent_utils.js and refactor affected code.
Remove parent_utils.js from eval()-whitelist.

Differential Revision: https://phabricator.services.mozilla.com/D28062

--HG--
extra : moz-landing-system : lando
2019-04-25 14:10:05 +00:00
Kestrel
09bcf261f4 Bug 1546585 - Fix about:preferences Saved Addresses list alternate row background color for dark mode r=ntim. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D28802

--HG--
extra : source : 82a99a3ad6682ed02122d4444795010a691c55e8
extra : amend_source : cb63ae9f64af23907a9b90036ba133cd179629c6
2019-04-25 12:32:17 +00:00
Dorel Luca
0b98a7c8dc Backed out changeset 82a99a3ad668 (bug 1546585) for Browser-chrome failures in browser/base/content/test/static/browser_parsable_css.js. CLOSED TREE 2019-04-25 22:00:18 +03:00
Kestrel
5747f363b1 Bug 1546585 - Fix about:preferences Saved Addresses list alternate row background color for dark mode r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D28802

--HG--
extra : moz-landing-system : lando
2019-04-25 12:32:17 +00:00
Brian Grinstead
08992fb8e8 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

Differential Revision: https://phabricator.services.mozilla.com/D28559

--HG--
extra : moz-landing-system : lando
2019-04-24 19:43:57 +00:00
Tim Nguyen
b8ef936aa6 Bug 1545757 - Fix contrast of text on 'Edit Address' dialog in dark mode. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D28381

--HG--
extra : moz-landing-system : lando
2019-04-22 17:57:13 +00:00
Oana Pop Rus
c39500b97e Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-26 01:20:21 +03:00
Andrew Swan
24c3452da6 Bug 1538983 Rework highlightable buttons r=jaws
Our standard <button> binding has been carrying around an extra <label>
just to support search highlighting in about:preferences.  This patch
removes that overhead by moving the tweaks that about:preferences needs
into a custom element used only within about:preferences.

Differential Revision: https://phabricator.services.mozilla.com/D28511

--HG--
extra : rebase_source : f7fe120f29630c76a1af77ddf16a422d3c946c58
2019-04-19 14:08:33 -07:00
prathiksha
f56e3c8ac0 Bug 1539677 - Do not highlight the password field when pressing enter on the footer or the insecure field warning. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D27405

--HG--
rename : toolkit/components/passwordmgr/test/mochitest/test_autocomplete_highlight.html => toolkit/components/passwordmgr/test/mochitest/test_autocomplete_highlight_non_login.html
extra : rebase_source : ee0a97b70c46aa0e42811a4e3b0445814cb851aa
2019-04-19 11:54:32 -07:00
Brian Grinstead
381332c51e Bug 1544051 - Part 3 - Scripted change to remove references to AddTask.js r=ahal
This was generated with the script at https://bug1544051.bmoattachments.org/attachment.cgi?id=9058672

Differential Revision: https://phabricator.services.mozilla.com/D27761

--HG--
extra : moz-landing-system : lando
2019-04-18 16:51:01 +00:00
Brian Grinstead
7ab932d712 Bug 1544051 - Part 2 - Remove some references to AddTask.js that aren't caught by the script in part 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D27760

--HG--
extra : moz-landing-system : lando
2019-04-18 16:50:39 +00:00
Brian Grinstead
ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

Differential Revision: https://phabricator.services.mozilla.com/D27456

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00
Trushita
89435f2ad4 Bug 1494948: Removed FX_PREFERENCES_OPENED_VIA probe and origin parameter for openPreferences r=jaws,chutten
Removed FX_PREFERENCES_OPENED_VIA probe as it expired in 63.Origin parameter for openPreferences has also been removed.

Differential Revision: https://phabricator.services.mozilla.com/D26795

--HG--
extra : moz-landing-system : lando
2019-04-09 20:40:26 +00:00
Mark Banner
dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Mark Banner
53b3788bba Bug 1415265 - Implement a central configuration for setting ESLint environments for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23849

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:02 +00:00
Florian Quèze
dbd7ac1015 Bug 1523609 - avoid triggering nsChromeRegistryChrome::CheckForNewChrome (which does main thread I/O) during shutdown of system add-ons, r=kmag.
Differential Revision: https://phabricator.services.mozilla.com/D22380

--HG--
extra : moz-landing-system : lando
2019-03-22 14:19:59 +00:00
Ciure Andrei
8197ed228b Backed out changeset 99b6adafbfa3 (bug 1523609) for causing nsCOMPtr asertion failures and nsIAppStartup failures CLOSED TREE 2019-03-22 15:43:00 +02:00
Florian Quèze
f8b8bdbaf5 Bug 1523609 - avoid triggering nsChromeRegistryChrome::CheckForNewChrome (which does main thread I/O) during shutdown of system add-ons, r=kmag.
Differential Revision: https://phabricator.services.mozilla.com/D22380

--HG--
extra : moz-landing-system : lando
2019-03-22 12:11:51 +00:00
Ian Moody
167f623a3e Bug 1246594 - Enable ESLint rule no-throw-literal by default. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24088

--HG--
extra : moz-landing-system : lando
2019-03-19 22:02:42 +00:00
Alexander Surkov
822a58f809 Bug 1534685 - make all custom elements to use the attribute inheritance base implementation, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D23541

--HG--
extra : moz-landing-system : lando
2019-03-14 21:44:54 +00:00
Mauricio Araujo
660d60eb2e Inconsistency between "&" (ampersand) vs "and" in Options (Bug 1530771) r=jaws,flod
Bug 1530771 - Replaced instances where "&" (ampersand) was used instead of "and" to join two words in the preferences menu, and added Oxford comma where appropriate in certain labels to ensure consistency. r?jaws, r?flod

Differential Revision: https://phabricator.services.mozilla.com/D21472

--HG--
extra : moz-landing-system : lando
2019-03-13 06:35:24 +00:00
Edouard Oger
d391c790bc Bug 1532514 - Update sinon to v7.2.7. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D22046

--HG--
extra : moz-landing-system : lando
2019-03-12 19:32:40 +00:00
Dorel Luca
eb794cd9b8 Backed out changeset 4b280518c7b1 (bug 1532514) for Browser-chrome failures in browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js. CLOSED TREE 2019-03-12 03:59:56 +02:00
Edouard Oger
565385661c Bug 1532514 - Update sinon to v7.2.7. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D22046

--HG--
extra : moz-landing-system : lando
2019-03-12 00:18:16 +00:00
Matthew Noorenberghe
af69d17ff0 Bug 1531443 - Clear the lastProfileAutoCompleteResult during a form history fallback search. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D21587

--HG--
extra : moz-landing-system : lando
2019-03-04 19:22:00 +00:00
Matthew Noorenberghe
892a65479b Bug 1474143 - Don't load FormAutofillContent.jsm until it's needed. r=Felipe
Switch to using DOMFormBeforeSubmit event instead of earlyformsubmit observer notifications.

Differential Revision: https://phabricator.services.mozilla.com/D16656

--HG--
extra : moz-landing-system : lando
2019-02-23 00:26:03 +00:00
Matthew Noorenberghe
b15b8a8c36 Bug 1474143 - Use sharedData instead of initialProcessData for autofillEnabled. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16647

--HG--
extra : moz-landing-system : lando
2019-02-23 00:22:57 +00:00
Matthew Noorenberghe
9509d5a093 Bug 1474143 - Use sharedData instead of initialProcessData for autofillSavedFieldNames. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16646

--HG--
extra : moz-landing-system : lando
2019-02-23 00:22:39 +00:00
Ciure Andrei
f7412ac1f2 Backed out 10 changesets (bug 1474143) for perma failing browser_markup_events_01.js CLOSED TREE
Backed out changeset 1b5d04866585 (bug 1474143)
Backed out changeset 78bfb4dd1f6a (bug 1474143)
Backed out changeset 85ec4f1f5f60 (bug 1474143)
Backed out changeset 5c112b77e489 (bug 1474143)
Backed out changeset 5d35599598bb (bug 1474143)
Backed out changeset 9fd0d7a7946f (bug 1474143)
Backed out changeset 1a83be7a75ca (bug 1474143)
Backed out changeset 2fc9b13171d0 (bug 1474143)
Backed out changeset 3983d7b6d9ad (bug 1474143)
Backed out changeset 9fe55dd58cd8 (bug 1474143)

--HG--
rename : browser/actors/FormValidationChild.jsm => browser/actors/FormSubmitChild.jsm
rename : toolkit/components/satchel/FormSubmitChild.jsm => toolkit/components/satchel/formSubmitListener.js
2019-02-22 21:16:49 +02:00
Matthew Noorenberghe
7100b7f1d9 Bug 1474143 - Don't load FormAutofillContent.jsm until it's needed. r=Felipe
Switch to using DOMFormBeforeSubmit event instead of earlyformsubmit observer notifications.

Differential Revision: https://phabricator.services.mozilla.com/D16656

--HG--
extra : moz-landing-system : lando
2019-02-22 15:13:40 +00:00
Matthew Noorenberghe
b614f620c7 Bug 1474143 - Use sharedData instead of initialProcessData for autofillEnabled. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16647

--HG--
extra : moz-landing-system : lando
2019-02-22 15:11:34 +00:00
Matthew Noorenberghe
969eeadf84 Bug 1474143 - Use sharedData instead of initialProcessData for autofillSavedFieldNames. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16646

--HG--
extra : moz-landing-system : lando
2019-02-22 15:11:15 +00:00
Matthew Noorenberghe
ce4c5eb30b Bug 1446876 - Use waitForCondition to watch for managed state changes. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D20555

--HG--
extra : moz-landing-system : lando
2019-02-20 21:52:11 +00:00
Masayuki Nakano
474225038e Bug 998941 - part 2-2: Make HTMLEditor set InputEvent.dataTransfer when InputEvent.inputType is "insertFromPaste", "insertFromDrop" or "insertReplacementText" r=smaug,m_kato
InputEvent.dataTransfer should be set to non-null when InputEvent.inputType
is "insertFromPaste", "insertFromDrop" or "insertReplacementText" and
editor is an HTMLEditor instance:
https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
https://w3c.github.io/input-events/#dfn-data

("insertTranspose" and "insertFromYank" are not currently supported on Gecko.)

This patch makes nsContentUtils::DispatchInputEvent() take dataTransfer value
and EditorBase set it via AutoEditActionDataSetter like data value.

However, we need to create other constructors of DataTransfer to create its
read-only instances initialized with nsITransferable or nsAString.  This will
be implemented by the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D19297

--HG--
extra : moz-landing-system : lando
2019-02-19 06:33:42 +00:00
Masayuki Nakano
2eaf64e594 Bug 998941 - part 1-3: Make TextEditor (only when not HTMLEditor instance) set InputEvent.data to inserting string when InputEvent.inputType is "insertFromPaste", "insertFromDrop" or "insertReplacementText" r=smaug,m_kato
https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
https://w3c.github.io/input-events/#dfn-data

Both Input Events Level 1 and Level 2 declare that InputEvent.data should be
set to inserting string only on TextEditor when InputEvent.inputType is
"insertFromPaste", "insertFromPasteAsQuotation", "insertFromDrop",
"insertTranspose", "insertReplacementText" or "insertFromYank".

Currently, we support only "insertFromPaste", "insertFromDrop",
"insertReplacementText".  Therefore, this patch makes TextEditor set
EditorBase::mEditActionData::mData only for them (and the instance is not
HTMLEditor's).

Differential Revision: https://phabricator.services.mozilla.com/D19287

--HG--
extra : moz-landing-system : lando
2019-02-19 06:28:57 +00:00
Alexander Surkov
1649231cef Bug 1527495 - migrate text-link binding to CE, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D19595

--HG--
rename : toolkit/content/widgets/text.xml => toolkit/content/widgets/text.js
2019-02-12 19:14:40 -05:00
Alexander Surkov
c60f2971fc Bug 1519533 - convert formautofill autocomplete-profile-listitem bindings to CE, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D19257

--HG--
rename : browser/extensions/formautofill/content/formautofill.xml => browser/extensions/formautofill/content/customElements.js
2019-02-08 22:57:03 -05:00
Matthew Noorenberghe
5c86778689 Bug 1439023 - Don't reset autocomplete controller state when autofill fell back to form history. r=jaws
Otherwise the cached value won't be used for filling by satchel and _fillFromAutocompleteRow won't fill a result that isn't a `autofill-profile` style:
https://searchfox.org/mozilla-central/rev/03ebbdab952409640c6857d835d3040bf6f9e2db/browser/extensions/formautofill/FormAutofillContent.jsm#283,295

Differential Revision: https://phabricator.services.mozilla.com/D19249

--HG--
extra : rebase_source : 113370b05761e474a526da5afafe8b9db5a7aca7
2019-02-08 17:46:51 -08:00
Gijs Kruitbosch
b58acd745d Bug 1445739 - stop invalidating the startup cache when extensions change, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18356

--HG--
extra : moz-landing-system : lando
2019-02-08 08:55:27 +00:00
Brian Grinstead
04c18529e4 Bug 1487065 - Implement popup-notification as a Custom Element r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D17699

--HG--
rename : toolkit/content/widgets/notification.xml => toolkit/content/widgets/popupnotification.js
extra : moz-landing-system : lando
2019-02-07 22:16:26 +00:00
Bogdan Tara
374b57edaf Backed out changeset 41a84186eb77 (bug 1445739) for test_startup.js failures CLOSED TREE 2019-02-07 03:22:07 +02:00
Gijs Kruitbosch
e095de11d8 Bug 1445739 - stop invalidating the startup cache when extensions change, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18356

--HG--
extra : moz-landing-system : lando
2019-02-07 00:08:25 +00:00
Alexander Surkov
599d3ecb6b Bug 1519486 - convert autocomplete-richlistitem XBL binding to CE, r=MattN 2019-01-24 08:40:36 -05:00
Matthew Noorenberghe
bc974287d0 Bug 1521194 - Remove reference to credit cards from autofill description. r=jaws
Bug 1470184 unconditionally referenced credit cards even though credit card autofill was disabled for non-Nightly.

Depends on D18017

Differential Revision: https://phabricator.services.mozilla.com/D18018

--HG--
extra : moz-landing-system : lando
2019-01-30 19:20:06 +00:00
Matthew Noorenberghe
20838e8af6 Bug 1521194 - Move credit card autofill mochitest-plain tests to their own directory. r=jaws
That way the non-CC tests get run with credit card autofill unavailable which tests what we ship.

Depends on D18016

Differential Revision: https://phabricator.services.mozilla.com/D18017

--HG--
rename : browser/extensions/formautofill/test/mochitest/mochitest.ini => browser/extensions/formautofill/test/mochitest/creditCard/mochitest.ini
rename : browser/extensions/formautofill/test/mochitest/test_basic_creditcard_autocomplete_form.html => browser/extensions/formautofill/test/mochitest/creditCard/test_basic_creditcard_autocomplete_form.html
rename : browser/extensions/formautofill/test/mochitest/test_clear_form.html => browser/extensions/formautofill/test/mochitest/creditCard/test_clear_form.html
rename : browser/extensions/formautofill/test/mochitest/test_creditcard_autocomplete_off.html => browser/extensions/formautofill/test/mochitest/creditCard/test_creditcard_autocomplete_off.html
extra : moz-landing-system : lando
2019-01-30 19:18:04 +00:00
Matthew Noorenberghe
510dc6eeea Bug 1521194 - Move credit card autofill b-c tests to their own directory. r=jaws
That way the non-CC tests get run with credit card autofill unavailable which tests what we ship.

Depends on D18015

Differential Revision: https://phabricator.services.mozilla.com/D18016

--HG--
rename : browser/extensions/formautofill/test/browser/browser.ini => browser/extensions/formautofill/test/browser/creditCard/browser.ini
rename : browser/extensions/formautofill/test/browser/browser_creditCard_doorhanger.js => browser/extensions/formautofill/test/browser/creditCard/browser_creditCard_doorhanger.js
rename : browser/extensions/formautofill/test/browser/browser_dropdown_layout.js => browser/extensions/formautofill/test/browser/creditCard/browser_creditCard_dropdown_layout.js
rename : browser/extensions/formautofill/test/browser/browser_creditCard_fill_cancel_login.js => browser/extensions/formautofill/test/browser/creditCard/browser_creditCard_fill_cancel_login.js
rename : browser/extensions/formautofill/test/browser/browser_editCreditCardDialog.js => browser/extensions/formautofill/test/browser/creditCard/browser_editCreditCardDialog.js
rename : browser/extensions/formautofill/test/browser/browser_insecure_form.js => browser/extensions/formautofill/test/browser/creditCard/browser_insecure_form.js
rename : browser/extensions/formautofill/test/browser/browser_manageCreditCardsDialog.js => browser/extensions/formautofill/test/browser/creditCard/browser_manageCreditCardsDialog.js
rename : browser/extensions/formautofill/test/browser/browser_privacyPreferences.js => browser/extensions/formautofill/test/browser/creditCard/browser_privacyPreferences.js
extra : moz-landing-system : lando
2019-01-30 19:26:29 +00:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Timothy Guan-tin Chien
de9b8ba1e2 Bug 1520350 - Lazily load about:preferences markups from hidden panes r=jaws
Because custom elements will be constructed when DOM is constructed,
construct the DOM in the hidden panels will be expensive as we move
more and more widgets to custom elements from XBL.

This patch attempts to counter that by moving all the pane markups
into comment nodes, and use MozXULElement.parseXULToFragment() to
insert it when it is being asked.

They will be loaded lazily from an requestIdleCallback() in findInPage.js.

Differential Revision: https://phabricator.services.mozilla.com/D16787

--HG--
extra : moz-landing-system : lando
2019-01-29 00:27:29 +00:00