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

626283 Коммитов

Автор SHA1 Сообщение Дата
Timothy Guan-tin Chien c5dd96d375 Bug 1507894 - Enable UA Widget in beta/release r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13014

--HG--
extra : moz-landing-system : lando
2018-11-27 21:00:07 +00:00
Sylvestre Ledru 9ea4a3d5c0 Bug 1508472 - Part 3: Third batch of comment fix-ups in preparation for the tree reformat (layout/) r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13125

--HG--
extra : moz-landing-system : lando
2018-11-27 21:39:24 +00:00
Ehsan Akhgari 7c937c2747 Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073

--HG--
extra : moz-landing-system : lando
2018-11-27 21:36:18 +00:00
Henrik Skupin 4c3369924e Bug 1298233 - [firefox-ui-tests] Skip TestAppInfo.test_valid_properties for artifact builds. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D13093

--HG--
extra : moz-landing-system : lando
2018-11-27 20:08:18 +00:00
Kartikaya Gupta 586636a517 Bug 1510026 - Send a sync IPC round-trip to the compositor after every crashtest. r=mattwoodrow
This sends a sync IPC message to the compositor after each crashtest, to
ensure that any stuff inflight in the compositor settles down. In
particular this should round-trip through all of the relevant compositor
threads (i.e. for WebRender it should ensure the scene builder, render
backend, and renderer threads all get flushed).

Differential Revision: https://phabricator.services.mozilla.com/D13033

--HG--
extra : moz-landing-system : lando
2018-11-27 19:46:23 +00:00
WR Updater Bot 9634d3a566 Bug 1510221 - Re-generate FFI header. r=kats
Depends on D13111

Differential Revision: https://phabricator.services.mozilla.com/D13112

--HG--
extra : moz-landing-system : lando
2018-11-27 19:20:07 +00:00
WR Updater Bot 6e2c5ceb9d Bug 1510221 - Update webrender to commit 195582a8dc5b9c6d26d54ce8d70060ccc8f423d8 (WR PR #3337). r=kats
https://github.com/servo/webrender/pull/3337

Differential Revision: https://phabricator.services.mozilla.com/D13111

--HG--
extra : moz-landing-system : lando
2018-11-27 19:19:54 +00:00
Alexandre Poirot 0b2acc477f Bug 1506546 - Remove unused AddonClient module. r=jdescottes
MozReview-Commit-ID: ExKMirBQJ3K

Depends on D12578

Differential Revision: https://phabricator.services.mozilla.com/D12951

--HG--
extra : moz-landing-system : lando
2018-11-27 19:16:34 +00:00
Alexandre Poirot a9fa13cfb7 Bug 1506546 - Use protocol.js to fetch WebExtension target actor. r=yulia
We were dipatching the "connect" request manually, whereas we should be using
protocol.js specifications. It also help getting rid of another use of "form"
instead of "front"/activeTab in Target class.

MozReview-Commit-ID: IOH4mDprAVL

Depends on D12577

Differential Revision: https://phabricator.services.mozilla.com/D12578

--HG--
extra : moz-landing-system : lando
2018-11-27 19:16:51 +00:00
Alexandre Poirot fb70cfb9ed Bug 1506546 - Refactor about:debuggings. r=yulia,jdescottes
I did a dedicated patch for converting both about:debuggings as it is slightly more
complex as we have to tweak redux data, wrappers, mocks.
This patch also convert a manual "reload" request being done by about:debugging
and instead use protocol.js front to do it.
Also, I moved isLegacyTemporaryExtension to the front as it depends on accessing the form
and it should be better to keep form processing to the fronts, if possible.

MozReview-Commit-ID: 16qZkuCBp9b

Depends on D12576

Differential Revision: https://phabricator.services.mozilla.com/D12577

--HG--
extra : moz-landing-system : lando
2018-11-27 19:17:11 +00:00
Alexandre Poirot 2118292883 Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576

--HG--
extra : moz-landing-system : lando
2018-11-27 19:17:48 +00:00
Alexandre Poirot cca3ec2d57 Bug 1506546 - Implement RootFront.getAddon and use it to retrieve a single AddonTargetFront. r=yulia
MozReview-Commit-ID: nWTkfbF9qb

Depends on D12574

Differential Revision: https://phabricator.services.mozilla.com/D12575

--HG--
extra : moz-landing-system : lando
2018-11-27 19:18:06 +00:00
Alexandre Poirot 78feeeba2d Bug 1506546 - Change the spec type of listAddons and accomodate using the front rather than the form. r=yulia
MozReview-Commit-ID: 4MAjszUiGUZ

Depends on D12573

Differential Revision: https://phabricator.services.mozilla.com/D12574

--HG--
extra : moz-landing-system : lando
2018-11-27 19:18:28 +00:00
Alexandre Poirot fe4a5688be Bug 1506546 - Refactor getAddonActorForId test helper. r=yulia
MozReview-Commit-ID: A7JxzO7rhhe

Differential Revision: https://phabricator.services.mozilla.com/D12573

--HG--
extra : moz-landing-system : lando
2018-11-27 19:18:46 +00:00
Rob Thijssen d5df040c64 Bug 1509973 - move reftest from gecko-t-win10-64-hw to gecko-t-win10-64-gpu r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D12972

--HG--
extra : moz-landing-system : lando
2018-11-27 16:27:32 +00:00
Brian Hackett 3b62690341 Bug 1510105 - Save/restore JSReturnOperand when doing debug mode OSR after a VM call returns, r=tcampbell.
--HG--
extra : rebase_source : b20c636ec65a7771c18feb67545a4e2afdfb6083
2018-11-27 05:57:15 -10:00
Brian Hackett 0e10d8b139 Bug 1510675 - Allow seeking to page errors in console, r=jlast.
--HG--
extra : rebase_source : 9d1a544dd3373b3bd7ed0d7cf972dd58edbd7876
2018-11-28 06:30:50 -10:00
Brian Hackett 05a3dfff56 Bug 1510684 - Advance iterator in maybeIonFrameRecovery, r=nbp.
--HG--
extra : rebase_source : 1a5dcf2a9708db013ba7e898001e4cb0de3b75d6
2018-11-28 10:02:07 -10:00
Boris Zbarsky 4297d8370d Bug 1491925. Remove the various instrumentation we added to pin down InnerSetNewDocument failures. r=mccr8.
This is a straight backout of (in that order) bug 1505468, bug 1503664, bug
1501479, bug 1499150, bug 1496805, and the second part of bug 1493849.  The
first part of bug 1493849 was a backout of earlier instrumentation, and that
should stay.

At this point we know we're hitting OOM inside the JS engine while trying to
define properties on Document.prototype, so all this MOZ_CRASH instrumentation
is no longer needed.
2018-11-28 18:24:53 -05:00
Mats Palmgren e376f2d1c6 Bug 1509903 part 2 - Make the remaining nsTextFrame virtual methods 'final' unless they are overridden by nsContinuingTextFrame. r=emilio 2018-11-29 00:17:25 +01:00
Mats Palmgren 7cdfa1649e Bug 1509903 part 1 - Make nsTextFrame::IsFrameSelected() 'final' and inline nsIFrame::IsSelected() to de-virtualize the IsFrameSelected() call in some cases. r=emilio
In particular, in nsCharClipDisplayItem::IsSelected() we know that
the frame must be a nsTextFrame (or nsContinuingTextFrame) which
means nsTextFrame::IsFrameSelected() can be called directly now.
2018-11-29 00:17:25 +01:00
Mats Palmgren 0196497399 Bug 1510674 - Remove a few unnecessary #include "nsCSSFrameConstructor.h". r=emilio
There are no uses of any frame-ctor things in these files AFAICT.
2018-11-29 00:17:25 +01:00
Wes Kocher 43e4c14643 Bug 1506132 - Only __getitem__() in dicts that include the desired key to avoid printing tracebacks r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D12998

--HG--
extra : moz-landing-system : lando
2018-11-27 13:22:06 +00:00
Erica Wright 7d7e997a07 Bug 1507981 - Land string early, awaiting decision on the rest of the patch. r=flod
Differential Revision: https://phabricator.services.mozilla.com/D12694

--HG--
extra : moz-landing-system : lando
2018-11-27 19:04:32 +00:00
Raphael Pierzina 69647842f3 Bug 1509915 - Add helper function for waiting for a single ping to telemetry-tests-client; r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D13100

--HG--
extra : moz-landing-system : lando
2018-11-27 18:55:09 +00:00
Ekanan Ketunuti 495265ab08 Bug 1509577 - Add words to en-US dictionary. r=ehsan 2018-11-27 18:09:38 +07:00
arthur.iakab af07f9b9d4 Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE
Backed out changeset c3fe435e473a (bug 1509362)
Backed out changeset 6494840edc17 (bug 1509591)
Backed out changeset 123b5d5a3637 (bug 1509591)
Backed out changeset bce195f98895 (bug 1509930)
Backed out changeset 66db13126408 (bug 1500950)
Backed out changeset 3b5fffae2d2b (bug 1500949)
Backed out changeset 71c3b3677db8 (bug 1500948)
Backed out changeset 784b3b56e2ab (bug 1500944)
Backed out changeset 0bad27401ddb (bug 1500944)
Backed out changeset e0f95dd96d54 (bug 1448426)
Backed out changeset c60fa11538db (bug 1487249)
Backed out changeset 0190d4ffa54f (bug 1487249)
Backed out changeset 3cd10aba9130 (bug 1487249)
2018-11-28 02:57:32 +02:00
arthur.iakab e36b9a7f34 Backed out 4 changesets (bug 1477117) for causing hazard build bustage on payments/PaymentRequest.cpp:1066 CLOSED TREE
Backed out changeset 3b473ca68a57 (bug 1477117)
Backed out changeset 8ffc94b44c3e (bug 1477117)
Backed out changeset ddaac3335514 (bug 1477117)
Backed out changeset 1809212f5f29 (bug 1477117)
2018-11-28 02:28:36 +02:00
Jeff Gilbert 1690a0092c Bug 1510467 - Preserve purposely-formatted code from clang-format. (webgl, gfx/gl)
MozReview-Commit-ID: 2U2oqQ53nTZ
2018-11-27 15:26:46 -08:00
Nika Layzell a2ba7bfc01 Bug 1509362 - Don't crash when constructing actor during content shutdown, r=jld
When shutting down a content process, we call `Close` on the
`IToplevelProtocol`. This causes the MessageChannel to be `Close`-ed,
which in turn sends a `GOODBYE_MESSAGE`:
https://searchfox.org/mozilla-central/rev/876022232b15425bb9efde189caf747823b39567/ipc/glue/MessageChannel.cpp#2852

This message is intercepted on the I/O thread in the content process,
before any code is informed in content, and used to set the
`mChannelState` property to `ChannelClosing`:
https://searchfox.org/mozilla-central/rev/876022232b15425bb9efde189caf747823b39567/ipc/glue/MessageChannel.cpp#1176

Once this state has been set, which is performed as soon as the
message is received, whether or not other messages have been processed
yet, no messages can be sent back to the parent process. This is
usually what causes the 'Too late to send/recv' message spam in the
console, as we're still trying to send messages at this time.

Usually this is fine - the message send fails, but we gracefully
recover, and the process begins shutting down like normal.
Unfortunately, child actor constructors currently have code
automatically generated in them which causes a process crash if the
send fails. As it's impossible for the main thread to know that the
channel has been closed ahead of time (due to this happening
out-of-band), we can then cause random content process crashes
during shutdown due to actor construction.

Unfortunately, we can't just destroy the actor, as our caller may
(and often do) depend on the actor reference they gave us still being valid
after calling Send*Constructor. Fortunately, if a message send failed, it means
we're in the process of being shut down.

This patch handles this by ignoring ctor send errors, and treating them like
messages which successfully were queued to send, but got lost due to the other
side hanging up. The actor will be gracefully destroyed in DestroySubtree when
its manager is destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D12695
2018-11-27 18:09:54 -05:00
Nika Layzell 6bda5576a0 Bug 1509591 - Part 2: Remove now-unnecessary mIPCOpen variable, r=mccr8
This should eliminate most variables which can be replaced with IPCOpen().

Differential Revision: https://phabricator.services.mozilla.com/D12957
2018-11-27 18:09:51 -05:00
Nika Layzell 0f1b2fff2a Bug 1509591 - Part 1: Maintain an IPCOpen variable in IProtocol, r=mccr8
Previously there were many different inconsistent implementations of this
variable across many different actors. This adds a unified implementation of
this variable inside of IProtocol.

Differential Revision: https://phabricator.services.mozilla.com/D12956
2018-11-27 18:09:49 -05:00
Nika Layzell 8098a0e23f Bug 1509930 - Simplify CycleCollectWithLogsChild's lifetime, r=jld
Previously this actor would call `Send__delete__` in its destructor, meaning
that the lifetime of the actor is a bit hard to follow. This changes the actor
to instead use a separate object for XPCOM, and use refcounting universally.
This should also help with the transition to universally refcounted actors.

Differential Revision: https://phabricator.services.mozilla.com/D12955
2018-11-27 18:09:46 -05:00
Nika Layzell 69812b8403 Bug 1500950 - Expose rootFrameLoader on WindowGlobalParent, r=farre
This attribute was not exposed due to Bug 1489301.

Differential Revision: https://phabricator.services.mozilla.com/D9404
2018-11-27 18:09:44 -05:00
Nika Layzell d0c4db64c6 Bug 1500949 - Include innerWindowId/outerWindowId in PWindowGlobal, r=farre
This will be useful as both an ID for PWindowGlobal, as well as a mechanism for
taking advantage of already synchronized information. As an example, LoadInfo
objects contain the inner window IDs of the window requesting the load, which
can now be used to obtain a reference to the corresponding WindowGlobalParent
in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D9396
2018-11-27 18:09:42 -05:00
Nika Layzell d303c334d2 Bug 1500948 - Expose BrowsingContext on nsFrameLoader objects, r=farre
This should make BrowsingContext more usable by making it much easier to obtain
for a given frame or browser. BrowsingContext and nsFrameLoader should have
the same lifetime.

Differential Revision: https://phabricator.services.mozilla.com/D9395
2018-11-27 18:09:40 -05:00
Nika Layzell c3a800be72 Bug 1500944 - Part 2: Expose WindowGlobal actors to Chrome JS, r=farre
This serves 2 purposes:
1. Provides an object corresponding to an inner window which Chrome JS can hold onto.
2. Provides the object to JS which Chrome JS per-window actors will be attached to.
3. Provides useful information to Chrome JS in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D9394
2018-11-27 18:09:37 -05:00
Nika Layzell 8407efd877 Bug 1500944 - Part 1: Store the set of active WindowGlobalParent objects in ChromeBrowsingContext, r=farre
This allows getting the set of all window globals for a given browsing context.
This is less useful at the moment as the active window global is not exposed as
such. That will be added as a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D9393
2018-11-27 18:09:35 -05:00
Nika Layzell 9f648dce32 Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-27 18:09:33 -05:00
Nika Layzell 693b3e66f3 Bug 1487249 - Part 3: Add the WindowGlobal actor representing a single window global, r=bzbarsky
This actor can be used for communicating with individual frames, without
depending on walking the tree in the content process.

This is not yet complete. No tests have been written for it, the
WindowGlobalParent objects need to be exposed to chrome JS, and a form of JS
actors should be installed under them.

In addition, BrowsingContextChrome objects should be updated to allow access to
the current WindowGlobalParent in that context.

Differential Revision: https://phabricator.services.mozilla.com/D4623
2018-11-27 18:09:27 -05:00
Nika Layzell 6c3a674ab4 Bug 1487249 - Part 2: Add a new PInProcess actor to manage intra-thread actors, r=mccr8
This will be useful as a basis for asynchronous actors which would like to exist
both when crossing the process boundary (managed by PContent), and when
displaying an in-process window.

Differential Revision: https://phabricator.services.mozilla.com/D4622
2018-11-27 18:07:34 -05:00
Nika Layzell 9eb2fe63a2 Bug 1487249 - Part 1: Allow MessageChannel objects to be created within a thread, r=mccr8
To create a more generic interface for interacting both within the main thread
of the parent process and between the parent and child processes, it would be
nice to support IPDL actors within the main thread of the parent process. This
requires the underlying MessageChannel actor to support intra-thread links.

This change adds support for intra-thread links to the underlying MessageChannel
object using ThreadLink, and an extra boolean flag.

Differential Revision: https://phabricator.services.mozilla.com/D4620
2018-11-27 18:07:32 -05:00
hawaiianchimp 53d1150f9c Bug 1500320 - Updating the omnibox keyword regex to allow trailing slashes r=robwu,aswan
Previously the omnibox keyword would not allow trailing slashes, such as go/
Chrome allows this keyword, and Firefox should allow this too.

Differential Revision: https://phabricator.services.mozilla.com/D12242

--HG--
extra : moz-landing-system : lando
2018-11-26 23:16:22 +00:00
Tom Prince 4f07d7aa2e Bug 1482395: [mozrelease] Generate whats new blob and populate it during release; r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D12708

--HG--
extra : moz-landing-system : lando
2018-11-26 17:51:23 +00:00
Tom Prince b416c4d4b2 Bug 1482395: [mozrelease] Add support for generating update metadata; r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D12707

--HG--
extra : moz-landing-system : lando
2018-11-27 18:47:14 +00:00
Mike Conley 74d08667b2 Bug 1509571 - Fix profiling for the sessionrestore_no_auto_restore Talos test. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D12789

--HG--
extra : moz-landing-system : lando
2018-11-27 18:36:40 +00:00
alwu 682f483866 Bug 1509956 - Remove incorrect rebasing result in MSDM::loopingDecoding r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12965

--HG--
extra : moz-landing-system : lando
2018-11-27 16:00:22 +00:00
Matthew Gaudet 578daf5837 Bug 1491827: Initial SMDOC for callWithABI r=nbp DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D13003

--HG--
extra : moz-landing-system : lando
2018-11-27 17:31:44 +00:00
Emilio Cobos Álvarez aa3d33ef4e Bug 1509989 - Make sure that CutContents doesn't remove nodes that isn't supposed to remove. r=mats
Depends on D13071

Differential Revision: https://phabricator.services.mozilla.com/D13072

--HG--
extra : moz-landing-system : lando
2018-11-27 18:02:17 +00:00
Emilio Cobos Álvarez a40dd78966 Bug 1509989 - Make sure the start container is safe to access in nsRange::InsertNode. r=mats
Depends on D13070

Differential Revision: https://phabricator.services.mozilla.com/D13071

--HG--
extra : moz-landing-system : lando
2018-11-27 16:56:26 +00:00