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

740483 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano b12d5c9e83 Bug 1357365 - part 4: Make `TypeInState` stop keeping link style when selection change command is performed, but it didn't change selection r=m_kato,edgar
When caret is not moved but selection change command is fired, it means that
the caret is already set to start or end of editing host.  In this case, we
should stop keeping link style for new inserting content because otherwise,
user cannot exit from the first or last link with arrow keys.

Differential Revision: https://phabricator.services.mozilla.com/D101003
2021-01-13 01:55:32 +00:00
Masayuki Nakano 201d289381 Bug 1357365 - part 3: Make `TypeInState::OnSelectionChange()` stop keeping link style if caret is positioned at edge of a link element and not moved in the link r=m_kato,edgar
Although different from the other browsers' behavior, our traditional behavior
might be better than them because the behavior on the other browser does not
allow users to insert new content at start nor end of a link.

However, we can relax more about keeping traditional behavior for web-compat.
Perhaps, only when caret is moved from the other side of first or last character
in the link and moves caret to the edge of the link with arrow key, we should
allow users to modify the link text.

Otherwise, e.g., `Home` and `End` key press should make it stop keeping the
link style.  This helps advanced users who are familiar with keyboard navigatin
in editor.

Note that this patch also changes the condition which checks
`aReason & nsISelectionListener::KEYPRESS_REASON` to check also
`nsISelectionListener::COLLAPSETO_START_REASON` and
`nsISelectionListener::COLLAPSETO_END_REASON` because all of them are
set by `nsFrameSelection::MoveCaret` exclusively.
https://searchfox.org/mozilla-central/rev/a0ccd492719b1ad2106f6456549be62a76f45acb/layout/generic/nsFrameSelection.cpp#738,741,745
Therefore, they should be treated as same as a key press.

Note that they are also set by `Selection::CollapseToStart` and
`Selection::CollapseToEnd` too.  But a following patch will add a new
reason to notify selection listeners of caused by JS.  So, the problem
will be fixed by the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D101002
2021-01-13 01:55:29 +00:00
Masayuki Nakano 4b218fc374 Bug 1357365 - part 2: Make `TypeInState::OnSelectionChange()` stop inserting new content into the link if clicked outside it r=m_kato
When mouse button is clicked outside a link element but caret is positioned
start or end of the link, our traditional behavior keeps inserting new content
into the link.  But this is different from the other browsers, and it does
not make sense to treat such selection change is intended to keep typing in
the link element.

Therefore, this patch makes `TypeInState::OnSelectionChange()` handle
selection change reason is `mousedown` and `mouseup` cases.  However,
it cannot know whether the event was fired in the parent link element or
not.  Therefore, this patch makes `HTMLEditorEventListener` notifies
`TypeInState` of mouse events via `HTMLEditor`.

Differential Revision: https://phabricator.services.mozilla.com/D101001
2021-01-13 01:55:27 +00:00
Masayuki Nakano 0028b2127b Bug 1357365 - part 1: Rename `HTMLEditor::OnMouseDown()`, `HTMLEditor::OnMouseUp()` and `HTMLEditor::OnMouseMove()` r=m_kato
They were designed for object resizer and grabber to move absolutely positioned
element.  Therefore, they should have better name to explain what they do.
Then, we can create event listener methods for generic cases.

Differential Revision: https://phabricator.services.mozilla.com/D100999
2021-01-13 01:54:17 +00:00
Masayuki Nakano 3cd22c1f8e Bug 1357365 - part 0-2: Add WPT for testing whether typing text is inserted into or outside of a link in various cases r=m_kato
This patch adds WPTs whose expected result is based on Chrome's behavior.

Differential Revision: https://phabricator.services.mozilla.com/D100998
2021-01-13 01:54:04 +00:00
Masayuki Nakano aca200577d Bug 1357365 - part 0-1: Make `test_typing_at_edge_of_anchor.html` test both on `contenteditable` and `designMode` r=m_kato
Currently, the test checks the result only in `contenteditable`, but I'd be
better to do same tests in `designMode` editor too.

Additionally, for detecting regressions of the following patches, it should
check the result of 2nd typing too because inserting text into end of a link
element may cause unlink it.

Differential Revision: https://phabricator.services.mozilla.com/D100997
2021-01-13 01:53:46 +00:00
Aki Sasaki 506b573b77 Bug 1677914 - enable chain of trust on pgo profile tasks. r=releng-reviewers,mtabara
Depends on D97470

Differential Revision: https://phabricator.services.mozilla.com/D93457
2021-01-13 01:01:11 +00:00
Aki Sasaki e05831c081 Bug 1677914 - enable chain of trust on mac builders. r=taskgraph-reviewers,jmaher,glandium
Differential Revision: https://phabricator.services.mozilla.com/D97470
2021-01-13 01:01:11 +00:00
Aki Sasaki 20ea21b26d Bug 1677914 - generate osx pgo profiles on b-osx-1015 pool. r=taskgraph-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D101498
2021-01-13 01:01:11 +00:00
Butkovits Atila bcdf48f6d6 Backed out 3 changesets (bug 1611554) for causing bustage on recurse.mk. CLOSED TREE
Backed out changeset bb1ce63d73ec (bug 1611554)
Backed out changeset 0d4317da1006 (bug 1611554)
Backed out changeset dc905e5db0cc (bug 1611554)
2021-01-13 03:16:17 +02:00
Erica Wright 26101454bb Bug 1684859 - Connect titles and toggles, fix padding and font weight. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D101409
2021-01-12 19:37:23 +00:00
Aaron Klotz 898fb17519 Bug 1611554: Part 3 - Use jinja templates to generate GeckoChildProcessServices.java and AndroidManifest_overlay.xml; r=geckoview-reviewers,agi
This patch converts `GeckoChildProcessServices.java` into a jinja template.
We also add an overlay generated from a jinja template for `AndroidManifest.xml`
that provides the definitions for content process services.

Note that even though Gradle supports simple substitution of variables in
manifests, I opted not to use that functionality. Since we need the more
powerful template functionality that jinja provides, I felt that having multiple
ways to substitute information into the manifest would be confusing, so we're
using jinja exclusively.

Differential Revision: https://phabricator.services.mozilla.com/D82578
2021-01-13 00:38:25 +00:00
Aaron Klotz 669a8ecdcc Bug 1611554: Part 2 - Modify GeckoView build to generate manifest and service definitions from jinja files; r=nalexander,geckoview-reviewers,snorp
* We add a config option for setting the number of content services;
* We add a config option to indicate whether content services should be isolated.
  This one is just a `project_flag` since it doesn't really need the ability to
  be overridden; it's something whose default we would want to flip when the
  time comes;
* We set a dependency so that mobile/android/base/pre-export is executed;
* We add the `gen_from_jinja.py` script which is mostly just a dumb shim that
  takes the input template and the config arguments, instantiates jinja,
  generates the final output, and dumps it to the output fd;
* We add the requisite `moz.build` statements to generate the manifest overlay
  and the service definitions;
* We update `build.gradle` so that Gradle knows to look for the generated files
  when building the apk.

Differential Revision: https://phabricator.services.mozilla.com/D82577
2021-01-13 00:24:06 +00:00
Aaron Klotz a0981d658b Bug 1611554: Part 1 - Add capability for build system to generate files during pre-export tier when building GeckoView; r=nalexander,rstewart
These are the minimum changes that we need to make to common build system code
to allow us to generate files during pre-export.

We add a `required_before_export` flag to `GeneratedFile` to indicate when a
particular file must be generated in `pre-export`. We set that flag when there
are `.jinja` input files and we're configured for a GeckoView build, otherwise
it is set to `False`.

Then the recursive `make` backend assigns any `GeneratedFile`s that have
`required_before_export` set to run in the `pre-export` tier.

Differential Revision: https://phabricator.services.mozilla.com/D82576
2021-01-13 00:24:03 +00:00
Butkovits Atila 4d521226ef Backed out changeset f8e28ebbdaa0 (bug 1675720) for causing failures on browser_system_dialog_subdialog_hidden.js. CLOSED TREE 2021-01-13 03:00:31 +02:00
Gerald Squelart 46d0db1b2c Bug 1677130 - Allow out-of-order ReleaseChunk - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D100860
2021-01-12 23:30:27 +00:00
Kartikaya Gupta 2d5e940dca Bug 1686130 - Update test_layerization to use SpecialPowers.promiseTimeout. r=botond
Depends on D101425

Differential Revision: https://phabricator.services.mozilla.com/D101426
2021-01-12 02:36:46 +00:00
Kartikaya Gupta 88b1045f59 Bug 1686130 - Fix delay argument propagation. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D101425
2021-01-12 19:41:51 +00:00
Aaron Klotz 48a50615fb Bug 1682987: Unconditionally return true from ServiceWorkerParentInterceptEnabled; r=dom-workers-and-storage-reviewers,asuth
The [current implementation](https://searchfox.org/mozilla-central/rev/c7cf087b6e1384608ca3989f042f12f7cabd0a5f/dom/serviceworkers/ServiceWorkerUtils.cpp#25)
of `ServiceWorkerParentInterceptEnabled` uses two atomics to load the
`dom.serviceWorkers.parent_intercept` pref.

As-is, there is a slight chance that this function could return a false-negative,
given that `sInitialized` is set to `true` before `sEnabled` is set.

Per asuth, we now unconditionally return `true`.

Differential Revision: https://phabricator.services.mozilla.com/D99957
2021-01-12 23:12:53 +00:00
Lee Salzman e2aaaf0c12 Bug 1686363 - handle case in RenderCompositorSWGL where DT is size of window. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D101513
2021-01-13 00:04:16 +00:00
Butkovits Atila 7742c03714 Backed out 4 changesets (bug 1680637, bug 1682395) for causing Marionette failures. CLOSED TREE
Backed out changeset 073e0be7db95 (bug 1680637)
Backed out changeset 552b91b31b0f (bug 1682395)
Backed out changeset c80de6c72779 (bug 1680637)
Backed out changeset d513e228b0ad (bug 1680637)
2021-01-13 02:13:06 +02:00
Nick Alexander e74edb8950 Bug 1686089 - Make `mach package-multi-locale` handle Desktop on macOS. r=zbraniecki
There's a macOS-specific wrinkle for browser/ that populates the
`.app` directory.  This makes that happen as part of `mach
package-multi-locale`.  It's the equivalent, I suppose, of `mach
android assemble-app` for Desktop.

Differential Revision: https://phabricator.services.mozilla.com/D101502
2021-01-12 23:12:40 +00:00
Micah Tigley 06e7942185 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-12 22:32:24 +00:00
Micah Tigley ae03fa7f2c Bug 1682395 - Center content prompts managed by TabDialogBox r=dao
Depends on D100955

Differential Revision: https://phabricator.services.mozilla.com/D100172
2021-01-11 20:55:29 +00:00
Micah Tigley c0ec6961ed Bug 1680637 - Rename TabDialogBox's manager to tabDialogManager r=marionette-reviewers,Gijs
To clarify the two separate SubDialog managers managed by TabDialogManager, this patch renames `_.dialogManager` to `._tabDialogManager`.

Depends on D100066

Differential Revision: https://phabricator.services.mozilla.com/D100955
2021-01-11 20:55:19 +00:00
Micah Tigley ebb0c0923f Bug 1680637 - Add a dialog manager for content prompts in TabDialogBox r=jaws,Gijs
The TabDialogBox will manage two separate SubDialog managers at the tab and content level. Dialogs managed at the tab level will always be on top of content ones and should always receive focus first when tab switching or refocusing the window.

Differential Revision: https://phabricator.services.mozilla.com/D100066
2021-01-11 20:55:09 +00:00
Tim Nguyen d807516fc0 Bug 1273941 - Followup: remove leftover comment in browser_styleeditor_sourcemap_watching.js. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101510
2021-01-12 22:59:49 +00:00
Daniel Holbert 45b4733e89 Bug 1667620: Use a more-permissive "asserts" annotation for reftest abspos-breaking-004.html. (no review, just adjusting test metadata)
This test spams the same assertion either 4 or 6 times, with this variation
probably being due to an extra reflow which we sometimes incur due to a
font-fallback task having coincidentally just completed, as described in
https://groups.google.com/g/mozilla.dev.platform/c/VBh6oLm4EbQ/m/dbaJcAe6BgAJ

Previously the test was annotated as asserting exactly 4 times, but now we
need to allow for it to sometimes assert 6 times instead.

Differential Revision: https://phabricator.services.mozilla.com/D101506
2021-01-12 22:40:33 +00:00
Ryan VanderMeulen 01d4f055a4 Bug 1686287 - Update reftest expectations. r=me for a CLOSED TREE
We'd previously loosened this check in the OTS 8.1.0 update (bug 1672563), but the changes in 8.1.3 are causing this to fail again.
2021-01-12 17:57:01 -05:00
Barret Rennie 99ec0104cf Bug 1684999 - Call RunOnShutdown on main thread in PathUtils r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D101382
2021-01-12 20:38:28 +00:00
Erik Nordin 979cf92582 Bug 1675720 - Fix print_to_filename prefs for Linux system dialog r=emilio
This patch ensures that the global print_to_filename pref is checked
when initializing print settings from prefs.

It also fixes a regression which was preventing the Linux system dialog
from correctly reading its printer-specific print_to_filename prefs.

Differential Revision: https://phabricator.services.mozilla.com/D98975
2021-01-12 22:08:21 +00:00
Jonathan Kew 2c4aba0023 Bug 1686106 - Allow the character map record created for unicode-range to be shared among FontFaces with the same descriptor. r=heycam
This will reduce memory footprint when there are multiple @font-face rules with the same unicode-range descriptor,
which is common when, for example, a site loads several styles of a family, all with the same character repertoire.

Differential Revision: https://phabricator.services.mozilla.com/D101411
2021-01-12 22:07:10 +00:00
Connor Sheehan 57d304dec4 Bug 1686333: don't install `libpython2-dev` r=firefox-build-system-reviewers,mhentges
Seems it isn't always available. Since Py2 is optional anyways, it
shouldn't cause failures in `mach bootstrap`.

Differential Revision: https://phabricator.services.mozilla.com/D101499
2021-01-12 21:55:57 +00:00
Mike Hommey 5784a24c72 Bug 1686177 - Remove leftover from bug 1426785. r=releng-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D101442
2021-01-12 21:51:10 +00:00
Mike Hommey 44899de812 Bug 1686177 - Remove leftover from bug 1571573. r=releng-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D101441
2021-01-12 21:51:10 +00:00
Mitchell Hentges 82dd2c68f0 Bug 1686279: Support Python 3.6 with glean_parser r=sheehan
glean_parser depends on `iso8601`, but only on Python <= 3.6.
Add the `iso8601` hash to our frozen dependency hash list accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D101494
2021-01-12 21:36:11 +00:00
nirmay 51171d43ab Bug 1684646 - Removed 'else' after 'return'. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D101223
2021-01-12 20:52:29 +00:00
Matt Woodrow 13d9ff3426 Bug 1679585 - Ensure we always set an overlap for invalidated tiles. r=lsalzman
In rare cases, WR can invalidate a tile, but still compute a dirty rect that doesn't intersect that tile.
flush_composites expects all updated tiles to have recorded at least one overlap (for itself), so we set this manually (as we in the normal path after the early return).

Differential Revision: https://phabricator.services.mozilla.com/D101427
2021-01-12 21:33:25 +00:00
Rob Wu 5bcd69dce6 Bug 1658733 - Fix typo, use --no-system-changes in message r=jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101472
2021-01-12 18:20:55 +00:00
stransky 2ef0cb2551 Bug 1685055 [Wayland] Post SyncBegin() to main thread only and remove thread specific code as it's unused, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D101157
2021-01-12 21:07:22 +00:00
stransky 45a9baf489 Bug 1685055 [Wayland] Dispatch Wayland display queue in main thread only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D101156
2021-01-11 20:31:18 +00:00
Emma Malysz bfd0fa65e8 Bug 1649625, remove OS.File from ContentPrefService2.jsm r=barret
Differential Revision: https://phabricator.services.mozilla.com/D101421
2021-01-12 21:03:22 +00:00
Ryan VanderMeulen 80653bb7cb Bug 1686287 - Update OTS to 8.1.3. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D101475
2021-01-12 21:01:04 +00:00
Emma Malysz 1fb61f9730 Bug 1679704, support createUniquePath in PathUtils r=barret
Differential Revision: https://phabricator.services.mozilla.com/D101419
2021-01-12 20:44:46 +00:00
prathiksha bbde2d048e Bug 1685083 - Remove section menus if newNewtabExperience is turned on. r=ewright,thecount
Differential Revision: https://phabricator.services.mozilla.com/D101166
2021-01-12 20:20:59 +00:00
Chris H-C 078aa47127 Bug 1675877 - Record for fog validation whether profile is on a ssd r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D101368
2021-01-12 20:45:09 +00:00
Connor Sheehan 5f3ac9bc5b Bug 1684915: install Python development headers during bootstrap on Fedora/Debian flavors r=firefox-build-system-reviewers,mhentges
Since zstandard has native code that must be compiled, and that code
uses Python headers, we should be installing those headers as part
of bootstrap.

Most users will have these packages on their machines through various
other means (notably installing `pip`, ie `sudo apt install python3-pip`),
but since it is possible to avoid a pip installation (for example
by installing Mercurial through `yum` and then running bootstrap
immediately after cloning) we should specify these packages as required
by bootstrap.

Differential Revision: https://phabricator.services.mozilla.com/D101479
2021-01-12 20:35:24 +00:00
Emma Malysz ab256f15e4 Bug 1685773, fix browser_print_context_menu.js test to include pref value r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D101424
2021-01-12 17:51:53 +00:00
harry 50286f3f68 Bug 1686127 - Support text highlighting in dynamic results. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D101412
2021-01-12 19:53:15 +00:00
Drew Willcoxon d602f8aaa8 Bug 1579964 - Update the urlbar experiments doc for the new experimental API development model. r=harry
I focused this on fixing what the bug describes: updating the doc for our new
development model where we create experimental APIs inside each extension
instead of landing APIs in mozilla-central. There are a number of other changes
I want to make to this doc but didn't here in order to keep it scoped. I filed
bug 1684069 for those other changes. I can imagine that some of the changes that
this patch makes will be overidden or updated by that bug.

This also fixes a broken link or two.

Differential Revision: https://phabricator.services.mozilla.com/D100417
2021-01-12 19:44:58 +00:00