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

785471 Коммитов

Автор SHA1 Сообщение Дата
Sean Feng a0b0570da8 Bug 1755722 - Use viewport distance as the root margins for lazyload in EARLY_BETA_OR_EARLIER r=emilio
This is for experimenting the best value for the root margins.

Differential Revision: https://phabricator.services.mozilla.com/D138907
2022-02-16 18:04:25 +00:00
ahochheiden 7452a37502 Bug 1751853 - Update string paths to Pathlib objects in Mozrelease module r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136863
2022-02-16 18:00:38 +00:00
ahochheiden b78352e424 Bug 1751853 - Replaced the logic in 'rmdirRecursive' with a more standard solution r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D136995
2022-02-16 18:00:38 +00:00
Sean Feng c87da83fd7 Bug 1755226 - Only notify 'http-on-image-cache-response' when there are registered observers r=tnikkel
This is an optimization to avoid doing redundant things when there are no
registered observers.

Differential Revision: https://phabricator.services.mozilla.com/D138853
2022-02-16 17:57:39 +00:00
Nicholas Rishel 3a6e295171 Bug 1742674 - Add telemetry for default PDF viewer. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D136814
2022-02-16 17:44:01 +00:00
Nicholas Rishel 33674ccd1e Bug 1742674 - Pre: Pull default agent's UTF-8 and UTF-16 conversions into generic functions. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D137498
2022-02-16 17:44:00 +00:00
Nicholas Rishel 7c51f78894 Bug 1742674 - Pre: Remove unused headers, scope raw pointer later wrapped in smart pointer, and use nullptr instead of NULL. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D137059
2022-02-16 17:43:59 +00:00
Bob Owen c333e48a0c Bug 1755734: Limit win32k lockdown for content process to Win10 build 16299 or later. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D138918
2022-02-16 17:42:04 +00:00
Emilio Cobos Álvarez 47d1f077af Bug 1755737 - Make layout.css.dpi a static pref. r=jfkthame,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D138921
2022-02-16 17:39:57 +00:00
Barret Rennie 52b477f233 Bug 1753957 - Work around null tabs in PrivacyFilter.jsm r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138909
2022-02-16 17:30:09 +00:00
Andrew Osmond 60e09748cb Bug 1755441 - Stop padding driver versions on platforms other than Windows. r=jrmuizel
Windows has different driver version semantics than other platforms. We
shouldn't pad the driver versions the same way on Linux/OSX/Android for
our blocklist rules and instead just take the numbers as given. This
really only impacted Linux since it had numerous blocklist rules which
depending on the vendor or Mesa driver versions.

Differential Revision: https://phabricator.services.mozilla.com/D138905
2022-02-16 17:19:05 +00:00
Dave Townsend 71bf00086b Bug 1754426: DOM history changes should create new interaction records. r=Standard8
This also disables smooth scrolling in the interaction tests. When smooth scrolling
is enabled a single scroll, say by pressing the down arrow, actually scrolls in
a number of steps starting small, increasing then decreasing. Because we only
wait for a single scroll event to fire before the test switches pages we only
capture the scrolling distance from the very first step which is often small and
sometimes turns out to be 0. Disabling smooth scrolling makes the scroll happen
in one operation so we capture the entire scrolling distance. However we are
then also racing to capture the single scroll event so must add the event
listener before triggering the scroll.

Differential Revision: https://phabricator.services.mozilla.com/D138295
2022-02-16 16:24:25 +00:00
Butkovits Atila dff61f12f4 Backed out changeset 4c5ad6cc4df3 (bug 1755718) for causing reftest failures. CLOSED TREE 2022-02-16 20:06:14 +02:00
Marian-Vasile Laza 1171737ea7 Backed out changeset 79425c851114 (bug 1755372) for causing build bustages on Connection.cpp. CLOSED TREE 2022-02-16 19:22:29 +02:00
Agi Sferro f65a148d41 Bug 1754721 - Use JSM global for GeckoView's permanentKey. r=jonalmeida
:whimboo found this, apparently if something else holds a reference to
permanentKey we will leak the window. To avoid this happening we use the JSM
global instead.

For more context see Bug 1501789.

Differential Revision: https://phabricator.services.mozilla.com/D138451
2022-02-16 16:22:01 +00:00
Agi Sferro a13373b5a1 Bug 1755520 - Fix Javadoc links in GeckoView's docs. r=jonalmeida DONTBUILD
The Java 11 Javadoc update changed the links style so we need to update our
references.

Differential Revision: https://phabricator.services.mozilla.com/D138822
2022-02-16 16:20:49 +00:00
Jeff Muizelaar f610da391a Bug 1755718 - Assert that color formats can be handled by Skia. r=aosmond
Just defaulting to BGRA is going to cause trouble down the line.

Differential Revision: https://phabricator.services.mozilla.com/D138897
2022-02-16 16:12:50 +00:00
asharma c2b88e0fcd Bug 1755372: Cut Over Connection to finer-grained RFP Check r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D138707
2022-02-16 16:10:34 +00:00
Bryan Thrall a6ff477d0d Bug 1687959 - Move setBailoutKind() out of MLoadDynamicSlotAndUnbox, MLoadElementAndUnbox r=jandem
All three load operations are handled consistently now.

Depends on D138586

Differential Revision: https://phabricator.services.mozilla.com/D138691
2022-02-16 15:56:31 +00:00
Bryan Thrall 20ae294814 Bug 1687959 - Replace MLoadFixedSlot and MUnbox with MLoadFixedSlotAndUnbox r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D138586
2022-02-16 15:56:31 +00:00
Bryan Thrall 18f743ac01 Bug 1687959 - Move setBailoutKind() out of MLoadFixedSlotAndUnbox constructor r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D138585
2022-02-16 15:56:31 +00:00
Jens Stutte ea1d009c3f Bug 1752120: Null out the mWorkerPrivate on WorkerGlobalScopeBase when a worker ends. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D138442
2022-02-16 15:48:43 +00:00
Lars T Hansen ad3d80b6c1 Bug 1755723 - comments and logging. r=yury
Add some logging that was missing, and capture some useful comments.

Differential Revision: https://phabricator.services.mozilla.com/D138901
2022-02-16 15:39:40 +00:00
Mirko Brodesser 397f4fc254 Bug 1755481: correct documentation of `nsIClipboard::getData`. r=mccr8
Before, it was confusing. One could have assumed that the method gets
the data for all flavors.

Differential Revision: https://phabricator.services.mozilla.com/D138776
2022-02-16 15:38:27 +00:00
Julian Descottes 07eb8a003f Bug 1753196 - [devtools] RuleView: inherited properties marked as overridden incorrectly r=nchevobbe
When both the current and the earlier props for a given property name are inherited, the current prop should not be marked as overridden if the earlier prop was marked as !important.
!important should only come into play if the property where it was set is not inherited.
Regardless of this, properties are considered in descending order of specificity, so the earlier rule should take precedence.

Differential Revision: https://phabricator.services.mozilla.com/D138895
2022-02-16 15:15:33 +00:00
Olli Pettay 83a5e4634f Bug 1752904, null check the return value of Blob::Create, r=jari
Differential Revision: https://phabricator.services.mozilla.com/D138782
2022-02-16 15:12:11 +00:00
Sarah Clements 0a6ab95ff8 Bug 1724503 - Fix for lack of tab indication in dark mode + high contrast r=Gijs,desktop-theme-reviewers,dao
* Add a nested media query for prefers-contrast and prefers-color-scheme: dark

Differential Revision: https://phabricator.services.mozilla.com/D138324
2022-02-16 14:05:56 +00:00
Claudia 56c59fb18d Bug 1744785 - [devtools] Adds a pref to persist edit and resend content across devtools sessions r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D137996
2022-02-16 13:50:39 +00:00
Marian-Vasile Laza 28f5fc0dc0 Backed out 3 changesets (bug 1753709) for causing build bustages on ScriptLoader.cpp. CLOSED TREE
Backed out changeset 8d2f548f2b46 (bug 1753709)
Backed out changeset 9d41db9f2e17 (bug 1753709)
Backed out changeset 13dbf5b806ec (bug 1753709)
2022-02-16 18:51:37 +02:00
Paul Adenot 95943a7085 Bug 1755332 - Adjust more WPT expectations. 2022-02-16 16:36:39 +01:00
Emilio Cobos Álvarez fd537c7068 Bug 1753836 - Apparently we access layout.css.dpi a bit less.
Note that it's not 100% clear whether this bug is responsible for the
improvement or not, but given it's an improvement...

MANUAL PUSH: Unexpected pass CLOSED TREE
2022-02-16 17:18:55 +01:00
Paul Adenot 399d03c3b5 Bug 1755332 - Fix static-analysis issues in MediaCapabilities.cpp. r=alwu
Depends on D138780

Differential Revision: https://phabricator.services.mozilla.com/D138802
2022-02-16 13:36:55 +00:00
Paul Adenot 792cfa9cb9 Bug 1755332 - VideoDecoderConfig.framerate is a double. r=alwu,webidl,smaug
Spec change: https://github.com/w3c/media-capabilities/issues/96#issuecomment-537364759
Spec text: https://w3c.github.io/media-capabilities/#dom-videoconfiguration-framerate

Differential Revision: https://phabricator.services.mozilla.com/D138780
2022-02-16 13:36:54 +00:00
Paul Adenot 2b8f3b9ba5 Bug 1755332 - Add a WPT. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D138779
2022-02-16 13:36:54 +00:00
Paul Adenot e156099421 Bug 1755332 - Reject the promise when passing a video (resp. audio) type to an audio (resp. video) decoder configuration in MediaCapabilities. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D138673
2022-02-16 13:36:54 +00:00
Marian-Vasile Laza 0bf097fcd0 Backed out changeset 27c56f453b34 (bug 1755503) for causing build bustages. CLOSED TREE 2022-02-16 15:18:54 +02:00
Jan Varga 6987f78c54 Bug 1754448 - Clean up the code for Storage::endExplicitSnapshot; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D138634
2022-02-16 12:57:37 +00:00
Makoto Kato 3b00604204 Bug 1677464 - Set screen orientation type and angle from OS API. r=gsvelto
Windows can get current screen orientation from OS API.

Differential Revision: https://phabricator.services.mozilla.com/D138880
2022-02-16 12:55:56 +00:00
Emilio Cobos Álvarez ba31251df3 Bug 1753836 - Make window screen and event screen coordinates consistent. r=jfkthame
This basically undoes bug 1246346. The current behavior is pretty bizarre,
the screenX origin / position doesn't match the mouse event coordinates,
because on windows we return device pixels rather than CSS pixels for the
window coordinates.

This makes behavior consistent with how other browsers report these coordinates
at least on Windows in non-mixed DPI mode, and I think is fine.

In mixed DPI mode, there might indeed be overlapping coordinates, but again I
think that's fine, because the CSS coordinate space of the different monitors
is different.  You need to multiply by the devicePixelRatio if you want
coordinates not to overlap.

Depends on D138039

Differential Revision: https://phabricator.services.mozilla.com/D138130
2022-02-16 12:18:12 +00:00
Emilio Cobos Álvarez a8883d1cfc Bug 1753836 - Fix callers of screenForRect to pass desktop pixels. r=jfkthame,Gijs
Device pixels and desktop pixels are not the same on macOS and Win7.
Expose the desktop-to-device scale to JS and use it appropriately.

Depends on D138038

Differential Revision: https://phabricator.services.mozilla.com/D138039
2022-02-16 12:18:12 +00:00
Emilio Cobos Álvarez c31d70c2b8 Bug 1753836 - Document why ContentDelegateChild doesn't need changes due to the change above. r=agi
Android has no full-page zoom, so we are not meaningfully changing behavior.

However, these values are exposed to the GeckoView JS api, surprisingly, yet
viewport scaling and so on can change the CSS to device pixel ratio...

Shouldn't we expose device pixels there instead? Or do the api consumers assume
that those CSS pixels are scaled to the device scale factor somehow (and that's
not working)?

Depends on D138037

Differential Revision: https://phabricator.services.mozilla.com/D138038
2022-02-16 12:18:11 +00:00
Emilio Cobos Álvarez ab63e715e1 Bug 1753836 - Fix context menus to deal with Event.screen* returning page CSS coordinates. r=Gijs
If the page is zoomed, its devicePixelRatio will differ from the browser
chrome's. Account for this by converting to device pixels before starting to
scroll.

Depends on D138036

Differential Revision: https://phabricator.services.mozilla.com/D138037
2022-02-16 12:18:11 +00:00
Emilio Cobos Álvarez 308992c1b0 Bug 1753836 - Fix AutoScroll code to deal with Event.screen* returning page CSS coordinates. r=Gijs
If the page is zoomed, its devicePixelRatio will differ from the browser
chrome's. Account for this by converting to device pixels before starting to
scroll.

Depends on D138035

Differential Revision: https://phabricator.services.mozilla.com/D138036
2022-02-16 12:18:10 +00:00
Emilio Cobos Álvarez 745394808b Bug 1753836 - Make Event.screenX/screenY return page CSS coordinates. r=smaug,jfkthame
We report window.screen coordinates in CSS space, so it makes sense to do
the same for screen-relative offsets. This requires some front-end fixes
incoming in following patches.

Differential Revision: https://phabricator.services.mozilla.com/D138035
2022-02-16 12:18:10 +00:00
Nicolas B. Pierron 3671196620 Bug 1753709 - Add test case to verify delazification strategy is used. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D138541
2022-02-16 11:01:33 +00:00
Nicolas B. Pierron 85b56fc607 Bug 1753709 - JavaScript: Add a preference to switch between delazification strategies. r=arai
This patch changes the way we parse JavaScript coming from Necko while loading
web pages, by adding an about:config flag named
javascript.options.delazification.strategy which is used to select between:

 0 - On Demand
 1 - Concurrent Depth First
 255 - Parse Everything Eagerly

Previously, we moved from On-demand delazification, to parsing everything
eagerly to improve responsiveness of the browser, but we knew that more room for
optimization exists.

This toogle is meant to explore the space of delazification strategies, such
that we can parse functions of JavaScript files on an helper thread, while the
JavaScript file is being executed on the main thread. The space of
delazification strategies goes from ordering the order in which functions are
processed, as well as filtering functions which are processed. Not all functions
have to be delazified, and if the main thread needs a function which is not
parsed yet, it will fallback to parsing it on-demand.

Differential Revision: https://phabricator.services.mozilla.com/D138034
2022-02-16 11:01:33 +00:00
Nicolas B. Pierron 4f7cb4fbd0 Bug 1753709 - Remove unused DelazificationOption. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D138339
2022-02-16 11:01:32 +00:00
Henrik Skupin 773b47469e Bug 1755242 - [wdspec] Add AsyncPoll and fix race when awaiting multiple browsingContext.contextCreated events. r=webdriver-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D138700
2022-02-16 10:56:24 +00:00
Itiel 1922c2058f Bug 1752190 - Improve readablility of the "more info" icon in panels, for linux r=dao
Differential Revision: https://phabricator.services.mozilla.com/D137061
2022-02-16 10:54:22 +00:00
Nicolas Chevobbe 7268203455 Bug 1460566 - [devtools] Fix intermittent on browser_console_webconsole_iframe_messages.js. r=Honza.
Also the test skipped checking iframe messages in the Browser Console, but it's
been a while since we fixed the issue mentionned there, so we can safely also
test the Browser Console.

Differential Revision: https://phabricator.services.mozilla.com/D138781
2022-02-16 10:47:06 +00:00