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

727645 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch 0fbf95d36e Bug 1667031 - URLBarInput's nsIObserver implementation should QI its 'subject' argument before using it, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D91249
2020-09-24 09:53:43 +00:00
Timothy Nikkel 093f97fd96 Bug 1665323. Make sure the visual viewport offset always takes on valid values. r=kats
The problems that it causes that are referred to in the patch is that we use the vvoffset and GetScrollRangeForUserInputEvents to compute the scrollbar cur, min, and max attributes. If we have a non-zero vvoffset when we are zooomed backed out, GetScrollRangeForUserInputEvents will be a zero range and so the cur attribute (non-zero)  will be larger than the max attribute (0).

This then causes nsSliderFrame::AttributeChanged to call ScrollByWhole at

https://searchfox.org/mozilla-central/rev/30e70f2fe80c97bfbfcd975e68538cefd7f58b2a/layout/xul/nsSliderFrame.cpp#204

Which we definitely do not want.

Differential Revision: https://phabricator.services.mozilla.com/D90372
2020-09-24 02:08:07 +00:00
longsonr 213122103c Bug 1667018 - minor improvements to path code r=emilio
- Use IsMoveto method where appropriate
- Avoid referencing path in animation so we can move to supporting shapes later

Differential Revision: https://phabricator.services.mozilla.com/D91242
2020-09-24 08:43:51 +00:00
Mark Banner b703d14d66 Bug 1666844 - Clean up MozParam handling for search engines. r=daleharvey
Depends on D91170

Differential Revision: https://phabricator.services.mozilla.com/D91171
2020-09-24 08:52:34 +00:00
Mark Banner 401e00eb6a Bug 1666835 - Remove unused engine-addon.xml and engine-addon/manifest.json files. r=daleharvey
Depends on D91034

Differential Revision: https://phabricator.services.mozilla.com/D91170
2020-09-24 08:31:53 +00:00
Marcos Cáceres 41461b2487 Bug 1665252 - remove allowpaymentrequest attribute from HTMLIFrameElement r=dom-workers-and-storage-reviewers,smaug,asuth
Differential Revision: https://phabricator.services.mozilla.com/D90505
2020-09-24 03:41:26 +00:00
Jon Coppeard 50e03c4327 Bug 1666788 - Remove some unused GCPolicy methods r=sfink
Depends on D91179

Differential Revision: https://phabricator.services.mozilla.com/D91180
2020-09-23 17:43:32 +00:00
Jon Coppeard 9d30e52f0c Bug 1666788 - Rename barrier methods so they're easier for humans to parse r=sfink
This renames methods like 'writeBarrierPre' to the more readble 'preWriteBarrier'.

Differential Revision: https://phabricator.services.mozilla.com/D91179
2020-09-23 17:44:00 +00:00
Nihanth Subramanya a52929b5bd Bug 1662430 - Allow a pref to toggle whether to clear doh-rollout.mode at shutdown. r=valentin,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90856
2020-09-24 09:10:11 +00:00
Jean-Yves Avenard 6716cfb826 Bug 1664362. Use move semantics with IPC's MozPromise resolver. r=nika
We use C++14's generic lambdas and its auto&& type in the generated code, in combination with a typed local variable to ensure the argument type is enforced.

The object is moved as necessary, no copies will occur.

The code generated will now be:
  [this, self__, id__, seqno__](auto&& aParam) {
    if ((!(self__))) {
      NS_WARNING("Not resolving response because actor is dead.");
      return;
    }
    bool resolve__ = true;
    InitResultIPDL result = std::forward<decltype(aParam)>(aParam);
    IPC::Message* reply__ = PRemoteDecoder::Reply_Decode(id__);
    WriteIPDLParam(reply__, self__, resolve__);
    // Sentinel = 'resolve__'
    (reply__)->WriteSentinel(322044863);
    WriteIPDLParam(reply__, self__, std::move(result));
    // Sentinel = 'result'
    (reply__)->WriteSentinel(153223840);
    (reply__)->set_seqno(seqno__);
  }

For multiple arguments return, creation of Tuple via Tie is also moved, though currently Tie method doesn't support move semantics.

Differential Revision: https://phabricator.services.mozilla.com/D90090
2020-09-24 04:05:28 +00:00
Tim Huang a5c949a08a Bug 1663192 - Part 2: Set the IsThirdPartyToTopWindow in the nsBaseChannel. r=dimi,kershaw,necko-reviewers
We should also set IsThirdPartyToTopWindow flag and HasStoragePermission
in loadInfo for channels loading `file:` uri. So, we set this flag in the
nsBaseChannel::AsyncOpen(). This change would affect about: and data:
channels.

Differential Revision: https://phabricator.services.mozilla.com/D91002
2020-09-24 09:10:17 +00:00
Tim Huang 85ee48719b Bug 1663192 - Part 1: Add a test to ensure the top-level window in a file url is considered as top-level. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D91001
2020-09-24 09:12:48 +00:00
Frederic Wang 5a699ddc37 Bug 1664488: Disable various preferences for deprecated MathML features. r=emilio
This commit disables the following preference on all builds by default:

mathml.deprecated_style_attributes.disabled
mathml.deprecated_menclose_notation_radical.disabled
mathml.mathsize_names.disabled
mathml.mfrac_bevelled_attribute.disabled
mathml.deprecated_alignment_attributes.disabled
mathml.script_shift_attributes.disabled
mathml.xlink.disabled
mathml.mfrac_linethickness_names.disabled

In addition, the following one is disabled on all but mac platform,
where currently (macos catalina) STIXGeneral is still the only
pre-installed math font available:

mathml.stixgeneral_operator_stretching.disabled

For details, see the intent to unship threads:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/LvQ13Hcaw8k
https://groups.google.com/forum/#!topic/mozilla.dev.platform/x_eQ3vn5iwc

Differential Revision: https://phabricator.services.mozilla.com/D89928
2020-09-24 08:46:17 +00:00
stransky 779f475a47 Bug 1665329 Enable media.navigator.mediadatadecoder_vpx_enabled for release, r=jya,drno
Differential Revision: https://phabricator.services.mozilla.com/D90375
2020-09-24 07:07:20 +00:00
Christoph Kerschbaumer 44c8e14cbe Bug 1666772: Simplify canProcessSwitchWithDocumentChannel in E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D91127
2020-09-24 07:56:25 +00:00
Benjamin Bouvier 04cb8ae82c Bug 1665028: Tweak the cranelift_default check for arm32 simulator; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D90827
2020-09-23 21:21:54 +00:00
Valentin Gosu 7822dc93c1 Bug 1666715 - Assert that record is not already in evictionQ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D91101
2020-09-23 12:33:33 +00:00
Jeff Walden 55f9e3cd27 Bug 1660954. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D88113
2020-09-21 22:11:19 +00:00
Mihai Alexandru Michis 89d33e1c3b Backed out 2 changesets (bug 1666373, bug 1665802) for causing gv-junit and xpcshell failures.
Backed out changeset 296c8ba967c9 (bug 1666373)
Backed out changeset c1fe3374ab97 (bug 1665802)
2020-09-24 10:52:40 +03:00
Jan de Mooij 8eb19b08b4 Bug 1486853 - Remove diagnostic assertions in storeValue. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D91116
2020-09-23 17:42:59 +00:00
Mark Banner 10c1dd21e6 Bug 1666539 - Remove unused SearchEngine._isDistribution getter. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D91034
2020-09-23 23:12:51 +00:00
Nicholas Nethercote d718f94023 Bug 1665797 - Add a big comment about NativeProperties. r=mccr8 DONTBUILD
I had to draw this on paper to understand how all this stuff works. Might as
well save someone else (possibly me) the trouble in the future.

Differential Revision: https://phabricator.services.mozilla.com/D90668
2020-09-24 05:07:44 +00:00
James Teh 5c7556a7fa Bug 1666955 part 3: Enable window emulation for ZoomText and ZoomText Fusion 2021 and later. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D91235
2020-09-24 05:13:16 +00:00
James Teh 52f75ef45f Bug 1666955 part 2: Detect dll shared by JAWS, ZoomText and ZoomText Fusion 2021 and later. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D91234
2020-09-24 05:13:15 +00:00
James Teh bd3e418d3d Bug 1666955 part 1: Remove pointless check for content process in nsWinUtils::MaybeStartWindowEmulation. r=MarcoZ
This check is a remnant of the first version of e10s a11y, where there was no sandbox and content processes could expose their own HWNDs.
We return early if IPCAccessibilityActive(), which is now always true when running in a content process, so this check will never be hit.
If it *were* hit, this would cause serious breakage now, so having this in the code only serves to confuse things at best.

Differential Revision: https://phabricator.services.mozilla.com/D91233
2020-09-24 05:13:15 +00:00
James Teh 735476c1c2 Bug 1666720: AccessibleHandler: When refreshing the cache, fetch into a temporary struct rather than into the live cache to avoid problems triggered by COM re-entry. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D91218
2020-09-24 04:42:00 +00:00
Bogdan Tara db9c89dbca Backed out 2 changesets (bug 1666567, bug 1605273) for test_crlite_filters.js failures CLOSED TREE
UPGRADE_NSS_RELEASE

Backed out changeset 9bc4c7e79cd6 (bug 1666567)
Backed out changeset 22753d184de6 (bug 1605273)
2020-09-24 06:57:27 +03:00
Gerald Squelart 6b05ae158e Bug 1666708 - Only store category pair in MarkerCategory - r=gregtatum
This saves 1 byte when serializing each marker (and removes all the code that was related to the 2nd byte).
Also it will be easier to use it in legacy code that only knows about the category pair.

Added unit tests for the whole of MarkerCategory.

Differential Revision: https://phabricator.services.mozilla.com/D91110
2020-09-24 03:23:28 +00:00
Ed Lee 6aebb9ec0a Bug 1666373 - Use experiment manager to control wizardless password import experiment r=sfoster,andreio
Use ExperimentAPI instead of prefs to enable event recording and feature behavior.

Depends on D90635

Differential Revision: https://phabricator.services.mozilla.com/D90988
2020-09-23 23:39:52 +00:00
Ed Lee 9f44cacde2 Bug 1665802 - Directly migrate importable passwords without wizard for single profile r=sfoster
Share importable handling from LoginManagerParent and support directly migrating.

Differential Revision: https://phabricator.services.mozilla.com/D90635
2020-09-23 22:32:47 +00:00
Bogdan Tara d88ac68590 Backed out changeset 1bfa83880712 (bug 1662839) for browser_disable_author_style_oop.js failures CLOSED TREE 2020-09-24 05:55:25 +03:00
Chris Peterson 702f0bf062 Bug 1664099 - Replace MOZ_MUST_USE with [[nodiscard]] in libjar. r=aklotz
The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

Differential Revision: https://phabricator.services.mozilla.com/D91094
2020-09-23 17:07:13 +00:00
Glenn Watson 5d7903a3ce Bug 1664719 - Pt 4 - Create a new slice if shared clips are incompatible. r=nical
This patch changes the picture cache logic to create a new slice
if it finds a primitive with an incompatible set of shared clips.

In testing, I have been unable to find any real world content that
hits this case. There is a single test case in CI that hits this
case, which confirms that a new slice is created correctly. Due
to this, it should have minimal effect on real world browsing.

The benefit of this is that we know the set of shared clips won't
change as we continue to build the scene. The follow up patch to
this can then filter out and remove shared clips from primitives
during scene building, rather than frame building.

Differential Revision: https://phabricator.services.mozilla.com/D90349
2020-09-23 23:22:01 +00:00
Jean-Yves Avenard a684544a0d Bug 1666698 - Only synchronise textures after a copy serially. r=mattwoodrow
Attempt to lock textures from the same D3D11 devices on multiple threads at once can lead to deadlocks as observed with AMD cards.

Differential Revision: https://phabricator.services.mozilla.com/D91098
2020-09-23 21:34:47 +00:00
Bogdan Tara e5e257be65 Backed out changeset 0e8c8e02db69 (bug 1661756) for browser_protections_vpn.js failures CLOSED TREE 2020-09-24 05:12:49 +03:00
Cameron McCormack fc16d8bc27 Bug 1662839 - Set author style disabled state correctly on newly created iframes. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D90953
2020-09-24 01:24:57 +00:00
J.C. Jones e8346094ad Bug 1666567 - land NSS 8ebee3cec9cf UPGRADE_NSS_RELEASE, r=kjacobs
CLOSED TREE

2020-09-23  Dana Keeler  <dkeeler@mozilla.com>

	* gtests/mozpkix_gtest/pkixbuild_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_extension_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_signature_algorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckExtendedKeyUsage_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckSignatureAlgorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixgtest.h,
	lib/mozpkix/include/pkix/pkixtypes.h, lib/mozpkix/lib/pkixbuild.cpp:
	Bug 1665715 - (2/2) pass encoded signed certificate timestamp
	extension (if present) in CheckRevocation r=jcj

	This will allow Firefox to make decisions based on the earliest
	known time that a certificate exists (with respect to certificate
	transparency) that a CA is unlikely to back-date. In particular,
	this is essential for CRLite. Note that if the SCT signature isn't
	validated, a CA could still make a certificate appear to have
	existed for longer than it really has. However, this change is not
	an attempt to catch malicious CAs. The aim is to avoid false
	positives in CRLite resulting from CAs backdating the notBefore
	field on certificates they issue.

	Depends on D90595

	[8ebee3cec9cf] [tip]

2020-09-18  Dana Keeler  <dkeeler@mozilla.com>

	* gtests/mozpkix_gtest/pkixbuild_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_extension_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_signature_algorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckExtendedKeyUsage_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckSignatureAlgorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixgtest.h,
	lib/mozpkix/include/pkix/pkixtypes.h, lib/mozpkix/lib/pkixbuild.cpp:
	Bug 1665715 - (1/2) revert e8f2720c8254 (bug 1593141) because it's
	no longer necessary r=jcj

	Bug 1593141 added the certificate's notBefore field as an argument
	to TrustDomain::CheckRevocation so that Firefox could use it with
	CRLite. However, since CAs can backdate that field, we need to use
	the earliest embedded SCT timestamp instead.

	[c1f4d565ceda]

Differential Revision: https://phabricator.services.mozilla.com/D91211
2020-09-23 23:28:18 +00:00
Stephen A Pohl 1b02356c85 Bug 1661272: Only adjust default font sizes for buttons, lists and fields when non-native theming is enabled. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D91194
2020-09-23 22:25:23 +00:00
Dana Keeler 500beadbba Bug 1605273 - only run CRLite on certificates with a CT SCT available r=jcj
Because CAs can back-date a certificate (i.e. set the "notBefore" field to
earlier than when a certificate actually existed), the "notBefore" field can't
be relied on when determining when CRLite information is recent enough to check
a certificate with. To that end, this patch instead uses the earliest timestamp
from the embedded SCTs in the certificate being checked.

Differential Revision: https://phabricator.services.mozilla.com/D90599
2020-09-23 22:24:39 +00:00
Bogdan Tara 24d9b1dbae Backed out changeset 7e50f86ea20b (bug 1666567) for security related bustage CLOSED TREE
UPGRADE_NSS_RELEASE
2020-09-24 03:57:00 +03:00
Alexis Beingessner 6d1f7fdce9 Bug 1656266 - Remove fixed TSAN supression. r=decoder
This supression was setup for Bug 1607712, but it was the same underlying issue as this bug.

Depends on D91036

Differential Revision: https://phabricator.services.mozilla.com/D91037
2020-09-22 18:45:36 +00:00
Alexis Beingessner 4a05d2222f Bug 1656266 - Wrap gtk window mClientSize in a lock to avoid a datarace. r=mstange
This is also a fix for Bug 1607712 which covers the BasicCompositor case

Differential Revision: https://phabricator.services.mozilla.com/D91036
2020-09-24 00:22:53 +00:00
Matt Woodrow e0be63cf32 Bug 1642951 - Don't open the underlying file unnecessarily when seeking nsFileInputStream to the start. r=baku,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D91088
2020-09-23 23:34:19 +00:00
J.C. Jones 413b79889f Bug 1666567 - land NSS 8ebee3cec9cf UPGRADE_NSS_RELEASE, r=kjacobs
2020-09-23  Dana Keeler  <dkeeler@mozilla.com>

	* gtests/mozpkix_gtest/pkixbuild_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_extension_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_signature_algorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckExtendedKeyUsage_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckSignatureAlgorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixgtest.h,
	lib/mozpkix/include/pkix/pkixtypes.h, lib/mozpkix/lib/pkixbuild.cpp:
	Bug 1665715 - (2/2) pass encoded signed certificate timestamp
	extension (if present) in CheckRevocation r=jcj

	This will allow Firefox to make decisions based on the earliest
	known time that a certificate exists (with respect to certificate
	transparency) that a CA is unlikely to back-date. In particular,
	this is essential for CRLite. Note that if the SCT signature isn't
	validated, a CA could still make a certificate appear to have
	existed for longer than it really has. However, this change is not
	an attempt to catch malicious CAs. The aim is to avoid false
	positives in CRLite resulting from CAs backdating the notBefore
	field on certificates they issue.

	Depends on D90595

	[8ebee3cec9cf] [tip]

2020-09-18  Dana Keeler  <dkeeler@mozilla.com>

	* gtests/mozpkix_gtest/pkixbuild_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_extension_tests.cpp,
	gtests/mozpkix_gtest/pkixcert_signature_algorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckExtendedKeyUsage_tests.cpp,
	gtests/mozpkix_gtest/pkixcheck_CheckSignatureAlgorithm_tests.cpp,
	gtests/mozpkix_gtest/pkixgtest.h,
	lib/mozpkix/include/pkix/pkixtypes.h, lib/mozpkix/lib/pkixbuild.cpp:
	Bug 1665715 - (1/2) revert e8f2720c8254 (bug 1593141) because it's
	no longer necessary r=jcj

	Bug 1593141 added the certificate's notBefore field as an argument
	to TrustDomain::CheckRevocation so that Firefox could use it with
	CRLite. However, since CAs can backdate that field, we need to use
	the earliest embedded SCT timestamp instead.

	[c1f4d565ceda]

Differential Revision: https://phabricator.services.mozilla.com/D91211
2020-09-23 23:28:18 +00:00
Mats Palmgren 5434696f81 Bug 1665152 - Initial CSS Masonry draft spec. r=dholbert
NPOTB DONTBUILD

The Overview.html file was generated by this command:
curl https://api.csswg.org/bikeshed/ -F file=@layout/docs/css-grid-3/Overview.bs -F force=1 > layout/docs/css-grid-3/Overview.html

Differential Revision: https://phabricator.services.mozilla.com/D90302
2020-09-23 23:21:38 +00:00
Itiel f1e10a3df6 Bug 1666860 - Fix Screenshots' border resizer positions for RTL r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D91177
2020-09-23 22:33:56 +00:00
Itiel 7c6b60c851 Bug 1666576 - Fix dark mode styling for the question mark in the authentication dialog r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D91040
2020-09-23 23:06:53 +00:00
Matt Woodrow b78ca7fe06 Bug 1666119 - Clip the last band to the dest bounds. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D91089
2020-09-23 13:09:43 +00:00
Robert Helmer 4748e0ad3a Bug 1665957 - rename Pioneer to Ion r=maxxcrawford,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D90749
2020-09-23 22:10:16 +00:00
Kyle Knaggs 6f5a5f833b Bug 1664531 - Adds placeholder text to the CodeMirror instances used to create conditional breakpoints and logpoints r=bomsy
Before this patch the CodeMirror instance used to create Conditional Breakpoints and Logpoints did not have placeholder text.

This patch adds placeholder text to this CodeMirror instance by:

1. Adding the CodeMirror addon responsible for creating placeholder text.
2. Updating `webpack.config.js`.
3. Regenerating `codemirror.bundle.js`.
4. Matching the color of the placholder text in these CodeMirror instances to the color of placeholder text in the rest of the Debugger.

{F2456834}

Differential Revision: https://phabricator.services.mozilla.com/D89962
2020-09-20 23:01:28 +00:00