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

706589 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Watt e9737ef887 Bug 1636265. Fix the Eclipse CDT build backend (broken by the switch to Python 3). r=botond
Python 3 doesn't allow strings to be written to files opened in binary mode
(it requires a byte array in that case).  As it happens, we should really be
opening these Eclipse config files in text mode since it seems on Windows the
files use Windows line ending characters.  So rather than change the strings
to byte arrays, this patch simply changes the code to open the files in text
mode.

Differential Revision: https://phabricator.services.mozilla.com/D74318
2020-05-08 16:26:35 +00:00
Ted Campbell 271433fe64 Bug 1635976 - Remove FunctionTree from Parser. r=mgaudet
This no longer has a use with the direction that stencil is going so lets
remove it.

Differential Revision: https://phabricator.services.mozilla.com/D74314
2020-05-08 16:34:03 +00:00
Ted Campbell 6effa4082a Bug 1635976 - Use traceList for publishing deferred functions. r=mgaudet
The FunctionBoxes are added to head of the trace-list as they are created in
source order. This means the final list is the reverse of that and inner
functions are seen before their parent. This is exactly what we need for the
publishDeferredFunctions method.

Differential Revision: https://phabricator.services.mozilla.com/D74313
2020-05-08 16:33:55 +00:00
Ted Campbell 7d91374595 Bug 1635976 - Factor out MaybePublishFunction from publishDeferredFunctions. r=mgaudet
The outer loop will be changed in next patches.

Differential Revision: https://phabricator.services.mozilla.com/D74312
2020-05-08 14:57:11 +00:00
Ted Campbell 63586c9845 Bug 1635976 - Move ParserBase::traceListHead to CompilationInfo. r=mgaudet
This also unifies the list between the syntax- and full-parser which is
sensible since the allocations are on a shared LifoAlloc.

Differential Revision: https://phabricator.services.mozilla.com/D74311
2020-05-08 14:54:42 +00:00
Ted Campbell d08c158ecf Bug 1636247 - Remove ParserBase::sourceObject_ field. r=mgaudet
This data can instead be accessed from CompilationInfo. As well, the only use
is to allocate lazy BaseScripts and that code is being moved outside the
Parser.

Differential Revision: https://phabricator.services.mozilla.com/D74302
2020-05-08 12:54:15 +00:00
thomasmo 59be1c47cd Bug 1635608 - Update OpenVR source code to use Unix line endings r=daoshengmu
This change simply changes line endings to make diffing easier with updates from OpenVR, which have Unix line endings.
Further, .clang-format-ignore, does not seem to work for wildcard to match a directory and subdirectory, so all files are listed individually.

Differential Revision: https://phabricator.services.mozilla.com/D74100
2020-05-07 20:20:39 +00:00
Tooru Fujisawa 9dac54fd5b Bug 1636195 - Enable for javascript.options.property_error_message_fix on dev edition. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D74393
2020-05-08 16:15:02 +00:00
Geoff Brown 99f9b87119 Bug 1603510 - Allow multi-word $EDITOR in 'mach try syntax --edit-presets'; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D74416
2020-05-08 17:54:10 +00:00
Narcis Beleuzu 43ad94eeae Backed out 4 changesets (bug 1611096) for dt failures on browser_animation_inspector_exists.js . CLOSED TREE
Backed out changeset 0fe3613ee36b (bug 1611096)
Backed out changeset c86433fe8cd0 (bug 1611096)
Backed out changeset a7242f506aa6 (bug 1611096)
Backed out changeset 3703fbfe567a (bug 1611096)
2020-05-08 20:34:54 +03:00
Kage 217614b78d Bug 1633511 Added tests. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D74234
2020-05-08 16:18:15 +00:00
Kage 0ceff5b9c6 Bug 1633511 Resolved case sensitive issue in Cookies Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D73540
2020-05-08 16:19:54 +00:00
Csoregi Natalia 63b58c875b Backed out changeset 741768b1c721 (bug 1624813) for causing perf test regressions. CLOSED TREE 2020-05-08 19:11:38 +03:00
Csoregi Natalia cd28d94be1 Backed out changeset 59a45d8c0fbb (bug 1635365) for browser-chrome failures on browser_bug902156.js. CLOSED TREE 2020-05-08 19:09:20 +03:00
Mitchell Hentges 2e71833471 Bug 1636209: resolves tests that were incorrectly marked as xfail r=tomprince
When handling bug 1632429, I found some tests that worked on Python 2, but not Python 3.
They were marked accordingly as "expected failures". However, my system version of Python
is 3.8, while CI (and a non-trivial number of devs, probably) use 3.6.

Some of these tests marked as xfail were actually still working on versions of Python until 3.8.

The failure of this test was due to a change in default tarfile format. Explicitly setting this
format makes the tests pass in all relevant python versions.

Differential Revision: https://phabricator.services.mozilla.com/D74337
2020-05-07 23:41:35 +00:00
sanketh 2fee157360 Bug 1635224 - Preserve mLastValueChangeWasInteractive between SaveState and RestoreState r=emilio,masayuki
Modify PresState's string variant to also store whether the last change was
interactive, and preserve that property when saving and restoring state.

Differential Revision: https://phabricator.services.mozilla.com/D73920
2020-05-08 15:15:04 +00:00
Jeff Muizelaar 6d8d4c153f Bug 1636482 - Allow WebRender on all versions of Windows. r=aosmond
Previously we were blocking older Windows and only allowing on Windows
10. This switches us to relying on the blocking to prevent WebRender
from riding the trains on Win7/8.

Differential Revision: https://phabricator.services.mozilla.com/D74409
2020-05-08 14:54:24 +00:00
Andrea Marchesini 03f7f77b10 Bug 1632125 - Disable Feature-Policy-Report-Only header WPTs, r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D74399
2020-05-08 14:57:23 +00:00
Christoph Kerschbaumer 1470386f05 Bug 1635365: Move field mixed content IsSecure from BrowsingContext to WindowContext. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D74269
2020-05-08 14:05:18 +00:00
Alex Catarineu 62b809186b Bug 1636411 - Allow disabling DNS resolution via pref r=dragana,necko-reviewers
If `network.dns.disabled=true`, only resolve IP literals or cached
entries.

Differential Revision: https://phabricator.services.mozilla.com/D74387
2020-05-08 13:12:03 +00:00
Chris H-C cf008d3a85 Bug 1632159 - Add FOG Datetime metric r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D74260
2020-05-07 18:45:23 +00:00
Joel Maher 5e6f06d6f5 Bug 1636120 - don't run timeouts on autoland. r=jgraham
don't run expected TIMEOUT web-platform-tests on autoland.

Differential Revision: https://phabricator.services.mozilla.com/D74283
2020-05-08 13:12:16 +00:00
Jean-Yves Avenard 3d167e6590 Bug 1635001 - P3. Fix APZ controller thread-safety access. r=kats
The APZ was keeping a raw pointer to the controller thread. This was a dangerous exercise.
This was okay on desktop, as the controller thread was the main thread and would have outlived everything else. On Android however it's the UI thread and it could get deleted before we received a last input event.

So we use a strong pointer instead to prevent the thread from being deleted and as such, we now needs to explicitly clear it on shutdown.

This requires the various methods in APZThreadUtils to be made thread-safe so that the controller thread can be shutdown mid-air.

Differential Revision: https://phabricator.services.mozilla.com/D73830
2020-05-07 08:30:22 +00:00
Jean-Yves Avenard 4329c55477 Bug 1635001 - P2. Don't use MessageLoop threads with APZ. r=kats,geckoview-reviewers,snorp
It is unclear on why MessageLoop was ever used with this code.

Differential Revision: https://phabricator.services.mozilla.com/D73829
2020-05-07 08:30:22 +00:00
Jean-Yves Avenard d9b6b0b5c2 Bug 1635001 - P1. Make threading model clearer when dispatching tasks on the controller thread. r=kats
RemoteContentController::PostDelayedTask must be called on the controller thread; and all the 3 implementations are doing is dispatching the task on the current MessageLoop.

The naming and that the method was pure virtual made it a bit confusing as it gave the impression we would dispatch the task on the controller's internal thread, which wasn't the case.

So we make a generic implementation and assert to the documented use.

Differential Revision: https://phabricator.services.mozilla.com/D73828
2020-05-07 08:30:21 +00:00
Jean-Yves Avenard ddfdb206d2 Bug 1634253 - P9. Disable intermittently failing test on win64 debug. r=Gijs
The test is a permafail without any of those changes on all my windows machine so I've been unable to diagnostic what could happen.

According to :kats, the test was never rewritten to use the new APZ. Disabling on the platform where there's high intermittent failure (about 70%)

Differential Revision: https://phabricator.services.mozilla.com/D74391
2020-05-08 13:34:50 +00:00
Jean-Yves Avenard 2facca62f0 Bug 1634253 - P8. Remove use of MessageLoop in Canvas. r=mattwoodrow
MessagePool brings no benefit over the traditional nsIThread.

Additonally, replace some incorrect use of RefPtr for xpcom objects.

Differential Revision: https://phabricator.services.mozilla.com/D73827
2020-05-08 11:44:59 +00:00
Jean-Yves Avenard c07b64c378 Bug 1634253 - P7. Re-enable BackgroundHangMonitor on Compositor thread. r=froydnj
We re-enable the option to have a BackgroundHangMonitor on the compositor thread that was removed earlier..

Differential Revision: https://phabricator.services.mozilla.com/D73826
2020-05-07 08:04:30 +00:00
Jean-Yves Avenard f304da03ac Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 08:04:53 +00:00
Jean-Yves Avenard 444a610296 Bug 1634253 - P5. Make threading model clearer. r=kats
CompositorBridgeParent::ScheduleTask was always called from the compositor thread ; so make it explicit that we are dispatching the task to the compositor thread.

We inline the method instead.

Differential Revision: https://phabricator.services.mozilla.com/D73824
2020-05-07 08:04:32 +00:00
Jean-Yves Avenard f597eaee8b Bug 1634253 - P4. Have NS_NewNamedThread take a already_Refed<nsIRunnable. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D73823
2020-05-07 08:04:34 +00:00
Jean-Yves Avenard efec5e2e85 Bug 1634253 - P3. Don't cause assertion when delay is 0. r=froydnj
already_AddRefed destructor assert that it's nullptr.
DelayedDispatch check that the value passed isn't 0 and return an error code, leaving the already_AddRefed untouched.

Differential Revision: https://phabricator.services.mozilla.com/D73821
2020-05-07 08:04:37 +00:00
Jean-Yves Avenard 3e533d2327 Bug 1634253 - P2. Dissociate running a BackgroundHangMonitor from main thread. r=froydnj
This will allow to have other threads to use one such as the compositor thread.

Differential Revision: https://phabricator.services.mozilla.com/D73820
2020-05-07 08:04:39 +00:00
Jean-Yves Avenard 2494dc377e Bug 1634253 - P1. Fix constness. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D73819
2020-05-07 08:04:41 +00:00
Julian Descottes 9aafb9457c Bug 1627270 - Return TabDescriptors from RootFront::getTab r=ochameau
Depends on D73780

Differential Revision: https://phabricator.services.mozilla.com/D73905
2020-05-08 13:34:31 +00:00
Julian Descottes 79da930d9d Bug 1618695 - Wait for target to be fully destroyed before switching targets r=ochameau
Depends on D73779
Reusing the same tab descriptors across process switches means that calling
getTarget on the tab descriptor must create a new target and not return the old one.

The caching mechanism on descriptor fronts relies on the fact that the TargetFront is still alive.
When TargetFront.actorID is null, the cache is invalidated and we fetch a new target.

However the current target switching mechanism relies on an event fired very early in the target
destruction sequence. This means that when we will call getTarget, the old target might still be
alive.

We also start waiting for an event in RDMs target switching, which was not waiting for anything so far

Differential Revision: https://phabricator.services.mozilla.com/D73780
2020-05-08 13:34:05 +00:00
Julian Descottes e02c23a3a8 Bug 1618695 - Stop updating shouldCloseClient on the old local tab target r=ochameau
Depends on D73778

Flipping this boolean can create race conditions.
We set it to false and then wait for the "close" event fired by the target front
After that, in parallel:
- the target will finish initializing fronts (async)
  -> then we check shouldCloseClient
- the new target will be created (for target switching scenarios)
  -> then we flip back shouldCloseClient

We have no guarantee that we will check shouldCloseClient before it is flipped back to true.
Furthermore, this target is being destroyed, there is no reason to flip the boolean.
So removing this code seems like the best option.

Differential Revision: https://phabricator.services.mozilla.com/D73779
2020-05-08 13:33:51 +00:00
Julian Descottes 19031b50d9 Bug 1618695 - Forward local tab instance to tab descriptor r=ochameau
Depends on D73777

The filter is a special argument of TabDescriptor::getTarget that is
closely linked to local-tab. It can only be set by rootFront getTab.

However if we reuse the same tab descriptor for several targets, we need
to make sure to consistently create LocalTabTargetFronts if we are debugging
a local tab.

Usually the tab descriptor target is created via getTab and cached, but under
some circumstances, we can attempt to call getTarget on a tab descriptor from
another codepath first (eg reparent remote frame).

The localTab becomes a property of the TabDescriptorFront, and getTarget takes
no argument, which is consistent with other target descriptors.

Differential Revision: https://phabricator.services.mozilla.com/D73778
2020-05-08 13:33:36 +00:00
Julian Descottes 71babaeff5 Bug 1618695 - Remove unused options argument for TabDescriptorFront r=ochameau
Depends on D73726

Differential Revision: https://phabricator.services.mozilla.com/D73777
2020-05-08 13:33:19 +00:00
Julian Descottes 77b0d2a7ce Bug 1618695 - Add test to check that TabDescriptor survives a process change r=ochameau
Depends on D73701

Differential Revision: https://phabricator.services.mozilla.com/D73726
2020-05-08 13:33:11 +00:00
Julian Descottes 407994d12f Bug 1618695 - Stop watching for TabRemotenessChange in BrowserTabList r=ochameau
Depends on D73700

The TabDescriptorActor/Front is never destroyed, but we used to clean the map entry on TabRemotenessChange.
Removing this cleanup allows to reuse tab descriptors after a navigation.

Differential Revision: https://phabricator.services.mozilla.com/D73701
2020-05-08 12:45:29 +00:00
Julian Descottes 9f49394cce Bug 1618695 - Remove exited event and property from tab descriptor r=ochameau
This is just a cleanup, exited is not used in the tab descriptor actor

Differential Revision: https://phabricator.services.mozilla.com/D73700
2020-05-08 12:45:01 +00:00
Mihai Alexandru Michis 83052958cc Backed out 2 changesets (bug 1635050) for causing xpcshell failures in test_rejectForeignAllowList.js
CLOSED TREE

Backed out changeset 9ac5cff04d6c (bug 1635050)
Backed out changeset ca35e729ea3e (bug 1635050)
2020-05-08 16:22:04 +03:00
Henrik Skupin aa232e7905 Bug 1631089 - [remote] Force sRGB tag for generated screenshots. r=remote-protocol-reviewers,jgraham
With full color management enabled in bug 455077, generated
screenshots will not be saved as sRGB when the display has
a different ICC profile. As long as bug 1615395 hasn't been
fixed, force screenshots to be saved as sRGB.

Differential Revision: https://phabricator.services.mozilla.com/D74007
2020-05-08 09:31:36 +00:00
Andrea Marchesini 5cde5c1f6c Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions - tests, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D73616
2020-05-08 07:27:49 +00:00
Andrea Marchesini 5ac830be28 Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D73615
2020-05-08 11:51:20 +00:00
Julian Descottes 6c4f741806 Bug 1611096 - Check webprogresslistener as a fallback for non loaded documents r=rcaliman,ochameau
Depends on D62624

With the previous implementation, an uninitialized document could be returned as a root node.
Here we try to be more explicit and wait for a correct root node. However in some cases a document can remain uninitialized and will never transition to any other state.
If the document is uninitialized but is not currently loading, we should consider it as a valid root node.

Differential Revision: https://phabricator.services.mozilla.com/D62625
2020-05-08 11:55:14 +00:00
Julian Descottes b16aa572e3 Bug 1611096 - Fix tests relying on newRoot mutations r=rcaliman
Depends on D62623

`new-root` is no longer a mutation, but an event emitted by the `walker` actor.
Tests watching for mutations should be updated accordingly. They also need to call watchRootNode explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D62624
2020-05-08 11:54:06 +00:00
Julian Descottes 6f5f77fa4f Bug 1611096 - Add test for inspector target switching r=ochameau,rcaliman
Depends on D62622

Differential Revision: https://phabricator.services.mozilla.com/D62623
2020-05-08 11:53:48 +00:00
Julian Descottes db1a2da5e2 Bug 1611096 - Add watch-like API for new root event r=ochameau,rcaliman
Depends on D62617

Differential Revision: https://phabricator.services.mozilla.com/D62622
2020-05-08 11:52:14 +00:00