Commit Graph

739615 Commits

Author SHA1 Message Date
David Major
295dec7d5f Bug 1685176 - Update the fuzzy for pal8v4.bmp on aarch64-windows r=jmaher,tnikkel
From what I can see in source history, pal8v4.bmp started out with a fuzzy of (3, 6376) on all platforms. Then one day aarch64-windows started producing a result of (1, 899) and so that platform's expectations were adjusted.

In the upcoming clang 12, the behavior of this test gets "fixed" in that we go back to those 6376 differing pixels like on other platforms. The max difference rises to 4 though. In light of the fact that aarch64-windows is seeing less priority these days, I can't justify digging into the exact code reason for the change, so this patch just updates the fuzzy setting to allow these values.

Differential Revision: https://phabricator.services.mozilla.com/D100823
2021-01-05 22:18:25 +00:00
Mike Hommey
968967eb1d Bug 1684956 - Update builders to rustc 1.49. r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D100726
2021-01-06 00:00:13 +00:00
Nika Layzell
db4e8fccc0 Bug 1680418 - avoid clobbering shared state in same-document navigations, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D100166
2021-01-05 13:31:27 +00:00
Emilio Cobos Álvarez
9501e93bb6 Bug 1572798 - Should call MaybeActiveMediaComponents from SetScriptGlobalObject if becoming visible. r=bzbarsky,farre
Windows start blocking media by default (see the
media.block-autoplay-until-in-foreground pref).

If the document becomes visible from GetScriptHandlingObject(), we
hand-rolled our own UpdateVisibilityState and didn't call
MaybeActiveMediaComponents (which unblocks media playback).

It couldn't call it there before since given content docshells used
start as active, but now that they don't we can do that and fix the bug.

Differential Revision: https://phabricator.services.mozilla.com/D41438
2021-01-05 23:27:12 +00:00
Tooru Fujisawa
fad39da87c Bug 1684944 - Add base template class for each *Scope::ParserData. r=nbp
Depends on D100741

Differential Revision: https://phabricator.services.mozilla.com/D100742
2021-01-05 17:41:43 +00:00
Tooru Fujisawa
2d32594bf6 Bug 1684943 - Rename *Scope::Data to *Scope::RuntimeData. r=nbp
Also fixed SizeOfScopeData to handle the trailing padding on 32-bit arch.

Differential Revision: https://phabricator.services.mozilla.com/D100741
2021-01-05 23:14:04 +00:00
Tooru Fujisawa
8e254990d7 Bug 1684941 - Remove using Parser*ScopeData aliases and use *Scope::ParserData. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D100740
2021-01-05 17:41:48 +00:00
Sean Feng
cab1fa2b49 Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug
Without the `Get` method, it's hard to extract the values for keys from
Maplike interface in C++.

Differential Revision: https://phabricator.services.mozilla.com/D97247
2021-01-05 23:19:26 +00:00
Csoregi Natalia
424274ba92 Backed out changeset ed5db87da381 (bug 1680605) for failures on test_httpssvc_https_upgrade.js and resource-timing. CLOSED TREE 2021-01-06 01:46:05 +02:00
Noemi Erli
0fab52422c Backed out 2 changesets (bug 1674214) for causing failures in browser_fission_maxOrigins.js CLOSED TREE
Backed out changeset 19fbaf9cd86f (bug 1674214)
Backed out changeset 7ef22fe8f73a (bug 1674214)
2021-01-06 01:35:37 +02:00
Iain Ireland
d0a8586fcc Bug 1683535: Re-enable eager truncation bailout assertion r=jandem
I removed this assertion temporarily to unblock fuzzing over the holidays. Now that we've fixed the bugs, we can put it back.

Depends on D100751

Differential Revision: https://phabricator.services.mozilla.com/D100752
2021-01-05 13:53:58 +00:00
Iain Ireland
b8786913fe Bug 1683535: Check hadEagerTruncationBailout when truncating phis r=jandem
There were two bugs here:
1. We weren't checking hadEagerTruncationBailout before eagerly truncating phis.
2. MDiv::operandTruncateKind and MMod::operandTruncateKind can return TruncateAfterBailouts even if ComputeTruncateKind returns a less restrictive kind. We therefore have to check the operands too.

Depends on D100750

Differential Revision: https://phabricator.services.mozilla.com/D100751
2021-01-05 13:53:42 +00:00
Iain Ireland
33abebb7a1 Bug 1683535: Move TruncateKind out of MDefinition r=jandem
The next patch will add a method to `RangeAnalysis` with a TruncateKind argument. Nested enums can't be forward-declared, so instead of undoing anba's work in bug 1669181 (part 35), I'm un-nesting the enum.

Differential Revision: https://phabricator.services.mozilla.com/D100750
2021-01-05 13:48:24 +00:00
Agi Sferro
4de0910c2e Bug 1671497 - Remove deprecated loadUri methods. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D99836
2021-01-05 22:33:09 +00:00
Agi Sferro
8238f1d6fa Bug 1671497 - Removed deprecated REPLACED_UNSAFE_CONTENT r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D99835
2021-01-05 22:33:17 +00:00
Markus Stange
504e820dc5 Bug 1685177 - Update sccache-dist documentation for new config file path. r=mhentges
The config file location on macOS recently changed from `~/Library/Preferences/Mozilla.sccache/config`
to `~/Library/Application Support/Mozilla.sccache/config`, see https://github.com/mozilla/sccache/issues/919.

Differential Revision: https://phabricator.services.mozilla.com/D100822
2021-01-05 22:15:14 +00:00
Markus Stange
0fb1ea148f Bug 1684891 - Stop allocating an autoreleased NSMutableDictionary from a C++ static initializer for sNativeKeyEventsMap. r=jrmuizel
There is no autorelease pool in place at the time that C++ globals are initialized, so this array
causes warnings when running with `OBJC_DEBUG_MISSING_POOLS=YES LIBDISPATCH_DEBUG_MISSING_POOLS=NO`.
And avoiding static initializers is a good practice anyway.

Differential Revision: https://phabricator.services.mozilla.com/D100736
2021-01-05 22:22:36 +00:00
Markus Stange
24e01d102b Bug 1684893 - Stop allocating an autoreleased NSArray from a C++ static initializer for filteredProviderNames. r=jrmuizel
There is no autorelease pool in place at the time that C++ globals are initialized, so this array
causes warnings when running with `OBJC_DEBUG_MISSING_POOLS=YES LIBDISPATCH_DEBUG_MISSING_POOLS=NO`.
And avoiding static initializers is a good practice anyway.

Differential Revision: https://phabricator.services.mozilla.com/D100734
2021-01-05 22:13:24 +00:00
Doug Thayer
f8c7790820 Bug 1680258 - Enable skeleton UI on nightly r=mhowell
The only remaining issues we've been able to find with the skeleton UI are that it's missing RTL support (which is coming - bug 1671603), there's a flash of the skeleton UI when maximizing the window (bug 1665451), and that we don't yet clean up the registry values from the uninstaller (bug 1675081). These do need to be addressed, but I don't think they're severe enough to block landing this to start getting feedback from our Nightly audience.

Again, I'm flagging all of you for review per Jim Mathies's request. There's not really one reviewer most familiar with this and the condition it's in, unfortunately.

Differential Revision: https://phabricator.services.mozilla.com/D98480
2021-01-04 21:51:52 +00:00
Markus Stange
5cd8830a74 Bug 1683723 - Replace deprecated Cocoa enum constants with their modern replacements. r=spohl
I ran the following command:

```
rg -l 'NSAlphaShiftKeyMask' . | xargs sed -i '' -e 's/NSAlphaShiftKeyMask/NSEventModifierFlagCapsLock/g'
rg -l 'NSAlternateKeyMask' . | xargs sed -i '' -e 's/NSAlternateKeyMask/NSEventModifierFlagOption/g'
rg -l 'NSAnyEventMask' . | xargs sed -i '' -e 's/NSAnyEventMask/NSEventMaskAny/g'
rg -l 'NSApplicationDefined' . | xargs sed -i '' -e 's/NSApplicationDefined/NSEventTypeApplicationDefined/g'
rg -l 'NSBorderlessWindowMask' . | xargs sed -i '' -e 's/NSBorderlessWindowMask/NSWindowStyleMaskBorderless/g'
rg -l 'NSCenterTextAlignment' . | xargs sed -i '' -e 's/NSCenterTextAlignment/NSTextAlignmentCenter/g'
rg -l 'NSClosableWindowMask' . | xargs sed -i '' -e 's/NSClosableWindowMask/NSWindowStyleMaskClosable/g'
rg -l 'NSCommandKeyMask' . | xargs sed -i '' -e 's/NSCommandKeyMask/NSEventModifierFlagCommand/g'
rg -l 'NSCompositeCopy' . | xargs sed -i '' -e 's/NSCompositeCopy/NSCompositingOperationCopy/g'
rg -l 'NSControlKeyMask' . | xargs sed -i '' -e 's/NSControlKeyMask/NSEventModifierFlagControl/g'
rg -l 'NSDeviceIndependentModifierFlagsMask' . | xargs sed -i '' -e 's/NSDeviceIndependentModifierFlagsMask/NSEventModifierFlagDeviceIndependentFlagsMask/g'
rg -l 'NSFlagsChanged' . | xargs sed -i '' -e 's/NSFlagsChanged/NSEventTypeFlagsChanged/g'
rg -l 'NSFullScreenWindowMask' . | xargs sed -i '' -e 's/NSFullScreenWindowMask/NSWindowStyleMaskFullScreen/g'
rg -l 'NSFullSizeContentViewWindowMask' . | xargs sed -i '' -e 's/NSFullSizeContentViewWindowMask/NSWindowStyleMaskFullSizeContentView/g'
rg -l 'NSFunctionKeyMask' . | xargs sed -i '' -e 's/NSFunctionKeyMask/NSEventModifierFlagFunction/g'
rg -l 'NSHelpKeyMask' . | xargs sed -i '' -e 's/NSHelpKeyMask/NSEventModifierFlagHelp/g'
rg -l 'NSKeyDown' . | xargs sed -i '' -e 's/NSKeyDown/NSEventTypeKeyDown/g'
rg -l 'NSKeyUp' . | xargs sed -i '' -e 's/NSKeyUp/NSEventTypeKeyUp/g'
rg -l 'NSLeftMouseDownMask' . | xargs sed -i '' -e 's/NSLeftMouseDownMask/NSEventMaskLeftMouseDown/g'
rg -l 'NSLeftMouseDown' . | xargs sed -i '' -e 's/NSLeftMouseDown/NSEventTypeLeftMouseDown/g'
rg -l 'NSLeftMouseDragged' . | xargs sed -i '' -e 's/NSLeftMouseDragged/NSEventTypeLeftMouseDragged/g'
rg -l 'NSLeftMouseUp' . | xargs sed -i '' -e 's/NSLeftMouseUp/NSEventTypeLeftMouseUp/g'
rg -l 'NSMiniaturizableWindowMask' . | xargs sed -i '' -e 's/NSMiniaturizableWindowMask/NSWindowStyleMaskMiniaturizable/g'
rg -l 'NSMiniControlSize' . | xargs sed -i '' -e 's/NSMiniControlSize/NSControlSizeMini/g'
rg -l 'NSMouseEntered' . | xargs sed -i '' -e 's/NSMouseEntered/NSEventTypeMouseEntered/g'
rg -l 'NSMouseExited' . | xargs sed -i '' -e 's/NSMouseExited/NSEventTypeMouseExited/g'
rg -l 'NSMouseMoved' . | xargs sed -i '' -e 's/NSMouseMoved/NSEventTypeMouseMoved/g'
rg -l 'NSNumericPadKeyMask' . | xargs sed -i '' -e 's/NSNumericPadKeyMask/NSEventModifierFlagNumericPad/g'
rg -l 'NSOtherMouseDownMask' . | xargs sed -i '' -e 's/NSOtherMouseDownMask/NSEventMaskOtherMouseDown/g'
rg -l 'NSOtherMouseDown' . | xargs sed -i '' -e 's/NSOtherMouseDown/NSEventTypeOtherMouseDown/g'
rg -l 'NSOtherMouseDragged' . | xargs sed -i '' -e 's/NSOtherMouseDragged/NSEventTypeOtherMouseDragged/g'
rg -l 'NSOtherMouseUp' . | xargs sed -i '' -e 's/NSOtherMouseUp/NSEventTypeOtherMouseUp/g'
rg -l 'NSRegularControlSize' . | xargs sed -i '' -e 's/NSRegularControlSize/NSControlSizeRegular/g'
rg -l 'NSResizableWindowMask' . | xargs sed -i '' -e 's/NSResizableWindowMask/NSWindowStyleMaskResizable/g'
rg -l 'NSRightMouseDown' . | xargs sed -i '' -e 's/NSRightMouseDown/NSEventTypeRightMouseDown/g'
rg -l 'NSRightMouseDragged' . | xargs sed -i '' -e 's/NSRightMouseDragged/NSEventTypeRightMouseDragged/g'
rg -l 'NSRightMouseUp' . | xargs sed -i '' -e 's/NSRightMouseUp/NSEventTypeRightMouseUp/g'
rg -l 'NSRightTextAlignment' . | xargs sed -i '' -e 's/NSRightTextAlignment/NSTextAlignmentRight/g'
rg -l 'NSScrollWheelMask' . | xargs sed -i '' -e 's/NSScrollWheelMask/NSEventMaskScrollWheel/g'
rg -l 'NSScrollWheel' . | xargs sed -i '' -e 's/NSScrollWheel/NSEventTypeScrollWheel/g'
rg -l 'NSShiftKeyMask' . | xargs sed -i '' -e 's/NSShiftKeyMask/NSEventModifierFlagShift/g'
rg -l 'NSSmallControlSize' . | xargs sed -i '' -e 's/NSSmallControlSize/NSControlSizeSmall/g'
rg -l 'NSTabletPointEventSubtype' . | xargs sed -i '' -e 's/NSTabletPointEventSubtype/NSEventSubtypeTabletPoint/g'
rg -l 'NSTitledWindowMask' . | xargs sed -i '' -e 's/NSTitledWindowMask/NSWindowStyleMaskTitled/g'
```

Then I removed changes to third-party webrtc code, removed a comment in accessible/mac/mozAccessible.mm,
and performed some manual replacements in native_mouse_mac_window.xhtml.

Differential Revision: https://phabricator.services.mozilla.com/D100260
2021-01-05 21:17:11 +00:00
Csoregi Natalia
23bcdc2392 Bug 1674214 - Eslint fix. r=fix CLOSED TREE 2021-01-06 00:23:06 +02:00
Kris Maglione
ddca497df5 Bug 1674214: Add preference to disqualify users from Fission experiment based on loaded origin count. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D99568
2021-01-05 21:58:05 +00:00
Cameron McCormack
88f9c54b10 Bug 1685010 - Paint indeterminate checkboxes properly on Windows high contrast mode in the non-native theme. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D100757
2021-01-05 12:46:09 +00:00
Cameron McCormack
b8b0d529d8 Bug 1684801 - Don't paint indeterminate radio buttons with a solid background. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D100756
2021-01-05 12:45:48 +00:00
Brad Werth
b5eed866ff Bug 1684982 Part 2: Make XRE_mainRun create then destroy a macOS autorelease pool before entering the event loop. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100735
2021-01-05 19:41:06 +00:00
Brad Werth
9d0615f0b4 Bug 1684982 Part 1: Add a scope to XRE_mainRun. r=jrmuizel
This scope will support later functional changes that are conditionally
compiled. This part is standalone to help with blame-tracking.

Differential Revision: https://phabricator.services.mozilla.com/D100805
2021-01-05 19:47:40 +00:00
Kershaw Chang
d08af9bb8d Bug 1652723 - Prefetch https rr in HTMLDNSPrefetch r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D98689
2021-01-05 21:14:20 +00:00
Matthew Gaudet
49874e65df Bug 1683614 - Post-barrier write to environment chain slot in Warp compiled suspend code r=iain
Differential Revision: https://phabricator.services.mozilla.com/D100798
2021-01-05 18:21:56 +00:00
Geoff Brown
13ad2a5fbe Bug 1643448 - Update test handling of ACCESS_WIFI_STATE; r=geckoview-reviewers,bc,agi
Add ACCESS_WIFI_STATE to the gve manifest, same as androidTest.
Remove ACCESS_WIFI_STATE from the list of pm grants, since it is not of
type dangerous.

Differential Revision: https://phabricator.services.mozilla.com/D100727
2021-01-05 20:14:23 +00:00
Emilio Cobos Álvarez
29e28ab94e Bug 1683979 - Audio min / pref isize should not depend the controls. r=dholbert
Otherwise the adjustments that the media controls do in response to size
changes affect the size itself, which can cause cyclic layout.

Differential Revision: https://phabricator.services.mozilla.com/D100722
2021-01-05 16:48:53 +00:00
Emma Malysz
31f8e81a16 Bug 1683318, use focused browsing context for print preview if it is currently active r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D100133
2021-01-05 20:42:27 +00:00
Eitan Isaacson
9e19999a57 Bug 1681909 - P3: Implement e10s post search filter and test. r=morgan
The test adds fission testing as well.

Differential Revision: https://phabricator.services.mozilla.com/D100732
2021-01-05 20:35:37 +00:00
Eitan Isaacson
4537ab3655 Bug 1681909 - P2: Implement post filter for non-e10s case. r=morgan
Introducing this as a separate patch to simplify this changeset and first introduce a straightforward-ish implementation.

Differential Revision: https://phabricator.services.mozilla.com/D100731
2021-01-05 20:35:35 +00:00
Eitan Isaacson
ca8fda7434 Bug 1681909 - P1: Add IPC stubs for ApplyPostSearchFilter. r=morgan,ipc-reviewers,mccr8
Applying a bulk filter on accessibles in content process allows us to avoid a potentially large (and variable) number of IPC sync calls to retrieve the accessible names. I chose to implement this as a "post filter" and not to actually do the entire search in content because it would cause a lot of duplication of code for non-IPC searching, and we wouldn't have the flexibility to combine a text search with any arbitrary search key as the API requires.

I also generalized the RangeTypes.h header to PlatformExtTypes so it can be used to define filter types as well.

Differential Revision: https://phabricator.services.mozilla.com/D100730
2021-01-05 20:35:22 +00:00
Jonathan Kew
d4475808af Bug 1684934 - Disable async fallback for first-letter-004.html. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D100813
2021-01-05 19:43:41 +00:00
Noemi Erli
24fa247850 Backed out changeset 47f0d542db39 (bug 1674214) for causing fission related failures CLOSED TREE 2021-01-05 22:28:56 +02:00
Sebastian Hengst
e92542eff0 Bug 1684419 - disable async font fallback for webvtt/rendering/cues-with-video because of intermittentfailures. r=jfkthame DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100808
2021-01-05 19:36:16 +00:00
Kris Maglione
e47b5afa5e Bug 1674214: Add preference to disqualify users from Fission experiment based on loaded origin count. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D99568
2020-12-16 21:57:14 +00:00
Kershaw Chang
8b760c522f Bug 1680605 - Make https upgrade with https rr properly r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D98687
2021-01-05 19:30:18 +00:00
Nan Jiang
9570cfcaf7 Bug 1682372 - Remove unused fields in the impression stats ping r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D100712
2021-01-05 19:25:19 +00:00
Oriol Brufau
8e5c5588b8 Bug 1551239 - Keep tab icon when reloading Customize Mode tab. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D100784
2021-01-05 18:25:59 +00:00
Andi-Bogdan Postelnicu
8521ee6581 Bug 1685030 - Remove rust from vscode extensions list. r=sylvestre DONTBUILD
`rust` and `rust-analyzer` are incompatible together so we should remove the first
one since `rust-analyzer` is the better choice.

Differential Revision: https://phabricator.services.mozilla.com/D100759
2021-01-05 17:28:05 +00:00
Razvan Maries
ce6f1c0ebe Backed out 3 changesets (bug 1684941, bug 1684943, bug 1684944) for build bustages on Scope.h. CLOSED TREE
Backed out changeset 8b4311105ef0 (bug 1684944)
Backed out changeset cc3ffc5a7997 (bug 1684943)
Backed out changeset 9280335eb48e (bug 1684941)
2021-01-05 19:37:30 +02:00
Tooru Fujisawa
fa707601fe Bug 1684944 - Add base template class for each *Scope::ParserData. r=nbp
Depends on D100741

Differential Revision: https://phabricator.services.mozilla.com/D100742
2021-01-05 15:21:44 +00:00
Tooru Fujisawa
a6c3dd44ee Bug 1684943 - Rename *Scope::Data to *Scope::RuntimeData. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D100741
2021-01-05 17:14:43 +00:00
Tooru Fujisawa
03bfb7aa86 Bug 1684941 - Remove using Parser*ScopeData aliases and use *Scope::ParserData. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D100740
2021-01-05 15:25:26 +00:00
Connor Sheehan
813445ccd8 Bug 1678668: print sentry error report number on mach command failure r=firefox-build-system-reviewers,mhentges
When mach errors out, an error report is sent to Sentry. This error
report contains information about the state of the interpreter during
the failure, details about the environment, installed packages and more.
Having this information available immediately when attempting to resolve
a bug report is generally desirable, instead of going through a back-and-forth
needinfo tag on Bugzilla or spending time asking the reporter questions on
Matrix.

This commit captures the Sentry ID returned from `sentry_sdk.capture_exception`
and prints it to the screen. If a user adds this line to their bug report (as
the error messages suggest) a build team member can enter this number into
Sentry to identify the exact report and debug the error. At minimum this will
reduce the amount of back-and-forth between the reporter and the assignee
required to resolve a bug. Optimally it should make bugs easier to spot and
reduce the time spent on end user support requests.

To use the Sentry ID to identify information about a specific bug report, the
bug assignee should open the Mozilla Sentry page for the `mach` project and
paste the ID into the search box, which will produce the full stack trace with
all submitted information.

Differential Revision: https://phabricator.services.mozilla.com/D100247
2021-01-05 16:39:22 +00:00
Byron Campen [:bwc]
0c10fa6898 Bug 1680771: Use a real LoadInfo for WebrtcTCPSocket, ensure we use that LoadInfo's CookieJarSettings for our DNS/proxy lookup, and remove a flag that was breaking http proxy support for webrtc. r=timhuang,mjf
Differential Revision: https://phabricator.services.mozilla.com/D99362
2021-01-05 12:59:41 +00:00
Razvan Maries
d9b7eb8e14 Bug 1680531 - Fixing the sasslint failure. CLOSED TREE 2021-01-05 18:26:22 +02:00
Steve Fink
410cb65d7a Bug 1682947 - Use MADV_FREE_REUSE before using decommitted memory again on OSX, as per https://bugs.chromium.org/p/chromium/issues/detail?id=823915 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D99932
2020-12-23 21:00:44 +00:00