Commit Graph

739680 Commits

Author SHA1 Message Date
Ted Campbell
f59aedf047 Bug 1655052 - Remove AbstractScopePtrIter. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D100816
2021-01-06 02:54:34 +00:00
Ted Campbell
6856b5eeb7 Bug 1655052 - Add ScopeContext::enclosingThisEnvironmentHops. r=arai
To avoid walking the enclosing scope chain while parsing, compute the number
of environments between enclosing scope and the this-environment's scope.
This is used if there are 'super' references within an arrow or eval script.

Differential Revision: https://phabricator.services.mozilla.com/D100815
2021-01-06 02:54:27 +00:00
Ted Campbell
9e3897c196 Bug 1655052 - ScopeContext now only checks this-env when it will be used. r=arai
Instead of generating bogus values inspecting the scope chain when the script
will provide a this-environment, we leave at default based on if the
InheritThis flag is passed. This is used for arrow-function and evals (as the
spec requires).

Differential Revision: https://phabricator.services.mozilla.com/D100848
2021-01-06 02:54:25 +00:00
Ted Campbell
c069b1b7db Bug 1655052 - Refactor js::frontend::ScopeContext. r=arai
Instead of traversing the scope chain several times, combine some of the
traversals to simplify code. Certain behaviours use the debugger-eval
effective scope, while others ignore it. This patch does *not* change any of
the current semantics.

Differential Revision: https://phabricator.services.mozilla.com/D100847
2021-01-06 02:54:17 +00:00
Ted Campbell
18611fcb5a Bug 1655052 - Simplify BytecodeEmitter::emitThisEnvironmentCallee. r=arai
The `emitThisEnvironmentCallee` helper is used when handling certain 'super'
operations. If the current scope is an eval or arrow, we instead use the
callee of the enclosing environment chain. When this is a case, the Parser
must already have marked the appropriate 'this' as closed-over and we can
simply assert that the scope has an environment.

Differential Revision: https://phabricator.services.mozilla.com/D100814
2021-01-06 02:56:40 +00:00
Noemi Erli
ebe9167de8 Backed out changeset 4de429b6ad64 (bug 1572798) for causing browser chrome failures CLOSED TREE 2021-01-06 07:05:57 +02:00
Markus Stange
eb8875ae13 Bug 1685236 - Add an autorelease pool in determine_font_smoothing_mode. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100854
2021-01-06 04:25:40 +00:00
Markus Stange
b326215cd2 Bug 1685230 - Add an autorelease pool in XRE_mainStartup. r=jrmuizel
For example, NS_CreateNativeAppSupport creates autoreleased objects.

Depends on D100851

Differential Revision: https://phabricator.services.mozilla.com/D100853
2021-01-06 04:25:40 +00:00
Markus Stange
abadefc0c8 Bug 1685230 - Add an autorelease pool in XRE_mainInit for DisableAppNap and for anything that happens in the rest of the function. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100851
2021-01-06 04:25:42 +00:00
Makoto Kato
f088bd2979 Bug 1685031 - Remove unused shutdown observer in nsAndroidBridge. r=geckoview-reviewers,agi
Shutdown observer in nsAndroidBridge does nothing. So let's remove this.

Differential Revision: https://phabricator.services.mozilla.com/D100760
2021-01-05 20:14:12 +00:00
Hiroyuki Ikezoe
bbb5bcf77a Bug 1683487 - Use GetAPZCAtPointWR depending on whether the corresponding window uses WebRender instead of the preference value. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D100431
2021-01-06 02:04:24 +00:00
Jeff Muizelaar
a3db045160 Bug 1685214 - Add some documentation to qcms and bump the crate version. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D100845
2021-01-06 01:36:30 +00:00
Kartikaya Gupta
8e2db561f5 Bug 1685198 - Fix failure on first sync for new repo. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100843
2021-01-06 01:31:35 +00:00
Ping Chen
93f7b2f2b0 Bug 1683228 - Check maxLogLevelPref value each time and use it when available. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100204
2021-01-06 01:11:24 +00:00
David Major
767a9abd46 Bug 1685165 - Support clang-12 in TestNoRefcountedInsideLambdas.cpp r=static-analysis-reviewers,andi
clang-12 has gained some additional remarks for these code patterns.

Differential Revision: https://phabricator.services.mozilla.com/D100820
2021-01-05 21:47:22 +00:00
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