Граф коммитов

661437 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez eb563e1090 Bug 1567237 - Only use scroll range to select scrollable frames to scroll to, don't use scrollbar visibility. r=tnikkel
This is what other browsers do, and it does make sense to me, it's useless to
try to scroll a frame with no scroll range in a given direction.

I think all callers of this function should be treated like this, so this is
more like a RFC / feedback request than a patch per se.

The wheel handling code already checks scroll range, so there's no difference of
behavior in that case, if I'm reading the code right.

There are a few other functions that check the result of
GetPerceivedScrollingDirections(), but I think if we change this we should
change this consistently.

I also think that if we do this we should rename the method to something like
GetAvailableScrollingDirections() or such.

Anyhow, wdyt? I should also add a test for this if we go with this.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 22:04:31 +00:00
Gijs Kruitbosch fffc7f0c58 Bug 1505913 - make plugin click-to-play and crash handling fission-compatible, r=mconley
At a high level, this change does the following:
- move the pluginchild actor to be a JSWindowActorChild
- move the parent handling from browser-plugins into a JSWindowActorParent
- move the crash handling from ContentCrashHandlers.jsm to the parent actor,
  using a `PluginManager` object. It needs to talk to the actors (and vice
  versa), so this seemed a better fit than spreading actor implementation
  details to other JSMs.
- switch to using plugin IDs to identify plugins cross-process, instead of
  combinations of names or other properties of the plugin tag. As part of that,
  ensured plugin IDs are unique between "fake" plugins and the other ones.
- drop support for having a notification for more than 1 plugin. We only support
  Flash, in practice, so there didn't seem to be much point in the added
  complexity of trying to support more than 1 thing.

Some notes:
- the previous implementation mixes runIDs (for NPAPI plugin process "runs")
  and GMP pluginIDs when doing crashreporting. AFAICT there is no guarantee
  these don't conflict, so I've split them out to avoid issues. There's a
  pluginCrashID object I pass around instead that has either a runID or
  pluginID. Happy to rename some more for clarity.
- the previous implementation used `pluginInfo` and `plugin` for a bunch of
  different types of variables. I've tried to be consistent, where:
  * `pluginElement` is a DOM element for a plugin
  * `activationInfo` is a JS object used to track click to play state for a plugin
  * `plugin` is a plugintag as returned by the pluginhost service
  * `pluginCrashID` is an identifier for a crashed plugin (see previous point).
- I'm still using broadcastAsyncMessage to tell the content processes about
  gmp plugin crashes and plugin crash submission updates, because there's no
  guarantee the actors are instantiated (for gmp plugins) nor can the parent
  easily find out which actors to talk to (for either gmp or npapi plugins).
  Open to suggestions there, too. I think our best bet might be moving that to
  IPDL-based IPC within the GMP code, but that feels like a separate bug.

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

--HG--
rename : browser/base/content/browser-plugins.js => browser/actors/PluginParent.jsm
extra : moz-landing-system : lando
2019-07-23 22:04:40 +00:00
mcrawford@mozilla.com 68ac43af8f Bug 1550166 - Install on Mobile Device button in Ellipsis menu r=jaws,fluent-reviewers,Pike
Differential Revision: https://phabricator.services.mozilla.com/D38700

--HG--
extra : moz-landing-system : lando
2019-07-23 22:00:33 +00:00
Nick Alexander b9a2db9df5 Bug 1564282 - Extract `Perftest` abstract base class. r=rwood,perftest-reviewers
This mechanical transform lays the foundation for generalizing the
underlying test runner.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 21:58:46 +00:00
Nick Alexander 3437fc2557 Bug 1564282 - Pre: Make it easier to work with mozbase in Raptor locally. r=ahal
This is the equivalent of .pth in virtualenv declarations.  It sets up
a .egg file with a `sys.path` addition, as far as I can tell.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 21:58:23 +00:00
Narcis Beleuzu 4db8112c33 Backed out 2 changesets (bug 1561939) as per nalexander`s request.
Backed out changeset 2833ba67a5b9 (bug 1561939)
Backed out changeset 3125e12eee29 (bug 1561939)
2019-07-24 00:41:43 +03:00
championshuttler f1a2758d2f Bug 1566097 - Setup rstcheck linter instead of restructuredtext-lint. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38339

--HG--
extra : moz-landing-system : lando
2019-07-23 21:30:10 +00:00
Mike Hommey 0285b677e0 Bug 1525373 - Use run-task for mozharness jobs on generic-worker. r=tomprince
mozharness and mozharness test transforms for generic-worker currently
don't wrap the commands with run-task. This changes things such that the
commands are wrapped with run-task, by piggy-backing on the run_task
transform.

Some things then become redundant with what the run_task transform does,
and some others need to happen later than they currently do in order to
work.

Depends on D28026

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

--HG--
extra : moz-landing-system : lando
2019-07-23 16:12:53 +00:00
Nick Alexander cbf4f4f55e Bug 1561939 - Extract `Perftest` abstract base class. r=rwood,perftest-reviewers
This mechanical transform lays the foundation for generalizing the
underlying test runner.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 23:01:11 +00:00
Nick Alexander 3316f7167c Bug 1561939 - Pre: Make it easier to work with mozbase in Raptor locally. r=ahal
This is the equivalent of .pth in virtualenv declarations.  It sets up
a .egg file with a `sys.path` addition, as far as I can tell.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 20:27:29 +00:00
Tim Huang 6cae15fd9f Bug 1567416 - Part 3: Add a test for checking tracking protection icon loads correct icons according to the TP state. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D38670

--HG--
extra : moz-landing-system : lando
2019-07-23 08:50:23 +00:00
Tim Huang 9263e00d97 Bug 1567416 - Part 2: Update the tracking protection disabled icon to a newer version. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D38669

--HG--
extra : moz-landing-system : lando
2019-07-23 08:28:34 +00:00
Tim Huang c04965b461 Bug 1567416 - Part 1: Fixing the issue that disabled tracking protection icon is not shown when TP is disabled for the given site. r=johannh
This patch fixes the CSS rule for displaying the disabled tracking
protection icon when TP is off.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 08:27:24 +00:00
Matthew Gregan b07ad52d20 Bug 1539225 - Vendor Rust. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D38958

--HG--
extra : moz-landing-system : lando
2019-07-23 19:38:48 +00:00
Matthew Gregan cbbdf7fcb4 Bug 1539225 - Update AudioIPC to pick up backend selection & context name support. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D38957

--HG--
extra : moz-landing-system : lando
2019-07-23 19:34:52 +00:00
Matthew Gregan 703bd02c00 Bug 1539225 - Pass cubeb backend name to AudioIPC server during init. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D37833

--HG--
extra : moz-landing-system : lando
2019-07-23 19:41:37 +00:00
Aaron Klotz 2f9b58fec0 Bug 1567614: Part 3 - Use ShellExecuteByExplorer in nsMIMEInfoWin; r=jmathies
Now that we have built up the required primatives in previous patches, this
patch simply replaces the previous code with a new version that uses the new
APIs from ShellHeaderOnlyUtils.h.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 20:18:21 +00:00
Aaron Klotz bdb6129af0 Bug 1567614: Part 2 - Add ShellExecuteByExplorer overload to handle absolute PIDL lists; r=jmathies
For the URI handling case, we still want to parse the URI to look for any
malformation. OTOH, IShellDispatch2::ShellExecute does not accept PIDLs as
arguments, we we need an overload that converts the absolute PIDL back to a
path for the purposes of passing on to that interface.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 20:18:07 +00:00
Aaron Klotz a9b427157f Bug 1567614: Part 1 - Refactor launcher process's LaunchUnelevated to delegate to ShellExecuteByExplorer; r=jmathies
This is just so that both the launcher process and other Gecko code can share
this method.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 20:17:58 +00:00
Iain Ireland f004b381ea Bug 1544429: Part 0: Fix non-unified ARM build r=tcampbell
When I added TIOracle.cpp, this missing header broke the unified ARM build. (We don't test non-unified ARM builds by default.)

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

--HG--
extra : moz-landing-system : lando
2019-07-22 17:22:15 +00:00
Kristen Wright 6c5b2d41b0 Bug 1559659 - 3. Get rid of per-thread jscontext instantiation and use the global pool instead r=jandem
Got rid of the per-thread JSContext created at the start of each thread. Tasks that require JSContext (ParseTasks, IonBuilder, Wasm tier 2 generators, GCParallel) now request an unused context to set to their thread. Tasks which do not use JSContext will not request one.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 18:52:38 +00:00
Kristen Wright f9d7d9f61b Bug 1559659 - 2. Create, initialize, destroy vector of JSContext* with GlobalHelperThreadState r=jandem
Created a vector of JSContext*, initialized at creation of GlobalHelperThreadState, destroyed when GlobalHelperThreadState.finish() is called. Note that this implementation makes the assumption that the creation and destruction of these objects always happens in the same order (helper thread state created -> main thread context created -> main thread context destroyed -> helper thread state destroyed). In this scenario context checks can clear by each context claiming the main thread during its ctor/dtor but this is only possible if the main thread context is not set at the time.

Also, removed GlobalHelperThreadState::lock() and unlock(), as they are not being used - AutoLockHelperThreadState is used instead.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 19:24:22 +00:00
Kristen Wright b6f17638ea Bug 1559659 - 1. Liberate TlsContext.set() process from JSContext ctor, add thread id ptr, make it possible to clear thread context & id without destroying JSContext r=jandem
Created SetThread/ClearThread functions to handle JSContext/tid setting/clearing & updated existing implementation of JSContext to reflect. CurrentThread is ContextData because JSContext should already have a "claim" on the thread if it's clearing these.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 19:26:52 +00:00
Brendan Dahl 1fdd881959 Bug 1567558 - Fix textbox spell checker UI in XHTML documents. r=NeilDeakin
Remove the uneeded XULDocument check so that when textbox elements are
loaded in XHTML documents the inline spell checker UI works.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 20:46:03 +00:00
Emilio Cobos Álvarez d320364386 Bug 1568124 - Fix dynamic change handling of layout.css.dpi and layout.css.devPixelsPerPx prefs. r=dholbert
Bug 1561547 introduces an SVG resource document in the UI in a way that the pref
changed callback ends up being called for that document _before_ being called for
the main document.

Given mDeviceContext is shared, it's a bug to depend on the return value of the
CheckDPIChange call, since then we only properly update the first document that
gets notified.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 20:41:01 +00:00
Nick Alexander 3fb9ca394a Bug 1563074 - Lift Android device performance tuning out of `testing/raptor/raptor.py`. r=rwood
Bug 1547135 added functionality to configure specific Android devices
for performance tests. That code landed as part of device setup in
`testing/raptor/raptor.py` but there is nothing Raptor-specific
(indeed, nothing harness-specific) about this configuration.

Rather than lift it to `mozdevice`, this commit moves it into a
`performance_tuning` module.  That's enough to slim down `raptor.py`.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 20:55:38 +00:00
Narcis Beleuzu b24422d05d Backed out changeset 637f32b7e43c (bug 1567335) for dt failures on markup.css . CLOSED TREE 2019-07-23 23:24:34 +03:00
Narcis Beleuzu 78f3381905 Backed out changeset f74c9d255293 (bug 1568055) for Assertion failures (MOZ_ASSERT_UNREACHABLE: leaking stream event). CLOSED TREE 2019-07-23 23:13:43 +03:00
Narcis Beleuzu 5f131d63bd Backed out 2 changesets (bug 1567951) for mda failures on test_peerConnection_setRemoteOfferInHaveLocalOffer.html . CLOSED TREE
Backed out changeset ca95add81105 (bug 1567951)
Backed out changeset 092e24332c39 (bug 1567951)

--HG--
extra : histedit_source : e2768cd60a59cd80528a92bab86d3fe24962cfe8
2019-07-23 23:02:54 +03:00
Emilio Cobos Álvarez 49478cea9a Bug 1567105 - Tests. r=jwatt
The reftest-paged tests don't trigger the document clone code-path (I realized
that after writing them), but I guess they don't hurt, the printpreview test
does fail without the previous patch.

Depends on D39053

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

--HG--
extra : moz-landing-system : lando
2019-07-23 19:22:48 +00:00
Emilio Cobos Álvarez d1e4832ced Bug 1567105 - When cloning a document for printing, call SetCompatMode rather than silently copying over the compat mode. r=jwatt
So that the styleset and CSS loader react appropriately.

Bug 1535788 causes the styleset to be created earlier, so it stopped grabbing the
already-updated compat mode.

I think the CSS loader stuff could already cause some issues before bug 1535788,
for what is worth.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 19:22:33 +00:00
Iain Ireland 0081438f24 Bug 1562294: Remove assumptions about TI in jsop_intrinsic r=jandem
In the first version of this code, we assumed that a non-empty typeset implied that we had already executed this opcode, so the intrinsic must already exist and its type must have already been added to the typeset. We added an assertion to justify the assumption.

In bug 1000780, we improved jsop_intrinsic to check for the intrinsic's existence, because it might have been created elsewhere. The assertion remained, even though we were no longer depending on it for correctness.

The new monitorType testing function gives us another way to add to type sets, making it possible for the typeset in jsop_intrinsic to contain something other than the type of the intrinsic. That doesn't cause any correctness issues, so the right fix is just to remove the assertion and adjust the surrounding logic accordingly.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 08:29:07 +00:00
Boris Zbarsky 3381384634 Bug 1568279. Remove some unnecessary QIs to nsIDOMChromeWindow. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D39066

--HG--
extra : moz-landing-system : lando
2019-07-23 19:08:55 +00:00
Armando Ferreira a22a750ddc Bug 1558198 - Add history navigation buttons in Editor toolbar. r=nchevobbe
Adding History navigation to Editor toolbar

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:36:01 +00:00
Armando Ferreira 237ff71915 Bug 1540722 - Copy link location should work for learn-more links. r=nchevobbe
Support for coping link location from within the Console panel (through the context menu) can be extended and cover learn more links too.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:34:08 +00:00
Edwin Gao 7fd5fb983a Bug 1555454 - disable permafailing tests on macosx1014, migrate mochitest-browser-chrome to macosx1014 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38783

--HG--
extra : moz-landing-system : lando
2019-07-23 18:30:26 +00:00
Micah Tigley 3ec2df99e1 Bug 1559427 - Display data from Lockwise on the Monitor card. r=MattN
Depends on D38228

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:22:28 +00:00
Jan-Ivar Bruaroey 2e658e3d4b Bug 1567951: Test implicit rollback in SRD(offer). r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D38890

--HG--
extra : moz-landing-system : lando
2019-07-23 00:23:05 +00:00
Jan-Ivar Bruaroey 5bce336f55 Bug 1567951: Add implicit rollback in setRemoteDescription(offer). r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D38889

--HG--
extra : moz-landing-system : lando
2019-07-23 18:07:18 +00:00
Drew Willcoxon e915ec88ec Bug 1502821 - Don't autofill bookmarks when browser.urlbar.suggest.bookmark is false. r=mak
* Add a new case for when suggest.bookmark = false to the logic that returns the appropriate SQL query. Don't autofill bookmarks in that case.
* Add a bunch of new tests that cover all cases

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:21:08 +00:00
Belén Albeza 4dbbe95828 Bug 1565571 - Switch components to PureComponent r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D39003

--HG--
extra : moz-landing-system : lando
2019-07-23 13:46:57 +00:00
Charlie Marlow 497fd1947d Bug 1567643: adding text-decoration-skip-ink: none to reftests r=dholbert
Browsers who already have text-decoration-skip-ink implemented will currently
fail [or spuriously pass] these tests because the feature is on by default and
the Ahem font is "ink-heavy", causing underlines and overlines to not show up
at all. The added text-decoration-skip-ink: none; line will ensure that an
underline or overline will be rendered whether or not skip-ink has been
implemented.

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:08:15 +00:00
Daniel Holbert dd66dfe12b Bug 1566991: Add some assertions to sanity-check that our mobile viewport zoom factors are positive. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D38419

--HG--
extra : moz-landing-system : lando
2019-07-23 18:07:26 +00:00
Tim Nguyen a63f0a1fc3 Bug 1561955 - Run ./mach eslint on protections JS files to fix lint errors. r=eslint-fix CLOSED TREE
--HG--
extra : histedit_source : dd7724d1e5a79e5ab46141e92bd4ab2d0dd9301d
2019-07-23 10:30:36 -07:00
Drew Willcoxon cdc9484d3d Bug 1566932 - Move quantumbar docs to browser/components/urlbar/docs. r=mak
* Move AddressBar.rst into a new browser/components/urlbar/docs directory
* Break it up into several files, which makes the patch look way bigger than it really is because I used `hg cp` to preserve blame
* Add an Experiments & Extensions file/subsection, to be written later
* Rewrite the intro a little for wording and also to reflect the fact that quantumbar has shipped, and also tweak the wording of some subsection titles

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

--HG--
rename : browser/docs/AddressBar.rst => browser/components/urlbar/docs/contact.rst
rename : browser/docs/AddressBar.rst => browser/components/urlbar/docs/debugging.rst
rename : browser/docs/AddressBar.rst => browser/components/urlbar/docs/overview.rst
rename : browser/docs/AddressBar.rst => browser/components/urlbar/docs/telemetry.rst
rename : browser/docs/AddressBar.rst => browser/components/urlbar/docs/utilities.rst
extra : moz-landing-system : lando
2019-07-23 17:54:03 +00:00
Johann Hofmann c7d97e7440 Bug 1568110 - Add RPMGetStringPref for getting the content blocking category pref in about:protections. r=ewright
Depends on D38966

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

--HG--
extra : moz-landing-system : lando
2019-07-23 17:45:54 +00:00
Johann Hofmann 1bfdedd197 Bug 1568110 - Use RPMGetBoolPref to get prefs in about:protections. r=mtigley,ewright
Differential Revision: https://phabricator.services.mozilla.com/D38966

--HG--
extra : moz-landing-system : lando
2019-07-23 17:44:43 +00:00
Matthew Gaudet a5a3d1e566 Bug 1558604 - Defer initialization of JSFunction::nargs until after function parsing is done. r=jorendorff
The args count needs to be set before the LazyScript takes hold of the
functionbox, or else some code that references lazy functions can get the wrong
number of arguments (ie, CloneFunctionObjectIfNotSingleton on a lazy function)

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

--HG--
extra : moz-landing-system : lando
2019-07-23 17:49:31 +00:00
Matthew Gaudet a1b1769aac Bug 1558604 - Keep interpreted and interpretedLazy on FunctionBox r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D34587

--HG--
extra : moz-landing-system : lando
2019-07-23 17:49:31 +00:00
Ryan VanderMeulen 2599f90f55 Bug 1567891 - Update pdf.js to version 2.3.45. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D38855

--HG--
extra : moz-landing-system : lando
2019-07-23 17:41:52 +00:00