Commit graph

1894 commits

Author SHA1 Message Date
Geoff Brown
0f0beaf249 Bug 1546553 - Disable some xpcshell tests on Android x86_64; r=jmaher
These tests need to be disabled to get a green run on the Android x86_64
test platform. The failures in toolkit/components/extensions are
concerning and definitely require follow-up.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 16:50:15 +00:00
Kris Maglione
154872a672 Bug 1540984: Pre-load theme header image and share across all windows. r=aswan
For large header images, built-in memory caching does not work correctly, and
we wind up seeing a flicker any time a new window is opened or becomes active.
This patch caches the header image in an Image element at startup, and uses
that element as the backing for the header image in all browser windows.

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

--HG--
extra : source : 6159d01c9341088edcabb318259c8ce6201c61ac
extra : amend_source : c43c543fd142f11b8439a6011a6ffe0f610e1015
2019-05-01 12:43:25 -07:00
Shane Caraveo
5f24a04aa2 Bug 1548177 support incognito flag in request filtering r=kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D29446

--HG--
extra : moz-landing-system : lando
2019-05-02 16:23:03 +00:00
Rob Wu
d0cf678d31 Bug 1545841 - Add deprecation message to several proxy APIs r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D29431

--HG--
extra : moz-landing-system : lando
2019-05-01 10:42:17 +00:00
Shane Caraveo
0d7fd5c81e Bug 1391992 add cookiestoreid to proxy and webrequest details r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D28929

--HG--
extra : moz-landing-system : lando
2019-04-29 18:36:17 +00:00
Shane Caraveo
0873aa1a01 Bug 1545163 add incognito flag to proxy and webrequest details r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D28925

--HG--
extra : moz-landing-system : lando
2019-04-29 18:00:12 +00:00
Emilio Cobos Álvarez
72bf4c9c36 Bug 1440537 - Fix a web-extensions test that relies on layout flushes working across cross-origin iframes. r=kmag
Same as the previous commit, I could make sendMouseEvent do something fancy /
special, but I'd rather not, since it's trivially fixable in the test.

Differential Revision: https://phabricator.services.mozilla.com/D28911
2019-04-27 12:40:34 +02:00
Dão Gottwald
cb12fa87c2 Bug 1546423 - Update browser_ext_themes_autocomplete_popup.js for QuantumBar. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D28621

--HG--
extra : moz-landing-system : lando
2019-04-24 12:55:42 +00:00
Tim Nguyen
d920e1aef1 Bug 1543696 - Fix browser_ext_themes_experiment.js and browser_ext_themes_warnings.js failures due to extensions.legacy.enabled behaving differently on automation. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D28187

--HG--
extra : moz-landing-system : lando
2019-04-24 07:25:28 +00:00
Mark Banner
c507a11dc6 Bug 1544392 - Allow extension icons to be supplied from localized manifest properties, and fix the Yandex icon in search engines. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D28499

--HG--
extra : moz-landing-system : lando
2019-04-23 21:10:00 +00:00
Andrew Swan
4d3cf9fac8 Bug 1535674 Fix race with webextension persistent listeners r=kmag
Bug 1495072 uncovered a race in the webextension persistent listener logic
where the Promise returned by a listener that is not re-registered during
extension startup may never resolve.  When this occurs with a blocking
webRequest listener, content loads just hang forever.
Fix this by forcing primed listeners to reject is they are invoked after
the background page has started.

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

--HG--
extra : rebase_source : f6179911291348c6a0ed99609bbc5fe5526eaa74
2019-04-17 10:49:24 -07:00
Dão Gottwald
1d6199c7eb Bug 1544682 - Move the bottom border from #navigator-toolbox::after to #navigator-toolbox. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D27747

--HG--
extra : moz-landing-system : lando
2019-04-19 07:33:11 +00:00
Rob Wu
ccb2766ceb Bug 1301837 - Defer SwapDocShells event registration in MessageManagerProxy r=rpl
The "SwapDocShells" event should be deferred until "EndSwapDocShells".
Otherwise the event MessageManagerProxy may swap the event listeners
twice, and end up having the listeners on the incorrect message manager.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 17:07:46 +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
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
Agi Sferro
83bc10f815 Bug 1518843 - GeckoView WebExtension Messaging. r=snorp,esawin,robwu,kmag
This change allows GeckoView embedders to respond to
`runtime.sendNativeMessage` and `runtime.connectNative` sent from
WebExtensions.

These APIs are available behind the new privileged-only permission
`geckoViewAddons` and are used by GeckoView apps to communicate between content
and the app.

Depends On D22621

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

--HG--
extra : moz-landing-system : lando
2019-04-17 18:28:10 +00:00
Tim Nguyen
0dc09e7ba9 Bug 1543696 - Don't set extensions.legacy.enabled on beta in browser_ext_themes_experiment.js. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D27153

--HG--
extra : moz-landing-system : lando
2019-04-16 18:14:37 +00:00
Luca Greco
b353df61ec Bug 1542842 - Fix remaining references to undefined Ci.nsITelemetry constant in WebExtensions tests. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D27650

--HG--
extra : moz-landing-system : lando
2019-04-16 12:58:30 +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
Brian Grinstead
6515f97bcb Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
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 1` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:56:58 +00:00
Jared Hirsch
a682f7645f Bug 1536877 - Correct the 'value' type in 'browser.telemetry.recordEvent'; r=rpl
MozReview-Commit-ID: EvI2FvsOjDx

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

--HG--
extra : moz-landing-system : lando
2019-04-15 21:23:02 +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
Coroiu Cristina
4f8d4dea29 Backed out changeset cade5cf8a0ed (bug 1543696) for browser-chrome at toolkit/components/extensions/test/browser/browser_ext_themes_warnings.js 2019-04-13 15:01:25 +03:00
Tim Nguyen
539fb76bb1 Bug 1543696 - Don't set extensions.legacy.enabled on beta in browser_ext_themes_experiment.js. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D27153

--HG--
extra : moz-landing-system : lando
2019-04-13 10:18:16 +00:00
Coroiu Cristina
5e550d2b2b Backed out changeset 1ee98a3cd8fb (bug 1543696) on request by ntim 2019-04-13 13:15:23 +03:00
Tim Nguyen
c9cef3c063 Bug 1543696 - Don't set extensions.legacy.enabled on beta in browser_ext_themes_experiment.js. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D27153

--HG--
extra : moz-landing-system : lando
2019-04-13 10:07:27 +00:00
Coroiu Cristina
f0a2b9f2fe Backed out changeset 7f0e02401370 (bug 1543696) for browser-chrome failures at toolkit/components/extensions/test/browser/browser_ext_themes_warnings.js 2019-04-13 12:59:58 +03:00
Tim Nguyen
46a844f04d Bug 1543696 - Don't set extensions.legacy.enabled on beta in browser_ext_themes_experiment.js. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D27153

--HG--
extra : moz-landing-system : lando
2019-04-12 19:20:47 +00:00
Shane Caraveo
964cc5ac33 Bug 1528562 support POST with 303 redirect in identity.launchWebAuthFlow r=rpl,Ehsan
nsBrowserStatusFilter is updated to not filter out STATE_IS_REDIRECTED_DOCUMENT.

The test here is adding a way to have a "login form" do a post to a server script, which then does a 303 redirect.  This mimics what some services, including LinkedIn do during this stage.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 21:26:14 +00:00
Andreea Pavel
b0d7dc46eb Backed out changeset da3353f475f6 (bug 1528562) for failing mochitest/test_ext_identity.html on a CLOSED TREE 2019-04-11 18:57:48 +03:00
Shane Caraveo
e5dba8b292 Bug 1528562 support POST with 303 redirect in identity.launchWebAuthFlow r=rpl,Ehsan
nsBrowserStatusFilter is updated to not filter out STATE_IS_REDIRECTED_DOCUMENT.

The test here is adding a way to have a "login form" do a post to a server script, which then does a 303 redirect.  This mimics what some services, including LinkedIn do during this stage.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:25:02 +00:00
Tim Nguyen
922bb154e6 Bug 1506913 - Don't apply theme colors on findbar when theme has a header image. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25538

--HG--
extra : moz-landing-system : lando
2019-04-10 16:52:41 +00:00
Bogdan Tara
6460d5d8d7 Backed out changeset f38ce082341e (bug 1506913) for browser_ext_themes_findbar.js failures CLOSED TREE 2019-04-10 19:35:03 +03:00
Tim Nguyen
2facc8da36 Bug 1506913 - Don't apply theme colors on findbar when theme has a header image. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25538

--HG--
extra : moz-landing-system : lando
2019-04-10 15:07:21 +00:00
Luca Greco
8e50a683f8 Bug 1525917 - Add test for background page request cookies on cookieBehaviors. r=Ehsan,mixedpuppy
Depends on D22347

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

--HG--
extra : moz-landing-system : lando
2019-04-05 17:52:07 +00:00
Luca Greco
f84cec16a0 Bug 1541449 - storage.local API should fire onChanged event when falsey values are removed. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D25949

--HG--
extra : moz-landing-system : lando
2019-04-04 12:06:44 +00:00
Luca Greco
2f3db5c142 Bug 1540112 - Enable addonsManager telemetry event category before the AddonManager/XPIProvider have been started. r=aswan,chutten
Differential Revision: https://phabricator.services.mozilla.com/D25380

--HG--
extra : moz-landing-system : lando
2019-04-03 17:56:52 +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
Tim Nguyen
534acf7076 Bug 1482870 - Make current theme experiment initialize in new windows. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D25525

--HG--
extra : moz-landing-system : lando
2019-04-02 21:45:54 +00:00
violet
64fcb4fb58 Bug 1520058 - Add brackets for the host obtained from nsIURI r=robwu,mixedpuppy
To correctly present IPv6 URL, we need to add the brackets for the host obtained from nsIURI

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

--HG--
extra : moz-landing-system : lando
2019-04-01 16:14:43 +00:00
Edwin Gao
cf79011546 Bug 1538785 - disable plugin-related tests from windows10-aarch64 r=jmaher
Disabled plugin related tests.

Added `crashreporter` dependency for browser_restore_isAppTab.js.

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

--HG--
extra : moz-landing-system : lando
2019-04-01 18:30:23 +00:00
Kris Maglione
6d78820c90 Bug 1525762: Part 3e - Get rid of LWTManager theme management code. r=aswan
--HG--
extra : rebase_source : 1dc3cc062f7ef0ce8c80822251b31dbf9cc8f133
extra : histedit_source : 0beb1de14bd4603fa34e7fa8a7178582e3e7d71f
2019-02-08 14:48:54 -08:00
Kris Maglione
a15a869f4f Bug 1525762: Part 2a - Migrate built-in LWTs to static WebExtension themes. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D24627

--HG--
rename : browser/base/content/defaultthemes/dark.icon.svg => browser/themes/addons/dark/icon.svg
rename : browser/base/content/defaultthemes/light.icon.svg => browser/themes/addons/light/icon.svg
rename : toolkit/mozapps/extensions/content/default-theme-icon.svg => toolkit/mozapps/extensions/default-theme/icon.svg
extra : rebase_source : a844186d5a113b596c6bb6bdcd49f443e1879ab2
extra : histedit_source : a5b745dcdac9106fe224895d13862b156feb1eb0
2019-02-08 14:18:52 -08:00
Kris Maglione
d7e5e8cc37 Bug 1525762: Part 1a - Add maybeInstallBuiltinAddon method. r=aswan
This allows us to install built-in themes at startup only when they're new, or
have changed, without requiring special work from callers, and in particular
without requiring loading the add-on database when no changes are required.

--HG--
extra : rebase_source : 4a5260da24b963c168838cc40eed8e46393b2a7e
2019-02-08 12:32:49 -08:00
Brian
d8eb046cd9 Bug 1523763 - Move tab context menu strings to FTL file loaded on-demand. r=Gijs,flod
Moved tab context menu out of browser.dtd to browser.xul except for sendPageToDevice, sendLinkToDevice, moveTabOptions, moveSelectedTabOptions, undoCloseTab. Not sure if tabbrowser.js and tabbrowser.xul are working as intended.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:55:12 +00:00
Luca Greco
80405d5436 Bug 1539432 - Fix test_locale_data permafail on central-as-beta simulation. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D25248

--HG--
extra : moz-landing-system : lando
2019-03-28 16:47:30 +00:00
Oana Pop Rus
226e6c59d9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-28 12:23:56 +02: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