Commit Graph

734 Commits

Author SHA1 Message Date
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Melvin George
8a32278bc9 Bug 1553236 - Change tests using Services.search.addEngineWithDetails() to use the object parameter form. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D32565

--HG--
extra : moz-landing-system : lando
2019-06-03 09:55:15 +00:00
Andrea Marchesini
b1b122fb20 Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33031

--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Paul Zuehlcke
225d93a362 Bug 1372033 - Added option to permanently disallow addon installation for a website. r=johannh,aswan
Differential Revision: https://phabricator.services.mozilla.com/D28867

--HG--
extra : moz-landing-system : lando
2019-05-16 10:20:07 +00:00
Nika Layzell
6eb2084136 Bug 1544811 - Use web processes on a per-site basis for fission-enabled windows, r=mconley
This patch introduces a new type of content process, which has a dynamic name.
This type of content process is labeled as `webIsolated=${SITE_ORIGIN}` and is
used within fission-enabled windows.

To enable this, additional information about the fission status of the target
window must be passed into E10SUtils. This was done by updating every call site
manually to pass an extra boolean. A better solution perhaps should be used in
the future.

With this patch enabled, we now perform process switches, but only when
navigating to HTTP URIs. If we navigate to a non-HTTP URI in an iframe with
fission enabled, it will not behave correctly. This must be done in a
follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 21:31:57 +00:00
Johann Hofmann
cdd6d741fd Bug 1536454 - Part 1 - Add userHadInteractedWithDocument and documentDOMContentLoadedTimestamp attributes to nsIContentPermissionPrompt. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D26942

--HG--
extra : moz-landing-system : lando
2019-04-18 13:43:05 +00:00
Rob Wu
4a6f84f91d Bug 1544834 - Replace deprecated generics in test code r=evilpie
- `Array.map` becomes `Array.from`
- Array copying via `Array.slice` becomes `Array.from`.
- `Array.forEach` that did not rely on closures becomes `for`-`of` loops.
- Anything else: `Array.X` becomes `Array.prototype.X`.

Complex cases:

dom/bindings/test/TestInterfaceJS.js and
dom/bindings/test/test_exception_options_from_jsimplemented.html
use `Array.indexOf` to generate an error with a specific error message.
Switched to `Array.prototype.forEach` to generate the same error.

js/src/jit-test/tests/basic/exception-column-number.js
In this test `Array.indexOf()` is used to generate an error. Since the
exact message doesn't matter, I switched to `Array.from()`.

Intentionally not changed:

editor/libeditor/tests/browserscope/lib/richtext/richtext/js/range.js
Did not modify because this is 3rd-party code and the code uses
feature detection as a fall back when Array generics are not used.

testing/talos/talos/tests/dromaeo/lib/mootools.js
Did not modify because mootools adds the `Array.slice` method to the
`Array` object.

Not changed because they check the implementation of Array generics:
js/src/jit-test/tests/basic/arrayNatives.js
js/src/jit-test/tests/basic/bug563243.js
js/src/jit-test/tests/basic/bug618853.js
js/src/jit-test/tests/basic/bug830967.js
js/src/jit-test/tests/jaeger/recompile/bug656753.js
js/src/jit-test/tests/self-hosting/alternate-static-and-instance-array-extras.js
js/src/tests/non262/Array/generics.js
js/src/tests/non262/Array/regress-415540.js
js/src/tests/non262/extensions/regress-355497.js
js/src/tests/non262/extensions/typedarray-set-neutering.js

Depends on D27802

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

--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:19 +00:00
Mike de Boer
5d842c0354 Bug 1518545 - Remove the superfluous 'engine-current' Search Service observer topic in favour of 'engine-default'. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D27857

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js => toolkit/components/places/tests/unifiedcomplete/test_search_engine_default.js
extra : moz-landing-system : lando
2019-04-17 09:45:24 +00:00
Dale Harvey
ec391f3454 Bug 1544077 - Remove unused recordSearchURLTelemetry idl definition. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D27725

--HG--
extra : moz-landing-system : lando
2019-04-16 15:50:50 +00:00
Nihanth Subramanya
0f3e51207d Bug 1416163 - Implement EveryWindow.jsm to run arbitrary per-window code. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26947

--HG--
extra : moz-landing-system : lando
2019-04-16 16:17:25 +00:00
Drew Willcoxon
c1f323bbe7 Bug 1541929 - Don't autofill the first result in some cases. r=mak
We need to handle autofilling the first result separately from autofilling results in general (which happens in UrlbarInput.setValueFromResult), so add a new UrlbarInput.autofillFirstResult method. The controller calls it instead of setValueFromResult. I ported the logic from nsAutoCompleteController, as described in the bug.

Other changes are related to the new test for this.

As part of this work, I was interested in learning how awesomebar handles browser_autoFill_typed.js, so I added it to the legacy tests, with a small tweak in the test for awesomebar.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 13:15:30 +00:00
Paul Zuehlcke
6fdf832adc Bug 1492668 - Store temporary site permissions by base domain to mitigate permission notification spam r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26704

--HG--
extra : rebase_source : 84cd5ee40755276ae9f6adeee9d6d06e65bb0607
extra : source : 1839a68aea956a9c69f305f1c6b493a20e72a2d7
2019-04-09 12:56:47 +00:00
Cosmin Sabou
b956e6c5d1 Backed out changeset 1839a68aea95 (bug 1492668) for assertion failures on GMPParent.cpp. CLOSED TREE 2019-04-09 17:11:28 +03:00
Paul Zuehlcke
3badc9750a Bug 1492668 - Store temporary site permissions by base domain to mitigate permission notification spam r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D26704

--HG--
extra : moz-landing-system : lando
2019-04-09 12:56:47 +00:00
phoenixabhishek
b66ed5ba6f Bug 1521919 - SitePermissions.get should check for nsIURI. r=johannh
functions now throw an error if the uri parameter is not an nsIURI.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 05:40:23 +00:00
Jan-Erik Rediger
6bc73bc6a2 Bug 1529696 - Rename DATASET_RELEASE_CHANNEL_OPTOUT/OPTIN to DATASET_ALL/PRERELEASE_CHANNELS everywhere r=chutten
Depends on D25934

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:12:11 +00:00
Johann Hofmann
8885eb3fe6 Bug 1540088 - Require user interaction for push notification permission prompts in Nightly. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D25418

--HG--
extra : moz-landing-system : lando
2019-03-29 18:08:20 +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
Andrei Oprea
8975211e35 Bug 1505535 - Add tab usage probes for pinned tabs r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D24031

--HG--
extra : moz-landing-system : lando
2019-03-26 09:12:10 +00:00
Ciure Andrei
559632b9f9 Backed out changeset 01cdf8342a49 (bug 1521919) for test_SitePermissions.js perma failures CLOSED TREE 2019-03-22 18:01:27 +02:00
phoenixabhishek
54f5273656 Bug 1521919 - SitePermissions.get should check for nsIURI. r=johannh
functions now throw an error if the uri parameter is not an nsIURI.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 10:32:30 +00:00
Gijs Kruitbosch
1e96300cf3 Bug 1353013 - create preloaded newtab browser from an idle task, only in top window(s), r=dthayer
This limits us to 1 preloaded browser per window, in the top 3 normal windows + top 3 private windows.
If we try to create additional browsers beyond that, we instead move a pre-existing browser across.

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

--HG--
extra : moz-landing-system : lando
2019-03-19 17:29:48 +00:00
shindli
a7af1edc71 Backed out 3 changesets (bug 1353013) for a11y failures in accessible/tests/mochitest/relations/test_tabbrowser.xul CLOSED TREE
Backed out changeset af8bce2330e9 (bug 1353013)
Backed out changeset a3d1302b06c0 (bug 1353013)
Backed out changeset 976afd1adf84 (bug 1353013)
2019-03-18 18:21:16 +02:00
Gijs Kruitbosch
e306931fb1 Bug 1353013 - create preloaded newtab browser from an idle task, only in top window(s), r=dthayer
This limits us to 1 preloaded browser per window, in the top 3 normal windows + top 3 private windows.
If we try to create additional browsers beyond that, we instead move a pre-existing browser across.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 14:34:39 +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
Chris H-C
67158f5316 Bug 1527299 - Update callers of assertEvents to new form r=Standard8
Depends on D20866

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

--HG--
extra : moz-landing-system : lando
2019-02-26 21:20:03 +00:00
Marco Bonardo
5c4e44ce0a Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20753

--HG--
extra : moz-landing-system : lando
2019-02-28 08:39:33 +00:00
Gabriele Svelto
5bc9e5bb2b Bug 675539 - Unload tabs in low-memory scenarios r=mconley
This adds a mechanism that discards tabs when the browser detects a low-memory
scenario. Tabs are discarded in LRU order prioritizing regular tabs over
pinned ones, pinned ones over tabs playing audio and all of the previous over
pinned tabs playing audio.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 22:24:27 +00:00
Felipe Gomes
8fdc40f64b Bug 1530767 - Don't limit bug 1529380 improvements to the handoff-to-awesomebar flow. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D21246

--HG--
extra : moz-landing-system : lando
2019-02-27 17:37:49 +00:00
Felipe Gomes
e33554f4c4 Bug 1529380 - ContentSearch shouldn't do XHR for non-data URLs. r=r1cky
Differential Revision: https://phabricator.services.mozilla.com/D20613

--HG--
rename : browser/components/search/test/browser/testEngine.xml => browser/modules/test/browser/testEngine_chromeicon.xml
extra : moz-landing-system : lando
2019-02-22 06:42:00 +00:00
Gurzau Raul
dd9cb929e6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-21 23:56:21 +02:00
Junior Hsu
b7e28eddd2 Bug 1507110 - Allow hijacking localhost only if network.proxy.allow_hijacking_localhost is set r=Gijs,mayhemer,mkaply,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D19325

--HG--
extra : moz-landing-system : lando
2019-02-19 21:53:22 +00:00
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
Mark Banner
5b24b600be Bug 1528255 - In browser_UsageTelemetry*, correct the checks for the urlbar navigation scalar to only look at the specific scalar to avoid intermittents. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D20198

--HG--
extra : moz-landing-system : lando
2019-02-19 09:46:44 +00:00
Gijs Kruitbosch
ca77a3ac16 Bug 1529577 - stop tracking window minimization in BrowserWindowTracker, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D19186

--HG--
extra : rebase_source : 16e601fa7ce3b2381c245417b00a7f204b0a7923
2019-02-08 16:34:41 +00:00
Mark Banner
0df151fa88 Bug 1500476 - Re-implement FX_URLBAR_SELECTED_RESULT_METHOD on the new Quantumbar. r=dao
This doesn't enable the rightClick option for telemetry reporting as that is complicated to support, see bug 1528250.

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

--HG--
extra : moz-landing-system : lando
2019-02-17 06:57:58 +00:00
Mark Banner
10cebf3c34 Bug 1515083 - Re-implement telemetry for selected index/type on QuantumBar. r=adw
This makes the browser_UsageTelemetry_urlbar*.js tests pass for the all of the
FX_URLBAR_SELECTED_RESULT_* histograms apart from the "METHOD" one which will be handled
in bug 1500476.

I have handled the recording of telemetry in the controller, as this seems a better
location than BrowserUsageTelemetry.jsm due to needing to reach into the results and obtain
specific details.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 14:57:23 +00:00
Mark Banner
bc8b48262e Bug 1515083 - Extend urlbar telemetry tests to cover most reported result types. r=adw
This add checks for everything bar 'preloaded-top-site' which isn't used/enabled at the moment (bug 1527888).

Depends on D19709

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

--HG--
extra : moz-landing-system : lando
2019-02-15 14:57:13 +00:00
Mark Banner
0baadc8693 Bug 1522504 - Update browser_PageActions.js and browser_UsageTelemetry_urlbar.js to be able to run with QuantumBar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D19709

--HG--
extra : moz-landing-system : lando
2019-02-14 22:23:43 +00:00
Johann Hofmann
a13167c2c6 Bug 1523272 - Add unit tests for the SiteDataManager. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17871

--HG--
extra : moz-landing-system : lando
2019-02-14 22:53:49 +00:00
Bogdan Tara
4c0cf6db45 Backed out 3 changesets (bug 1523272) for ES Linut failure CLOSED TREE
Backed out changeset 80d103201d1d (bug 1523272)
Backed out changeset bbd8f0b2e3b2 (bug 1523272)
Backed out changeset bf2ec5cdc33b (bug 1523272)
2019-02-14 18:29:54 +02:00
Johann Hofmann
62dfb471d3 Bug 1523272 - Add unit tests for the SiteDataManager. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17871

--HG--
extra : moz-landing-system : lando
2019-02-14 15:22:37 +00:00
Mark Striemer
911fb7280f Bug 1500147 - Part 3: Record add-on manager telemetry for page/browser actions r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D18003

--HG--
extra : moz-landing-system : lando
2019-02-07 16:43:02 +00:00
Varun Dey
2c911ec44a Bug 1524227 Replacing getParentProcessScalar with generic getProcessScalar r=chutten
Replacing existing getParentProcessScalars with a generic implementation of getProcessScalars

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

--HG--
extra : moz-landing-system : lando
2019-02-07 18:11:56 +00:00
Dorel Luca
28f51339d1 Backed out 3 changesets (bug 1523272) for Browser-chrome and tv failures in browser/components/preferences/in-content/tests/siteData/browser_siteData3.js
Backed out changeset ddf39b3e96df (bug 1523272)
Backed out changeset 8fbf00832008 (bug 1523272)
Backed out changeset 7250b9f956b6 (bug 1523272)
2019-02-07 13:55:33 +02:00
Johann Hofmann
a23b44bd06 Bug 1523272 - Add unit tests for the SiteDataManager. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17871

--HG--
extra : moz-landing-system : lando
2019-02-07 09:02:45 +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
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