778629 Commits

Author SHA1 Message Date
Andi-Bogdan Postelnicu
b2883570dd Bug 1617369 - Reformat recent rust changes with rustfmt r=necko-reviewers,kershaw
Updated with rustfmt 1.4.37-stable (f1edd04 2021-11-29)

Depends on D132868

Differential Revision: https://phabricator.services.mozilla.com/D132869
2021-12-06 17:15:33 +00:00
Dennis Schubert
8d5211e8b9 Bug 1744026 - Import WebCompat Interventions v29.1.0 sources. r=karlcow
Differential Revision: https://phabricator.services.mozilla.com/D132934
2021-12-06 17:12:24 +00:00
Alexandre Poirot
e6ef16a3bd Bug 1743044 - [devtools] Avoid instantiating duplicated Debugger.Source/SourceActor for inline scripts. r=bomsy CLOSED TREE
Regression from bug 1643540.
Debugger.findSourceURLs is recording all sources except the one having an `introductionScript` defined.
i.e. the one being added dynamically and not part of the original HTML content (at least that the expectation of findSourceURLs)
It is important to use the same filtering in ThreadActor, otherwise we may not populate `urlMap`
correctly and call resurrectSource for sources that were recorded by findSourceURLs.
This would introduce duplicated Debugger.Source and SourceActor for the same URL.

Differential Revision: https://phabricator.services.mozilla.com/D132218
2021-12-06 16:54:29 +00:00
Alexandre Poirot
5a85f1bd27 Bug 1743044 - [devtools] Expand source's introductionType coverage. r=bomsy
I'm adding one test for each Debugger.Source's introductionType
which was not covered yet.
Except for eventHandler and domTimer, which require some additional fix (see next changeset).

Differential Revision: https://phabricator.services.mozilla.com/D132217
2021-12-06 16:54:29 +00:00
Noemi Erli
96786684ac cBacked out changeset feff6d3ebdcd (bug 1743907) for causing reftest failures in short.mp4.firstframe.html CLOSED TREE 2021-12-06 19:38:36 +02:00
Noemi Erli
d99b4a414c Backed out 2 changesets (bug 1743044) for causing failures in browser_resources_sources.js
Backed out changeset dd0d0dabb482 (bug 1743044)
Backed out changeset 1ec7edd8a8e6 (bug 1743044)
2021-12-06 19:36:51 +02:00
Joel Maher
854a806af5 Bug 1743907 - remove redundance webrender references from wpt (part 2). r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D132949
2021-12-06 17:03:50 +00:00
Alexandre Poirot
ed3fd8a0d8 Bug 1743044 - [devtools] Avoid instantiating duplicated Debugger.Source/SourceActor for inline scripts. r=bomsy
Regression from bug 1643540.
Debugger.findSourceURLs is recording all sources except the one having an `introductionScript` defined.
i.e. the one being added dynamically and not part of the original HTML content (at least that the expectation of findSourceURLs)
It is important to use the same filtering in ThreadActor, otherwise we may not populate `urlMap`
correctly and call resurrectSource for sources that were recorded by findSourceURLs.
This would introduce duplicated Debugger.Source and SourceActor for the same URL.

Differential Revision: https://phabricator.services.mozilla.com/D132218
2021-12-06 16:54:29 +00:00
Alexandre Poirot
52ae8ecb09 Bug 1743044 - [devtools] Expand source's introductionType coverage. r=bomsy
I'm adding one test for each Debugger.Source's introductionType
which was not covered yet.
Except for eventHandler and domTimer, which require some additional fix (see next changeset).

Differential Revision: https://phabricator.services.mozilla.com/D132217
2021-12-06 16:54:29 +00:00
Dzmitry Malyshau
1114243a20 Bug 1744342 - Switch WR to Ron-0.7 r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D132839
2021-12-06 16:10:26 +00:00
Butkovits Atila
067ee99027 Backed out changeset 7b3b1024a24f (bug 1736550) for causing node failures. CLOSED TREE 2021-12-06 18:02:56 +02:00
Frederik Braun
8de61bdde5 Bug 1743626 - Fix some remaining test failures in toolkit/ with https-first enabled r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D132496
2021-12-06 15:25:06 +00:00
Emily McMinn
8bcf4df54c Bug 1736550 - Adjusting focus for screen readers on about:welcome r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D131413
2021-12-06 15:14:59 +00:00
Nicolas B. Pierron
5630f0a4d6 Bug 1743449 part 3 - Use RefPtr<..>&& for CompilationStencil. r=arai
Previously, we were using `UniquePtr<..>` for `CompilationStencil`, which is ok
to move, as we have the garantee that we have a single entity.

However, as we replaced the `UniquePtr<..>` by `RefPtr<..>`, using a move can be
considered harmful if more than one reference exists.  This patch changes usage
of `CompilationStencil&&` by `RefPtr<CompilationStencil>&&`, and check the
number of references before moving the content out of the CompilationStencil.

Differential Revision: https://phabricator.services.mozilla.com/D132726
2021-12-06 14:53:06 +00:00
Nicolas B. Pierron
03101a9361 Bug 1743449 part 2 - Use RefPtr<..> for CompilationStencil. r=arai
Currently, CompilationStencil are used both as UniquePtr and RefPtr which is
risky. This patch replaces all uses of UniquePtr by RefPtr, and
already_addRefed, such that we either have or not reference counted Stencils.

Differential Revision: https://phabricator.services.mozilla.com/D132695
2021-12-06 14:53:05 +00:00
Nicolas B. Pierron
d92e78f453 Bug 1743449 part 1 - Add assertion to avoid mixing UniquePtr with RefPtr. r=arai
RefPtr<CompilationStencil> would be used for caching the result of compilation
which might be reused by other functions inside SpiderMonkey. However, many
compilation functions are returning UniquePtr<CompilationStencil>.

Converting a RefPtr<..> to a UniquePtr<..>, when the ref-count is not equal to
1, or when the value still exists in a cache will cause some UAF. This assertion
prevents such mistake to happen in future patches.

Differential Revision: https://phabricator.services.mozilla.com/D132694
2021-12-06 14:53:05 +00:00
Miko Mynttinen
a5e210a518 Bug 1743637 - Fix array out of bounds in nsTextFrame::ToCString r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D132498
2021-12-06 14:44:55 +00:00
Tooru Fujisawa
6c3fc0abe9 Bug 1744176 - Part 2: Use public API in evalStencil and evalStencilXDR to support debugger notification. r=nbp
To rewrite debugger API test that uses JSScript-based off-thread testing
functions with stencil-based testing functions, support debugger "onNewScript"
callback in `evalStencil` and `evalStencilXDR`.

Differential Revision: https://phabricator.services.mozilla.com/D132874
2021-12-06 14:10:51 +00:00
Tooru Fujisawa
e47c56be6b Bug 1744176 - Part 1: Support debug metadata in evalStencil and evalStencilXDR. r=nbp
To replace JSScript-based off-thread testing functions with stencil-based
testing functions, support "elements" and "elementAttributeName" options in
`evalStencil` and `evalStencilXDR`.

Differential Revision: https://phabricator.services.mozilla.com/D132873
2021-12-06 14:10:50 +00:00
Zhao Jiazhong
3269572064 Bug 1743607 - [MIPS64] Fix jr instruction usage in indirect stubs. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D132483
2021-12-06 14:07:43 +00:00
Cathy Lu
8348b23f54 Bug 1697647 - Add screen orientation lock api r=ipc-reviewers,mccr8,agi,smaug,jonalmeida
Previously, the screenOrientation.lock API was for Fennec and not supported for Fenix and multi-process use. The overall idea is to now allow apps to use the API through a delegate and make asynchronous calls to LockDeviceOrientation. This required replacing the existing code that returned a default false bool to calls that perform the requested orientation change and instead return a promise that contained either an allow or deny value.

Returning a promise instead of a bool involved changing the API calls from the C++ side to Java. The new general control flow of screenOrientation lock follows: an app calls C++ ScreenOrientation.lock() which eventually dispatches LockOrientationTask to resolve the pending orientation promise. Hal.cpp sends an IPC call to the content process and RecvLockScreenOrientation retrieves the current instance of geckoRuntime and calls the java side LockScreenOrientation. Apps must create a delegate and override onOrientationLock to set the requested orientation. In geckoview's testing, this is done with the android API setRequestedOrientation. Once a device orientation change has been triggered, native OnOrientationChange calls to NotifyScreenConfigurationChange, which notifies all observers and dispatches a change event to resolve the pending orientation promise.

Testing:
I used a demo on the GeckoView Example (https://usefulangle.com/demos/105/screen.html) to test locking to landscape orientation. This required a change to the GVE to show the app from recreating the whole thing on orientation change. In the example AndroidManifest xml file, `orientation` prevents restart when orientation changes.

The Junit/Kotlin tests were to verify that the expected orientation delegate was called with the expected new orientation value, in an orientation change, if the new orientation was the same as the current, and if the pre-lock conditions such as being fullscreen were not met.

A static preference `dom.screenorientation.allow-lock` was added to the dom group, since it affects the ui dom) and is currently turned off. C++ can access it through its mirrored variable dom_screenorientation_allow_lock (same name but with underscores). The junit tests turn the preference on and test the lock feature.

Reference:
Orientation constant values:
    C++
        1 ScreenOrientation_PortraitPrimary); - vertical with button at bottom
        2 ScreenOrientation_PortraitSecondary); - vertical with button at top
        4 ScreenOrientation_LandscapePrimary); - horizational w button right
        8 ScreenOrientation_LandscapeSecondary); - horization button left
        16 ScreenOrientation_Default);
    Java
        1 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_PRIMARY.value
        2 GeckoScreenOrientation.ScreenOrientation.PORTRAIT_SECONDARY.value
        4 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_PRIMARY.value
        8 GeckoScreenOrientation.ScreenOrientation.LANDSCAPE_SECONDARY.value

    Java public API
        0 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
        1 Activitynfo.SCREEN_ORIENTATION_PORTRAIT

    Android
        1 ORIENTATION_PORTRAIT
        2 ORIENTATION_LANDSCAPE

Differential Revision: https://phabricator.services.mozilla.com/D129427
2021-12-06 13:58:37 +00:00
Vincent Couvert
92297516ff Bug 1742091 - DrawTargetCairo.cpp: Use the 'empty' method instead of 'size' to check for emptiness. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D131729
2021-12-06 13:53:12 +00:00
Joel Maher
daa6fd4b48 Bug 1743907 - remove reftest sandbox references to webrender. r=ahal,tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D132728
2021-12-06 13:43:37 +00:00
criss
9ac1d44b2c Backed out changeset 7c76bac637a0 (bug 1744026) for causing mochitest failures on browser_parsable_css.js. CLOSED TREE 2021-12-06 16:00:19 +02:00
Paul Zuehlcke
01a6b1ad65 Bug 1739287 - Renew security.ui.protections.* telemetry probes. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D132468
2021-12-06 13:26:49 +00:00
Dennis Schubert
f7511d6286 Bug 1744026 - Import WebCompat Interventions v29.1.0 sources. r=karlcow
Differential Revision: https://phabricator.services.mozilla.com/D132934
2021-12-06 12:48:53 +00:00
Butkovits Atila
21676cf030 Backed out changeset 145c64b7ac17 (bug 1531223) for causing failures at gfxFontEntry.cpp. CLOSED TREE 2021-12-06 14:57:31 +02:00
Tooru Fujisawa
2132121f18 Bug 1744473 - Add null-check after ExtensibleCompilationStencil allocation. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D132872
2021-12-06 12:47:14 +00:00
Edgar Chen
be408c368a Bug 1742714 - Get rid of nsIFormSubmitObserver; r=geckoview-reviewers,agi,smaug
Differential Revision: https://phabricator.services.mozilla.com/D132091
2021-12-06 12:23:08 +00:00
Jonathan Kew
ed3fd395ba Bug 1531223 - Add support for the 'ic' and 'cap' font-relative units. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D132818
2021-12-06 12:22:09 +00:00
Richard Marti
c922b5bf64 Bug 1744435 - Give the HTML buttons a padding-inline on Windows. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D132867
2021-12-06 12:00:01 +00:00
stransky
567b1c6bbf Bug 1744503 [Linux] Use last input time for gtk_window_present_with_time() if we don't have last focus time, r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D132929
2021-12-06 11:29:09 +00:00
Valentin Gosu
a0f238c1b9 Bug 1743995 - Add test for TTL using TRR r=necko-reviewers,kershaw
Depends on D132697

Differential Revision: https://phabricator.services.mozilla.com/D132698
2021-12-06 09:50:57 +00:00
Valentin Gosu
9f136f8aaa Bug 1743995 - DNS cache can not get TTL from DNS-over-HTTPS r=necko-reviewers,kershaw
If mTTL is initialized to UINT32_MAX then the update condition when
adding a new IP via DOHResp::Add will never be triggered (a TTL can
never be larger than UINT32_MAX).
So it is better to have it be initialized to 0.

Differential Revision: https://phabricator.services.mozilla.com/D132697
2021-12-06 09:50:56 +00:00
Christoph Kerschbaumer
e7b60715c2 Bug 1701386: Test if Principal is exempt when https-only is about to upgrade websockets r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D110104
2021-12-06 08:58:24 +00:00
Zhao Jiazhong
6a7c3a1eda Bug 1743547 - [MIPS64] Add new overload for lowerForALUInt64(). r=jseward
Port D131887 to mips64 platform.

Differential Revision: https://phabricator.services.mozilla.com/D132452
2021-12-06 08:07:33 +00:00
Lars T Hansen
4aec3675d1 Bug 1742053 - Improve a comment. r=dbezhetskov DONTBUILD
I confused myself for a while worrying about who keeps the stubs code alive
if an instance creates a stub for an imported function in a table that it
then exports; the stub-creating instance could subsequently die without the
table dying.  But since the stub-creating instance's tls is stored in the table
with the stub, this is fine.  Just clarifying this.

Differential Revision: https://phabricator.services.mozilla.com/D132554
2021-12-06 07:35:05 +00:00
Marian-Vasile Laza
abd3eee17f Backed out changeset e945898aab89 (bug 1744342) for causing wr bustages. CLOSED TREE 2021-12-06 06:04:11 +02:00
Dzmitry Malyshau
ffbbab0af8 Bug 1744342 - Switch WR to Ron-0.7 r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D132839
2021-12-06 03:38:55 +00:00
Timothy Nikkel
6a84a5b02a Bug 1743533. Add test. r=botond,hiro
Differential Revision: https://phabricator.services.mozilla.com/D132790
2021-12-06 01:08:55 +00:00
Timothy Nikkel
57a0ff75ad Bug 1743533. Handle the visible rect of oop iframes that span multiple pages in print documents. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D132789
2021-12-06 01:08:55 +00:00
Glenn Watson
53092b50ed Bug 1743152 - Handle duplicate iframe references in display lists r=gfx-reviewers,nical
In certain situations (such as a print preview dialog, with fission
enabled, where an iframe spans a page), the display list contains
a reference to the same iframe multiple times.

Handle this in WR by namespacing the spatial id (via a stack as
iframes are traversed) and uid (by iframe pipeline instance id).

This is more of a band-aid fix than a proper fix - we need to
rethink how we handle spatial mapping properly with iframe
instances.

Differential Revision: https://phabricator.services.mozilla.com/D132661
2021-12-05 20:22:35 +00:00
Andi-Bogdan Postelnicu
359e82a664 Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre
Updated with clang-format version 13.0.0 (taskcluster-cMIjs2JaRe6fqM2zK7ZACQ)

Differential Revision: https://phabricator.services.mozilla.com/D132868
2021-12-05 19:04:18 +00:00
Lee Salzman
cb89030541 Bug 1336591 - Push clips when applying D2D gradients. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D132865
2021-12-04 19:32:44 +00:00
Dan Mosedale
3407e72ceb Bug 1740393 Update preffed off "More from Mozilla 96" experiment w/QR code & email link, r=preferences-reviewers,desktop-theme-reviewers,pdahiya,dao,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D132435
2021-12-04 17:37:37 +00:00
stransky
25b3da7b12 Bug 1744002 [Wayland] Use xdg_activation_v1 to set window focus r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D132679
2021-12-04 16:03:05 +00:00
Robert Mader
6b72de5e21 Bug 1744389 - Silence 'ATTENTION: default value of option mesa_glthread overridden by enviroment.' warning when not needed, r=gfx-reviewers,lsalzman
Since bug 1670545 we unconditionally override the `mesa_glthread`
env var when using the EGL backend on X11 to avoid crashes.
Unfortunately this triggers warnings from Mesa, cluttering debug
logs.

Let's not override the variable if it's not set. Also lets log an
explicitly warning that we disabled it so users know that the
variable is causing troubles.

Differential Revision: https://phabricator.services.mozilla.com/D132858
2021-12-04 13:49:31 +00:00
Jan de Mooij
5dfb189660 Bug 1744208 - Change the nursery's fix-up lists to add items to the front instead of back. r=jonco
This seems to have better cache locality on typical workloads, because objects
that are tenured are now more likely to be fixed up shortly after. It's also easier
to implement.

Some benchmarks (Speedometer, ARES6, various Octane subtests like TypeScript) improve
a bit so this seems worth trying to see how it affects telemetry data in the browser.

Differential Revision: https://phabricator.services.mozilla.com/D132798
2021-12-04 08:17:34 +00:00
criss
e24f563e9e Backed out changeset aa10a736dace (bug 1740393) for causing mochitest failures. CLOSED TREE 2021-12-04 06:05:41 +02:00
Dan Mosedale
61cf7a711e Bug 1740393 Update "More from Mozilla" experiment with QR code/email link, r=preferences-reviewers,desktop-theme-reviewers,pdahiya,dao,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D132435
2021-12-04 03:03:25 +00:00