637291 Commits

Author SHA1 Message Date
Andreas Tolfsen
23bd70fdf0 bug 1526938: geckodriver: display help message on non-clap errors; r=whimboo
The help message is implicitly included in clap error descriptions, but
they are not for errors originating from this file.  By introducing
a FatalError::help_included() function we make sure we print the
help message in all cases.

An alternative implementation, which perhaps would be more idiomatic,
would be to prepare the help message within the fmt::Display trait
implementation for FatalError, but I could find no way of passing
in a reference to clap::App without storing it in an atomic global const.

Depends on D19430

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:49 +00:00
Andreas Tolfsen
97645bcfd7 bug 1526938: geckodriver: fix missing flag parsing errors; r=whimboo
Because we emit the flag parsing errors to the log, through error!(),
they are subject to whether the logging subsystem is enabled.
Because logging is disabled by default, no error information is
currently displayed to the user.

Since we cannot initialise logging implicitly due to the risk of
emitting log messages the user did not request, this patch changes
geckodriver to print the flag parsing errors to stderr

Depends on D19429

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:47 +00:00
Andreas Tolfsen
11dbf68ec3 bug 1526938: geckodriver: organise args a bit more consistently; r=whimboo
Depends on D19428

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:45 +00:00
Andreas Tolfsen
d736055e78 bug 1526938: geckodriver: remove --webdriver-port alias; r=whimboo
We replaced --webdriver-port with --port to better match
EdgeDriver and chromedriver, but it was discovered in
https://github.com/mozilla/geckodriver/issues/154 that this broke
Selenium clients.

We decided on a two-spearhead approach by reintroducing --webdriver-port
as a temporary alias, whilst submitting fixes for the Selenium clients.
The fixes to Selenium landed over three years ago.

This patch removes the --webdriver-port alias from geckodriver.

Depends on D19427

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:43 +00:00
Andreas Tolfsen
2c8e80e643 bug 1526938: geckodriver: generalise cli errors; r=whimboo
Instead of returning a tuple of (i32, String), causing us to lose
details and the cause of an error, this patch formalises the error
scenarios that may occur during command-line parsing and startup
of the WebDriver server.

Exit codes are encoded with each variant of FatalError, instead of
being specified in each case.

Type conversions are implemented for clap::Error (flag parsing)
and io::Error (webdriver::server).

Depends on D19426

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:36 +00:00
Andreas Tolfsen
6a855ec9af bug 1526938: geckodriver: import logging::Level into the global scope; r=whimboo
Depends on D19425

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:34 +00:00
Andreas Tolfsen
3f92c7eb3f bug 1526938: geckodriver: convert ExitCode to consts; r=whimboo
We don't need an enum for exit codes as we never have to match
on them.  Converting them to consts also has the benefit that we
will not have to coerce them to i32.

i32 is the correct type to use here, since it is what std::process::exit()
takes and what the libc crate uses.

Depends on D19424

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:32 +00:00
Andreas Tolfsen
34be303ca3 bug 1526938: geckodriver: make use of clap default values; r=whimboo
Making use of clap::Arg::default_value() removes duplicated magic
strings, by not having to use .unwrap_or("default value").

Depends on D19423

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

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:30 +00:00
Andreas Tolfsen
4c2364eff1 bug 1526938: geckodriver: display same version on --help as on --version; r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D19423

--HG--
extra : moz-landing-system : lando
2019-02-18 12:48:28 +00:00
Luca Greco
739c8ea697 Bug 1484789 - Ensure document flushed before triggering context menu in a browserAction popup test. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D19967

--HG--
extra : moz-landing-system : lando
2019-02-15 18:10:11 +00:00
Cosmin Sabou
af297c3823 Bug 1522439 - Disable /service-workers/service-worker/navigation-redirect.https.html?client on win debug and linux. r=jmaher
Reviewers: jmaher

Reviewed By: jmaher

Bug #: 1522439

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

--HG--
extra : rebase_source : 32c42b8130068ff23ec363947c4257229f4f2bbe
2019-02-18 11:00:41 +02:00
Petru Lingurar
60f4606fbe Bug 1511946 - Hint about "Switch to tab" option for AwesomeScreen's stream items; r=JanH
The behaviour of switching to an already opened tab for an item in the stream
list was already in place, this patch just modifies the item's layout by
adding a text hint about this possibility - "Switch to tab", dynamically,
depending on if a tab is already opened or not in the current session.

Each stream item will implement `Tabs.OnTabsChangedListener` and check if the
changed Tab had stream's Url.
If so it will pass this event to the list's Adapter which will refresh the
stream item's layout.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 11:03:48 +00:00
Gijs Kruitbosch
7996faf31b Bug 1509847 - only move minimized windows behind unminimized ones, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D19181

--HG--
extra : moz-landing-system : lando
2019-02-18 07:04:43 +00:00
Dimi Lee
12ebaa396b Bug 1527658 - Use asyncClassifyLocalWithFeatures API in aboutPerformance. r=baku
The error happened because aboutPerformance provided an unused
parameter to Classify API which is removed in Bug 1501458.

Check tracking protection tables via Classify API is not supported now.
We should use asyncClassifyLocalWithFeatures API instead.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 08:50:09 +00:00
Andrei Lazar
db07b8d19c Bug 1525872 PushEvent.data is null for push messages encrypted with aes128gcm r=JanH
Added check for AES128GCM encoding since we won't have separate enckey and cryptokey but rather encoded in the body.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 08:15:26 +00:00
Andrei Lazar
a53a4ff68a Bug 1521476 Crash in java.lang.IllegalStateException: at org.mozilla.gecko.GeckoApplication.createShortcut(GeckoApplication.java) r=petru
Removed intended throw of IllegalStateException for Nightly when a page was not considered safe as a PWA.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:42:43 +00:00
Julian Descottes
2a4141885b Bug 1505132 - Add test for backward compatibility warnings in about:debugging;r=daisuke
Depends on D18985

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:12:39 +00:00
Julian Descottes
a6864f299a Bug 1505132 - Show compatibility warning message in new aboutdebugging;r=daisuke,ladybenko
Depends on D18984

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

--HG--
extra : moz-landing-system : lando
2019-02-18 08:55:54 +00:00
Julian Descottes
20a3c061dd Bug 1505132 - Use spread operator to export types;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D18984

--HG--
extra : moz-landing-system : lando
2019-02-18 09:26:28 +00:00
Razvan Caliman
c21e773cbd Bug 1525238 - Use actorID for tracked rules and stylesheets. r=pbro
Replaces custom generated hashes with the actorIDs which are stable
during the editing session enough to use as unique identifiers.

For future restore / persistence, we still have the metadata about each
rule and stylesheet to attempt to identify them again.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 16:29:21 +00:00
Jonathan Kew
67db6ca162 Bug 1358019 - Reimplement word-break:break-all to better match the CSS Text spec. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D19480

--HG--
extra : moz-landing-system : lando
2019-02-18 10:14:24 +00:00
sotaro
087c420a72 Bug 1526213 - Enable WebRenderTextureHostWrapper for canvas r=nical
By using WebRenderTextureHostWrapper for canvas, we could avoid triggering frame build on WebRender backend if WebRenderTextureHostWrapper is only change.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:33:32 +00:00
sotaro
ba95495155 Bug 1527556 - Change MAX_DISPLAY_CONNECTIONS to 3 r=stransky
nsWaylandDisplay needs to be allocated for each calling thread(main thread, compositor thread and render thread)

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:15:30 +00:00
Marco Zehe
7f72d56975 Bug 1303429 - expose placeholder object attribute for HTML placeholder, r=Jamie
The appropriate case is when placeholder is not used as the absolutely last fallback for the accessible name, and the input is not labeled by the same text as in the placeholder attribute itself. So a label and the placeholder text must be different for the object attribute to be exposed.

In addition, for ATK, placeholder is being renamed to placeholder-text to comply with the platform specification.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 09:21:32 +00:00
pradeepgangwar
d2e475753a Bug 1350740- Make [Learn More] Link of console message unselectable; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D17494

--HG--
extra : moz-landing-system : lando
2019-02-18 09:53:09 +00:00
Nicolas Silva
b92eadafcf Bug 1476368 - Preallocate the render task tree. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D19916

--HG--
extra : moz-landing-system : lando
2019-02-15 16:57:43 +00:00
championshuttler
aac90623a5 Bug 1528209 - Remove support for unused .cui-withicon class. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20113

--HG--
extra : moz-landing-system : lando
2019-02-18 08:44:10 +00:00
Cosmin Sabou
9c478a1718 Backed out changeset fce0d0927739 (bug 1522439) for wpt failures on service-workers/service-worker/navigation-redirect.https.html. CLOSED TREE 2019-02-18 10:56:33 +02:00
Marco Bonardo
fa08d8daa0 Bug 1524780 - Perma failure in browser_urlbar_keyed_search.js for Beta. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D19904

--HG--
extra : moz-landing-system : lando
2019-02-15 14:24:53 +00:00
Emilio Cobos Álvarez
61afcd6fcc Bug 1528643 - Fix mach clang-format -c in mercurial. r=sylvestre
Turns out hg diff works differently, and when Miko tried to use this
option last week he realized it didn't work quite as expected.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 08:13:45 +00:00
Chris H-C
fcae8c7f2b Bug 1501659 - Ensure child processes know which dynamic scalars were built-in. r=janerik
Depends on D19836

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:47:44 +00:00
Chris H-C
11a63a30a3 Bug 1501659 - Expire expired dynamic builtin scalars and events r=janerik
When registering dynamic builtin scalars and events (Build Faster support) we
didn't check whether they were expired. Let's do that.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:47:44 +00:00
Masayuki Nakano
ab3745273c Bug 1466208 - part 22: Create PresShell::EventHandler::EventTargetData::ComputeElementFromFrame() r=smaug
This patch moves the block to compute event target of the event using
coordinates into the new method of PresShell::EventHandler::EventTargetData.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 04:33:06 +00:00
Tim Nguyen
2b08947a68 Bug 1528206 - Clean up browser/themes/windows/customizableui/panelUI.css. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D19935

--HG--
extra : moz-landing-system : lando
2019-02-18 06:53:52 +00:00
Petru-Mugurel Lingurar
ca5b6837e1 Bug 1503978 - Force fullscreen after PiP only if media is playing; r=JanH
Otherwise the user should see and be able to interact with the whole page.

Refactored `PictureInPictureController` to check the media playing status for
only the current tab, the one the user has in front and for which we may allow
PiP because `GeckoMediaControlAgent.isMediaPlaying()` would give us false
positives in the case where the current Tab is in fullscreen but not playing
media, while at the same time a background Tab is playing media.

BrowserApp will only force fullscreen after returning from PiP if media
playback has ended, but will keep fullscreen for playing/paused media.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 17:32:42 +00:00
Julian Descottes
6c3d75cad6 Bug 1528140 - Wait for requests to settle after aboutdebugging tab is selected;r=daisuke
We should wait until the selected tab has been updated because we fetch tabs when the selected index changes.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 07:03:21 +00:00
Chris Peterson
79fdd8bd67 Bug 1528600 - widget/cocoa: Remove empty function EnsureLogInitialized(). r=mstange
widget/cocoa/nsChildView.mm:249:6 [-Wmissing-prototypes] no previous prototype for function 'EnsureLogInitialized'

Depends on D20087

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

--HG--
extra : moz-landing-system : lando
2019-02-17 16:10:57 +00:00
Chris Peterson
43be80fa7a Bug 1528600 - widget/cocoa: Change some global functions to static. r=mstange
widget/cocoa/nsChildView.mm:1932:21 [-Wmissing-prototypes] no previous prototype for function 'TextureSizeForSize'
widget/cocoa/nsCocoaUtils.mm:351:6 [-Wmissing-prototypes] no previous prototype for function 'data_ss_release_callback'

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

--HG--
extra : moz-landing-system : lando
2019-02-17 16:11:53 +00:00
Nicolas Chevobbe
fbd29e33c8 Bug 1527898 - Override find and replace commands when disableSearchAddon is true; r=gl.
This is an hotfix for the bug, which we want to uplift.
A better fix will happen in Bug 1527903.

Depends on D19963

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

--HG--
extra : moz-landing-system : lando
2019-02-18 04:35:42 +00:00
Nicolas Chevobbe
d0dfd717b5 Bug 1527898 - Turn sourceditor setup test helper async; r=gl.
The function was returning a Promise but was also
taking a callback for old-style test.
This patch turns the function into an async one,
remove the callback param and refactor tests that
relied on it.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 06:13:29 +00:00
Dorel Luca
3ad5fcb79f Bug 1522439 - Disable /service-workers/service-worker/navigation-redirect.https.html?client on win debug and linux. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D20030

--HG--
extra : moz-landing-system : lando
2019-02-16 15:57:39 +00:00
Dão Gottwald
05d4b6962a Bug 1521494 - Close the results view if something is typed, then deleted. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20090

--HG--
extra : moz-landing-system : lando
2019-02-17 20:26:51 +00:00
Hiroyuki Ikezoe
e40c79572d Bug 1528640 - Fix expected results that the same component values can be omitted. r=emilio
From '6.7.2 Serializing CSS Values'[1];

 If component values can be omitted or replaced with a shorter representation
 without changing the meaning of the value, omit/replace them.

[1] https://drafts.csswg.org/cssom/#serializing-css-values

Depends on D20103

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

--HG--
extra : moz-landing-system : lando
2019-02-18 02:33:12 +00:00
Hiroyuki Ikezoe
0a5721ad9c Bug 1528640 - Implement scroll-padding parser and serializer. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D20103

--HG--
extra : moz-landing-system : lando
2019-02-18 02:46:09 +00:00
Hiroyuki Ikezoe
842f78da12 Bug 1528639 - Implement scroll-margin parser and serializer. r=emilio
The reason why we use  RelaxedAtomBoolis that
ScrollSnapUtils::GetSnapPointForDestination() is called both from the main and
the compositor threads, and the function will have a branch depending on the
pref value.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 02:25:54 +00:00
Emilio Cobos Álvarez
4fc1b18570 Bug 1528613 - Downgrade two assertions from release assert for now. r=heycam
These assertions can happen in certain circumstances (see the referenced bug).

These assertions are not security sensitive, but they affect correctness.

They're old (from before my change), so I prefer dealing with them in a public
bug and stop crashing release for now.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 00:30:17 +00:00
Daniel Varga
5a59867ce2 Merge mozilla-central to autoland. a=merge 2019-02-17 23:49:02 +02:00
Daniel Varga
7b9af4dfe5 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
extra : amend_source : 8dbe055fb58f324710840bd1814355379583253c
2019-02-17 23:44:23 +02:00
Drew Willcoxon
3b52006a24 Bug 1525487 - When a search alias offer result is picked, fill it in the input and don't visit its site. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20084

--HG--
extra : moz-landing-system : lando
2019-02-17 18:12:16 +00:00
Drew Willcoxon
00c5812394 Bug 1499648 - Make search alias (@ token alias) formatting work with UrlbarView. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20055

--HG--
extra : moz-landing-system : lando
2019-02-17 18:12:14 +00:00