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

725116 Коммитов

Автор SHA1 Сообщение Дата
Scott b7689303c8 Bug 1657306 - Fixing old newtab AS ignoring user pref. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D88642
2020-09-02 18:46:54 +00:00
Scott bebe317a39 Bug 1655124 - Show similar recs when a page is saved to Pocket. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D86120
2020-09-02 17:53:21 +00:00
Mihai Alexandru Michis 03cbee1905 Backed out changeset cd08191c18c9 (bug 1662789) for causing bustages in ScopedGfxFeatureReporter
CLOSED TREE
2020-09-02 22:10:30 +03:00
Mihai Alexandru Michis 997d051046 Backed out changeset 61246cf19cb6 (bug 1589781) for causing failures in test_trr_nat64.js
CLOSED TREE
2020-09-02 21:36:15 +03:00
Nathan Froyd 3b58be4ab2 Bug 1662809 - don't copy entire blocklist entries during blocklist parsing; r=aosmond
Like an earlier patch in the series, this uses `Split()` to return dependent
substrings into the blocklist string, rather than copying each individual
entry out for parsing.  We also, in passing, eliminate a copy from the
converted UTF8 string into an entirely separate string.

Depends on D89169

Differential Revision: https://phabricator.services.mozilla.com/D89170
2020-09-02 17:04:51 +00:00
Nathan Froyd b1a57a4701 Bug 1662809 - don't copy key-value pairs from blocklist entries during parsing; r=aosmond
Instead of splitting the entire entry into an `nsTArray`, we can use
`nsTSubstring::Split` to provide dependent strings into the entry.  We copy
the actual keys and values later, so this should be perfectly safe.

Depends on D89168

Differential Revision: https://phabricator.services.mozilla.com/D89169
2020-09-02 16:58:33 +00:00
Nathan Froyd 61491490cb Bug 1662809 - don't copy split values when parsing gfx blocklists; r=aosmond
There's a lot of string splitting here, which needlessly copies, and then
there's a lot of copies out of the split arrays.  This patch at least
addresses the latter by using references where possible.

Differential Revision: https://phabricator.services.mozilla.com/D89168
2020-09-02 16:58:10 +00:00
Micah Tigley 4af6998c77 Bug 1661776 - Add a paste event handler to PrintUIControlMixin that prevents invalid inputs. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D89009
2020-09-02 17:59:41 +00:00
Nathan Froyd cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
Andrei Oprea af96e9a8f9 Bug 1662144 - Update experiments collection name to nimbus-desktop-experiments r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D88866
2020-09-01 13:08:05 +00:00
Mirko Brodesser efa71ec384 Bug 1662700: enable "test_gsp-qualified.html" for xorigin iframes with Fission. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D89155
2020-09-02 17:10:26 +00:00
Drew Willcoxon 5a0de3ee53 Bug 1600864 - Remove legacy aboutDialog-appUpdater.js implementation r=bytesized
This patch reverts the relevant parts of D54837

Differential Revision: https://phabricator.services.mozilla.com/D55612
2020-09-02 17:59:01 +00:00
Nan Jiang 78ec00ea9e Bug 1661707 - Add ASRouter targeting for newtab and home page settings r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D89027
2020-09-02 17:54:23 +00:00
Drew Willcoxon 6d6402fb4e Bug 1658964 - Convert local restriction chars to search mode and make other improvements to search mode. r=harry
Summary of major changes:

* Bookmarks, history, and tabs restriction chars now enter search mode. I added
  a method to UrlbarProviderHeuristicFallback to return a result with a keyword
  when one of these is used.
* This fixes other bugs like recognizing aliases that are entered at the
  beginning of non-empty search strings, and not quasi-re-entering search mode
  when search mode is already entered and you type another alias.
* The heuristic now determines whether we enter search mode, similar to how it
  also determines whether we autofill. When the heuristic has a keyword but no
  keyword offer, and the keyword is one of the recognized search mode keywords,
  then we enter search mode, cancel the current query, and start a new query
  with the remainder of the search string after the keyword.
* I slightly changed how we detect an alias, but only when update2 is
  enabled. Now, an alias must be followed by a space; otherwise, the alias is
  not recognized and instead just remains part of the seach string. Because if
  we don't do that, then you end up in a strange situation after typing an alias
  but before pressing space: The heuristic says "Search with <engine with the
  alias>", but we haven't entered search mode yet because you haven't typed a
  space yet. This is true for both @aliaes and non-@aliases.
* A consequence of the previous point is that we can still autofill @aliases
  with a trailing space, which IMO is important. Then, once the user types any
  char (space or not), we immediately enter search mode with the query being
  whatever char they typed. This is less important after bug 1658605 landed, but
  it's still good to have.
* Previously, `UrlbarView.onQueryResults` called UrlbarInput in order to
  autofill after the first result is received. This is circuitous becaue the
  input already has an `onFirstResult` method, which I now use to enter search
  mode when appropriate. So I moved the autofill call from UrlbarView to
  `UrlbarInput.onFirstResult`.
* As I mentioned, I improved some test framework and simplified some related
  product (non-test) code. For example:
    * I removed `UrlbarUtils.KEYWORD_OFFER.NONE` in favor of just leaving
      `keywordOffer` as `undefined`.
    * `tailOffsetIndex` can now be `undefined` if it's not relevant.
    * I removed empty-string `icon` properties from payloads in favor of
      `undefined`.
    * In tests, I ignore `undefined` but present properties in payloads so they
      don't count when comparing payloads with `deepEqual`.
    * We weren't previously comparing `result.source` and `result.type` in
      xpcshell tests, and that's important IMO, so I added checks for those and
      updated tests.
    * `isSearchHistory` is redundant, so I removed it. For form history, we
      should be checking `result.source == HISTORY` and `result.type == SEARCH`.
* A bunch of tests needed to be updated for this new behavior.

Differential Revision: https://phabricator.services.mozilla.com/D87944
2020-09-02 00:52:12 +00:00
Scott 7f1c17db7a Bug 1662292 - Enabling Pocket stories in more regions with German speakers. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D88925
2020-09-02 17:20:09 +00:00
Scott 917d882847 Bug 1662199 - Flip newtab story targeting pref back to v1. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D89033
2020-09-02 17:20:02 +00:00
Jeff Gilbert 6b68ac90a2 Bug 1662789 - Add IpcWebGL?/IpcWebGL+ feature annotation. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89177
2020-09-02 17:14:23 +00:00
Jeff Gilbert 29b70b4e07 Bug 1662649 - Don't hard-assert IsSupported for pref-gated WebGL exts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D89176
2020-09-02 17:13:53 +00:00
Dan Mosedale f852bf592b Bug 1659871 - Clean up tests + manifest parsing, add an Alpenglow test, r=pdahiya,florian
Differential Revision: https://phabricator.services.mozilla.com/D89005
2020-09-02 16:46:37 +00:00
Mihai Alexandru Michis 202f4a23fc Backed out changeset 2f0f44bd9758 (Bug 1662528) for causing failures in browsers/the-window-object/*
CLOSED TREE
2020-09-02 21:22:13 +03:00
Mihai Alexandru Michis cc54ff59fc Bug 1619926 - Properly disable test_firstRun of test_TelemetryReportingPolicy.js on android. a=fix
CLOSED TREE
2020-09-02 21:09:16 +03:00
Sam Foster 42ef6170b8 Bug 1659415 - 2nd column items don't need to fill available space in print UI. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D89080
2020-09-02 15:54:30 +00:00
Valentin Gosu 01ce36a751 Bug 1661082 - Backed out changeset 5fdd97a2bd5b (Bug 1652568)
Differential Revision: https://phabricator.services.mozilla.com/D89172
2020-09-02 16:33:33 +00:00
Razvan Maries eae150a880 Backed out 5 changesets (bug 1661457, bug 1661428, bug 1661497, bug 1661502) for build bustages on Result.h. CLOSED TREE
Backed out changeset fbf42b3b51f3 (bug 1661428)
Backed out changeset 83f3f36d540f (bug 1661457)
Backed out changeset 8a9dce0d08ce (bug 1661502)
Backed out changeset 733df139089a (bug 1661497)
Backed out changeset fca770fc0956 (bug 1661428)
2020-09-02 19:44:47 +03:00
Jon Coppeard d11d13b94c Bug 1661766 - Simplify representation of slots/element ranges on the mark stack r=sfink. CLOSED TREE
This stores slots/element ranges as object and start index rather than having
two separate representations (one used during marking, one when we yield to the
mutator during marking). It's possible that this could affect marking
performance but we'll catch that by checking the mark rate telemetry. This
should also reduce the size needed for the mark stack a little.

Differential Revision: https://phabricator.services.mozilla.com/D88723
2020-09-02 08:47:52 +00:00
Sam Foster 3b09aace07 Bug 1659757 - Add paper size picker. r=mstriemer
* Build dictionary of paper sizes at init and whenever the printer changes
* Fetch async margin properties on the selected paper
* Find a paper match by size to selected the correct paper when opening a print dialog or switching to a different printer
* Add virtual properties for paperSize and currentPaper
* Refresh margin settings when the paperName changes as these may be computed

Differential Revision: https://phabricator.services.mozilla.com/D87943
2020-09-02 16:30:55 +00:00
Simon Giesecke 261cda7f20 Bug 1661428 - Support PackingVariant::NullIsOk also with non-trivially-default-constructible V. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D88444
2020-09-02 16:31:43 +00:00
Simon Giesecke 156682b3c2 Bug 1661457 - Add in-place constructor to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D88418
2020-09-02 16:23:13 +00:00
Simon Giesecke d4179392a0 Bug 1661502 - Make Result move-only. r=froydnj,jandem
Differential Revision: https://phabricator.services.mozilla.com/D88443
2020-09-02 16:23:01 +00:00
Simon Giesecke 80d380f0ed Bug 1661497 - Make DebugOnly work with move-only value types. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D88442
2020-09-02 16:22:38 +00:00
Simon Giesecke d5f6d76c5a Bug 1661428 - Use CompactPair instead of Variant for trivially default-constructible V and UnusedZero E. r=froydnj
It seems that the clang toolchain has trouble optimizing away the tag access in
a `mozilla::Variant`. Use of a `CompactPair` seems to be better when `E` is
small (all cases where `UnusedZero<E>` is true are small right now anyway).
While this doesn't change `sizeof(Result<V, E>)` in most cases, it makes
the generated code simpler/smaller: As of now, this reduce the overall VM size
of libxul.so by ca. 59K.

Without additional effort, this requires and leads to default-construction of
a `V` even in cases where it is never accessed, so this is restricted to
trivially default-constructible `V` for now.

This could be avoided by replacing  `CompactPair<V, E>` by
`CompactPair<AlignedStorage2<V>, E>`.

Differential Revision: https://phabricator.services.mozilla.com/D88393
2020-09-02 16:22:25 +00:00
Emilio Cobos Álvarez 33caaa4bbb Bug 1661838 - Fix builds with --disable-printing. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D89166
2020-09-02 16:13:01 +00:00
Jonathan Watt 7422304c17 Bug 1657220. Add telemetry for new print UI. r=bobowen,mbalfanz
Differential Revision: https://phabricator.services.mozilla.com/D87303
2020-09-01 18:47:15 +00:00
Bob Owen 0c55d42a71 Bug 1661975 part 2: Follow-up to fix nsPrintJob::FirePrintingErrorEvent. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D89160
2020-09-02 15:47:10 +00:00
Henri Sivonen d8f0184fa3 Bug 1613054 part 1 - Synchronously request frame focus when .contentWindow.focus() called on OOP iframe. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D70800
2020-09-02 15:05:53 +00:00
Valentin Gosu 809515f19f Bug 1661019 - Fix static-analysis warnings in netwerk/dns r=necko-reviewers,kershaw
Depends on D88145

Differential Revision: https://phabricator.services.mozilla.com/D88146
2020-09-02 15:39:05 +00:00
Valentin Gosu 2eeec2c551 Bug 1661019 - Autofix static-analysis in netwerk/dns r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D88145
2020-09-02 15:39:00 +00:00
Micah Tigley 3b66c902cc Bug 1660060 - Add a keypress handler to PrintUIControlMixin that prevents invalid input. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D89000
2020-09-02 01:51:30 +00:00
Andrew Halberstadt 7020f6a20a Bug 1656465 - Move all 'push-interval-25' optimizations to 'push-interval-20', r=jmaher
We want to try to align 'push-interval' tasks to the 'backstop'. This way
we have greater confidence in our backstop pushes, and it will allow us to
simplify a lot of our backstop logic.

Depends on D89055

Differential Revision: https://phabricator.services.mozilla.com/D89056
2020-09-02 14:05:11 +00:00
Andrew Halberstadt ee5409e879 Bug 1656465 - [ci] Add some taskgraph integration tests to ensure fuzzing builds run where we expect them to, r=taskgraph-reviewers,aki
Each file represents a new taskgraph generation in the tests. But now that these exist, we
can add new assertions to the existing files without worry.

Depends on D89054

Differential Revision: https://phabricator.services.mozilla.com/D89055
2020-09-01 21:43:18 +00:00
Andrew Halberstadt 295d7c05c7 Bug 1656465 - [ci] Move fixtures from test_mach_try_auto.py to conftest to share with new tests, r=taskgraph-reviewers,aki
Under this model, each test file should correspond to a static set of parameters. Each
set of parameters will only ever generate the taskgraph a single time (so adding a new
file will have a perf hit, but adding new test functions to an existing file will not).

Differential Revision: https://phabricator.services.mozilla.com/D89054
2020-09-01 21:39:50 +00:00
Agi Sferro a70a754e72 Bug 1662327 - Use pagetitlechanged instead of DOMTitleChanged. r=esawin,droeh
Differential Revision: https://phabricator.services.mozilla.com/D89086
2020-09-02 15:31:54 +00:00
Mark Banner 9218c820f7 Bug 1619926 - Disable test_firstRun of test_TelemetryReportingPolicy.js on android. r=chutten
Android doesn't use sessionstore-windows-restored and currently doesn't use the search service (which fails for it at the moment).

Differential Revision: https://phabricator.services.mozilla.com/D89062
2020-09-02 14:42:35 +00:00
Mark Banner ece0fb574e Bug 1619926 - Remove test_distribution_unreadable.js as distribution engines are no longer read from a directory. r=daleharvey
Depends on D88022

Differential Revision: https://phabricator.services.mozilla.com/D88023
2020-09-01 21:34:35 +00:00
Mark Banner 552793d2cc Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey
Depends on D88021

Differential Revision: https://phabricator.services.mozilla.com/D88022
2020-09-01 18:08:46 +00:00
Mark Banner c58199cf9f Bug 1619926 - Remove old search config list.json files from tests as they aren't necessary anymore. r=daleharvey
Depends on D88020

Differential Revision: https://phabricator.services.mozilla.com/D88021
2020-09-01 18:08:43 +00:00
Mark Banner fa540fa1c4 Bug 1619926 - Change test_validate_engines.js to work with the modern configuration. r=daleharvey
Depends on D88019

Differential Revision: https://phabricator.services.mozilla.com/D88020
2020-09-01 18:08:48 +00:00
Mark Banner 5a80757288 Bug 1619926 - Remove distribution search directory provider definitions. r=daleharvey
Also remove DirectoryProvider as it is now unused.

Depends on D88018

Differential Revision: https://phabricator.services.mozilla.com/D88019
2020-09-01 18:08:22 +00:00
Mark Banner 0a0f3485a5 Bug 1619926 - Remove ensure known region checks from search service. r=daleharvey
Depends on D88017

Differential Revision: https://phabricator.services.mozilla.com/D88018
2020-09-01 18:08:24 +00:00
Mark Banner b0311dd767 Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi
Depends on D87894

Differential Revision: https://phabricator.services.mozilla.com/D88017
2020-09-01 18:08:29 +00:00