Commit Graph

689638 Commits

Author SHA1 Message Date
Marian Raiciof
9cdb7991af Bug 1611819 - Remove the P2 ARM7 tests from the fennec_v68 cron job r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D61176

--HG--
extra : moz-landing-system : lando
2020-01-30 09:43:37 +00:00
Kousuke Takaki
9681569b70 Bug 1602088 - Move nsIScrollableFrame::ScrollUnit to namespace scope. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D61140

--HG--
extra : moz-landing-system : lando
2020-01-30 09:13:19 +00:00
Bert Peers
2143f0959d Bug 1605508 - Write new on-boarding document with rendering overview
Some updates and clarifications after Glenn's All Hands 2020 overview
talk.

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

--HG--
extra : moz-landing-system : lando
2020-01-30 08:51:03 +00:00
Masayuki Nakano
f506f1f653 Bug 1611751 - Remove unused scriptable methods of nsIHTMLEditor, nsIEditorStyleSheets and nsITableEditor r=m_kato
* `nsIHTMLEditor.removeAllInlineProperties`
* `nsIHTMLEditor.increaseFontSize`
* `nsIHTMLEditor.decreaseFontSize`
* `nsIHTMLEditor.setParagraphFormat`
* `nsIHTMLEditor.getBackgroundColorState`
* `nsIHTMLEditor.indent`
* `nsIHTMLEditor.align`
* `nsIEditorStyleSheets.replaceOverrideStyleSheet`
* `nsITableEditor.selectBlockOfCells`

These methods are not used by any Gecko products including comm-central and
BlueGriffon so that we should remove them.  Note that only
`HTMLEditor::GetBackgroundColorState()` is used internally so that we need to
keep it as a public method of `HTMLEditor`.

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

--HG--
extra : moz-landing-system : lando
2020-01-30 08:50:41 +00:00
André Bargull
f071c7231c Bug 1611777 - Part 16: Pass through ValueUsage in optional chains. r=yulia
This allows us to emit `JSOp::CallIgnoresRv` in optional chains.

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

--HG--
extra : moz-landing-system : lando
2020-01-30 08:21:44 +00:00
André Bargull
cfebe40891 Bug 1611777 - Part 15: Support FunCall/FunApply optimisations for optional chaining. r=yulia
This change allows the bytecode emitter to use `JSOp::FunCall` resp. `JSOp::FunApply`
for calls in optional chain expressions.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:31:20 +00:00
André Bargull
98b5331ebd Bug 1611777 - Part 14: Simplify two lines in optionalExpr(). r=yulia
- We don't need to test for `tt == TokenKind::Eof` when we return for
  `tt != TokenKind::OptionalChain` anyway.
- Omit local variable for the result value and instead use a tail-call. This
  matches the local style in the parser more closely.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:30:36 +00:00
André Bargull
2dfa51408f Bug 1611777 - Part 13: Remove unused default arguments from parser methods. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D61160

--HG--
extra : moz-landing-system : lando
2020-01-29 16:30:01 +00:00
André Bargull
28e80790f9 Bug 1611777 - Part 12: Use optionalExpr() for update expressions to match spec grammar. r=yulia
Using optionalExpr matches the spec grammar more closely. This change also
modifies the reported error message. `++a?.b` reported before this change
"unexpected token: '?.'", but now reports "invalid increment/decrement operand".

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:29:22 +00:00
André Bargull
93ba9d4967 Bug 1611777 - Part 11: Support optional chaining in class heritage expression. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D61158

--HG--
extra : moz-landing-system : lando
2020-01-29 16:29:15 +00:00
André Bargull
7222fc1690 Bug 1611777 - Part 10: Remove unnecessary "allowCallSyntax" parameter from Parser::optionalExpr. r=yulia
All callers pass allowCallSyntax=true, so we can omit this parameter.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:28:05 +00:00
André Bargull
2f422198df Bug 1611777 - Part 9: Replace an if-statement with an assertion. r=yulia
`nextMember` is never nullptr, so we don't need to test for it.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:27:22 +00:00
André Bargull
e2cbc96373 Bug 1611777 - Part 8: Add missing emitGet in emitOptionalElemExpression. r=yulia
Aligns emitOptionalElemExpression() with emitOptionalDotExpression(), so it's
easier to compare both methods against each other.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:26:44 +00:00
André Bargull
8ca239b387 Bug 1611777 - Part 7: Add missing entries to list of valid optional chain start expressions. r=yulia
The previous list contained some invalid entries (`await` and comma-expression)
and was missing some possible parse node kinds.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:26:06 +00:00
André Bargull
eb65f2c1d7 Bug 1611777 - Part 6: Crash for unexpected super-base in optional call. r=yulia
`super?.()` isn't valid code, so we don't need to handle this case.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:25:23 +00:00
André Bargull
1444e39609 Bug 1611777 - Part 5: Remove unnecessary super-handling in optional delete. r=yulia
The child node of a DeleteOptionalChainExpr node can't be a super-property
accessor, so we can remove this code.

Drive-by: Reindent some stack comments.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:24:50 +00:00
André Bargull
15e84c1e7a Bug 1611777 - Part 4: super can't occur on the left-hand side of an optional chain. r=yulia
Moves the `isSuper()` method from the base class to the (non-optional) derived
classes, because `super?.x` isn't valid syntax, so it's confusing to be able to
ask if an optional property access is applied on `super`.

The next part will further simplify `BytecodeEmitter::emitDelete{Element,Property}InOptChain()`.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:24:12 +00:00
André Bargull
f06ccdae60 Bug 1611777 - Part 3: Change emitOptionalCalleeAndThis() parameter to use CallNode. r=yulia
That way we don't need the explicit cast.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:23:29 +00:00
André Bargull
d386e1b6f5 Bug 1611777 - Part 2: Merge same blocks in emitDeleteOptionalChain(). r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D61147

--HG--
extra : moz-landing-system : lando
2020-01-29 16:23:21 +00:00
André Bargull
61477481c9 Bug 1611777 - Part 1: Report syntax error for optional property access in self-hosting code. r=yulia
We already assert that this case isn't allowed in the bytecode emitter. Also
report a syntax error to match normal property access.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 16:22:09 +00:00
Neil Deakin
7c9927c5cd Bug 1610539, don't perform focusing steps when attaching formfill to a document such as a subframe that isn't focused r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D60882

--HG--
extra : moz-landing-system : lando
2020-01-30 08:03:21 +00:00
Sylvestre Ledru
423ec1500d no bug - coding style C++ doc: fix the note syntax r=sg
Differential Revision: https://phabricator.services.mozilla.com/D61246

--HG--
extra : moz-landing-system : lando
2020-01-30 08:00:21 +00:00
Simon Giesecke
c7bd77d920 Bug 1612135 - Allow Result<V, E> to be used with a MOZ_NON_PARAM_TYPE E. r=emilio,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D61214

--HG--
extra : moz-landing-system : lando
2020-01-29 21:22:39 +00:00
Andreea Pavel
2e355fa82a Bug 1611200 - Update expectation on win for shared-worker-import-blob-url.any.html. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D61134

--HG--
extra : moz-landing-system : lando
2020-01-29 13:00:54 +00:00
Andy Grover
f659db9daf Bug 1611990 - Firefox omits Rust log messages of less than WARN level unless compiled in debug mode r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D61254

--HG--
extra : moz-landing-system : lando
2020-01-30 04:51:51 +00:00
Thomas Dolezal
a63c10f0de Bug 1611041 - Convert image-rendering #defines to an enum class. r=emilio
MANUAL PUSH: Contributor didn't use Phabricator and I don't want patch to rot
2020-01-30 04:50:24 +01:00
Barret Rennie
4165a2e843 Bug 1609263 - Construct Android paths directly without PathBuf::push r=nalexander,webdriver-reviewers,whimboo
Paths for pushing files to Android devices were being constructed with
`PathBuf::push`, which uses the system file separator. On Windows, this results
in malformed paths like
`/data/local/tmp\org.mozilla.geckoview_example-geckoview-config.yml`.

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

--HG--
extra : moz-landing-system : lando
2020-01-23 21:59:17 +00:00
Mats Palmgren
e5f1f2d4f5 Bug 1310792 - Fix pixel rounding issues in Grid baseline reftests and convert them to WPTs. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D61241

--HG--
rename : layout/reftests/css-grid/grid-item-content-baseline-001-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-001-ref.html
rename : layout/reftests/css-grid/grid-item-content-baseline-001.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-001.html
rename : layout/reftests/css-grid/grid-item-content-baseline-002-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-002-ref.html
rename : layout/reftests/css-grid/grid-item-content-baseline-002.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-002.html
rename : layout/reftests/css-grid/grid-item-content-baseline-003-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-003-ref.html
rename : layout/reftests/css-grid/grid-item-content-baseline-003.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-content-baseline-003.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-001-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-001-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-001.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-001.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-002-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-002-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-002.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-002.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-003-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-003-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-003.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-003.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-004-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-004-ref.html
rename : layout/reftests/css-grid/grid-item-mixed-baseline-004.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-mixed-baseline-004.html
rename : layout/reftests/css-grid/grid-item-self-baseline-001-ref.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-self-baseline-001-ref.html
rename : layout/reftests/css-grid/grid-item-self-baseline-001.html => testing/web-platform/tests/css/css-grid/alignment/grid-item-self-baseline-001.html
extra : moz-landing-system : lando
2020-01-29 21:48:31 +00:00
Brian Grinstead
3d2d2d0ea7 Bug 1608281 - Automated rewrite away from reading properties on the global this in JSM files - round 1 r=mossop
This patch was generated with a script. It doesn't include all files:

- Files that use the preprocessor or fail to parse are skipped
- Files that are loaded as JSMs but don't use the .jsm extension are skipped (those will be renamed in Bug 1609269)

It was generated with the following command using d855222aa2/no-this-property-read.js:

```
hg revert --all &&
cp .gitignore .rgignore &&
rg --files-without-match -g '*.jsm' '^#endif|^#include|^#filter' | jscodeshift --stdin --transform ~/Code/jsm-rewrites/no-this-property-read.js --ignore-pattern ./mobile/android/modules/Sanitizer.jsm --ignore-pattern ./js/xpconnect/tests/unit/syntax_error.jsm &&
./mach eslint `hg st | rg '^M ' | sed 's/^M //'`
```

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

--HG--
extra : moz-landing-system : lando
2020-01-29 21:50:04 +00:00
Dale Harvey
959b36b578 Bug 1591079 - Add application name and version restrictions. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D61174

--HG--
extra : moz-landing-system : lando
2020-01-29 21:01:50 +00:00
Mark Banner
154885fc6d Bug 1591079 - Add name and version comparisons to the search engine configuration documentation. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D59998

--HG--
extra : moz-landing-system : lando
2020-01-29 20:37:01 +00:00
Harry Twyford
3a55468c1f Bug 1610024 - End Urlbar engagement if the user ignores a Search Tip. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D60562

--HG--
extra : moz-landing-system : lando
2020-01-29 16:45:46 +00:00
Alex Henrie
dc4c3ca267 Bug 1607990 - Link to WSCGetProviderInfo at compile time. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D59262

--HG--
extra : moz-landing-system : lando
2020-01-29 21:18:18 +00:00
Alex Henrie
51c21554f5 Bug 1611745 - Link to QueryFullProcessImageNameW at compile time. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D61130

--HG--
extra : moz-landing-system : lando
2020-01-29 17:59:16 +00:00
Valentin Gosu
e828cd7d68 Bug 1611469 - backgroundPageThumbsContent.js mixes nsIRequest and nsIWebNavigation load flags r=markh
The patch ensures we don't pass a nsIWebNavigation load flag to
nsIDocShell.defaultLoadFlags which is supposed to get nsLoadFlags (nsIRequest).

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

--HG--
extra : moz-landing-system : lando
2020-01-28 14:47:23 +00:00
Nicolas Silva
2a19b8ea5d Bug 1611948 - Rename ClipScrollTree into SpatialTree. r=gw
There is nothing clipping related in there anymore.

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

--HG--
rename : gfx/wr/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/spatial_tree.rs
extra : moz-landing-system : lando
2020-01-29 10:43:20 +00:00
Emma Malysz
cf03403781 Bug 1610463, move _setTabAttributes back into addTab because it was incorrectly named r=dao
Differential Revision: https://phabricator.services.mozilla.com/D61232

--HG--
extra : moz-landing-system : lando
2020-01-29 15:17:05 +00:00
Andrew McCreight
ba8cb655fd Bug 1611767 - Add MaybeTabGroup methods. r=farre
The ghost window checker examines windows in all sorts of weird states,
apparently including when the docshell on the outer is null. Add some
fallible variants of the tab group methods on inner and outer windows
so it can call one of those instead.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 09:09:46 +00:00
Masatoshi Kimura
9a880d275e Bug 1449071 - Unbitrot and fix intermittent timeout of browser_file_xpi_no_process_switch.js. r=mossop
Sometimes `newTab` will get install notification first. But popup will not be
shown until newTab becmoes active in that case. Observes
 "webextension-permission-prompt" to catch this.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 14:16:54 +00:00
Doug Thayer
185e25fddf Bug 1606880 - Implement fast shutdown prefs r=froydnj
I originally had this as a few patches, but the work to fix test
failures and get the whole thing into a complete working state
quickly tangled them up. Apologies for that. To summarize what's
going on here, however:

- We introduce two prefs: shutdown.fastShutdownStage and
  shutdown.lateWriteChecksStage. The latter pref is set to 1, which
  will leave the existing late write checking behavior unchanged.
  However, we introduce this pref to make it simpler in the future
  to bump the late write checks window earlier in the shutdown cycle.
- We introduce an AppShutdown class, which will house static methods
  and a small amount of state for unifying some shutdown logic. Most
  importantly, it will now manage the state for app initiated restarts,
  as well as the logic for performing a safe fast shutdown.
- We refactored the existing restart code to call into the new
  AppShutdown file, so that if we are configured to actually perform
  a fast shutdown, we will be able to run the necessary restart logic
  immediately before doing so. Previously, the restart logic occurred
  later in the shutdown cycle than our late write checking, meaning
  if we were to simply exit the process at that point in time, we
  would never run the restart coe.
- Lastly, we updated two locations which called TerminateProcess and/or
  _exit(0) to call into the AppShutdown method (DoFastShutdown).

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

--HG--
extra : moz-landing-system : lando
2020-01-29 12:29:43 +00:00
Edwin Takahashi
976a24cffb Bug 1611339 - trim debian10-test docker image r=jmaher
Changes:

Since the image `debian10-test` is not being used to run unittests on CI, a lot of the dependencies installed can be removed.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 13:48:43 +00:00
Kristen Wright
8c1f257dcd Bug 1605328 - Always print the crashing process dump file first r=gbrown
The list of crash dumps in the dump directory appears as something like `['uuid.dmp, uuid-browser.dmp']`. When iterating over the list of files, the files are always sorted alphabetically, meaning any `uuid-<something>.dmp` goes before `uuid.dmp`. We only really care that `uuid.dmp` comes first, as the rest are just additional data not necessarily related to the crashing process, so iterating the list in reverse should put the right .dmp file first.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 12:54:23 +00:00
Julian Descottes
6d77dc5271 Bug 1611229 - Add linting rule to prevent using ChromeUtils.import(..., null) r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D60891

--HG--
extra : moz-landing-system : lando
2020-01-29 13:15:54 +00:00
André Bargull
76620e1e52 Bug 1610513: Add numberingSystem option support to Intl.RelativeTimeFormat. r=jwalden
Restricted to Nightly so we can enable it by default in tandem with enabling
the same option in NumberFormat and DateTimeFormat.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 13:07:34 +00:00
James Graham
e4205cc1a7 Bug 1610260 - Increase timeout multiplier for wpt ccov opt, r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D60486

--HG--
extra : moz-landing-system : lando
2020-01-29 10:05:13 +00:00
Jeff Gilbert
3870cfafe7 Bug 1608330 - Use Run<RPROC> instead of calling Present directly. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D60091

--HG--
extra : moz-landing-system : lando
2020-01-16 03:09:13 +00:00
alexandru.ionescu
1535129890 Bug 1573418 Run Talos harness tests in CI r=rwood,igoldan,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D56680

--HG--
extra : moz-landing-system : lando
2020-01-29 08:29:13 +00:00
Masayuki Nakano
ec2a667824 Bug 1611895 - Make EditorEventListener::DragOverOrDrop() check whether the result of DragEvent::GetRangeParentContentAndOffset() returned nullptr or not r=smaug
`DragEvent::GetRangeParentContentAndOffset()` may return `nullptr`.  Previously,
it was checked and returned `NS_ERROR_FAILURE` before landing bug 1610264.

This patch adds the null check which was accidentally removed.

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

--HG--
extra : moz-landing-system : lando
2020-01-29 10:36:32 +00:00
Harry Twyford
afe982fafb Bug 1593886 - Update dark theme Urlbar colours. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D60899

--HG--
extra : moz-landing-system : lando
2020-01-29 09:58:38 +00:00
Perry Jiang
dfe4262aaf Bug 1611046 - avoid using namespace declaration r=dom-workers-and-storage-reviewers,sg
In particular this avoids unqualified name lookup ambiguity between
::Request and mozilla::dom::Request (imported into the global namespace by
using namespace mozilla::dom).

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

--HG--
extra : moz-landing-system : lando
2020-01-29 12:05:47 +00:00