Commit Graph

801816 Commits

Author SHA1 Message Date
smolnar
bd8c576702 Backed out 2 changesets (bug 1529337) for awaiting decision on implementing other CSP 3 features
Backed out changeset 12cd014c46e8 (bug 1529337)
Backed out changeset f1489d7cf1a1 (bug 1529337)
2022-07-18 11:09:25 +03:00
Bogdan Szekely
a5bbfdd85a Backed out 2 changesets (bug 1779180, bug 1779043) for causing mochitest failures on test_css-logic-media-queries.html
CLOSED TREE

Backed out changeset 95e34a0fbb39 (bug 1779043)
Backed out changeset 0931519b4ef2 (bug 1779180)
2022-07-18 10:37:32 +03:00
Dimi
305704be14 Bug 1775233 - P2. Update testcases to accept credit card forms with only one credit card number field (without autocomplete=cc-number) r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D151807
2022-07-18 07:11:55 +00:00
Dimi
b609fbb39e Bug 1775233 - P1. Consider credit card sections that contain only a credit card number field to be valid cc sections r=sgalich
Before this patch, we consider credit card sections with only one cc-number
field to be valid sections ONLY IF its cc-number field has
"autocomplete=cc-number". In other words, if we infer the field is
a cc-number field because of our detection heuristic, the section
is considered to be invalid.

In this patch, we remove the "autocomplete=cc-number" constrain, which
means as long as a credit card section has a cc-number field, it is a
valid cc section.

Differential Revision: https://phabricator.services.mozilla.com/D151806
2022-07-18 07:11:55 +00:00
Nicolas Chevobbe
cd5945b68a Bug 1779043 - [devtools] Fix jumping to media query in inline sheets. r=jdescottes.
We directly pass the editor stylesheet in the `location` parameter that is passed
to `jumpToLocation`.

`jumpToLocation` wasn't covered in any test, so we modify `browser_styleeditor_media_sidebar.js`
to add coverage for it.
This is also testing Bug 1779180 which is in the same stack.

Differential Revision: https://phabricator.services.mozilla.com/D151597
2022-07-18 07:05:18 +00:00
Nicolas Chevobbe
597135d899 Bug 1779180 - [devtools] Replace usages of InspectorUtils.getRuleLine with InspectorUtils.getRelativeRuleLine. r=jdescottes.
For <style> elements, `getRelativeRuleLine` gives us the position of the rule
inside a stylesheet, when `getRuleLine` gives the position of the rule relatively
to the whole HTML source.
The former is more accurate for us when we want to display such line number in
DevTools UI (for example in the StyleEditor media query sidebar).

Test will be added in next patch of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D151596
2022-07-18 07:05:18 +00:00
smolnar
5ecfe80ddd Backed out changeset dd96cc22ca4d (bug 1759152) for causing gtest crashes. CLOSED TREE 2022-07-18 10:03:51 +03:00
Mozilla Releng Treescript
ca9d6b12d8 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
de -> 35859bdbfdb312f6c6672bd80dd2395d92261e7b
es-MX -> 15eaf0fbb07a259eaa5bf21d36e69d1148f7da41
it -> f56ae3ad6a9bff1166a647453e17c8c3b66b7673
nl -> b1b05ca9a5293042f91cfd8067d97ae7b8812664
sv-SE -> 587bd874ac99f242a13454d4aa555537151b1817
tg -> 619bad436d6e17c624c08b9f3823610b72e45f80
zh-TW -> 0a1d69e10853951d3203ad1e7acf5c175e4beba6
2022-07-18 06:59:00 +00:00
Mark Banner
d6d4e667aa Bug 1779944 - Change js/xpconnect/tests/unit/api_script.js to use unix line endings. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D151983
2022-07-18 06:56:57 +00:00
Jari Jalkanen
848caa7913 Bug 1759152 - Expose file system to workers. r=dom-storage-reviewers,jesup,janv
Depends on D149983

Differential Revision: https://phabricator.services.mozilla.com/D140862
2022-07-18 06:22:14 +00:00
Andreea Pavel
4f2fe8d8d8 Bug 1481802 - update disabling condition to include all linux builds r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151966
2022-07-18 05:45:46 +00:00
Mozilla Releng Treescript
433fee9aac no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
de -> 292128bcc7e9b123a8cb5740e4324e0da0cd6133
ja -> bb569142a5c4cc64373d3faa04aa9ac07ba9f2af
ja-JP-mac -> b7b995721f6f79f32a51c0c54b8c8ffbbad96044
kab -> 81b70d6b92427a78caa2688447a973739db8605d
nn-NO -> c2fa8324213c43e29d71ecba521078b78fb589c3
pa-IN -> af1d5e70aa94cb3971486f55eb74139eacd93302
ru -> 309f535d142a6fb5f6f3bb20a5877691848c660c
sl -> 37246d4d8c1b4167b7c1c2ae93b997f892677d18
sr -> 537d8fb763e1f4101820505c0df38169b5e4a29c
tg -> 721dae751d30b69c91403446a4ef6db31aca9cac
2022-07-17 19:02:28 +00:00
Iulian Moraru
5e7070f988 Backed out changeset 89d291a9ee9b (bug 1737043) for causing xpcshell failures on test_URIFixup_check_host.js. CLOSED TREE 2022-07-17 20:47:23 +03:00
Andrew Osmond
15890255a7 Bug 1779935 - Ensure GradientCache lookup and insertion are atomic. r=gfx-reviewers,lsalzman
There are potential races between insertion of the same gradient into
the cache on different threads, as well as acquiring a strong reference
to the GradientStops object racing with the expiration timer.

Differential Revision: https://phabricator.services.mozilla.com/D151981
2022-07-17 17:11:09 +00:00
Gijs Kruitbosch
393bdf2f46 Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129156
2022-07-17 16:48:44 +00:00
criss
3cb31675ae Merge autoland to mozilla-central. a=merge 2022-07-17 12:02:14 +03:00
Mozilla Releng Treescript
e414ed367f no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
eo -> 65cf5ba1850ad4477c6c5f30f361f72e305969d3
ka -> 81423ab2033f48c9740565a1e93efc0c81a5c263
nn-NO -> cc1f90d7a3d11b30085ece47fed4a33dd628d382
2022-07-17 06:59:03 +00:00
Thomas Wisniewski
9abebe821e Bug 1760279 - have our Google Analytics/Tag Manager shim call the original dataLayer's push method if it has successfully loaded, so page's custom JS stored in GTM can run; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151971
2022-07-16 23:29:51 +00:00
Mozilla Releng Treescript
48f5edbe59 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
el -> 2807d97336cd29b3f4393bdbce46c8436ed6e57f
eo -> 498f54cedfe3da8317e4892a9da9228c89af7512
eu -> bec3a3199f2cdd4fef94a593fce14faa39eed0dd
fr -> 5a5b98476022533b453a5f643995bfc8229ecdf1
it -> 81e4f9700836a6a74c6ddc9db0fe453d28cd875e
oc -> 68335aebb083bffe2f10542ad35a434dca0cc046
pl -> 20ee43e3625264b324d5d236525215e67a3c0aee
ru -> b6dce2a33b4ce07f12151605421315b39d10a17e
tg -> d19cd8a478aec6656016ef144f34b80405d734ec
2022-07-16 19:05:03 +00:00
Doug Thayer
ded0196a2a Bug 1773310 - Don't run native menu code if headless r=mstange
So, the problem was just that in LoadNativeMenus, we do our cleanup of the
sLoadNativeMenusListeners list. However, we were also early exiting from that
function if we're in headless mode. We have no good reason to be in that
function to begin with if we're in headless mode though, so I just hoisted
the check out to an earlier point.

Differential Revision: https://phabricator.services.mozilla.com/D151929
2022-07-16 16:25:30 +00:00
Doug Thayer
46492ad747 Bug 1773310 - Init sHiddenWindowLoadedNativeMenus to false r=mconley,mstange
Differential Revision: https://phabricator.services.mozilla.com/D151528
2022-07-16 16:25:30 +00:00
Norisz Fay
d76006360b Merge autoland to mozilla-central a=merge 2022-07-16 12:20:05 +03:00
Mozilla Releng Treescript
b169bc9b41 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
be -> b947d6043de94b612e4e95dc566324f077a1c6e7
eu -> 41027f34281a8b2676601d54b744d2a9b666ebb0
ja -> 60eb149d13041af5264fec3fd77922dc57b280c9
ja-JP-mac -> 6f101bafd6b7ef1f46ba63af22cd3118ba19a879
uk -> 9ff132a30b7c1446984004546a85c55fb90c7bb8
2022-07-16 06:57:34 +00:00
Norisz Fay
21261127e8 Backed out changeset b94861755266 (bug 1779829) for causing build bustages on ProtocolFuzzer.h CLOSED TREE 2022-07-16 09:39:57 +03:00
Updatebot
b9b38ddcc4 Bug 1779862 - Update opus to c9d5bea13e3cb7381bfa897a45d8bab4e7b767a7 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D151965
2022-07-16 06:17:06 +00:00
Jim Blandy
25bd35bb65 Bug 1779829: Replace Shmem::PrivateIPDLCaller with friend specifiers. r=nika
Instead of using the public member type `PrivateIPDLCaller` to
restrict access to certain `Shmem` member functions, make them
`private`, and designated `IProtocol` and `ITopLevelProtocol` as
friends of `Shmem`.

Differential Revision: https://phabricator.services.mozilla.com/D151952
2022-07-15 22:42:04 +00:00
Dan Robertson
01442549da Bug 1777324 - Move reftest README to firefox source documentation. r=tnikkel
Move the README for the layout reftests to the firefox source documentation.

Differential Revision: https://phabricator.services.mozilla.com/D150630
2022-07-15 21:40:22 +00:00
Bernard Igiri
4b6eaac0e3 Bug 1776221 - Added auto update of Colorway CTA on theme change r=sfoster
With this fix changing the Colorway theme should automatically update the Colorway CTA in Firefox View. Additionally, the Colorways portion of firefoxview.mjs has been migrated to colorways-card.mjs and restructured to match the style of the rest of the Firefox View codebase.

Differential Revision: https://phabricator.services.mozilla.com/D150878
2022-07-15 21:36:56 +00:00
Butkovits Atila
c8899947b3 Merge mozilla-central to autoland. CLOSED TREE 2022-07-16 00:36:49 +03:00
Olli Pettay
676de90efc Bug 1779808 - Add a JS helper to check if a document is the current active document of a browsing context, r=emilio
This should get tested as part of bug 1692468 and others.

This is exposing https://searchfox.org/mozilla-central/rev/99c3ccc2f02c5fff7c9850f7a0770ee92cc693f6/dom/base/Document.cpp#12730 to privileged JS.

If one wants to check if an element in a data document (document.implementation.createHTMLDocument().body for example) is in a window which is active,
something like element.ownerGlobal?.document.isActive() should work.

Differential Revision: https://phabricator.services.mozilla.com/D151951
2022-07-15 21:30:04 +00:00
Andreea Pavel
239c58bf0e Merge autoland to mozilla-central a=merge 2022-07-16 00:29:09 +03:00
Andrew Halberstadt
3c131b2865 Bug 1779646 - [docs] Re-structure the 'how-to' section of taskgraph docs, r=taskgraph-reviewers,aki
This links directly to the taskgraph howto section in most cases:
https://taskcluster-taskgraph.readthedocs.io/en/latest/howto/index.html

Then removes documentation that duplicates that section.

Jira: RELENG-709

Differential Revision: https://phabricator.services.mozilla.com/D151937
2022-07-15 20:58:34 +00:00
Andrew Halberstadt
5e36818adc Bug 1779646 - [docs] Re-structure/remove taskgraph documentation that duplicates standalone docs, r=taskgraph-reviewers,aki
Lots of this documentation has been migrated to:
https://taskcluster-taskgraph.readthedocs.io/en/latest/index.html

Rather than maintain two sets of parallel docs, this refactors the Gecko docs
to point to the taskgraph ones where appropriate.

Jira: RELENG-709

Differential Revision: https://phabricator.services.mozilla.com/D151935
2022-07-15 20:58:33 +00:00
Andrew Halberstadt
1ac8426830 Bug 1779646 - [docs] Remove 'taskcluster/docs/task-graph.rst', r=taskgraph-reviewers,aki
This was an import from MDN that I don't think was providing much value.

Jira: RELENG-709

Differential Revision: https://phabricator.services.mozilla.com/D151934
2022-07-15 20:58:33 +00:00
Andrew Halberstadt
ddf5db77a4 Bug 1779646 - [docs] Re-write landing page for Taskcluster / Taskgraph documentation, r=taskgraph-reviewers,aki
Jira: RELENG-709

Differential Revision: https://phabricator.services.mozilla.com/D151933
2022-07-15 20:58:32 +00:00
Cathy Lu
df9bafbf73 Bug 1734394 - Make Geckoview use the session store collector r=geckoview-reviewers,agi,farre,peterv
When the session storage prefs are enabled, GeckoSession updateSessionState will provide the bundle of information, including zoom, scroll, and form data, to the delegate. Currently works for Fission and on Fenix.

Differential Revision: https://phabricator.services.mozilla.com/D148215
2022-07-15 20:44:55 +00:00
Tom Ritter
5601c9d71d Bug 1737829: Add a cross-origin iframe test for RFP exemptions r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D150593
2022-07-15 20:39:24 +00:00
Tom Ritter
a199ab6a52 Bug 1737829: Populate an RFP bit from Channel to Connection via Caps r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D144583
2022-07-15 20:39:23 +00:00
Tom Ritter
c55fc9ce83 Bug 1737829: Add an RFP argument to UserAgent() and AddStandardRequestHeaders() r=necko-reviewers,kershaw
UserAgent() needs a parameter because it previously was
calling the non-fine-grained RFP check. It can't call the
fine-grained check, so it needs to be told what to do.

AddStandardRequestHeaders calls UserAgent() and needs to
know what to pass it.

Differential Revision: https://phabricator.services.mozilla.com/D144582
2022-07-15 20:39:23 +00:00
Tom Ritter
5d4fe766fe Bug 1737829: Change the Navigator::UserAgent function for RFP r=asuth
We change it from taking bool aIsCallerChrome to
Maybe<bool> aShouldResistFingerprinting.  If there is
a value in there, it is used for determining RFP status.
If not, we call ShouldRFP with the provided Document.

This is needed because on a Worker, we wind up in UserAgent
with no Document, we need to pass the RFP decision in
from WorkerPrivate.

Differential Revision: https://phabricator.services.mozilla.com/D144581
2022-07-15 20:39:23 +00:00
Tom Ritter
f11bc3e771 Bug 1737829: Add loadInfo to nsHttpChannel::Init() r=necko-reviewers,kershaw
Everywhere except one loadInfo is supplied to an HTTPChannel
right after it is Init()-ed.  Inside of Init we would like to
use the loadInfo so we'll put it in there.

Differential Revision: https://phabricator.services.mozilla.com/D144580
2022-07-15 20:39:22 +00:00
Tom Ritter
cda59e5d3d Bug 1737829: Add a test for fine-grained RFP checks r=asuth
Additionally, add some more helpful worker annotations.

Differential Revision: https://phabricator.services.mozilla.com/D144579
2022-07-15 20:39:22 +00:00
Muhammad
0bf10d70ab Bug 1737829: Cut over Navigator components to fine-grained RFP Checks r=tjr,asuth
Whereas previously we would pass in the principal of a document,
now we will pass in the document directly. This will work for most use
cases, but not all (like Workers.)

Additionally, for the User Agent, if we do not Resist Fingerprinting
(because there is an exemption), we will fall through to getting the
User-Agent header which uses the coarse RFP check, so we fix that in
a later patch.

Differential Revision: https://phabricator.services.mozilla.com/D138778
2022-07-15 20:39:21 +00:00
Tom Ritter
3b30c427d9 Bug 1770498: Update the browser_canvas_rfp_exclusion.js test r=timhuang
Previously, this test would open a page and then enable/disable
RFP while the tab was open, writing and reading the canvas as
it went.

Now that CookieJarSettings gets initialized when a document loads
and stays constant for the lifetime of the document, we cannot enable
and disable the prefs and expect them to continue to behave correctly.

We do a 'pre-test' to populate a canvas and then get the true image
data for it. Then we set the preferences prior to loading future
documents and compare the extracted canvas data to the known-correct
data to see if we are correctly spoofing it or not.

Differential Revision: https://phabricator.services.mozilla.com/D150592
2022-07-15 20:39:21 +00:00
Tom Ritter
03d9a1afdc Bug 1770498: De-duplicate the CookieJar check into a local function r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D151679
2022-07-15 20:39:20 +00:00
Tom Ritter
b732796900 Bug 1770498: Create ShouldRFP(nsILoadInfo) and make ShouldRFP(nsIPrincipal) explicitly dangerous r=timhuang
- Move ShouldRFP(char*), ShouldRFP(docshell), ShouldRFP(Document)
  below some utility code.

- Now that we know we should check the CookieJarSettings, using
  ShouldRFP(nsIPrincipal) is dangerous.  We mark it as dangerous
  and annotate the existing uses of it.

- At the same time, an nsILoadInfo has the CookieJarSettings we
  want to check, so create a ShouldRFP(nsILoadInfo) that checks
  it and cascades to the (marked-dangerous-but-not-dangerous-for-
  this-call) principal function.

- We also correct a situation where WorkerLoadInfo does not
  initialize the shouldRFP member.

Differential Revision: https://phabricator.services.mozilla.com/D150591
2022-07-15 20:39:20 +00:00
Tom Ritter
61152c85e9 Bug 1770498: Add shouldResistFingerprinting to RemoteWorkerData r=asuth
Previously, we initialized WorkerLoadInfo's shouldRFP member
using the Worker's principal at time of construction. It is
better to populate it from the RemoteWorkerData structure.

The RemoteWorkerData's shouldRFP member can be initialized
with the correct context.

In ServiceWorkerPrivateImpl.cpp it has the same effect, before
and after we use ServiceWorkerInfo.mPrincipal

But for SharedWorker.cpp we previously used
RemoteWorkerData.principalInfo (the second of three principal
members).  This was initialized from the WorkerLoadInfo.mPrincipal
member, which in turn came from loadInfo.mChannel which in turn
came from loadInfo.mLoadingPrincipal.

Now we use the WorkerLoadInfo.mShouldResistFingerprinting member
which is initialized from
nsContentUtils::ShouldResistFingerprinting(document) in
WorkerPrivate::GetLoadInfo which can take into account greater
context which will be important in the next few patches.

Differential Revision: https://phabricator.services.mozilla.com/D150590
2022-07-15 20:39:19 +00:00
Tom Ritter
700f6f1322 Bug 1770498: Use the CookieJarSetting's ShouldRFP Member in nsContentUtils::ShouldRFP r=timhuang
Now that the ShouldRFP member is correctly populated (we hope)
in CookieJarSettings, we can use it in our ShouldRFP methods.

There are two general scenarios:
  An exempted domain frames a non-exempted domain.
     The inner frame should be non-exempted.
  A non-exempted domain frames an exempted domain
     The inner frame should be non-exempted.

In the first scenario, CookieJarSettings.shouldRFP member
will be false (exempted.)  We clearly cannot blindly rely
on the member, it would be wrong here.

In the second scenario, CookieJarSettings.shouldRFP member
will be true (non-exempted). This is the scenario we really
need CookieJarSettings for.

----

We take the opportunity to add an additional check for the
'exempted domain framed by a non-exempted domain' scenario.
This additional check takes advantage of the first party
isolation key (for FPI) or partition key (for dFPI).

Differential Revision: https://phabricator.services.mozilla.com/D150589
2022-07-15 20:39:19 +00:00
Tom Ritter
1c40624193 Bug 1770498: Populate the RFP member of CookieJar Settings r=timhuang,geckoview-reviewers,owlish
CookieJarSettings frequently gets populated in a place
where we have ready access to the Document/Channel it
is being constructed for. This lets us populate the boolean
and pass it into CookieJarSetting's constructor easily.

When it is created for LoadInfo, we need to plumb the URI
through by adding it to LoadInfo::CreateForDocument.

Differential Revision: https://phabricator.services.mozilla.com/D150588
2022-07-15 20:39:19 +00:00
Tom Ritter
489d2393ae Bug 1770498: Add RFP to CookieJarSettings r=timhuang
Before we took a very simplistic view to domain-based RFP
exemptions - if the loading principal said an exempted
domain, you were exempted.

This did not intelligently take into account iframes. In
particular, if a non-exempted domain framed an exempted
domain, the exempted domain's iframe would be exempted.

It probably should not. This is debatable, but at this
point in time after consultation with Tor we are going
to take the approach described in the comments in
CookieJarSettings.h

Notably this is creating a gap when it comes to nested
iframes.  If an exempted domain iframes a non-exempted
domain, which in turn iframes an exempted domain - the
innermost iframe will be exempted even though its parent
is not.  This is not ideal, once a document is non-
exempted, all children should be non-exempted. But this
is especially difficult to implement with the facilities
easily available to us, so we leave this corner case for
another day.

Differential Revision: https://phabricator.services.mozilla.com/D150587
2022-07-15 20:39:18 +00:00