Commit graph

718309 commits

Author SHA1 Message Date
alwu
37f08f36a0 Bug 1647430 - part2 : store DocTreeHadAudibleMedia in WindowContext. r=nika
After we enable Fissions, we can't always access the top level document because it might be in another process.

Therefore, we should move `mDocTreeHadAudibleMedia` from document to the top window context, which can ensure that we set the value correctly even if setting `mDocTreeHadAudibleMedia` happens in a different process which is different from the process where the top level document exists.

Differential Revision: https://phabricator.services.mozilla.com/D83162
2020-07-16 19:53:49 +00:00
alwu
f88c326e31 Bug 1647430 - part1 : add a method to get top level window context. r=nika
Reuse same code and reduce the duplication.

Differential Revision: https://phabricator.services.mozilla.com/D83161
2020-07-14 02:18:22 +00:00
Kris Maglione
c75a803c6e Bug 1646542: Fix GetInProcessParent usage in IsSameOrAncestor. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D80097
2020-07-15 20:17:52 +00:00
Mitchell Hentges
136fa3e403 Bug 1653135: Sentry integration should handle incomplete settings r=firefox-build-system-reviewers,rstewart
In tests, the settings object doesn't have as many sections. When a section isn't
available, it raises an error.
The Sentry integration can interpret this error as telemetry being disabled.

Differential Revision: https://phabricator.services.mozilla.com/D83717
2020-07-16 19:27:15 +00:00
Ricky Stewart
bfb4566c24 Bug 1652803 - Retry symbol uploading a couple additional times r=bpitts
Differential Revision: https://phabricator.services.mozilla.com/D83802
2020-07-16 15:58:56 +00:00
Dave Townsend
f7a92e55fd Bug 1649958: Extend the life of the NUMBER_OF_PROFILES telemetry probe. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D83710
2020-07-16 19:17:41 +00:00
Chris Fallin
597e30dbde Bug 1633721, part 2 of 2: Reftypes support on aarch64 using Cranelift. r=bbouvier
This patch adds support for Wasm reference types when using the
Cranelift/aarch64 Wasm backend in SpiderMonkey.

The changes on the SpiderMonkey side principally involve (i) updating
the compiler-selection logic to allow Cranelift when reftypes are
enabled, and (ii) conveying the stackmaps from Cranelift to
SpiderMonkey.

This also fixes an assert failure hit in the VIXL-based MacroAssembler
in a debug build. The assert was checking that the source of a
move-to-FP-reg was not the zero register (xzr); a move like `mov v0.d[0],
xzr` is perfectly valid, and should be allowed. Unsure why this assert
had not been hit before, but it seems unrelated to reftype support.

Differential Revision: https://phabricator.services.mozilla.com/D83583
2020-07-16 19:15:08 +00:00
Chris Fallin
c07df47355 Bug 1633721, part 1 of 2: Bump Cranelift to revision 5e0268a542f612fee36d0256ed1f6a0e18dc02b3. r=bbouvier
This patch updates the vendored version of Cranelift, pulling in the
reference-types support recently merged in Cranelift's PR
bytecodealliance/wasmtime#1852. Usage of this update to support reftypes
in SpiderMonkey on aarch64 is added in the subsequent commit.

Differential Revision: https://phabricator.services.mozilla.com/D83582
2020-07-16 19:15:05 +00:00
Olli Pettay
22e60f1257 Bug 1653123, don't crash for now if nsISHEntry.hasUserInteraction is used in the parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D83716
2020-07-16 19:02:51 +00:00
Olli Pettay
e702898d75 Bug 1602115, make it possible to test async history.length handling even when session history lives in the child process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D79198
2020-07-16 19:02:49 +00:00
Olli Pettay
c142af0f58 Bug 1602115 - Make history.length Fission compatible, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D79197
2020-07-16 19:01:36 +00:00
Julian Descottes
b1a4e202d3 Bug 1651307 - Remove broken debugger node jobs: eslint & jsx-a11y r=loganfsmyth
The eslint and jsx-a11y jobs have been broken for 6 months now.
The eslint version used by the debugger is too old to be compatible with mozilla central's eslintrc.
If we update eslint, then there are other failures (`Environment key "mozilla/xpcshell" is unknown`).

We should be able to trust the mozilla-central eslint job for basic linting.
For jsx-a11y, there is currently no equivalent in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D83495
2020-07-16 17:54:23 +00:00
Julian Descottes
c648e30896 Bug 1652983 - Add logs in DAMP test helper openToolbox r=daisuke,perftest-reviewers,sparky
This should help investigate timeouts occuring during toolbox open in DAMP

Differential Revision: https://phabricator.services.mozilla.com/D83650
2020-07-16 18:47:50 +00:00
Julian Descottes
19b031f36c Bug 1628473 - Stop relying on documentUnload mutation in browser_toolbox_window_reload_target.js r=rcaliman
Depends on D79676

Differential Revision: https://phabricator.services.mozilla.com/D83296
2020-07-16 16:26:09 +00:00
Julian Descottes
31f3e7257b Bug 1628473 - Update the markup view when a remote frame navigates r=rcaliman
Depends on D79675

Differential Revision: https://phabricator.services.mozilla.com/D79676
2020-07-16 16:22:30 +00:00
Julian Descottes
299f9180e4 Bug 1628473 - Add test for remote frame navigation r=rcaliman,nchevobbe
Depends on D79674

Differential Revision: https://phabricator.services.mozilla.com/D79675
2020-07-16 16:22:02 +00:00
Julian Descottes
f3df9272e0 Bug 1628473 - Move test helpers from markup head.js to inspector head.js r=rcaliman
Depends on D83194

Those test helpers were introduced to easily assert the markup view, when working on the webcomponents support in the inspector.
They use rather high level APIs and are quite close to what would be triggered by real user actions.
Roughly the helper expands nodes from the markupview recursively and checks that the tree matches the expected tree.
This "expected tree" should be provided via a simplistic DSL:
```
root
  child1
    subchild1
    subchild2
  child2
    subchild3!slotted
  child3!ignore-children
```

Differential Revision: https://phabricator.services.mozilla.com/D79674
2020-07-16 16:21:54 +00:00
Julian Descottes
0125dd01b6 Bug 1628473 - Remove watchRootNode trait r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83194
2020-07-16 16:20:41 +00:00
Farooq AR
fb21c6742f Bug 1636422 - Implement basic test for SSE. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D83476
2020-07-16 18:36:35 +00:00
Punam Dahiya
056ca34cbe Bug 1649292 - Make multistage about:welcome as default UX r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D83691
2020-07-16 18:14:43 +00:00
Eitan Isaacson
47eeb74440 Bug 1652211 - Create and destroy xul tooltips as they appear and go away. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D83408
2020-07-16 17:51:22 +00:00
Dragana Damjanovic
20cbb9badf Bug 1652104 - Add telemtery about HTTP3 usage. r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83168
2020-07-16 04:03:35 +00:00
Bryce Seager van Dyk
a6fc16aabe Bug 1652598 - Add helpers to log CDM status as string. r=alwu
- Add a helper to log cdm::Status as a string to improve error reporting.
- Fix up format strings in ChromiumCDMParent to use PRIu32 instead of u for logs
  where it's appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D83702
2020-07-15 22:09:14 +00:00
Bryce Seager van Dyk
5f8a7c5b16 Bug 1652598 - Add status code to MediaError when CDM decode fails. r=alwu
Also add a log for when decoding fails. We typically log on any unhappy return
values from the CDM, so it makes sense we should also do so when a decode fails.

Differential Revision: https://phabricator.services.mozilla.com/D83419
2020-07-15 21:20:04 +00:00
Tooru Fujisawa
1e54703c60 Bug 1653212 - Use raw latin1 string only when it is ASCII. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D83815
2020-07-16 17:48:18 +00:00
Sebastian Streich
f38f6f0fb1 Bug 1645204 - Fix WebRequest.jsm r=robwu,necko-reviewers,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D80953
2020-07-16 14:58:03 +00:00
Emilio Cobos Álvarez
01a5c05e05 Bug 1649728 - Use WeakPtr in SharedStyleSheetCache::mLoadingDatas. r=firefox-style-system-reviewers,jwatt
This is safer in case Necko fails to notify us. The only repro we have
is fixed by bug 1651661, but this should hopefully be uncontroversial as
well and prevents crashing in release builds.

Differential Revision: https://phabricator.services.mozilla.com/D83642
2020-07-16 16:31:52 +00:00
Frederik Braun
38b4de3c94 Bug 1653232 implement GetInnerHTML() for DocFragments r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83775
2020-07-16 17:31:10 +00:00
Honza Bambas
08089eeb2e Bug 1649320 - Check mBuffer when flatting metadata of application cache entry, r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83776
2020-07-16 12:17:17 +00:00
ffxbld
ec8efdbd5d No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D83814
2020-07-16 17:22:56 +00:00
manas
7a7e2a7c34 Bug 1647372 Part 2 - Add tests for GetOverflowingChildrenOfElement. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D81957
2020-07-16 17:05:47 +00:00
manas
a4ccb339e7 Bug 1647372 Part 1 - Add IsFrameOutsideOfAncestor and FrameHasSpecifiedSize. r=bradwerth,emilio
Differential Revision: https://phabricator.services.mozilla.com/D81118
2020-07-16 17:00:23 +00:00
Andrew Creskey
d1317020f2 Bug 1653293 - Disable Moto G5 performance tuning for perftests until it is tuned r=sparky
Disabled because we've observed that this is introducing noise on G5.
Also added perftuning to the other Pixel 2 tests.

Differential Revision: https://phabricator.services.mozilla.com/D83808
2020-07-16 17:00:20 +00:00
Dave Townsend
dd3a0b23de Bug 1652487: Escape widget identifiers before using them as CSS selectors. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D83713
2020-07-16 16:50:01 +00:00
Kai Engert
2aa521fca4 Bug 1652330 - NSPR 4.27 dev snapshot 2 to pick up a fix for macOS 11. r=kjacobs UPGRADE_NSPR_RELEASE
Differential Revision: https://phabricator.services.mozilla.com/D83762
2020-07-16 16:36:45 +00:00
Kartikaya Gupta
5607802ed1 Bug 1516056 - Follow-up to remove dangling reference to a fixed bug. r=botond
DONTBUILD because comment-only change.

Differential Revision: https://phabricator.services.mozilla.com/D83795
2020-07-16 16:16:12 +00:00
Kartikaya Gupta
f9517661e2 Bug 1650438 - Don't expand the dirty rect for fixed items during a partial update. r=mstange,botond
When doing a display list build, there's some code that expands the dirty
and visible rects for out-of-flow items to include the entire visual viewport
or displayport, because out-of-flow items are specially positioned in the
compositor and may become visible without the main thread knowing about it.

However, this happens even during partial updates using retained display lists,
which I believe is undesirable because the preceding non-partial update should
already have painted all the right things. The partial update should be
restricted to the part of the OOF item that actually need repainting, and the
merging of the partial update into the full display list should produce a final
display list that covers everything.

Differential Revision: https://phabricator.services.mozilla.com/D82216
2020-07-16 15:59:03 +00:00
Kartikaya Gupta
e01dd52f41 Bug 1650438 - Add some docs about reftest-[no-]display-list. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D82215
2020-07-16 15:56:34 +00:00
Kartikaya Gupta
1fbc60a38e Bug 1650438 - Fix indentation in test. r=mattwoodrow
Fixes a missing closing tag in the retained-dl-style-change-stacking-context-3
test page. Unfortunately, this changes the structure of the page and makes the
test fail, so the reftest.list file is updated accordingly. Since the existing
test structure was clearly testing something else, and caught a legitimate
difference in behaviour with and without APZ zooming on desktop, this patch
also creates a new test with that structure (and better indentation).

Differential Revision: https://phabricator.services.mozilla.com/D82214
2020-07-16 15:56:27 +00:00
Gijs Kruitbosch
45c61eb36b Bug 1652614 - update the initial 'Tracking Content' state correctly when the protection panel shows, r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D83675
2020-07-16 14:32:05 +00:00
Jon Coppeard
f283a08ed4 Bug 1648453 - Fix build errors caused by MacOS headers defining check macro r=smaug
These patches have triggered a case where a MacOS header defines 'check' as a macro which then conflicts with use of 'check' as a method name in AccessCheck.h, probably due to unified builds.

This was fixed independently in a couple of places before, but I think it makes sense to move the fix to AccessCheck.h itself.

Differential Revision: https://phabricator.services.mozilla.com/D83796
2020-07-16 15:37:42 +00:00
Jon Coppeard
9e76ce31b8 Bug 1648453 - Add tests to check that FinalizationRegistry sets the incumbent global correctly when calling the callback r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83615
2020-07-16 15:33:03 +00:00
Jon Coppeard
17558447d2 Bug 1648453 - Use CallbackObject to trigger cleanup while setting up the incumbent global r=smaug
This also factors out FinalizationRegistry support into a separate class.

The JS engine now passes a callback function and the incumbent global which are recorded in QueueCallback. FinalizationRegistryCleanup::DoCleanup creates a CallbackObject can calls it immediately (I originally tried creating it in QueueCallback but there were problems because this is called during GC).

I coped most of this from the way promise reaction jobs work. I added FinalizationRegistryCleanupCallback; I don't know if that's overkill.

Differential Revision: https://phabricator.services.mozilla.com/D83614
2020-07-16 12:54:55 +00:00
Jon Coppeard
599368d500 Bug 1648453 - Record incumbent global in FinalizationRegistry constructor and use when calling back into the JS engine to call callbacks r=sfink
This changes the way the the host triggers cleanup, from calling an API to calling a JS function. This is done so we can use the existing DOM infrastructure that handles setting up the incumbent global for us.

Differential Revision: https://phabricator.services.mozilla.com/D83613
2020-07-16 12:54:57 +00:00
Nicolas Silva
e503589521 Bug 1645223 - Disable WebRender if XRender is enabled. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D83655
2020-07-16 12:08:22 +00:00
Krishnal Ciccolella
4e0216d1bd Bug 1608633 - Fix ability to use scrollbar in conditional panel r=davidwalsh
This patch addresses bug 1608633. It adds an if statement to `ConditionalPanel.js`, that prevents the conditional panel from closing when clicking on its scrollbar.

Differential Revision: https://phabricator.services.mozilla.com/D82187
2020-07-16 15:05:31 +00:00
Nicolas Silva
35d380ffc3 Bug 1650990 - Use Euclid 0.20.14. r=kvark
It contains a fix for some of the rect operations interacting poorly with NaNs.

Differential Revision: https://phabricator.services.mozilla.com/D83774
2020-07-16 13:24:19 +00:00
Harry Twyford
90c0a973ba Bug 1647885 - Add alias to one-off tooltips. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D83546
2020-07-15 21:07:51 +00:00
Ted Campbell
7ae2441f3e Bug 1496852 - Support JavaScript export-ns-from syntax r=jorendorff
Add support for `export * as ns from "a";` syntax. This was added in
ECMAScript 2020.

One wrinkle in the implementation is that the parser decides whether to use a
lexical vs indirect binding before module linking. Instead, we reserve a
hidden environment slot called "*namespace*" for each module that can be
referenced by indirect binding maps as needed.

Spec is a needs-consensus PR at https://github.com/tc39/ecma262/pull/1174

Depends on D80984

Differential Revision: https://phabricator.services.mozilla.com/D80777
2020-07-16 14:30:00 +00:00
Ted Campbell
320f71aa8c Bug 1496852 - Update spec references in Module.js r=jorendorff
Update spec references and step numbers to match ES2020. Add TODOs for the
missing steps. There are some editorial changes in latest draft that affect
step numbers, but behaviour is the same for these methods.

Differential Revision: https://phabricator.services.mozilla.com/D80984
2020-07-15 17:33:53 +00:00