Commit Graph

2929 Commits

Author SHA1 Message Date
Jonathan Kingston
cf14643de4 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261

--HG--
extra : moz-landing-system : lando
2019-02-19 02:34:09 +00:00
Valentin Gosu
a5cc5b2a87 Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed

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

--HG--
rename : toolkit/components/remotebrowserutils/tests/browser/browser_httpResponseProcessSelection.js => toolkit/components/remotebrowserutils/tests/browser/browser_httpCrossOriginOpenerPolicy.js
extra : moz-landing-system : lando
2019-02-15 22:02:47 +00:00
Nika Layzell
848283beff Bug 1522637 - Part 7: Perform the preloaded document swap before checking for HTTP loads, r=mconley
For HTTP loads from the preloaded document, no process swap was occuring
if the preloaded document was loaded in a 'web' process. This caused
test failures, and has potentially undesireable behaviour.

This patch just moves the check for preloaded document swaps to before
the check for http parent process interception, forcing a swap like
normal.

Depends on D19691

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:20 +00:00
Nika Layzell
947aaf1432 Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
Depends on D18603

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:11 +00:00
Razvan Maries
d93d94cbc9 Backed out 9 changesets (bug 1522637) for causing bug 1528188. a=backout
Backed out changeset e4ca191d62a5 (bug 1522637)
Backed out changeset 540e5f318768 (bug 1522637)
Backed out changeset 0886a317a108 (bug 1522637)
Backed out changeset 4c7c512a262d (bug 1522637)
Backed out changeset d7eb272688be (bug 1522637)
Backed out changeset 67e838f49f4b (bug 1522637)
Backed out changeset 7e38890c72fa (bug 1522637)
Backed out changeset e6ca9ad18d15 (bug 1522637)
Backed out changeset 0f759e91eca8 (bug 1522637)
2019-02-15 18:21:36 +02:00
Nika Layzell
de50cd0883 Bug 1522637 - Part 8: Perform the preloaded document swap before checking for HTTP loads, r=mconley
For HTTP loads from the preloaded document, no process swap was occuring
if the preloaded document was loaded in a 'web' process. This caused
test failures, and has potentially undesireable behaviour.

This patch just moves the check for preloaded document swaps to before
the check for http parent process interception, forcing a swap like
normal.

Depends on D19691

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

--HG--
extra : source : f7ab0e6e739bd54b66b8aaa6219c7dba78f37eb1
2019-02-14 15:14:10 +00:00
Nika Layzell
6ded246a08 Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
Depends on D18603

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

--HG--
extra : source : 6b4d010964ec9e2175e7ba02991d083fab128c49
2019-02-14 15:36:02 +00:00
Bogdan Tara
c732fccb1e Backed out 8 changesets (bug 1522637) for browser_all_files_referenced.js failures CLOSED TREE
Backed out changeset f7ab0e6e739b (bug 1522637)
Backed out changeset 3d24e8e81c02 (bug 1522637)
Backed out changeset 41ca0b87537e (bug 1522637)
Backed out changeset 6e0d4b6b1c93 (bug 1522637)
Backed out changeset 8f494271ec06 (bug 1522637)
Backed out changeset 6b4d010964ec (bug 1522637)
Backed out changeset 5eeda2ba8e79 (bug 1522637)
Backed out changeset 5988b8e7d17c (bug 1522637)
2019-02-14 19:20:58 +02:00
Nika Layzell
ffb42b3322 Bug 1522637 - Part 8: Perform the preloaded document swap before checking for HTTP loads, r=mconley
For HTTP loads from the preloaded document, no process swap was occuring
if the preloaded document was loaded in a 'web' process. This caused
test failures, and has potentially undesireable behaviour.

This patch just moves the check for preloaded document swaps to before
the check for http parent process interception, forcing a swap like
normal.

Depends on D19691

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

--HG--
extra : moz-landing-system : lando
2019-02-14 15:14:10 +00:00
Nika Layzell
438cbbeca1 Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
Depends on D18603

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

--HG--
extra : moz-landing-system : lando
2019-02-14 15:36:02 +00:00
Thomas Nguyen
85ce5ab061 Bug 1517703 - Part 2 - Use ReferrerInfo in loadURIOptions from js r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17922

--HG--
extra : moz-landing-system : lando
2019-02-12 19:35:24 +00:00
Dorel Luca
313155b999 Backed out 4 changesets (bug 1521808) for build bustage. CLOSED TREE
Backed out changeset 80aeea5f7abe (bug 1521808)
Backed out changeset c8c151d92c03 (bug 1521808)
Backed out changeset cc0a5c7dabb4 (bug 1521808)
Backed out changeset 8d5174a560fa (bug 1521808)
2019-02-12 14:54:45 +02:00
Valentin Gosu
005dcbada4 Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed

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

--HG--
rename : toolkit/components/remotebrowserutils/tests/browser/browser_httpResponseProcessSelection.js => toolkit/components/remotebrowserutils/tests/browser/browser_httpCrossOriginOpenerPolicy.js
extra : moz-landing-system : lando
2019-02-12 12:16:58 +00:00
Bogdan Tara
0908d27514 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-12 07:27:04 +02:00
Mike Conley
52278792ca Bug 1520329 - Add messaging infrastructure for opening videos in a Picture in Picture window. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16903

--HG--
extra : moz-landing-system : lando
2019-02-12 02:34:38 +00:00
Marco Bonardo
12675bb16f Bug 1519538 - Disable idle-daily notifications in tests through user.js files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D19017

--HG--
extra : moz-landing-system : lando
2019-02-09 13:29:21 +00:00
shindli
6b820cdfea Backed out 6 changesets (bug 1522637) for en-US failures in testing/firefox-ui/tests/functional/safebrowsing/test_notification.py TestSafeBrowsingNotificationBar.test_notification_bar CLOSED TREE
Backed out changeset 18a809d53298 (bug 1522637)
Backed out changeset 9e9fd362dd8f (bug 1522637)
Backed out changeset f1191be4243a (bug 1522637)
Backed out changeset 5a8067fd848c (bug 1522637)
Backed out changeset 5f49cd87b1bd (bug 1522637)
Backed out changeset f82ba91f5ea2 (bug 1522637)
2019-02-09 03:12:53 +02:00
Nika Layzell
d6280f72ab Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
Depends on D18603

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

--HG--
extra : moz-landing-system : lando
2019-02-08 17:36:02 +00:00
arthur.iakab
ddeb2146e9 Backed out changeset bac51381060d (bug 1519538) for causing multiple failures on Windows CLOSED TREE 2019-02-08 19:34:20 +02:00
Marco Bonardo
c8cf4c2695 Bug 1519538 - Disable idle-daily notifications in tests through user.js files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D19017

--HG--
extra : moz-landing-system : lando
2019-02-08 16:43:58 +00:00
Noemi Erli
c2aec081be Backed out changeset bac51381060d (bug 1519538) for Linting failure in config.py 2019-02-08 18:32:01 +02:00
Marco Bonardo
65f6d086f4 Bug 1519538 - Disable idle-daily notifications in tests through user.js files. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D19017

--HG--
extra : moz-landing-system : lando
2019-02-08 14:10:08 +00:00
Neil Deakin
66040975f2 Bug 1519953, replace calls to retrieve boxobject position and size with getBoundingClientRect, r=gijs
--HG--
extra : rebase_source : 65a9e08513ada3cda6beeb09d7f8a53620c2999f
2019-03-01 12:26:45 -05:00
Magnus Melin
1584297cc4 Bug 1525889 - make sure profileDowngrade doesn't break when sync is not enabled for an application. r=mossop 2019-02-11 23:04:09 +02: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
Masayuki Nakano
1895d1bfe3 Bug 1514940 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Confluence r=smaug,Ehsan,kmag
Old Confluence does not aware of conflated model keypress event (see UI Events
spec, https://w3c.github.io/uievents/#determine-keypress-keyCode).
Additionally, Confluence can be hosted with any domains.  Therefore, we cannot
use blacklist to disable the conflated model keypress event only on it.

This patch checks whether current or parent document is Confluence with JS
module, called KeyPressEventModelCheckerChild.  For kicking this module,
nsHTMLDocument dispatches an custom event, CheckKeyPressEventModel, when it
becomes editable only first time.  Finally, if it's a Confluence instance, the
module let PresShell know that we need to use split model keypress event in it.

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

--HG--
extra : moz-landing-system : lando
2019-02-05 11:35:43 +00:00
Mike de Boer
481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

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

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Mike Conley
fb0883e923 Bug 1522546 - Properly handle preferred remote types in BrowserTestUtils.waitForNewWindow. r=bobowen
This is to fix some of our tests that use BrowserTestUtils.waitForNewWindow, where
the browser that ends up being passed to it doesn't actually need to flip
remoteness.

For example, in the file:// URI case, we allow the first browse to an HTTP
URI to run within the same process. This means that the preferred remote
type is "file", despite the URI normally mapping to the "web" type of
content process.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 19:54:33 +00:00
Mark Banner
0bead82230 Bug 1286428 - Stop reporting print.printer* preferences in about:support. r=Gijs
These are not generally used for support, and there can be many of them which makes the report larger and harder to understand.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 13:25:08 +00:00
edward.i.wu
49e491e837 Bug 1450114 -Update browser themes to allow customization of selection background and text r=jaws
Bug 1450114 -Update browser themes to allow customization of selection background and text r=Jaws

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

--HG--
extra : moz-landing-system : lando
2019-01-31 13:28:30 +00:00
Dave Townsend
0dd333051d Bug 1463198: Submit telemetry whenever the downgrade UI is shown. r=froydnj, datareview=chutten
Send a downgrade ping to telemetry when the downgrade UI is displayed.

--HG--
extra : rebase_source : 43a2437c5bf1ef448e5b1ca1cc3e32fc98b02868
extra : intermediate-source : b965981c9ce0449a8d70df6ad47ebf6c4f1f70b9
extra : source : 348f67b15246aa63b83457fde1a17540fa21379e
2018-05-18 13:03:24 -07:00
Coroiu Cristina
98ec0ea927 Backed out 7 changesets (bug 1518632, bug 1463198, bug 1455707, bug 1522934, bug 1322797, bug 1474285) for build bustages at /builds/worker/workspace/build/src/toolkit/xre/nsAppRunner.cpp on a CLOSED TREE
Backed out changeset 82355ab7e063 (bug 1455707)
Backed out changeset b965981c9ce0 (bug 1463198)
Backed out changeset 21a801ca5f6d (bug 1455707)
Backed out changeset 05200c5388b4 (bug 1518632)
Backed out changeset ebcd8225434a (bug 1522934)
Backed out changeset e69cac07b209 (bug 1474285)
Backed out changeset 35af79575f54 (bug 1322797)
2019-01-31 03:34:49 +02:00
Dave Townsend
e91f114689 Bug 1463198: Submit telemetry whenever the downgrade UI is shown. r=froydnj, datareview=chutten
Send a downgrade ping to telemetry when the downgrade UI is displayed.

--HG--
extra : rebase_source : 799ef400bc20aaab520641d21d744fe83aa5da27
extra : intermediate-source : 6bb1233693b8b2790263dbd511d92857a9d31e0b
extra : source : 348f67b15246aa63b83457fde1a17540fa21379e
2018-05-18 13:03:24 -07: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
Paolo Amadini
70d2131682 Bug 1521765 - Use web technologies for "about:config" in the browser application. r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D17419

--HG--
extra : rebase_source : a4b41649be6f61853a2ce494626184ee7e3a5c77
2019-01-24 13:05:08 +00:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Alphan Chen
e6cc4bf7ca Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-28 19:44:03 +00:00
Ciure Andrei
849dbde8e4 Backed out 2 changesets (bug 1507286, bug 1497146) for causing multiple crashes in nsFocusManager::GetRedirectedFocus a=backout
Backed out changeset 0509a9edc58a (bug 1507286)
Backed out changeset 21ad3aeb636f (bug 1497146)
2019-01-26 15:09:03 +02:00
Ehsan Akhgari
08e1954154 Bug 1520879 - Port the onContentBlockingEvent notifications inside WebProgressChild.jsm to C++; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17157

--HG--
extra : moz-landing-system : lando
2019-01-25 14:44:09 +00:00
Alphan Chen
0022290b4b Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-25 10:19:04 +00:00
arthur.iakab
a5462dcda4 Backed out changeset a6cc9b15b1e3 (bug 1497146)for hazard build bustage on sessionstore/SessionStoreUtils.cpp CLOSED TREE 2019-01-24 16:56:32 +02:00
Alphan Chen
ea7eaa36e4 Bug 1497146 part 3 - Convert FormData.jsm to C++ [restore() part] r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12672

--HG--
extra : moz-landing-system : lando
2019-01-24 12:53:28 +00:00
Nika Layzell
45b85eee03 Bug 1467223 - Part 5: Perform parent-process interception for HTTP loads, r=qdot,valentin
This will only happen if the pref is enabled, and works through the existing
mechanism for process switching loads. It should enable POST data to be
preserved when performing a process switch, for example when submitting
a form on a file:// or moz-extension:// URI to a http:// URI.

Depends on D15611

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

--HG--
extra : moz-landing-system : lando
2019-01-23 21:07:10 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Kris Maglione
2fe0de01dc Bug 1519596: Part 1 - Remove several unnecessary/unused ChromeUtils.import() calls. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16377

--HG--
extra : rebase_source : 6c4311387d25de425806aeb6c4691e12c9fcb855
2019-01-11 16:59:23 -08:00
Ehsan Akhgari
ea0beadb68 Bug 1516889 - Part 2: Make sure the storage access API prompt is denied when pressing Esc; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D16737
2019-01-21 11:23:22 -05:00
Ciure Andrei
eb5345d4eb Backed out 2 changesets (bug 1516889) for failing browser_storageAccessDoorHanger.js CLOSED TREE
Backed out changeset fe40c77b54b4 (bug 1516889)
Backed out changeset 95fee3425c55 (bug 1516889)
2019-01-21 17:48:11 +02:00
Ehsan Akhgari
4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Ehsan Akhgari
46e587fc36 Bug 1516889 - Part 2: Make sure the storage access API prompt is denied when pressing Esc; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D16737
2019-01-21 09:57:31 -05:00
Andreas Tolfsen
497c69175e bug 1521385: toolkit: export ActorChild in global scope; r=Felipe
JS classes, unlike var or const, are not automatically made part
of the global scope in JSMs.  This makes it impossible to import
ActorChild this way:

	const {ActorChild} = ChromeUtils.import("resource://gre/modules/ActorChild.jsm", {});

By assigning the ActorChild class to this we work around this problem.

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

--HG--
extra : rebase_source : 88feda088b4e66a1166c7624d834e6a1565ced9b
extra : source : 4b6549b8a6012efa6a3b250b26fff7cf0d1ca564
2019-01-21 00:23:02 +00:00
Dorel Luca
e658f2346a Backed out changeset 4b6549b8a601 (bug 1521385) for Android build bustage 2019-01-21 02:47:16 +02:00
Andreas Tolfsen
71ded3b272 bug 1521385: toolkit: export ActorChild in global scope; r=Felipe
JS classes, unlike var or const, are not automatically made part
of the global scope in JSMs.  This makes it impossible to import
ActorChild this way:

	const {ActorChild} = ChromeUtils.import("resource://gre/modules/ActorChild.jsm", {});

By assigning the ActorChild class to this we work around this problem.

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

--HG--
extra : moz-landing-system : lando
2019-01-21 00:23:02 +00:00
Tim Nguyen
60a5143df0 Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 22:42:24 +00:00
Andreea Pavel
95431afe85 Backed out 1 changesets (bug 1241885) for build bustages on a CLOSED TREE
Backed out changeset 176be7000d33 (bug 1241885)
2019-01-18 23:49:55 +02:00
Tim Nguyen
495df7ddea Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 16:51:08 +00:00
Jonathan Kingston
c3cdc8746c Bug 1520862 - Fixing WebNavigation serialization of principals to always be present. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D16884

--HG--
extra : moz-landing-system : lando
2019-01-17 18:50:40 +00:00
Alphan Chen
58400124a1 Bug 1497146 part 2 - Convert FormData.jsm to C++ [collect() part] r=nika,peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D12112

--HG--
extra : moz-landing-system : lando
2019-01-17 14:56:51 +00:00
Alphan Chen
5d28867416 Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-17 14:58:31 +00:00
Gijs Kruitbosch
0f0796c9c5 Bug 1458046 - avoid remote updates when the browser is not active and fix editcontrols_update test, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D16626

--HG--
extra : moz-landing-system : lando
2019-01-16 16:20:43 +00:00
Aaron Klotz
59d279f51f Bug 1517636: Follow-up - fix eslint error; r=bustage 2019-01-15 17:39:18 -07:00
Aaron Klotz
15a43729b0 Bug 1517636: Add launcher process state to about:support; r=Felipe,flod
Differential Revision: https://phabricator.services.mozilla.com/D15759

--HG--
extra : moz-landing-system : lando
2019-01-16 00:22:19 +00:00
Andreas Tolfsen
c34e8d40b6 bug 1520228: toolkit: improve error description when ActorChild is missing EventTarget; r=Felipe
When an ActorChild is predefined to listen for DOM events and it
does not implement EventTarget.handleEvent(), a standard JS error is
thrown in toolkit/modules/ActorManagerChild.jsm that the handleEvent
property is missing.

If you have more than one ActorChild this error message is cryptic as
it does not refer to _which_ of the children that is missing handleEvent.

This patch introduces a type check for handleEvent that throws an
error (as before) when it is not implemented.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 18:10:33 +00:00
Mark Striemer
50cfffaeaa Bug 1303384 - Part 2: Move some extension shortcut utils to ShortcutUtils r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D4506

--HG--
extra : moz-landing-system : lando
2019-01-11 22:32:39 +00:00
Kris Maglione
125c4e077a Bug 1509968: Disable subprocess performance task in ccov builds. r=aswan 2019-01-11 20:46:57 -08:00
Andrew Swan
0f97ca35a4 Bug 1517988 Insert a placeholder name for addons if necessary in about:support r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D16133

--HG--
extra : moz-landing-system : lando
2019-01-11 11:39:04 +00:00
Razvan Maries
642dd2cc11 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-11 17:33:16 +02:00
Christoph Kerschbaumer
6756032512 Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
Marco Bonardo
08e5888d07 Bug 1519060 - Places maintenance doesn't properly replace malformed databases. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D16199

--HG--
extra : moz-landing-system : lando
2019-01-11 11:58:24 +00:00
Zibi Braniecki
ffeb7038f9 Bug 1509583 - Move InlineSpellChecker to sync over locale codes rather than indexes. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D15762

--HG--
extra : moz-landing-system : lando
2019-01-11 00:23:48 +00:00
Matthew Noorenberghe
fdacc288b7 Bug 1477798 - Treat sensitive @autocomplete field names like 'off' in FormData.jsm. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D15780

--HG--
extra : moz-landing-system : lando
2019-01-10 18:49:46 +00:00
Brian Grinstead
f6c12a437b Bug 1441935 - Modifications on top of the generated MozBrowser Custom Element r=mconley
In order to make the history easier to navigate, this changeset includes the
modifications required to make <xul:browser> actually work as a Custom Element,
and switches the app to use it instead of the XBL browser.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 01:45:43 +00:00
Razvan Maries
f4c5025ab9 Merge mozilla-inbound to mozilla-central a=merge 2019-01-09 00:01:24 +02:00
Gijs Kruitbosch
38b9379998 Bug 1515103 - show frame rate and whether we're on a low end device in about:support, r=kats,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D15844

--HG--
extra : moz-landing-system : lando
2019-01-08 15:48:24 +00:00
Paolo Amadini
2a67f25fbd Bug 1454360 - Use "arrowscrollbox" in the "popup-scrollbars" binding. r=NeilDeakin
This prepares this binding for the unification with the "popup" binding, and removes the last consumer of the scrollByIndex method of XULScrollElement.

Because some code paths in "arrowscrollbox" are optimized using requestAnimationFrame, the related scrolling tests are now asynchronous.

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

--HG--
extra : rebase_source : f5d26df106785f2c0d158b8a23a648a71ab06b2d
2019-01-04 15:07:12 +00:00
alwu
242554622e Bug 1513039 - part1 : remove caching temporary autoplay permission. r=smaug,florian
We're going to remove all autoplay temporary permission related codes, so we don't need to cache it anymore.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 18:29:10 +00:00
Bogdan Tara
9600ad4953 Backed out changeset b776171d854c (bug 1515103) for browser_Troubleshoot.js failures CLOSED TREE 2019-01-07 22:28:59 +02:00
Gijs Kruitbosch
fca05d0c79 Bug 1515103 - show frame rate and whether we're on a low end device in about:support, r=kats,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D15844

--HG--
extra : moz-landing-system : lando
2019-01-07 18:48:11 +00:00
Masayuki Nakano
ed2040ac16 Bug 1447239 - Implement InputEvent.inputType r=smaug
This patch implements InputType.inputType which is declared by Input Events.
The attribute has already been implemented by Chrome and Safari.  Chrome
implements Input Events Level 1, but Safari implements Input Events Level 2.
 Difference between them is only whether it supports "insertFromComposition",
"deleteByComposition" and "deleteCompositionText".  This patch makes the
level switchable with pref and takes Level 1 by default because Level 2 is
still unstable around event order with composition events.

For reducing string copy cost at dispatching "input" event, this patch
makes EditorInternalInputEvent store valid input-type as enum class,
EditorInputType and resolves it to string value when
dom::InputEvent::GetInputType() is called.  Note that the reason why
this patch names the enum class as EditorInputType is, there is InputType
enum class already for avoiding conflict the name, this appends "Editor"
prefix because "input" and "beforeinput" events are fired only when an
editor has focus.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 10:10:57 +00:00
Alastor Wu
c64bb9ac90 Bug 1513681 - part5 : remove event 'AudibleAutoplayMediaOccurred'. r=jaws
This event is used for shield-study which has finished, so we could remove it.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 19:04:39 +00:00
Alastor Wu
d861885915 Bug 1513681 - part3 : rename 'AudibleAutoplayChild' actor r=jaws
Use more proper name for actor which will handle all autoplay related events.

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

--HG--
rename : toolkit/actors/AudibleAutoplayChild.jsm => toolkit/actors/AutoplayChild.jsm
extra : moz-landing-system : lando
2019-01-04 18:35:09 +00:00
Alastor Wu
f3c146dcd4 Bug 1513681 - part2 : handle 'GloballyAutoplayBlocked' event r=jaws,daleharvey
Handle the process from receiving event to showing the block icon.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 18:33:53 +00:00
Cosmin Sabou
3de3011707 Backed out changeset dbea03a5c55e (bug 1497146) for bmsvc bustages on SessionStoreUtils.
SessionStoreUtils

--HG--
rename : dom/chrome-webidl/SessionStoreUtils.webidl => toolkit/components/sessionstore/nsISessionStoreUtils.idl
rename : toolkit/components/sessionstore/SessionStoreUtils.cpp => toolkit/components/sessionstore/nsSessionStoreUtils.cpp
2019-01-04 19:37:37 +02:00
Alphan Chen
15328d9c7b Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsISessionStoreUtils.idl => dom/chrome-webidl/SessionStoreUtils.webidl
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-04 16:26:13 +00:00
Mark Banner
8e9e4602f8 Bug 1517456 - Make Task.jsm a test-only module. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D15647

--HG--
rename : toolkit/modules/Task.jsm => toolkit/modules/tests/modules/Task.jsm
extra : moz-landing-system : lando
2019-01-04 08:41:58 +00:00
Mark Banner
d1705a170b Bug 1517456 - Remove remaining production code references to Task.jsm. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D15646

--HG--
extra : moz-landing-system : lando
2019-01-04 08:41:49 +00:00
Mark Banner
b616e2a125 Bug 1517456 - Sqlite.jsm's executeTransaction no longer needs to handle generator functions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D15645

--HG--
extra : moz-landing-system : lando
2019-01-04 08:41:35 +00:00
Bogdan Tara
6defca7262 Backed out 5 changesets (bug 1513681) for browser_autoplay_blocked.js failures CLOSED TREE
Backed out changeset d24ddb803761 (bug 1513681)
Backed out changeset 6f52b229d953 (bug 1513681)
Backed out changeset 79a78732c3ac (bug 1513681)
Backed out changeset d0a9422928ae (bug 1513681)
Backed out changeset 23b5a58e3bcc (bug 1513681)

--HG--
rename : toolkit/actors/AutoplayChild.jsm => toolkit/actors/AudibleAutoplayChild.jsm
2018-12-29 04:00:53 +02:00
alwu
8e9ac45c53 Bug 1513681 - part5 : remove event 'AudibleAutoplayMediaOccurred'. r=jaws
This event is used for shield-study which has finished, so we could remove it.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 19:01:10 +00:00
alwu
c498537436 Bug 1513681 - part3 : rename 'AudibleAutoplayChild' actor r=jaws
Use more proper name for actor which will handle all autoplay related events.

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

--HG--
rename : toolkit/actors/AudibleAutoplayChild.jsm => toolkit/actors/AutoplayChild.jsm
extra : moz-landing-system : lando
2018-12-21 19:00:40 +00:00
alwu
efdf530254 Bug 1513681 - part2 : handle 'GloballyAutoplayBlocked' event r=jaws,daleharvey
Handle the process from receiving event to showing the block icon.

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

--HG--
extra : moz-landing-system : lando
2018-12-28 09:12:44 +00:00
Jared Wein
acfe9c8baf Bug 1507595 - Test fixes. r=flod,Gijs
There are multiple fixes contained in this patch:
- fixes for Android/mobile support
- adding extra strings to the ftl file that were never defined before, and previously the ID was just printed to the page
- update test_l10n.py to not rely on about:support anymore
- changing Troubleshoot.jsm to return and ID and args for the strings that should be displayed, so it is compatible with the Fluent API
- misc. fixes so strings that are not localized don't go through the Fluent codepath

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

--HG--
extra : moz-landing-system : lando
2018-12-28 19:40:33 +00:00
Timothy Guan-tin Chien
9292b73037 Bug 1512489 - Convert datetime-popup binding to a JSM r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D13944

--HG--
rename : toolkit/content/widgets/datetimepopup.xml => toolkit/modules/DateTimePickerPanel.jsm
extra : moz-landing-system : lando
2018-12-21 21:51:57 +00:00
Matthew Noorenberghe
5496cbdd15 Bug 1330228 - Use hasBeenTypePassword in FormData.jsm to not save former password fields. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D15208

--HG--
extra : moz-landing-system : lando
2018-12-21 16:56:15 +00:00
Dão Gottwald
efd44eae02 Bug 1515902 - Introduce panel-footer class to fix common color problem with footer buttons. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D15188

--HG--
rename : toolkit/themes/shared/close-icon.inc.css => toolkit/themes/shared/global.inc.css
extra : moz-landing-system : lando
2018-12-21 15:44:44 +00:00
Makoto Kato
cfca5fc60d Bug 1497682 - Part 1. Add API to recognize username field and password field from a field in form. r=MattN
Summary:
I would like to get username fields etc from form or input element in form.

Since LoginManagerContent._getFormFields has "_" prefix (it means private
member) and LoginManagerCotnent.getFieldContext doesn't return elements,
I would like to add simple API for it.

Reviewers: MattN

Bug #: 1497682

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

--HG--
rename : toolkit/components/passwordmgr/test/unit/test_getFormFields.js => toolkit/components/passwordmgr/test/unit/test_getUserNameAndPasswordFields.js
extra : rebase_source : b4a354231b85371144ccc0fff76f948ae0d09278
2018-12-17 13:29:47 +09:00
Mark Banner
12331afc41 Bug 1503674 - Remove unused PageMetadata. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14678

--HG--
extra : moz-landing-system : lando
2018-12-17 09:33:12 +00:00
Timothy Guan-tin Chien
3913ded230 Bug 1510848 - Do not unattach UA Widget Shadow Root if the element is already re-attached to the tree r=emilio,smaug
This patch moves all UA Widget calls to helper functions in Element.cpp. The helper function AttachAndSetUAShadowRoot sets the shadow root in a runnable, so that it is in the same order of NotifyUAWidget* runnables.

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

--HG--
extra : moz-landing-system : lando
2018-12-15 02:48:46 +00:00
Jan de Mooij
dd5380bb8a Bug 1514195 - Remove Cu.permitCPOWsInScope calls in Task.jsm and Promise-backend.js. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D14541

--HG--
extra : moz-landing-system : lando
2018-12-14 16:18:51 +00:00
Matt Howell
f888211c75 Bug 1514078 - Correctly report Windows running on AArch64 in the update URL. r=rstrong
Differential Revision: https://phabricator.services.mozilla.com/D14502

--HG--
extra : moz-landing-system : lando
2018-12-14 02:23:01 +00:00
Shane Caraveo
2f65e17f02 Bug 1345474 - Check incognito access for webNavigation api, r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D12337

--HG--
extra : moz-landing-system : lando
2018-12-12 14:34:19 +00:00
Mark Banner
0304564ac7 Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:40 +00:00
Csoregi Natalia
9e970681f2 Backed out 2 changesets (bug 1415483) for multiple failures e.g. on test_message_manager_ipc.html. CLOSED TREE
Backed out changeset d00748de66fc (bug 1415483)
Backed out changeset 8dea94258f54 (bug 1415483)
2018-12-11 19:30:57 +02:00
Mark Banner
1abdc8687f Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 14:09:44 +00:00
Botond Ballo
4e2bbb39df Bug 1512267 - If you set a pres shell resolution, you must scale to it. r=kats,JanH
Differential Revision: https://phabricator.services.mozilla.com/D13928

--HG--
extra : moz-landing-system : lando
2018-12-10 19:32:59 +00:00
Noemi Erli
a5c0369219 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-08 00:18:17 +02:00
Emilio Cobos Álvarez
a73c2d572b Bug 1511138 - Fix getComputedStyle usage of SelectChild. r=mconley
I missed the failure in browser_selectpopup_colors.js since it doesn't run on
Linux. Fix the getComputedStyle usage in that code by using
getDefaultComputedStyle, which is what it really wants.

Also, do a bit of cleanup while at it: uaBackgroundColor was unused, and uaColor
was wrong (we don't override the ua color of the <option> element, it just
inherits, so it's the same as the <select> color, and that's what we were
comparing it against anyway).

Differential Revision: https://phabricator.services.mozilla.com/D13956
2018-12-07 14:24:49 -05:00
Emilio Cobos Álvarez
1d7963c67b Bug 1511138 - Improve performance of LightweightThemeConsumer when setting properties, and also avoid _sanitizeCSSColor from getting fooled. r=jaws
This probably deserves a comment as of why it belongs to this bug.

This patch series caused a single, reproducible timeout on
browser_ext_themes_toolbars.js, where the transitionend event it awaits for
stops triggering.

I got fascinated by it and I decided to poke around it in rr instead of just
removing the await line, and here's what's going on.

In the previous implementation of _sanitizeCSSColor, we were not flushing style
because of the optimization bug 1363805 introduced (which wasn't supposed to
deal with out-of-document elements, but it accidentally did so).

In any case, the fact that we were not flushing style in _sanitizeCSSColor
caused us to flush style sometime later when the lwtheme attribute was already
set up, and thus the selector in here matched:

  https://searchfox.org/mozilla-central/rev/cfaa5a1d48d6bc6552199e73004ecb05d0a9c921/browser/themes/shared/browser.inc.css#40

And thus caused the transition rule to apply at a time where the
background-color change happened.

Now we were flushing on getComputedStyle on every call, and in the most
inefficient way possible (changing a custom property on the root before each
property change, which causes us to restyle the whole document to propagate it
down to all descendants).

Furthermore, we were flushing style at a time where the lwtheme attribute
change had not yet happened, and thus when the background-color changed, there
was no transition rule applicable, and the transition didn't fire.

This patch changes LightweightThemeConsumer to avoid restyling the whole
document over and over.

Also, while at it I realized that you could fool the sanitizer with !important
in an experiment stylesheet or with other !important rule in the page really.
It's not clear why you'd do that, but it may be worth to just making that
function completely sound, so I did that and added a test for it.

Differential Revision: https://phabricator.services.mozilla.com/D13716
2018-12-07 14:23:35 -05:00
Emilio Cobos Álvarez
c9a4b595f3 Bug 1511138 - Fix LightweightThemeConsumer's use of getComputedStyle. r=jaws,mconley
See D13472 for spec quotes and such. Other browsers don't allow
getting computed styles in disconnected subtrees and we agreed to follow suit
(it does make sense because when you're not on the flat tree it's not defined
what you're supposed to inherit from, specially in presence of Shadow DOM).

Also, it allows the style system to rely on the DOM being in a sane state.

Differential Revision: https://phabricator.services.mozilla.com/D13551
2018-12-07 14:23:33 -05:00
arthur.iakab
168846ee68 Backed out 5 changesets (bug 1511138) for causing eslint failure on SelectChild.jsm CLOSED TREE
Backed out changeset daee82295b3c (bug 1511138)
Backed out changeset d23c9c3e1566 (bug 1511138)
Backed out changeset a99600391704 (bug 1511138)
Backed out changeset 4ef293b90887 (bug 1511138)
Backed out changeset 4df286b234b3 (bug 1511138)
2018-12-07 20:55:24 +02:00
Emilio Cobos Álvarez
ca9c4ff03a Bug 1511138 - Fix getComputedStyle usage of SelectChild. r=jaws,mconley
I missed the failure in browser_selectpopup_colors.js since it doesn't run on
Linux. Fix the getComputedStyle usage in that code by using
getDefaultComputedStyle, which is what it really wants.

Also, do a bit of cleanup while at it: uaBackgroundColor was unused, and uaColor
was wrong (we don't override the ua color of the <option> element, it just
inherits, so it's the same as the <select> color, and that's what we were
comparing it against anyway).

Differential Revision: https://phabricator.services.mozilla.com/D13956
2018-12-07 13:01:06 -05:00
Emilio Cobos Álvarez
e94c3c6180 Bug 1511138 - Improve performance of LightweightThemeConsumer when setting properties, and also avoid _sanitizeCSSColor from getting fooled. r=jaws
This probably deserves a comment as of why it belongs to this bug.

This patch series caused a single, reproducible timeout on
browser_ext_themes_toolbars.js, where the transitionend event it awaits for
stops triggering.

I got fascinated by it and I decided to poke around it in rr instead of just
removing the await line, and here's what's going on.

In the previous implementation of _sanitizeCSSColor, we were not flushing style
because of the optimization bug 1363805 introduced (which wasn't supposed to
deal with out-of-document elements, but it accidentally did so).

In any case, the fact that we were not flushing style in _sanitizeCSSColor
caused us to flush style sometime later when the lwtheme attribute was already
set up, and thus the selector in here matched:

  https://searchfox.org/mozilla-central/rev/cfaa5a1d48d6bc6552199e73004ecb05d0a9c921/browser/themes/shared/browser.inc.css#40

And thus caused the transition rule to apply at a time where the
background-color change happened.

Now we were flushing on getComputedStyle on every call, and in the most
inefficient way possible (changing a custom property on the root before each
property change, which causes us to restyle the whole document to propagate it
down to all descendants).

Furthermore, we were flushing style at a time where the lwtheme attribute
change had not yet happened, and thus when the background-color changed, there
was no transition rule applicable, and the transition didn't fire.

This patch changes LightweightThemeConsumer to avoid restyling the whole
document over and over.

Also, while at it I realized that you could fool the sanitizer with !important
in an experiment stylesheet or with other !important rule in the page really.
It's not clear why you'd do that, but it may be worth to just making that
function completely sound, so I did that and added a test for it.

Differential Revision: https://phabricator.services.mozilla.com/D13716
2018-12-07 13:01:04 -05:00
Emilio Cobos Álvarez
f4b8cf19fc Bug 1511138 - Fix LightweightThemeConsumer's use of getComputedStyle. r=jaws,mconley
See D13472 for spec quotes and such. Other browsers don't allow
getting computed styles in disconnected subtrees and we agreed to follow suit
(it does make sense because when you're not on the flat tree it's not defined
what you're supposed to inherit from, specially in presence of Shadow DOM).

Also, it allows the style system to rely on the DOM being in a sane state.

Differential Revision: https://phabricator.services.mozilla.com/D13551
2018-12-07 13:01:03 -05:00
Jan de Mooij
eb4bf3347b Bug 1512417 - Pass |this| as second argument to Cu.import calls in Promise-backend.js to fix an issue with same-compartment realms. r=kmag
With same-compartment-realms, the Cu.import native is a cross-realm function so
we switch to its realm and ended up defining things on the wrong global.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 21:59:09 +00:00
Ehsan Akhgari
0dcf936804 Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance 2018-12-03 14:27:53 -05:00
Jan Varga
9bbba97e91 Bug 1286798 - Part 11: Enable tests for session only mode (but only for the old local storage implementation); r=asuth
An attribute for checking if the next gen local storage implementation is enabled is exposed via a new interface nsILocalStorageManager which should be used for any other local storage specific stuff.
2018-11-29 21:47:48 +01:00
Robert Strong
43b69e2d87 Bug 1506915 - Move app update auto enabled / disabled to a jsm. r=bytesized,chutten
This moves getting and setting the value of app.update.auto from nsUpdateService.js to UpdateUtils.jsm so nsUpdateService.js isn't loaded during startup
Changes the browser_policy_app_update_URL.js test to check the default pref for app.update.url since the default pref is read by app update
Fixes a NS_NOINTERFACE error in app update xpcshell tests for AppInfo not implementing nsIPlatformInfo

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

--HG--
extra : moz-landing-system : lando
2018-11-28 21:47:03 +00:00
Ehsan Akhgari
cc714b7adc Bug 1490811 - Part 1: Add a permission doorhanger for the storage access API r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D12467

--HG--
extra : moz-landing-system : lando
2018-11-26 21:23:16 +00:00
Shane Caraveo
dfbb130d83 Bug 1489531 Expose telemetry client_id hash to about:addons via cookie r=Gijs,chutten
Differential Revision: https://phabricator.services.mozilla.com/D9317

--HG--
extra : moz-landing-system : lando
2018-11-26 15:26:39 +00:00
Masayuki Nakano
0acd37ec1d Bug 1504911 - part 4: Make all script for web content dispatch "input" event with proper event interface r=smaug
Currently, some "input" event dispatchers in our script dispatch "input" event
with UIEvent.  This is completely wrong.  For conforming to HTML spec, Event
is proper event.  Additionally, for conforming to Input Events, InputEvent
is proper event only on <textarea> or <input> element which has a single line
editor.

For making us to maintain easier, this patch adds new API, "isInputEventTarget"
to MozEditableElement which returns true when "input" event dispatcher should
use InputEvent for the input element.

Finally, this makes some dispatchers use setUserInput() instead of
setting value and dispatching event by themselves.  This also makes
us to maintain them easier.

Note that this does not touch "input" event dispatchers which dispatch events
only for chrome (such as URL bar, some pages in about: scheme) for making
this change safer as far as possible.

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

--HG--
extra : moz-landing-system : lando
2018-11-20 14:35:38 +00:00
Tom Schuster
5a9d2a428c Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
Depends on D11200

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

--HG--
extra : moz-landing-system : lando
2018-11-20 16:59:56 +00:00
Csoregi Natalia
df7483024d Backed out 6 changesets (bug 1493292) for bustage on /nsTransferable.cpp. CLOSED TREE
Backed out changeset f198bf91320b (bug 1493292)
Backed out changeset 6487aa307123 (bug 1493292)
Backed out changeset f2cabd69c568 (bug 1493292)
Backed out changeset 71430fceb4a3 (bug 1493292)
Backed out changeset 3a9b6d65d8c7 (bug 1493292)
Backed out changeset 55769869037c (bug 1493292)
2018-11-20 17:13:18 +02:00
Tom Schuster
b292ec7c2c Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
Depends on D11200

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

--HG--
extra : moz-landing-system : lando
2018-11-20 14:47:02 +00:00
Mathieu Leplatre
2cc780ec8e Bug 1502146 - Reduce impact of RemoteSettings synchronization on main thread r=Gijs
Move JSON dump loading and CanonicalJSON serialization to a worker to reduce impact on main thread

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

--HG--
extra : moz-landing-system : lando
2018-11-20 14:00:06 +00:00
Andreea Pavel
ec618b5047 Backed out changeset 81abb539b39c (bug 1502146) for failing services/settings/test/unit/test_remote_settings_worker.js on a CLOSED TREE 2018-11-20 02:13:24 +02:00
Mathieu Leplatre
7c4c9e8608 Bug 1502146 - Reduce impact of RemoteSettings synchronization on main tread r=Gijs
Move JSON dump loading and CanonicalJSON serialization to a worker to reduce impact on main thread

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

--HG--
extra : moz-landing-system : lando
2018-11-19 21:56:28 +00:00
alwu
4515d99b29 Bug 1493766 - part1 : notify when temporary permission changed. r=johannh
Since temporary permissions are only stored in the front-end side, we can't know whether we have
allowed page to autoplay or not without sending a request. Therefore, we want to notify the back-end
side when the temporary permissions changed.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 19:51:26 +00:00
Andrew Swan
2eeb080252 Bug 1500975 Disable GMP updates during xpcshell tests r=ahal
--HG--
extra : rebase_source : 171dd511edad24f35ae0c9ef775ce3e268edb6b4
extra : amend_source : d94f2028213ff7900df697e9fa05451312401f6c
2018-11-13 22:48:29 -08:00
Jared Wein
281dff55d5 Bug 1499869 - Allow displaying of masked credit card numbers when they're invalid. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D9048

--HG--
extra : moz-landing-system : lando
2018-11-13 17:35:29 +00:00
Mathieu Leplatre
a0fb02038c Bug 1504181 - Force scientific notation in CanonicalJSON r=glasserc
Mimic python for small float numbers

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

--HG--
extra : moz-landing-system : lando
2018-11-12 14:12:58 +00:00
Andrew Swan
1c87eeb691 Bug 1500198 Convert talos damp addon to a webextension r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D9337

--HG--
rename : testing/talos/talos/tests/devtools/addon/bootstrap.js => testing/talos/talos/tests/devtools/addon/api.js
rename : testing/talos/talos/tests/devtools/addon/content/damp.html => testing/talos/talos/tests/devtools/addon/damp.html
rename : testing/talos/talos/tests/devtools/addon/install.rdf => testing/talos/talos/tests/devtools/addon/manifest.json
extra : source : db40c647334687d2e97b537c955d834cff0452b8
extra : histedit_source : a83ca0deeda71c358b00743970feb22c9562beed%2Ce09a3ec4c83163775d24dc3046823d660e2cca33
2018-11-07 18:52:06 -08:00
Brindusan Cristian
8493aae42d Backed out changeset db40c6473346 (bug 1500198) for mochitest failures on /mochitest/test_ext_protocolHandlers.html. CLOSED TREE
--HG--
rename : testing/talos/talos/tests/devtools/addon/api.js => testing/talos/talos/tests/devtools/addon/bootstrap.js
rename : testing/talos/talos/tests/devtools/addon/damp.html => testing/talos/talos/tests/devtools/addon/content/damp.html
rename : testing/talos/talos/tests/devtools/addon/manifest.json => testing/talos/talos/tests/devtools/addon/install.rdf
2018-11-10 20:11:43 +02:00
Andrew Swan
bc0c5cfe75 Bug 1500198 Convert talos damp addon to a webextension r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D9337

--HG--
rename : testing/talos/talos/tests/devtools/addon/bootstrap.js => testing/talos/talos/tests/devtools/addon/api.js
rename : testing/talos/talos/tests/devtools/addon/content/damp.html => testing/talos/talos/tests/devtools/addon/damp.html
rename : testing/talos/talos/tests/devtools/addon/install.rdf => testing/talos/talos/tests/devtools/addon/manifest.json
extra : rebase_source : 810ead682de14b1bd4a91896b8e11ce29f4e90b0
2018-11-07 18:52:06 -08:00
Jan Henning
4aeb4f5c39 Bug 1429488 - Part 5: Support persisting moz-extension resources. r=Gijs
Bug 1344926 integrated static themes more closely into the existing infra-
structure for lightweight themes and also intended the static theme's image data
to be persisted to disk as well.

While the headerURL image file is in fact successfully copied out of the
extension archive into the profile, the persist progress listener being used
isn't equipped to properly handle this case and therefore the success callback
is never executed.

As a result
- the callback passed to _persistImages in the LWTManager isn't executed,
  either, although because setting the fallbackThemeData passes in an empty
  callback anyway, no one noticed.
- the persist operation never actually completes, so subsequent calls to
  currentThemeForDisplay() always return the original moz-extension:// image URI
  and never the persisted file from the profile folder.

For Android we definitively require a working callback in order to be able to
forward the fixed-up theme data once the image data has been persisted, so the
persistProgressListener's logic is modified accordingly.
Additionally, because as far as the LWTManager is concerned, WE static themes
are only fallback themes and a call to LWTManager.currentTheme will therefore
never return a WE static theme, the LWTPersister's logic to check whether the
theme, whose files have just been successfully persisted, is still the current
theme, needs to be modified.

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

--HG--
extra : source : 91b2a9224846ef9cc81f1afc9fcfcd1db278644b
extra : histedit_source : d8a47bba3563cb8eb0faf94a7c1f28ba2925d80c
2018-10-22 22:08:01 +02:00
Sebastian Hengst
8955ff609d Bug 1503855 - Use December as previous month for credit card validity check if it's January r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D11020

--HG--
extra : moz-landing-system : lando
2018-11-06 14:52:14 +00:00
vinoth
e14aa2974e Bug 1504605 - Add Prefs to xpcshell test files for allowing usage of eval. r=ckerschb
Reviewers: ckerschb

Reviewed By: ckerschb

Subscribers: ckerschb

Bug #: 1504605

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

--HG--
extra : rebase_source : 9abb395224bdfa7795516295babfd847ea2553f4
2018-11-05 16:41:45 +02:00
Jonathan Kingston
42bd423a94 Bug 1490257 - Add principal to JS code for passing explicit triggeringPrincipals. r=ckerschb
Depends on D10882

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

--HG--
extra : moz-landing-system : lando
2018-11-05 14:05:19 +00:00
Gurzau Raul
424b125b93 Backed out changeset 523ff2753dea (bug 1490257) for causing Bug 1503757 a=backout 2018-11-01 15:27:30 +02:00
Sebastian Hengst
39d91da012 Bug 1503751 - increase year for check of valid credit card if current month is near end of year. r=MattN on IRC a=Aryx 2018-11-01 03:03:17 +02:00
Jonathan Kingston
873b26107e Bug 1490257 - Add asserts into loadURI where we imply SystemPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10221

--HG--
extra : moz-landing-system : lando
2018-10-31 18:00:40 +00:00
Jonathan Kingston
2a8b750345 Bug 1502743 - Replace black/whitelist within caps to block/allowlist r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10013

--HG--
extra : moz-landing-system : lando
2018-10-31 17:56:43 +00:00
Jay Lim
be822ccbde Bug 1472212 - Rename E10SUtils.canLoadURIInProcess to E10SUtils.canLoadURIInRemoteType and modify it to accept an E10SUtils process type instead of a nsIXULRuntime process type. r=Gijs
See next commit for more info. The idea is to use E10SUtils.canLoadURIInRemoteType to detect
if a URI can load in a given E10SUtils process type. Having it to accept a nsIXULRuntime
process type, which will be mapped back to an E10SUtils process type, is unnecessary.

MozReview-Commit-ID: KeYkuRDyqXO

--HG--
extra : source : a8bba29ad2cb20239b87081f77cdf34249d3337b
extra : intermediate-source : 18f824674b76d87ed8cdaee516ad450c1c9b6496
extra : histedit_source : 3a0a8be23c1a5e749396d7aa8c7decbe152bc1db
2018-07-20 18:02:45 -04:00
Jan-Erik Rediger
b463e79733 Bug 1501329 - Persist information about canary after resetting client ID r=chutten
We erroneously reset client IDs on Fennec to a canary client ID.
This is now detected and a new valid and random client ID is set.

This adds a new boolean attribute "wasCanary" to the `state.json` file
generated by ClientID.jsm.

Depends on D9544

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

--HG--
extra : moz-landing-system : lando
2018-10-26 18:01:13 +00:00
Felipe Gomes
e13fd1f1fc Bug 1493984 - Change event listener to the mm to be able to receive chrome events. r=mconley
Some events that actors need to listen to are chrome events which are not received by the listener in the window (even with mozSystemGroup = true).

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

--HG--
extra : moz-landing-system : lando
2018-10-30 21:47:05 +00:00
Felipe Gomes
3b972f7f7a Bug 1493984 - Implement Fission-aware message handling to actors. r=mconley
This patch adds a messaging mechanism to actors that work like this:

If browser.fission.simulate is true, messages handled by ActorManagerChild will only be dispatched to an actor tied to a specific frame, specified either by its frameId (outerWindowId) or by its browsingContextId. Messages that lack the information about the destination frame will be considered meant for the top-level frame.

In addition, a sendMessage API is added to ActorChild that automatically adds the id information to the outbound message, making it easier for it to be handled in the parent.

The frameId support is to ease the transition of some code that is already using outerWindowIds. For new code, it is preferred to use the browsing context ids, together with bug 1496840

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

--HG--
extra : moz-landing-system : lando
2018-10-30 21:47:04 +00:00
Felipe Gomes
51817cd36d Bug 1493984 - Part 0. Fix ActorChild.addEventListener. r=mconley
This fixes the addEventListener in ActorChild that I got wrong on bug 1490810, as it was still directly adding the events to the message manager, instead of going through the dispatcher (which can simulate the Fission process boundaries). ActorChild.addEventListener is meant for actors to add more events after they are constructed (that were not declared in nsBrowserGlue or ActorManagerParent)

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

--HG--
extra : moz-landing-system : lando
2018-10-30 21:46:55 +00:00
Gijs Kruitbosch
000eca920e Bug 1498697 - stop polling when there's nothing to poll, restart when processes are re-added, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D8962

--HG--
extra : moz-landing-system : lando
2018-10-30 19:34:22 +00:00
Felipe Gomes
a129af5f13 Bug 1499896 - Clean up listeners to an empty array instead of null. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D9047

--HG--
extra : moz-landing-system : lando
2018-10-30 19:55:03 +00:00
Kirk Steuber
8bf2befd09 Bug 1503331 - Remove support for a Custom field in the update URL r=rstrong
Differential Revision: https://phabricator.services.mozilla.com/D10266

--HG--
extra : moz-landing-system : lando
2018-10-30 17:12:28 +00:00
Csoregi Natalia
cc313f779c Backed out 9 changesets (bug 1472212) for browser-chrome tests run issues on Linux x64 asan and failures on browser_ext_windows_create_tabId.js. CLOSED TREE
Backed out changeset 18e46df44cd1 (bug 1472212)
Backed out changeset 2e5de66c1f60 (bug 1472212)
Backed out changeset b94f9883aef0 (bug 1472212)
Backed out changeset ebdca743668c (bug 1472212)
Backed out changeset f8a06d01437e (bug 1472212)
Backed out changeset b6996abc7d90 (bug 1472212)
Backed out changeset 24c257cd18c3 (bug 1472212)
Backed out changeset 176f3ee14e67 (bug 1472212)
Backed out changeset b4baa63e5b1b (bug 1472212)
2018-10-30 01:58:21 +02:00
Johann Hofmann
ac88585965 Bug 1502361 - Remove Content Blocking toggle from about:privatebrowsing. r=Ehsan
This simply removes the content blocking section when TP is not enabled to avoid overpromising.
We may update this UI to alert the user that TP is off after the UX team comes back with a new design.

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

--HG--
extra : rebase_source : 6cf70948a142309edf06da3a53874bde2d7372e5
2018-10-29 17:10:24 +01:00