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

721529 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell 031f857cfe Bug 1656636 - Part 1: Add a test for scripts loaded during subframe process startup, r=mconley,smacleod
This should help us catch loads of JSActors which may be necessary for toplevel
document loads, but which need not be loaded within a remote subframe.

Differential Revision: https://phabricator.services.mozilla.com/D85648
2020-08-07 16:24:50 +00:00
Ricky Stewart 3ddb065650 Bug 1656611 - Remove `objdir` support from `virtualenv_packages.txt` handling r=mhentges,froydnj
I noticed that the `objdir:build` entry in `build/virtualenv_packages.txt` entry was apparently unused. This originates from bug 841713, seven years ago, when the `objdir` handling was introduced. Today, this doesn't appear to be serving a purpose. There is no Python library in my `$objdir/build` directory; nor can I see anything in `build/moz.build` or any related files suggesting one could ever appear. I can only assume this feature has outlived its usefulness, so delete it and the relevant in-tree support.

This necessitates slightly changing the signature and implementation of the `activate_pipenv()` method; also update all callers.

Differential Revision: https://phabricator.services.mozilla.com/D85635
2020-08-07 16:03:36 +00:00
Bogdan Tara 57ed67928b Backed out changeset 760fc38c793b (bug 1656611) for doc failure complaining about virtualenv_root CLOSED TREE 2020-08-07 18:57:56 +03:00
Ricky Stewart 41e473f17b Bug 1656611 - Remove `objdir` support from `virtualenv_packages.txt` handling r=mhentges,froydnj
I noticed that the `objdir:build` entry in `build/virtualenv_packages.txt` entry was apparently unused. This originates from bug 841713, seven years ago, when the `objdir` handling was introduced. Today, this doesn't appear to be serving a purpose. There is no Python library in my `$objdir/build` directory; nor can I see anything in `build/moz.build` or any related files suggesting one could ever appear. I can only assume this feature has outlived its usefulness, so delete it and the relevant in-tree support.

This necessitates slightly changing the signature and implementation of the `activate_pipenv()` method; also update all callers.

Differential Revision: https://phabricator.services.mozilla.com/D85635
2020-08-06 18:21:35 +00:00
Jim Mathies b3313704c3 Bug 1657354 - Enable credit card sync availability in Preferences. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D86010
2020-08-06 23:10:15 +00:00
Kannan Vijayan 113e936fa1 Bug 1654037 - Add immediate representation for ParserAtoms. r=tcampbell,mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D84224
2020-08-07 13:53:51 +00:00
Bogdan Tara e2bc35cf21 Backed out changeset 0e8938777f94 (bug 1656016) for browser_playerControls.js failures CLOSED TREE 2020-08-07 18:32:43 +03:00
Scott 949897fa23 Bug 1657666 - Fix telemetry event for newtab popular topics. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D86288
2020-08-07 13:11:14 +00:00
Marco Castelluccio 3fe74901e4 Bug 1656465 - Run fuzzing builds on backstop pushes. r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D86357
2020-08-07 15:08:53 +00:00
Dimi Lee 6a8e625db6 Bug 1657616 - Remove the link to StopBadware.org in SafeBrowsing interstitial page r=gcp,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D86321
2020-08-07 15:08:10 +00:00
Bogdan Tara 2273fb74fa Backed out changeset b0ea8d83462f (bug 1657616) for es lint failure on blockedSite.js CLOSED TREE 2020-08-07 18:00:31 +03:00
Jonathan Kew d049947f17 Bug 1656733 - Reimplement EnumerateNativePrinters (and GetDefaultPrinterName) in widget/windows code to use proper Win32 APIs. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D86019
2020-08-07 14:33:41 +00:00
Dan Minor 0dfb5d0444 Bug 1653219 - Enumerate browser tabs before entire screen; r=ng
A lot of tests assume that the screen will be the last thing enumerated.
It is also the "scariest" option, so having it last makes sense.

Differential Revision: https://phabricator.services.mozilla.com/D84593
2020-08-06 20:09:25 +00:00
Dan Minor 8bce06db95 Bug 1653219 - Use BrowserTabEnumerator to enumerate tabs; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D84592
2020-08-06 20:08:57 +00:00
Dan Minor f1bd93d2a7 Bug 1653219 - Add nsIBrowserWindowTracker and getAllVisibleTabs function; r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D84591
2020-08-07 12:30:26 +00:00
Dimi Lee 42da17613a Bug 1657616 - Remove the link to StopBadware.org in SafeBrowsing interstitial page r=gcp,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D86321
2020-08-07 14:31:47 +00:00
Emilio Cobos Álvarez edf2f3232d Bug 1657874 - Remove CUPSPrinterList. r=jwatt
Now that we share the list code between GTK and Mac, there's no reason
for this. This also avoids work when getting the default printer name.

Differential Revision: https://phabricator.services.mozilla.com/D86345
2020-08-07 14:30:33 +00:00
Tracy Walker 6290ab0d80 Bug 1656016 - Add test for PiP player controls r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D85641
2020-08-07 14:29:44 +00:00
Sebastian Hengst f75539b2ec Bug 1655601 - Disable browser_creditCard_doorhanger.js on macOS opt. r=jmaher DONTBUILD
The test switched from the 'shippable' to the 'opt' config in bug 1650208 and
fails on this new platform.

Differential Revision: https://phabricator.services.mozilla.com/D86311
2020-08-07 12:50:13 +00:00
Sebastian Hengst f8dcb53389 Bug 1614100 - Disable browser/extensions/formautofill/test/unit/heuristics/* on Linux ccov. r=jmaher DONTBUILD
They were failing almost permanently.

heuristics/third_party/<test> are being tracked in bug 1650904.

Differential Revision: https://phabricator.services.mozilla.com/D86330
2020-08-07 12:50:58 +00:00
Chris Martin c563fec3f1 Bug 1657404 - Refactor gamepad monitoring - Part 2 r=daoshengmu
Substitute and eliminate MaybeStopGamepadMonitoring(). The logic to do this
is so dependent on GamepadPlatformService that it should probably just be a
member.

Differential Revision: https://phabricator.services.mozilla.com/D86267
2020-08-07 13:27:55 +00:00
Chris Martin 1e641f2551 Bug 1657404 - Refactor gamepad monitoring - Part 1 r=daoshengmu
The starting/stopping of gamepad monitoring is probably a decision that
should be made at the level of the GamepadPlatformService, not in the IPC
actor. This is step 1, later I will expand some of these functions because
it makes the code easier to understand.

Differential Revision: https://phabricator.services.mozilla.com/D86266
2020-08-07 13:32:17 +00:00
Bogdan Tara 492ec9ba2f Backed out changeset c20c383af4db (bug 1657583) for http related failures CLOSED TREE 2020-08-07 17:13:37 +03:00
Frederik Braun c2034cbebd Bug 1657208 - add test case for null & empty url strings r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D85968
2020-08-07 13:15:04 +00:00
Jon Coppeard 881deac17d Bug 1655455 - Replace setModuleResolveHook() with registerModule() test function r=jandem
Rather than allowing test code to replace HostResolveImportedModule directly, this adds a test function to register a module and specifier such that attempting to import that specifier later finds the given module (which was what the hook was mostly used to acheive).

Mostly this is test code updates.  I deleted test code for bugs which were only caused by the existence of this API in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D85560
2020-08-06 14:21:34 +00:00
Julian Descottes 705e65c932 Bug 1652445 - Fix highlighters overlay to react to frame navigation r=rcaliman
Depends on D84973

This was highlighted by browser_grids_grid-list-on-iframe-reloaded.js which fails without this fix.

Differential Revision: https://phabricator.services.mozilla.com/D84974
2020-08-07 12:24:10 +00:00
Julian Descottes 6e5145a87c Bug 1652445 - Use root node resource to detect navigation for all frames r=rcaliman,ochameau
Depends on D85599

The WalkerActor is currently responsible for watching navigations and exposes them to the client.
However, this is communicated to the client differently depending on what kind of frame navigates.
If the top frame of the target navigates, this will be exposed via the watchRootNode API (onDestroyed/onAvailable callbacks will be triggered)
If an inner frame navigates, mutations will be emitted: "frameLoad"/"documentUnload" + a fake "childList" mutation.

On the client side, we have to handle both very similarly which leads to some duplication.
Also "frameLoad"/"documentUnload" are one of the last "immediateMutations" which usually means they should not have been mutations in the first place.

The goal here is to use the watchRootNode API for all frames.

Differential Revision: https://phabricator.services.mozilla.com/D84973
2020-08-07 12:16:51 +00:00
Julian Descottes 40eb2a0d73 Bug 1652445 - Remove skipped & outdated test browser_inspector-mutations-frameload.js r=ochameau
Depends on D85598

This test relies on mutations which are no longer emitted for most navigations and which will no longer be emitted at all with the next patches.
It has been disabled for 9 months and should be removed.

Differential Revision: https://phabricator.services.mozilla.com/D85599
2020-08-07 12:16:44 +00:00
Julian Descottes 58de59ca2b Bug 1652445 - Remove backward compatibility code for newRoot mutations r=rcaliman
Depends on D85597

newRoot mutations are no longer emitted by any server we support, we can remove the corresponding client code.

Differential Revision: https://phabricator.services.mozilla.com/D85598
2020-08-07 12:16:42 +00:00
Julian Descottes efef5c970b Bug 1652445 - Remove outdated traits from NodeActor r=rcaliman
Depends on D84972

Differential Revision: https://phabricator.services.mozilla.com/D85597
2020-08-07 12:15:02 +00:00
Julian Descottes 1d0130e4df Bug 1652445 - Rename WalkerActor _ref method and _refMap property r=gl
_ref is renamed to _getOrCreateNodeActor to better reflect the purpose of the method.
_refMap is renamed to _nodeActorsMap

The test helper inspector-helpers was also directly querying _refMap.
This has been replaced by a call to the public API getNode.

Differential Revision: https://phabricator.services.mozilla.com/D84972
2020-08-07 12:14:37 +00:00
Bogdan Tara 9b65c93d6a Backed out 2 changesets (bug 1631722) for windows bpgo failures CLOSED TREE
Backed out changeset 580b7fe5c831 (bug 1631722)
Backed out changeset e635eff6171b (bug 1631722)
2020-08-07 16:37:42 +03:00
Bob Owen ff0078c4dd Bug 1655674: Prevent nsPrintJob::FinishPrintPreview running twice by checking mIsCreatingPrintPreview. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D86320
2020-08-07 09:32:45 +00:00
André Bargull 8aa2e27c24 Bug 1655465 - Part 9: Change JSOp::FunctionProto to JSOp::BuiltinObject. r=jandem
Callers to `GetBuiltinPrototype()` rely on inlining the function itself plus
optimising the object access, so that the property value is directly seen as a
constant in the compiler. By changing `GetBuiltinPrototype()` and
`GetBuiltinConstructor()` to be directly translated into a JSOp, we can avoid
heavily relying on the compiler to optimise these two functions.

The new opcode replaces the existing JSOp::FunctionProto opcode. It doesn't
use JSProtoKey directly in order to help jsparagus (bug 1622530), but instead
uses its own set of mapping from enum values to built-in prototypes and
constructors.

This change also resolves bug 1377264.

Differential Revision: https://phabricator.services.mozilla.com/D84991
2020-08-07 13:03:19 +00:00
André Bargull 17346573ef Bug 1655465 - Part 8: Support StringSplitString in CacheIR and Warp. r=jandem
Drive-by change:
- Make `intrinsic_StringSplitString` a static function.

Differential Revision: https://phabricator.services.mozilla.com/D84989
2020-08-07 12:22:48 +00:00
André Bargull 0e9cdf76b5 Bug 1655465 - Part 7: Avoid MToString on string-typed inputs in Warp. r=jandem
Warp can't currently fold away `MToString`, as a workaround handle the already
string case in WarpBuilder.

Differential Revision: https://phabricator.services.mozilla.com/D84988
2020-08-07 12:21:15 +00:00
André Bargull 226d33b1e3 Bug 1655465 - Part 6: Support StringReplaceString in CacheIR and Warp. r=jandem
Drive-by change:
- Remove a bogus `resumeAfter()`, `MStringReplace` is never effectful.

Differential Revision: https://phabricator.services.mozilla.com/D84987
2020-08-07 12:20:46 +00:00
André Bargull ee9dcbcd12 Bug 1655465 - Part 5: Support ObjectHasPrototype in CacheIR. r=jandem
Inling `ObjectHasPrototype()` using the `GuardProto` CacheIR op for the normal
case when the prototype chain wasn't modified.

Also change `intrinsic_ObjectHasPrototype()` to expect that both objects are
`NativeObject`, because then we don't need to handle proxies in CacheIR.

Drive-by change:
- Use `staticPrototype()` in ObjectOperations-inl.h instead of effectively inlining it.

Differential Revision: https://phabricator.services.mozilla.com/D84984
2020-08-07 12:32:37 +00:00
André Bargull 6a4b86eac3 Bug 1655465 - Part 4: Transpile GuardTagNotEqual in Warp. r=jandem
This is part two to support comparing strictly different types in Warp.

The operation doesn't have any result, so when folding it, `MNop` is used to
optimise it away when the value tags are already different at compile time.

Differential Revision: https://phabricator.services.mozilla.com/D84980
2020-08-07 12:32:37 +00:00
André Bargull a63ab675ab Bug 1655465 - Part 3: Use BytecodeUtil.h helpers to test for equality operations. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D84978
2020-08-07 12:16:49 +00:00
André Bargull 94c50eef30 Bug 1655465 - Part 2: Test node is commutative before swapping the operands. r=jandem
Swapping `bi`'s operands should depend on `bi` itself being commutative.

Drive-by change: Use `std::swap` to swap the operands.

Differential Revision: https://phabricator.services.mozilla.com/D84977
2020-08-07 12:16:39 +00:00
André Bargull 8ae6b9fd09 Bug 1655465 - Part 1: Transpile LoadValueTag in Warp. r=jandem
LoadValueTag is used when comparing strictly different types. This happens in
the string built-ins when the this-value is a primitive string and it is
compared against null or undefined.

Value tags are represented as MIRType::Int32 and folding is supported to be
able to optimise away the checks after inlining.

Differential Revision: https://phabricator.services.mozilla.com/D84976
2020-08-07 12:15:05 +00:00
Christoph Kerschbaumer 080bd94e56 Bug 1657583: Simplify TestSitePermission within nsHTTPSOnlyUtils r=necko-reviewers,JulianWels,dragana
Differential Revision: https://phabricator.services.mozilla.com/D86178
2020-08-07 12:50:31 +00:00
Belén Albeza b6de344d69 Bug 1653998 - View source of worker from the Application panel r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86039
2020-08-07 12:47:34 +00:00
Ted Campbell f9256a0d84 Bug 1657557 - Remove erroneous assert in GCRuntime::mergeRealms r=jonco
This assert was intended to assure that off-thread parse realm sets the same
special prototype flags off-thread as on-thread. In practice though, the
`setImmutablePrototype` testing function allows us to set the flag on a
common prototype which confuses the assert.

Differential Revision: https://phabricator.services.mozilla.com/D86243
2020-08-07 08:15:27 +00:00
Hamzah 8a86250605 Bug 1408051 - Remove mozharness' copy of virtualenv and use the one under /third_party/python instead r=ahal,rail
Differential Revision: https://phabricator.services.mozilla.com/D83181
2020-08-05 19:52:24 +00:00
Bogdan Tara 5664de44fd Backed out changeset a71e53a3e455 (bug 1657874) for CUPSPrinterList.h related bustage CLOSED TREE 2020-08-07 15:39:34 +03:00
Stepan Stava 99cb02ee89 Bug 1657074 - Refactor 'toggleJavaScript' mochitest helper function to make it reusable r=nchevobbe
As suggested in revision [[ https://phabricator.services.mozilla.com/D81678#inline-485161| D81678 ]] the current `toggleJavaScript` function is used for toggling one menu item in the debugger settings.

This patch refactors this function to be reusable by other tests.

Differential Revision: https://phabricator.services.mozilla.com/D86038
2020-08-07 12:23:27 +00:00
Jan de Mooij 5d206d9c31 Bug 1657559 - Add StringToAtomCache to fix perf cliffs when atomizing strings repeatedly. r=sfink,jonco
This improves performance a lot when a long string is atomized more than once. This
is happening on Reddit (strings with length 1897).

The cache is also used to de-duplicate strings during nursery GC before it's purged.
This handles some cases the existing string deduplication doesn't handle and if a
string is in the StringToAtomCache it should be faster.

Differential Revision: https://phabricator.services.mozilla.com/D86171
2020-08-07 12:19:13 +00:00
undef1nd a0eda6935a Bug 1631722 - Add wrapper for structured-headers crate,r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D81127
2020-08-06 18:50:11 +00:00