Handle grid track lists that are too large in CalculateRepeatFillCount. Check
for repeat tracks that begin or end past the maximum track limit in
InitRepeatTracks, and handle the possible size mismatch in nsComputedDOMStyle.
This may result in there being fewer than the maximum number of tracks again
after removing empty tracks in a repeat(auto-fit), but only limiting the track
count after removing empty tracks would leave the number of repeat tracks
unbounded (or require a separate limit on just the repeat track count).
Differential Revision: https://phabricator.services.mozilla.com/D76191
HttpChannelChild::OnStartRequest should copy argument only since HttpChannelChild::RecvAttachStreamFilter, who sets new listener, could be after OnStartRequest.
Differential Revision: https://phabricator.services.mozilla.com/D80964
SPI_GETFLATMENU uses the newly-added WinContentSystemParameters and adds
the ability to update theme-related variables when they change.
Differential Revision: https://phabricator.services.mozilla.com/D80071
We detect empty scroll roots by checking the valid scrollable size
of a frame, in order to avoid attaching picture cache slices to
these redundant scroll frames.
However, under some fractional zoom scenarios, rounding CSS pixels
to device pixels can result in small rounding errors.
Apply the same epsilon check that Gecko uses in APZ code in order
to detect if a scroll frame is actually scrollable.
Differential Revision: https://phabricator.services.mozilla.com/D80943
We currently base this on the cb_name, but it would make be better to make this
explicit, so that different actions can share a permisssion. In particular, we are
adding a pair of new backfill actions that needs a singlle non-default permission.
Differential Revision: https://phabricator.services.mozilla.com/D80940
The original addition of CSP to `headersAlreadySet` in bug 1462989 was
to make sure that CSP response headers from different extensions are
merged as expected. The logic did however not take into account that
unconditionally merging modified headers means that the header would be
merged with the original CSP from the web page, which prevented add-ons
from relaxing a CSP from the web page.
This commit fixes the bug by tracking the CSP status on the
`ResponseHeaderChanger` instance, which is shared by all webRequest
handlers of a single request.
Differential Revision: https://phabricator.services.mozilla.com/D80761
- Most importantly: Fix the `test_csp` helper to actually replace the
page's CSP header. The existing tests verify that the web page's CSP
is still applied, which is trivially true if the helper extension
appends the CSP instead of replacing it.
- Expand comment on the meaning of the parameters in `test_csp`.
- `sendMessage` is not async, properly await the result.
- Unload extensions before checking assertions, to avoid unhelpful error
messages about extensions not having been unloaded at the end of the
test.
- Report which test case is being run to make debugging easier.
Differential Revision: https://phabricator.services.mozilla.com/D80760
Changes:
- `web-platform-tests-wdspec` and `web-platform-tests-crashtests` are newly added to the file.
- `web-platform-tests` groupings are changed.
Differential Revision: https://phabricator.services.mozilla.com/D80921
In bug 1645264, extension resources could not be loaded when extensions
were loaded through the deprecated `registerWebExtension` method,
because the base URL of such extensions were not correctly resolved.
This does work as expected with the new `installBuiltin` method because
that relies on the AddonManager, which internally does resolve the URL
as expected.
This patch does not fix the bug because the deprecated method is going
to be removed, but introduces a regression test to make sure that this
functionality continues to work as expected.
Differential Revision: https://phabricator.services.mozilla.com/D80300
Most of TelemetryController is only used in the parent process, but is
currently loaded in all processes, where it needlessly consumes tens of KB of
memory. This patch splits the parent- and content-specific parts, and only
loads each in the processes where they're needed.
Differential Revision: https://phabricator.services.mozilla.com/D79870
The original addition of CSP to `headersAlreadySet` in bug 1462989 was
to make sure that CSP response headers from different extensions are
merged as expected. The logic did however not take into account that
unconditionally merging modified headers means that the header would be
merged with the original CSP from the web page, which prevented add-ons
from relaxing a CSP from the web page.
This commit fixes the bug by tracking the CSP status on the
`ResponseHeaderChanger` instance, which is shared by all webRequest
handlers of a single request.
Differential Revision: https://phabricator.services.mozilla.com/D80761
- Expand comment on the meaning of the parameters in `test_csp`.
- `sendMessage` is not async, properly await the result.
- Unload extensions before checking assertions, to avoid unhelpful error
messages about extensions not having been unloaded at the end of the
test.
- Report which test case is being run to make debugging easier.
Differential Revision: https://phabricator.services.mozilla.com/D80760