Commit Graph

714787 Commits

Author SHA1 Message Date
Matt Woodrow
28c5ddf563 Bug 1626362 - Move docshell uri fixup code into a static helper. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D80104
2020-06-24 22:01:43 +00:00
Matt Woodrow
86dcbb169e Bug 1626362 - Add test for not process switching when we get a 204 response. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80103
2020-06-24 22:01:25 +00:00
Emily McDonough
9c4930c11b Bug 1633737 - Fix asserts and array accesses for oversized grid tracks with repeat-auto r=emilio
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
2020-06-24 18:25:08 +00:00
emcminn
e5d64b2447 Bug 1640027 - Add Zap component that allows zap style to be added to headings r=pdahiya,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80514
2020-06-24 21:41:14 +00:00
Kevin Jacobs
3c3f5268d1 Bug 1645082 - Extend Delegated Credentials telemetry probe expiration to Fx86. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D80260
2020-06-24 21:22:20 +00:00
Kartikaya Gupta
eb0984f55a Bug 1642052 - Delete dead code. r=froydnj
This Android-only ifdef block is nested inside a Windows-only ifdef block.

Differential Revision: https://phabricator.services.mozilla.com/D80962
2020-06-24 21:24:56 +00:00
Junior Hsu
8a0ff94b82 Bug 1648132 - Do not allow setting new listener after we handle all the IPCs before SendOnStartReqeust, r=kershaw
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
2020-06-24 21:38:57 +00:00
Chris Martin
c5f74d8b96 Bug 1400317 - Win32k Lockdown: Remote SPI_GETFLATMENU r=jmathies
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
2020-06-24 15:29:58 +00:00
Csoregi Natalia
a57b938715 Backed out changeset 8cb44457d718 (bug 1645901) for failures on /cookies/path/match.html. CLOSED TREE 2020-06-25 00:35:58 +03:00
Adam Roach [:abr]
8376f33335 Bug 1648187: Don't prompt for reauthorization if pref is disabled r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D80955
2020-06-24 21:06:53 +00:00
Jared Wein
5a67b515ea Bug 1644639 - Set the label on the checkbox directly, and remove the 'control' attribute on the description since clicking a link shouldn't also toggle the checkbox. r=mstriemer,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D79953
2020-06-24 20:53:26 +00:00
Jared Wein
30e7b0bb02 Bug 1644639 - Add ability for FeatureGate descriptions to include links. r=mstriemer,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D79952
2020-06-24 20:53:18 +00:00
Glenn Watson
d4a5cd3f1d Bug 1647222 - Improve detection of real scroll frames. r=jnicol
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
2020-06-24 19:37:56 +00:00
Kershaw Chang
a674c80bfb Bug 1640612 - Allow socket process to read /etc, r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D80718
2020-06-24 20:43:30 +00:00
Kershaw Chang
aba86f73b8 Bug 1640612 - Allow FIONREAD ioctl for socket process, r=jld
Differential Revision: https://phabricator.services.mozilla.com/D79071
2020-06-24 20:43:01 +00:00
Kershaw Chang
c49db2fc38 Bug 1640612 - Deal with uname() for socket process, r=jld
Differential Revision: https://phabricator.services.mozilla.com/D78148
2020-06-24 20:42:47 +00:00
Tom Prince
39034e6b47 Bug 1639873: Be explicit in the permission used for a given action; r=aki
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
2020-06-24 20:40:29 +00:00
Rob Wu
f76a8e49fe Bug 1635781 - Fully replace the web page's CSP if modified by add-on r=mixedpuppy
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
2020-06-24 20:39:00 +00:00
Rob Wu
94507ab6ae Bug 1635781 - Fix broken logic in test_ext_webRequest_mergecsp.js r=mixedpuppy
- 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
2020-06-24 20:17:22 +00:00
Mark Banner
07547b40a2 Bug 1647699 - Extend test_distribution to cover Acer distribution fixes. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D80715
2020-06-24 20:26:57 +00:00
Matt Woodrow
b351d48f0c Bug 1646582 - Pull the inner window id from the WindowGlobalParent, rather than passing it across PBrowser for updateForLocationChange. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80131
2020-06-24 19:59:32 +00:00
Matt Woodrow
ea21b3dd8e Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-24 19:59:04 +00:00
Matt Woodrow
00dc8d3d73 Bug 1646582 - Remove DOM(Inner)WindowID from nsIWebProgress. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D80128
2020-06-24 19:58:15 +00:00
Matt Woodrow
a637ca6c0d Bug 1646582 - Remove nsIRemoteWebProgressRequest since it's not being used anywhere. r=barret
Differential Revision: https://phabricator.services.mozilla.com/D80127
2020-06-24 19:57:30 +00:00
Kris Maglione
aa9718c2e0 Bug 1648178: Stop loading TelemetryUtils in content processes. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D80919
2020-06-24 20:03:53 +00:00
Kris Maglione
dceac2df15 Bug 1646476: Remove unnecessary GetInProcessScriptableParent usage in LoadInfo. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D80062
2020-06-22 14:26:49 +00:00
Kris Maglione
65d232eff2 Bug 1647496: Make ContentIsCrossDocDescendantOf handle interstitial OOP frames. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D80563
2020-06-23 03:06:00 +00:00
Jeff Walden
e88268be75 Bug 1502355 - Fill in most of the body of the "finalize" operation in the piping algorithm. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80785
2020-06-24 18:41:15 +00:00
Jeff Walden
4e41734ac2 Bug 1502355 - Implement some of the process of performing an action and then finalizing, in the shutdown with an action process. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80784
2020-06-24 18:41:07 +00:00
Jeff Walden
7cc9de0a71 Bug 1502355 - Wait for completed reads to finish writing before finalizing, during pipe-to shutdown with an action. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80783
2020-06-24 18:41:00 +00:00
Jeff Walden
a30e220cb7 Bug 1502355 - Save to the side the action specified when we're supposed to "shutdown with an action". r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80782
2020-06-24 18:40:52 +00:00
Jeff Walden
266888d6f0 Bug 1502355 - Store the value optionally passed to finalizing as an extra value in a handler function. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80781
2020-06-24 18:40:45 +00:00
Jeff Walden
b632801c8d Bug 1502355 - React to a read promise that rejects. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80780
2020-06-24 18:40:32 +00:00
Jeff Walden
1f7d9fadd3 Bug 1502355 - Implement |WritableStreamDefaultWriterCloseWithErrorPropagation|. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80779
2020-06-24 18:40:25 +00:00
Jeff Walden
bfd74effd4 Bug 1502355 - Allow handler functions to store an extra *value*, not merely an extra T* that's an object. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D80778
2020-06-24 18:40:12 +00:00
Junior Hsu
d9f9720ce1 Bug 1645901 - only waiting for main thread OnStartRequestSent for LOAD_DOCUMENT_NEEDS_COOKIE, r=mayhemer,necko-reviewers
Depends on D79771

Differential Revision: https://phabricator.services.mozilla.com/D80682
2020-06-24 14:01:02 +00:00
Edwin Takahashi
cda856b5e3 Bug 1647383 - update manifest runtime information r=ahal,jmaher
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
2020-06-24 18:23:39 +00:00
Edwin Takahashi
507fa3db90 Bug 1647383 - chunk web-platform-tests-crashtest and web-platform-tests-wdspec in decision task r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D80529
2020-06-24 18:23:39 +00:00
Shane Caraveo
6c815b0bcf Bug 1647935 cleanup test_updatecheck.js r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D80772
2020-06-24 18:22:43 +00:00
Csoregi Natalia
e87da2a354 Backed out 2 changesets (bug 1635781) for failures on /test_ext_webRequest_cached.js. CLOSED TREE
Backed out changeset 26d1f4a237a3 (bug 1635781)
Backed out changeset 866413f80f63 (bug 1635781)
2020-06-24 21:25:41 +03:00
Rob Wu
1ce5630b47 Bug 1645264 - Add test for redirect to web_accessible_resources r=agi,geckoview-reviewers
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
2020-06-22 22:50:02 +00:00
Dave Townsend
1b8c76d27b Bug 1647762: Strip add-on identifiers from keyboard shortcut interaction telemetry. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D80915
2020-06-24 17:43:20 +00:00
Adam Roach [:abr]
3a26467198 Bug 1647944: Add more matching rules to heuristics, r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D80786
2020-06-24 17:27:02 +00:00
Christoph Kerschbaumer
05f19f4cc6 Bug 1648093: Rename hasFlags variables to something more descriptive within nsScriptSecurityManager. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D80886
2020-06-24 16:57:18 +00:00
Kris Maglione
4f021f549e Bug 1645862: Part 2 - Get rid of ContentProcessSingleton. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D79871
2020-06-24 17:33:52 +00:00
Kris Maglione
977f86fb80 Bug 1645862: Part 1 - Split TelemetryController into parent and content modules. r=chutten
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
2020-06-24 17:33:49 +00:00
Daosheng Mu
16ae869cfe Bug 1636011 - Remove FxR PC installation probes. r=kip,thomasmo,chutten
We don't need these telemetry in Gecko now because we are working on it with Glean.

Differential Revision: https://phabricator.services.mozilla.com/D80116
2020-06-24 17:29:45 +00:00
Rob Wu
b84e5f4143 Bug 1635781 - Fully replace the web page's CSP if modified by add-on r=mixedpuppy
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
2020-06-24 17:17:08 +00:00
Rob Wu
89ab97b36b Bug 1635781 - Improve initialization and documentation of test_ext_webRequest_mergecsp.js r=mixedpuppy
- 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
2020-06-24 17:04:21 +00:00
Mitchell Hentges
a16c5f70d6 Bug 1644553: Don't enable profile use for artifact builds r=glandium,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D80565
2020-06-24 16:57:36 +00:00