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

770590 Коммитов

Автор SHA1 Сообщение Дата
Marian-Vasile Laza 6cd781871d Backed out changeset 914436169022 (bug 1695216) for causing build bustages. 2021-09-23 16:04:34 +03:00
Kimberly Sereduck f7b1c572d7 Bug 1732183: Add chromedriver for Chrome 94 and 95 r=perftest-reviewers,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D126418
2021-09-23 12:09:24 +00:00
Nihanth Subramanya 9f3565b9fb Bug 1695216 - XMLHttpRequest should reset response upon receiving a bad chunk. r=annevk,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D124989
2021-09-23 12:02:09 +00:00
James Teh ac10d619ce Bug 1729407 part 6: Fix an existing line boundary test. r=eeejay
Previously, the test asserted that the line offsets for an embedded object should be an empty range.
This is actually incorrect, since there is content on the line (an empty text box and a button).
Update this with the correct result, but mark it as an expected failure.
The new implementation fixes this, so once we enable it by default, we can assert success.

Differential Revision: https://phabricator.services.mozilla.com/D125670
2021-09-23 11:38:11 +00:00
James Teh 178fe814d8 Bug 1729407 part 5: Use TextLeafRange for word/line starts in HyperTextAccessible::TextAtOffset if the cache is enabled. r=eeejay
We won't use HyperTextAccessible for building the cache.
However, we have a lot of existing single process mochitests for HyperTextAccessible.
Putting it behind this pref makes it easy for us to run those tests against this new text implementation.
Eventually, we want to use this implementation for both local and remote Accessibles.

Differential Revision: https://phabricator.services.mozilla.com/D124778
2021-09-23 11:38:11 +00:00
James Teh 18dedeaf42 Bug 1729407 part 4: Add TextLeafPoint support for finding character boundaries. r=eeejay
Again, this should be very easy to adapt to RemoteAccessible once we cache text there.

Differential Revision: https://phabricator.services.mozilla.com/D124776
2021-09-23 11:38:10 +00:00
James Teh b52bf17cab Bug 1729407 part 3: Add TextLeafPoint support for finding word boundaries. r=eeejay
This implementation uses WordBreaker and a bunch of code to emulate layout's handling of punctuation, space, words spanning across nodes, words broken due to lines, etc.

While this does mean we're effectively duplicating layout, there are a couple of advantages.
First, PeekOffset has a lot of quirks which have caused us problems in the past and are difficult to debug.
They don't matter so much for other consumers, but a11y is very sensitive to these kinds of bugs.
Having our own logic means we can make changes as needed without potentially affecting other PeekOffset consumers.
Second, while the implementation currently only works on LocalAccessibles (because we don't have text in RemoteAccessible yet), it's been designed so that it should be very easy to adapt for RemoteAccessible.
It already walks the unified Accessible tree, so it just has to be taught how to get text from RemoteAccessible once that's possible.
This means we don't have to cache word boundaries; they can be calculated on demand in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D124775
2021-09-23 11:38:10 +00:00
James Teh 1093cc6340 Bug 1729407 part 2: Add TextLeafPoint support for finding line start boundaries for LocalAccessibles. r=eeejay
This adds TextLeafPoint::FindBoundary, which will be the main entry point for finding single boundaries.
FindBoundary searches individual Accessibles for a boundary, walking the a11y tree and continuing the search if a boundary isn't found.

Support for line start boundaries uses layout to determine line edges, but otherwise traverses the accessibility tree.
This avoids depending on PeekOffset, which has a lot of quirks that cause problems for a11y.
More importantly, it's possible to find line boundaries within a single LocalAccessible using the lower level FindPrev/NextLineStartSameLocalAcc methods.
This will be useful for line boundary caching, since we want to cache this info on individual Accessibles.
In contrast, PeekOffset might walk outside the current Accessible, which makes caching more difficult.

Differential Revision: https://phabricator.services.mozilla.com/D124774
2021-09-23 11:38:09 +00:00
James Teh ca8f43ff48 Bug 1729407 part 1: Add new TextLeafPoint and TextLeafRange classes. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D124773
2021-09-23 11:38:09 +00:00
James Teh 7caf3d0624 Bug 1729412: Add nsIFrame::GetContainingBlockForLine to facilitate checking whether two frames are on the same line. r=jfkthame
Previously, to check whether two frames were on the same line, you had to call nsIFrame::GetLineNumber on both of them.
If the lines were in a different containing block, this wastefully created line iterators.
With this new method, you can get the containing blocks for both frames and only create a single line iterator if the blocks are the same.
To achieve this, nsIFrame::CanProvideLineIterator was also added and is used by GetContainingBlockForLine.
Accessibility will use this new functionality in its new text boundary implementation.

Differential Revision: https://phabricator.services.mozilla.com/D126433
2021-09-23 11:38:09 +00:00
Henrik Skupin a62021e047 Bug 1731790 - [cdp] Add blank implementation of Fetch.disable to prevent unknown method errors. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126317
2021-09-23 11:01:21 +00:00
Henrik Skupin 61219bc48f Bug 1723084 - Add try preset for the remote protocol. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126231
2021-09-23 11:01:21 +00:00
André Bargull 975b298483 Bug 1731620 - Part 8: Add TimeZone::GetHostTimeZone(). r=platform-i18n-reviewers,gregtatum
Add a wrapper for `ucal_getHostTimeZone` to `mozilla::intl::TimeZone`. This
function is only used for the "testing" function framework.

Differential Revision: https://phabricator.services.mozilla.com/D126198
2021-09-23 10:51:59 +00:00
André Bargull cd5768c610 Bug 1731620 - Part 7: Call mozilla::intl::TimeZone to resynchronize the default time zone. r=platform-i18n-reviewers,gregtatum
Use `mozilla::intl::TimeZone` instead of directly calling ICU to change ICU's
default time zone.

Differential Revision: https://phabricator.services.mozilla.com/D126197
2021-09-23 10:51:58 +00:00
André Bargull f0ef6836c5 Bug 1731620 - Part 6: Add default time zone setters to mozila::intl::TimeZone. r=platform-i18n-reviewers,gregtatum
Add setters to change ICU's default time zone.
1. `SetDefaultTimeZone()` sets the default time zone from a time zone identifier.
2. `SetDefaultTimeZoneFromHostTimeZone()` synchronizes the default time zone with
   the host system's time zone.

The two new methods will be used in the next part to replace ICU calls in
`js::DateTimeInfo::internalResyncICUDefaultTimeZone()`.

Differential Revision: https://phabricator.services.mozilla.com/D126196
2021-09-23 10:51:58 +00:00
André Bargull 0d2aefce15 Bug 1731620 - Part 5: Use ICU for jsdate even when MOZ_SYSTEM_ICU is set. r=platform-i18n-reviewers,gregtatum
Now that `DateTime` works even when `MOZ_SYSTEM_ICU` is set, we no longer have
to check for `MOZ_SYSTEM_ICU` in "jsdate.cpp". This also allows to remove the
`MOZ_SYSTEM_ICU` checks in "vm/Time", because those were only called from
"jsdate.cpp" when `MOZ_SYSTEM_ICU` was set.

Differential Revision: https://phabricator.services.mozilla.com/D126195
2021-09-23 10:51:58 +00:00
André Bargull 69e0428b79 Bug 1731620 - Part 4: Change DateTime to work with mozilla::intl::TimeZone. r=platform-i18n-reviewers,gregtatum
Updates `DateTime` to use `mozilla::intl::TimeZone` for all time zone computations
when `JS_HAS_INTL_API` is defined. We no longer have to check `!MOZ_SYSTEM_ICU`,
because `mozilla::intl::TimeZone` supports ICU's C++ and C-API.

Differential Revision: https://phabricator.services.mozilla.com/D126194
2021-09-23 10:51:57 +00:00
André Bargull 0d9963cac1 Bug 1731620 - Part 3: Make FormatBuffer's allocation policy configurable. r=platform-i18n-reviewers,gregtatum
Make `FormatBuffer`'s allocation policy configurable, so we can it use with
`js::SystemAllocPolicy` in the next patch. This implies that the `JSContext*`
member has to be removed, too.

Differential Revision: https://phabricator.services.mozilla.com/D126193
2021-09-23 10:51:57 +00:00
André Bargull 7c924a2057 Bug 1731620 - Part 2: Use ICU C++ TimeZone API if available. r=platform-i18n-reviewers,gregtatum
ICU doesn't provide a C-API for time zone functions, but instead requires to
use `UCalendar`. This adds a noticeable overhead, because whenever time zone
offsets are computed, it's first necessary to set the time on a `UCalendar`,
which triggers a recomputation of all calendar fields. And because time zone
offset computation is used for JavaScript's `Date`, which is widely used, we
should avoid performance regressions compared to the current code which is
using the ICU C++ API.

We can only safely use the ICU C++ API when we don't use the system ICU,
because C++ doesn't have a stable ABI, so the ICU C++ API code paths are only
taken when `MOZ_SYSTEM_ICU` is `false`.

Differential Revision: https://phabricator.services.mozilla.com/D126192
2021-09-23 10:51:56 +00:00
André Bargull 216714975c Bug 1731620 - Part 1: Add more time zone functions to mozilla::intl::TimeZone. r=platform-i18n-reviewers,gregtatum
Add four additional methods to `mozilla::intl::TimeZone`:

1. `GetDSTOffsetMs()` to return the daylight saving offset at a specific UTC time.
2. `GetOffsetMs()` to return the time zone offset at a specific UTC time.
3. `GetUTCOffsetMs()` to return the UTC offset at a specific local time.
4. `GetDisplayName()` to return the display name of a time zone.

All four methods will be used to replace ICU calls in "js/src/vm/DateTime.cpp".

Differential Revision: https://phabricator.services.mozilla.com/D126191
2021-09-23 10:51:56 +00:00
lyavor c8c3f419e0 Bug 1725402 - HTTPS-First should copy referrerInfo (and potentially more state) from upgraded channel when performing a fallback to http.r=ckerschb,Gijs,freddyb
Differential Revision: https://phabricator.services.mozilla.com/D122585
2021-09-23 10:51:14 +00:00
Tooru Fujisawa 7a9c20f9af Bug 1732147 - Bump jsparagus for bug 1718635 and bug 1718952. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D126475
2021-09-23 10:42:35 +00:00
Timothy Nikkel 25781a327c Bug 1731929. Use mTransformToAncestorScale instead of mExtraResolution in DisplayportPixelsPerCSSPixel. r=botond
Some explanation in https://phabricator.services.mozilla.com/D126304

This should have no functional change since mExtraResolution = 1 / mTransformToAncestorScale.

Differential Revision: https://phabricator.services.mozilla.com/D126306
2021-09-23 10:29:45 +00:00
Timothy Nikkel c32f781931 Bug 1731929. Allow ViewAs for ScaleFactors2D coming from unknown units. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D126440
2021-09-23 10:29:44 +00:00
Timothy Nikkel 0b5eae3cc1 Bug 1731929. Add transform to ancestor scale to FrameMetrics/RepaintRequest. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D126305
2021-09-23 10:29:44 +00:00
Jan Varga b4ef3d074a Bug 1728267 - Remove implicit ToResult from QM_TRY when one extra argument is passed; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125316
2021-09-23 10:16:09 +00:00
Jan Varga 4cc9bf1d18 Bug 1728267 - Remove implicit ToResult from QM_TRY when two extra arguments are passed; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125315
2021-09-23 10:16:09 +00:00
Jan Varga eccdb851bb Bug 1728267 - Remove implicit ToResult from QM_WARNONLY_TRY macros; r=dom-storage-reviewers,jstutte,jari
We can use QM_TO_RESULT (instead of MOZ_TO_RESULT) because QM_WARNONLY_TRY
doesn't propagate errors, so no other adjustment is needed.

Differential Revision: https://phabricator.services.mozilla.com/D125314
2021-09-23 10:16:08 +00:00
Butkovits Atila 5d47f7e878 Merge mozilla-central to autoland. CLOSED TREE 2021-09-23 13:14:43 +03:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
Marian-Vasile Laza 6f50b58711 Backed out changeset be76cb91e85a (bug 1726157) for causing xpcshell failures on test_ext_cache_api.js. CLOSED TREE 2021-09-23 13:04:56 +03:00
Marian-Vasile Laza 8062c39730 Backed out changeset c4fec6d39844 (bug 1731773) for causing build bustages. 2021-09-23 13:01:37 +03:00
Butkovits Atila a276135f54 Merge autoland to mozilla-central. a=merge 2021-09-23 12:53:32 +03:00
Edgar Chen 851fda1435 Bug 1727345 - Add test for fullscreen warning on display none iframe; r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D123643
2021-09-23 09:16:59 +00:00
Valentin Gosu e41b7a871b Bug 1732095 - Remove unused nsICacheStorageService.synthesizedCacheStorage r=necko-reviewers,kershaw
Depends on D126357

Differential Revision: https://phabricator.services.mozilla.com/D126360
2021-09-23 09:14:19 +00:00
Valentin Gosu d99d6259ee Bug 1732095 - Clean up CacheStorageService r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D126357
2021-09-23 09:14:19 +00:00
hxu ba25f249eb Bug 1726598 - Remove sFactoryShutdown and sMutex from dom::cache::Manager since they are obselete. r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D125678
2021-09-23 09:04:41 +00:00
Valentin Gosu 30d9837cd9 Bug 1732249 - Check if secInfo->GetServerCert returns a null cert r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D126453
2021-09-23 09:00:18 +00:00
Valentin Gosu 373cbe05bd Bug 1732249 - Check if secInfo->GetServerCert returns a null cert r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D126453
2021-09-23 09:00:18 +00:00
Hubert Boma Manilla b8d1653388 Bug 1717802 - [devtools] Fission test for event breakpoint with remote frames r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D125685
2021-09-23 08:53:57 +00:00
Hubert Boma Manilla eeff2699c2 Bug 1717802 - [devtools] Add support for event breakpoints via the watcher actor r=ochameau,devtools-backward-compat-reviewers,jdescottes
Depends on D125039

Differential Revision: https://phabricator.services.mozilla.com/D124228
2021-09-23 08:53:57 +00:00
Kagami Sascha Rosylight 2094595971 Bug 1726157 - Add GetStorageAccess to nsIGlobalObject r=asuth,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D123145
2021-09-23 08:49:56 +00:00
Mirko Brodesser b507a6325d Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` `const`. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126350
2021-09-23 08:48:18 +00:00
Mirko Brodesser 5d0afe9005 Bug 1731994: part 3) Extend documentation of `ContentPermissionRequestBase`'s constructor. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126349
2021-09-23 08:48:17 +00:00
Mirko Brodesser c3adf90c7d Bug 1731994: part 2) Add some documentation to `ContentPermissionRequestBase`'s constructor. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126338
2021-09-23 08:48:17 +00:00
Mirko Brodesser 34c70a5402 Bug 1731994: part 1) const-qualify some members of `ContentPermissionRequestBase`. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126337
2021-09-23 08:48:16 +00:00
Alexandre Poirot 8db27bf2d7 Bug 1731530 - [devtools] Implement TrackedObjects.track in the content process. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126082
2021-09-23 08:45:49 +00:00
Kagami Sascha Rosylight ffe3b03a5e Bug 1731773 - Run mach vendor for libjxl and highway r=tnikkel
Just library version updates, nothing else.

Differential Revision: https://phabricator.services.mozilla.com/D126359
2021-09-23 08:23:07 +00:00
Alex Finder ac18e095b5 Bug 1729338 - Restore non-Fission AWSY base overhead test on autoland r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D126335
2021-09-23 08:16:54 +00:00
André Bargull a3e91cb71a Bug 1728180 - Part 2: Call mozilla::intl::Calendar methods in intl_GetCalendarInfo. r=platform-i18n-reviewers,dminor
Use `mozilla::intl::Calendar` instead of directly calling ICU in
`intl_GetCalendarInfo`. This implies that the days of the week are now ordered
the same way as in the "Intl Locale Info API" and the "Temporal" proposal, i.e.
starting from Monday=1 to Sunday=7.

Differential Revision: https://phabricator.services.mozilla.com/D126228
2021-09-23 07:43:51 +00:00