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

721954 Коммитов

Автор SHA1 Сообщение Дата
Tim Huang aaf012c1e2 Bug 1654803 - Fixing the crash issue in PermissionDelegateHandler::GetPermission(). r=baku
At very rare situations, we won't be able to get the top level window
context. Perhaps, it's the case that the window has been detached from
the dom tree while checking the permission. So, we need to check the top
level window context before we really use it.

Differential Revision: https://phabricator.services.mozilla.com/D85978
2020-08-12 07:53:35 +00:00
Dimi Lee 8b5b04028f Bug 1652244 - P4. Fix test_third_party.html test failure r=timhuang
This testcase has:
top-level: mochi.test
1st-level: host (depend on the value in the test data)
2nd-level: mochi.test

This test run tests in the 2nd-level iframe, which is first-party with
respect to the top-level according to the new change.

The test is re-written to run tests in both 1st-level iframe and
2nd-level iframes.

Differential Revision: https://phabricator.services.mozilla.com/D86717
2020-08-12 09:11:01 +00:00
Dimi Lee fbc8bb1f4b Bug 1652244 - P3. Fix test_different_domain_in_hierarchy.html test failure r=timhuang
This test tests whether cookies can be set in the following frames:
top-level: http://example.org/tests/netwerk/test/mochitests/file_domain_hierarchy_inner.html
1st-level: http://example.com/tests/netwerk/test/mochitests/file_domain_hierarchy_inner_inner.html
2nd-level: http://example.org/tests/netwerk/test/mochitests/file_domain_hierarchy_inner_inner_inner.html

Before this patch, the 2nd-level iframes can't set a cookie.
After this patch, the 2nd-level is considered first-party and can set a cookie.

Differential Revision: https://phabricator.services.mozilla.com/D86716
2020-08-12 09:10:53 +00:00
Dimi Lee cfddb1d417 Bug 1652244 - P2. Use TYPE_DOCUMENT to ensure IsThirdPartyContextToTopWindow is false when loading a top-level r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D86715
2020-08-12 09:10:51 +00:00
Dimi Lee a31e50832b Bug 1652244 - P1. AntiTrackingUtils::IsThirdPartyWindow and AntiTrackingUtils::IsThirdPartyChannel should consider top-level r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D86714
2020-08-12 09:10:44 +00:00
Cosmin Sabou 70019255cb Backed out 6 changesets (bug 1657628, bug 1656216, bug 1656226, bug 1647288) for SM bustages. CLOSED TREE
Backed out changeset c19dcb11b940 (bug 1647288)
Backed out changeset bfd5e17cb4d0 (bug 1647288)
Backed out changeset 64e82366834a (bug 1647288)
Backed out changeset a6d240ef908b (bug 1657628)
Backed out changeset 2e7ddb00c8f9 (bug 1656226)
Backed out changeset 656340534354 (bug 1656216)
2020-08-12 12:06:24 +03:00
Mirko Brodesser 21078a7903 Bug 1652557: don't skip test_bug767684.html when xorigin iframes and fission are enabled. r=masayuki
The test failed neither locally nor on try, hence enabling it again.

Differential Revision: https://phabricator.services.mozilla.com/D86706
2020-08-12 02:02:49 +00:00
Jan de Mooij e39063bd4d Bug 1657830 part 6 - Don't use extended jumps for cross-JitCode jumps on x64. r=tcampbell
A lot of entries in the extended jump table were never used because they were for
jumps/calls to other addresses in the executable memory (JitCodes or trampolines).

This patch takes advantage of the contiguous 2 GB executable code buffer: we know
any address in this buffer can always be jumped to without needing an extended jump
table. This also lets us simplify the jump relocation code more.

With Fission coming soon, max 2 GB JIT code per process will hopefully be sufficient.

Depends on D86374

Differential Revision: https://phabricator.services.mozilla.com/D86375
2020-08-10 14:07:33 +00:00
Jan de Mooij aec5eeaac9 Bug 1657830 part 5 - Move jumps_ Vector from Assembler-x86-shared to Assembler-x86 and Assembler-x64. r=tcampbell
This lets us make x64-specific changes in the next patch.

Depends on D86373

Differential Revision: https://phabricator.services.mozilla.com/D86374
2020-08-10 13:36:54 +00:00
Jan de Mooij 6c0247a729 Bug 1657830 part 4 - Fold writeRelocation/addJumpRelocation into sole callers. r=tcampbell
Depends on D86372

Differential Revision: https://phabricator.services.mozilla.com/D86373
2020-08-07 20:14:14 +00:00
Jan de Mooij c99fa56d27 Bug 1657830 part 3 - Remove dead JumpRelocation struct on ARM64. r=tcampbell
Depends on D86370

Differential Revision: https://phabricator.services.mozilla.com/D86372
2020-08-07 19:35:08 +00:00
Jan de Mooij f5c2c88ac2 Bug 1657830 part 2 - Remove dead addPatchableJump on ARM64 and x64. r=tcampbell
All pending jumps then have a known (non-null) target, so replace an if-statement
with an assertion.

Other platforms don't define addPatchableJump.

Depends on D86368

Differential Revision: https://phabricator.services.mozilla.com/D86370
2020-08-07 19:18:19 +00:00
Jan de Mooij 71f38ae1f4 Bug 1657830 part 1 - Remove some never-used data from jump relocation table on ARM64 and x64. r=tcampbell
The jump instruction itself is sufficient to get the address from the extended jump
table. This has been 'dead' code on x64 since the code landed in 2011. ARM64 copied it.

Differential Revision: https://phabricator.services.mozilla.com/D86368
2020-08-07 17:50:24 +00:00
Emilio Cobos Álvarez b20e708214 Bug 561154 - Implement :-moz-any() as an alias of :is(). r=heycam
This is strictly better and more flexible, but can change specificity so
have a pref in case it causes trouble. I doubt it will though, the
specificity rules of :is() make more sense, and my gut feeling is that
:-moz-any is not very used on the wild.

Make it early-beta-or-earlier for now to minimize risk, once this is on
nightly for a bit we can enable it everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D86696
2020-08-12 04:26:07 +00:00
Mike Hommey 916c6b4a09 Bug 1658386 - add support for arm64 macOS WASM signal handling. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D86802
2020-08-12 08:07:10 +00:00
Lars T Hansen 02f75f3779 Bug 1647288 - Handle NaN in SIMD min, max: Code. r=jseward
This adds correct NaN handling to the SIMD f32x4/f64x2.min/max code.
This is a bit of a horror show actually.  There is a reasonable fast
path if neither operand contains a NaN, but the slow path to handle
NaN is long and there's a lot of code.  (This is an Intel-only
problem, on other architectures there's a direct mapping.)

It is possible the slow-path code could be somewhat improved (both
speed and size) by using at least three BLEND instructions, but I
consider that a possible optimization that needs investigation and
empirical backing.  Meanwhile, we can land this plausible code.

Differential Revision: https://phabricator.services.mozilla.com/D86318
2020-08-12 07:50:45 +00:00
Lars T Hansen b8004477bb Bug 1647288 - Handle signalling NaN generally: Test cases. r=jseward
Wasm treats signalling and quiet NaN the same - as quiet NaN.  Where
convenient, test also signalling NaN.  This is complicated by JS not
being able to represent signalling NaN directly.

Differential Revision: https://phabricator.services.mozilla.com/D86317
2020-08-12 07:50:23 +00:00
Lars T Hansen 56a597afc0 Bug 1647288 - Handle NaN in SIMD min, max: Generated test cases. r=jseward
These test cases were generated by a script from some of the
preliminary test cases in the SIMD spec repository, taking into
account the specific NaN types asked for.

These tests are temporary: once we have proper generated test cases
from the spec repository, these will no longer be needed.

Differential Revision: https://phabricator.services.mozilla.com/D86316
2020-08-12 07:50:15 +00:00
Lars T Hansen 3c3df3e220 Bug 1657628 - Fix bugs in some ad-hack simd tests. r=jseward
Two bugs:

- an accidental redefinition of the 'eq' predicate resulted in the
  'permute' function not working and thus in us not testing floating
  point operations for NaN, Infinity, and some other interesting
  values.

- the previous bug masked the fact that the max and min operations for
  floating point were not implemented properly; they have to handle
  NaN specially.

Differential Revision: https://phabricator.services.mozilla.com/D86315
2020-08-12 07:50:07 +00:00
Lars T Hansen 807022887f Bug 1656226 - Implement the experimental opcodes. r=jseward
Implement some of the experimental SIMD opcodes that are supported by
all of V8, LLVM, and Binaryen, for maximum compatibility with test
content we might be exposed to.  Most/all of these will probably make
it into the spec, as they lead to substantial speedups in some
programs, and they are deterministic.

For spec and cpu mapping details, see:

https://github.com/WebAssembly/simd/pull/122 (pmax/pmin)
https://github.com/WebAssembly/simd/pull/232 (rounding)
https://github.com/WebAssembly/simd/pull/127 (dot product)
https://github.com/WebAssembly/simd/pull/237 (load zero)

The wasm bytecode values used here come from the binaryen changes that
are linked from those tickets, that's the best documentation right
now.  Current binaryen opcode mappings are here:
https://github.com/WebAssembly/binaryen/blob/master/src/wasm-binary.h

Also: Drive-by fix for signatures of vroundss and vroundsd, these are
unary operations and should follow the conventions for these with
src/dest arguments, not src0/src1/dest.

Also: Drive-by fix to add variants of vmovss and vmovsd on x64 that
take Operand source and FloatRegister destination.

Differential Revision: https://phabricator.services.mozilla.com/D85982
2020-08-12 07:50:00 +00:00
Lars T Hansen dc4f419488 Bug 1656216 - Improve SIMD test cases. r=jseward
This fleshes out the test cases to cover some corner cases that were
left uncovered before.  No errors were found.

Differential Revision: https://phabricator.services.mozilla.com/D85981
2020-08-12 07:49:12 +00:00
Bogdan Tara 694b77183c Backed out 2 changesets (bug 1657582) for test_DNSLookup.js failures CLOSED TREE
Backed out changeset 784122a5f5ab (bug 1657582)
Backed out changeset 0f17312b01ad (bug 1657582)
2020-08-12 11:18:06 +03:00
Bogdan Tara 98b30d23bf Backed out 5 changesets (bug 1657521) for assertion failure at Refs.h CLOSED TREE
Backed out changeset a0f450666c5b (bug 1657521)
Backed out changeset e97937bf5e3a (bug 1657521)
Backed out changeset 8d70f3cb5e3b (bug 1657521)
Backed out changeset 5c3c1ec039d2 (bug 1657521)
Backed out changeset 132eb437fdda (bug 1657521)
2020-08-12 11:14:44 +03:00
Kyle Knaggs b4e5389cd9 Bug 1590019 - Make the styling of placeholder text in the Debugger consistent r=nchevobbe
Before this change the styling of the inputs in the Debugger was inconsistent. This patch addresses this issue by:
1. Modifying the appearance of the placeholder text by setting its `color` to `--theme-text-color-alt` and its `opacity` to `1`. This ensures that the placeholder text has a contrast ratio of 4.74 when paired with a white background and passes the 4.5:1 contrast requirement of WCAG.
2. Modifying the height of the inputs in the Primary and Secondary Panes so that they are all `24px`.

{F2406940}

Differential Revision: https://phabricator.services.mozilla.com/D85630
2020-08-12 07:25:16 +00:00
Valentin Gosu 5eeaf52395 Bug 1657582 - Add nsIDNSAddrRecord interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,dragana
This interface extends nsIDNSRecord and makes the DNS code more extensible
by allowing us to support more record types.
This change does require the consumer to be aware of the type they requested
and to QueryInterface to either nsIDNSAddrRecord for regular IP lookups,
or to nsIDNSByTypeRecord for other kinds of lookups.

Differential Revision: https://phabricator.services.mozilla.com/D86177
2020-08-12 01:35:10 +00:00
Valentin Gosu fc1bf09e47 Bug 1657582 - Add nsIDNSResolverInfo interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,extension-reviewers,dragana
This patch adds the nsIDNSResolverInfo interface which is used to hold
information about the resolver to be used in a DNS resolution.

We use this to merge all of the *WithTRRServer resolve functions into one.
Passing a resolver info will use that object when appropriate. No resolver
info means that we default to using the system resolver, or the default TRR
resolver.

This patch also converts the RESOLVE_TYPE_* flags into a cenum and adds
the resolveType as a parameter to asyncResolve thus removing the need
to have asyncResolveByType methods.

Differential Revision: https://phabricator.services.mozilla.com/D86176
2020-08-12 01:00:39 +00:00
undef1nd bb5ccdc8ff Bug 1631722 - Add wrapper for structured-headers crate,r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D81127
2020-08-12 07:07:33 +00:00
undef1nd 3ef52dac42 Bug 1631722 - Vendor sfv crate,r=valentin
***
Vendor

Differential Revision: https://phabricator.services.mozilla.com/D83502
2020-08-12 07:07:00 +00:00
Martin Stransky 68bd878c1e Bug 1655026 [Linux] Enable WebGL DMABuf backend for X11/EGL, r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D84901
2020-08-12 07:01:54 +00:00
Timothy Nikkel 9bd1260501 Bug 1658001. Populate wheelEvent.mLineOrPageDeltaY in PinchGestureInput::ToWidgetWheel for pinch gestures produced from direct manipulation. r=kats
We do this analogously to how PanGestureInput does it except that the delta's that we compute mLineOrPageDeltaY from are computed by us instead of provided to us.

mLineOrPageDeltaY being non-zero is what EventStateManager::DispatchLegacyMouseScrollEvents uses to decide to send legacy mouse events, so we need to populate it to get those legacy events to send.

This fix is Windows only on purpose as pinches on macOS don't seem to send wheel events (Windows sends ctrl+wheel). When Linux gets implemented it will need to be determined what to do.

Differential Revision: https://phabricator.services.mozilla.com/D86495
2020-08-11 09:08:06 +00:00
Sylvestre Ledru 5ea6c250c3 Bug 1657926 - firefox doc: fix some warnings r=championshuttler
Differential Revision: https://phabricator.services.mozilla.com/D86732
2020-08-11 23:20:25 +00:00
Jean-Yves Avenard 08ed820595 Bug 1657521 - P5. Allow VP9 HW decoder in mac sandbox. r=haik
Differential Revision: https://phabricator.services.mozilla.com/D86546
2020-08-12 04:08:58 +00:00
Jean-Yves Avenard e3c3ef9f35 Bug 1657521 - P4. Attempt to create a decoder via the PDMFactory as fallback. r=jolin
The MediaChangeMonitor would always use the selected PDM in order to create a decoder; this only worked if the Decode method returned an error if the format was unsupported and this is how the WMF decoder worked.

However, the AppleVTDecoder fails on creation instead.
Now that the VP9 profile is known at creation time, we should move the WMF decoder to do the same.

Differential Revision: https://phabricator.services.mozilla.com/D86545
2020-08-12 05:39:19 +00:00
Jean-Yves Avenard 49824e9d32 Bug 1657521 - P3. Add VP9 HW decoder support on macOS 11 (Big Sur). r=jolin
To create a VP9 decoder, the VideoToolbox requires a vppC atom similar to how the H264 one requires an avcC one.

That information is typically not available in the webm container and is found in the VP9 bytestream with each keyframe.

In order to minimise the extent of the changes, we move the task of retrieving the vpcC content in the MediaChangeMonitor as it already performs a similar task in order to detect if the format has changed.

The VPXChangeMonitor will now only instantiate a VP9 decoder once a keyframe is seen.

Differential Revision: https://phabricator.services.mozilla.com/D86544
2020-08-12 04:08:43 +00:00
Jean-Yves Avenard 5c63496f40 Bug 1657521 - P2. Attempt to use Apple VT decoder before FFmpeg. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D86543
2020-08-12 04:08:30 +00:00
Jean-Yves Avenard 51652bcded Bug 1657521 - P1. Add method to generate a vpcC box from the VP9 bitstream. r=jolin
The mac VP9 decoder; like the H264 requires some out of band settings before it can be created.

This information is only found in the mp4 container, we can create it from the vp9 bitstream.

For now we ignore the colors information as we can't handle it properly yet in our compositor and this is not available in the bytestream.

Differential Revision: https://phabricator.services.mozilla.com/D86542
2020-08-12 04:08:23 +00:00
Mihai Alexandru Michis 23762fc644 Backed out changeset 62990ef4ea78 (bug 1658313) for causing bc failures in browser_pdfjs_navigation.js
CLOSED TREE
2020-08-12 07:28:40 +03:00
Harry Twyford 3b46bac423 Bug 1658326 - Enable one-off update2 prefs in Nightly. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D86768
2020-08-12 03:40:05 +00:00
Harry Twyford b39c619461 Bug 1654801 - Part 3 - Fix tests to work with update2/oneOffsRefresh prefs enabled. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D86767
2020-08-12 03:40:28 +00:00
Harry Twyford fe111533bb Bug 1654801 - Part 2 - Update search results when one-offs are being alt-tabbed. r=adw
I noticed when when working on browser_oneOffs_searchSuggestions > test_selectOneOffThenSuggestion.

Differential Revision: https://phabricator.services.mozilla.com/D86766
2020-08-12 03:39:55 +00:00
Harry Twyford 15f1497a3b Bug 1654801 - Part 1 - Fix _getValueFromResult to show alias value on highlight. r=adw
I realized this was broken when fixing browser_restoreEmptyInput.js. That test opens Top Sites and keys down to the first result, which is the Amazon search shortcut. It checks that the Urlbar has a value in it. The test broke since token aliases were no longer filling the Urlbar.

Differential Revision: https://phabricator.services.mozilla.com/D86765
2020-08-12 03:38:42 +00:00
Brindusan Cristian d0499be492 Backed out 2 changesets (bug 1631722) for xpcshell failures at test_trr_cname_chain.js.
Backed out changeset 6c52fb84d5c3 (bug 1631722)
Backed out changeset 24560593473e (bug 1631722)
2020-08-12 06:18:26 +03:00
Ryan VanderMeulen fb184e0f7a Bug 1658313 - Update pdf.js to version 2.6.234. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D86557
2020-08-12 03:13:14 +00:00
Bianca Danforth b10f759a26 Bug 1654466 - Don't send a 'PasswordManager:onPasswordEditedOrGenerated' message when a confirm password field is filled with a generated password. r=MattN
_doesEventClearPrevFieldValue is still an imperfect heuristic, as there are cases where the non-empty value of a confirm password field is replaced (with inputType of 'insertReplacementText') where it will incorrectly return false:
* Autocorrect
* User accepts a spell checker recommendation
* User replaces the generated password with a saved password from the context menu

All are remote scenarios. E.g. the last one would require:
* a page with a confirm password field
* the password manager to correctly detect the confirm password field
* the user to have previously saved logins for the page
* the user to generate a password
* the user to replace the generated password with a saved login password without first backspacing/deleting the generated password.
  * Typically pages with confirm password fields imply the field should have a new password value, so it is unlikely that they would want to fill the confirm field with an existing password.

The consequences of this current heuristic incorrectly returning false in these remote scenarios are that edits to this field would continue to be autosaved on "change" events. We have deemed this an acceptable concession to improve this _doesEventClearPrevFieldValue heuristic in the absence of other viable alternatives to explicitly know the previous value of the input field.

Differential Revision: https://phabricator.services.mozilla.com/D85900
2020-08-12 03:02:21 +00:00
Emma Malysz 53ad1acbfc Bug 1658031, update print preview only for settings with flags to avoid a progress dialog r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D86769
2020-08-12 01:04:31 +00:00
Emma Malysz 49449c77d2 Bug 1658074, update numPages to reflect the number of copies the user has r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D86641
2020-08-12 01:24:37 +00:00
Valentin Gosu 2cb83378d6 Bug 1657897 - Add test for platform indication DoH heuristic r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D86371
2020-08-11 13:27:07 +00:00
Valentin Gosu b8e2916ad0 Bug 1657897 - Change event telemetry definition to include platform key r=tdsmith
Differential Revision: https://phabricator.services.mozilla.com/D86369
2020-08-11 13:26:55 +00:00
Valentin Gosu f901db3225 Bug 1657897 - Remove code that bypasses TRR when platform indications are triggered r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86367
2020-08-11 13:51:56 +00:00
Valentin Gosu d22e4b2234 Bug 1657897 - Convert TRR split horizon mitigations to a doh-rollout heuristic r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D86366
2020-08-11 13:26:19 +00:00