Commit Graph

584251 Commits

Author SHA1 Message Date
Stephen A Pohl
54c0a8cff6 Bug 1362303: Avoid crashes when dragging on macOS due to failed allocations of large shmem segments. r=glandium 2018-03-06 13:21:54 -05:00
Andreas Pehrson
8edbfe79d6 Bug 1436074 - Reduce turn-off timer by time since we turned on. r=jib
MozReview-Commit-ID: 2AvnJxUSTmy

--HG--
extra : rebase_source : a9251389dac3fd0d0552de28463decb80fa3de3f
extra : source : 1aff350b83b8d504dbaa3d5d8d4fe6cd99512786
extra : histedit_source : 6ffb6b65d3e0a8ecf2744d9b3e758de417c3d727
2018-02-14 16:35:45 +01:00
Andreas Pehrson
411e973fab Bug 1436694 - Clarify that MediaEngineSources can be double-stopped. r=padenot
This is already true for the audio sources. It should be for all.

Crashtests showed that shutting down amidst the async init can lead to
double-stops. It is impossible to completely protect yourself from them without
waiting for all queued operations to resolve (results to become known) before
taking action. Doing that would require a refactor in MediaManager and cause
higher latency for device operations so it seems like the wrong way to go.

MozReview-Commit-ID: 5Cci6whzTL7

--HG--
extra : rebase_source : f4dccbc5a56e33ecc54d63ddefbae43d90ee95d4
extra : source : f5cc71d38e4a7c0e4db830242c1d454fcbdb9e48
extra : histedit_source : 3cd8615054ce9935047e4168c3a472152792886b
2018-02-22 12:23:06 +01:00
Andreas Pehrson
c9e4a19d1e Bug 1436694 - MozPromisify device initialization and move it to SourceListener. r=jib
This so that SourceListener can keep its internal state in sync with the result
of the start operation.

MozReview-Commit-ID: Cgl5TFnpCeW

--HG--
extra : rebase_source : e2cec60544efcc27c9c8c077fbdb013a8f3b848c
extra : source : 6c38cc382d2114199842dddb14097be8b6d9a961
extra : histedit_source : 00ef8da067eb484b8c5926d008f00f1e9f006e6f
2018-02-16 11:55:27 +01:00
Andreas Pehrson
4327e2bf5c Bug 1436694 - Make a PostTask variant that returns a MozPromise. r=jib, r=jya
MozReview-Commit-ID: 76mLpntaU5v

--HG--
extra : rebase_source : d6122976252f27f49c3115d9be43959b93141b3a
extra : source : ae428bfb913fb929da4d83864e58727177ccd655
extra : histedit_source : 8d71a8bc1fac3741694aebc3df5246b61f31f10d
2018-02-15 15:18:12 +01:00
Andreas Pehrson
5a5674705c Bug 1280099 - Retain image size after stopping MediaEngineDefaultVideoSource. r=jib
MozReview-Commit-ID: Kacol64Jo0F

--HG--
extra : rebase_source : 6c57c7eff9c1adbe84dc2815482ff02ccd44a39d
extra : histedit_source : 3acea4ea361d8c73122b6facdcd5d6b7a41601f2
2018-03-06 18:11:38 +01:00
Paolo Amadini
992ad9c294 Bug 851471 - Decommission nsIDownloadManager. r=mak
MozReview-Commit-ID: HfqdrdJcLrh

--HG--
extra : rebase_source : 0b48ae94d9786c2bea1a3f1af6b5ffe4412f1f13
extra : source : c69bd311217f4e5e119cdcdaf9d77baefe72f0be
2018-03-06 13:16:07 +00:00
Johan Lorenzo
0e0caacad5 Bug 1433459 - part 3: Fix bad scopes for aliases task r=mtabara
--HG--
extra : rebase_source : c8cef8a0c03a00a1ac18f98d52d5a71204a9b17d
2018-03-06 18:00:01 +01:00
Nathan Froyd
2bd0c8e0a2 Bug 1414901 - part 2 - poison Maybe<T> instances when not in use; r=Waldo 2018-03-06 11:35:50 -05:00
Nathan Froyd
2ac6e45b48 Bug 1414901 - part 1b - eliminate alignment requirements for poisoning memory; r=Waldo
mozWritePoison secretly depended on the passed-in pointer being aligned
as though it were a pointer to uintptr_t, as it used bare stores to
C-casted pointers to accomplish poisoning.  But this is an unnecessary
limitation: we can use memcpy and rely on the compiler to appropriately
inline the store to an unaligned store instruction if necessary.
2018-03-06 11:35:50 -05:00
Nathan Froyd
450618b0af Bug 1414901 - part 1a - make mozWritePoison respect its documentation; r=Waldo
The documentation for mozWritePoison says that only an even number of
sizeof(uintptr_t) bytes are overwritten; any trailing bytes are not
touched.  This documentation doesn't correspond to how the function
actually works.  The function as written will happily overwrite trailing
bytes and any bytes not contained in the object, if the passed-in size
isn't divisible by sizeof(uintptr_t).  Let's fix that.
2018-03-06 11:35:50 -05:00
Csoregi Natalia
3758b8fe3e Backed out 3 changesets (bug 1436469) for Gecko Decision task failure. CLOSED TREE
Backed out changeset a03dea399278 (bug 1436469)
Backed out changeset 370c9dbdd572 (bug 1436369)
Backed out changeset b3b9609544ec (bug 1436369)

--HG--
rename : taskcluster/ci/repo-update-bb/kind.yml => taskcluster/ci/repo-update/kind.yml
2018-03-06 17:36:19 +02:00
Simon Fraser
8dd0c7d4aa Bug 1436469 Fix task definition r=callek CLOSED TREE
--HG--
extra : amend_source : 16927e88ffeca3b658cc287b71bb7d22e36ea380
2018-03-06 15:20:50 +00:00
Neil Deakin
2f736750c6 Bug 1440146, remove unused menubutton-item binding, r=bgrins 2018-03-06 10:10:34 -05:00
Simon Fraser
a1890ef267 Bug 1436369 Add taskcluster periodic file updates r=callek
Reviewers: Callek

Reviewed By: Callek

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

--HG--
extra : rebase_source : f7f6d69c092903118b6a41aa8b69fe0419910253
2018-03-06 15:10:46 +00:00
Simon Fraser
c9bb5232b8 Bug 1436369 Move buildbot periodic file updates to clearer name r=callek
Summary:
We'll be adding the new periodic file updates task to run in parallel. This patch
moves the existing one to make it clear it's running on buildbot, so we don't get confused
later on.

Reviewers: Callek

Reviewed By: Callek

Bug #: 1436369

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

--HG--
rename : taskcluster/ci/repo-update/kind.yml => taskcluster/ci/repo-update-bb/kind.yml
extra : rebase_source : c1386a05c378589efdd508199d97cb8121308686
2018-03-06 15:09:48 +00:00
Christian Holler
022546f573 Bug 1442716 - [caps] Handle empty origin gracefully in FUZZING. r=baku 2018-03-02 19:48:49 +01:00
Christian Holler
0d3ff9caec Bug 1440627 - Use fallible setLength in StructuredCloneHolder. r=baku 2018-02-23 14:57:00 +01:00
Christian Holler
a7aaab24d3 Bug 1440402 - Handle several unsafe accesses in dom/ipc gracefully for fuzzing. r=baku 2018-02-23 14:51:26 +01:00
Christian Holler
2d642a506c Bug 1440397 - Handle unexpected principal tag gracefully in FUZZING. r=baku 2018-03-02 19:01:00 +01:00
Andreas Tolfsen
4534dde032 Bug 1443466 - Reference --marionette-port in --connect-existing docs. r=me
MozReview-Commit-ID: 16ZCieH8Pm4
2018-03-06 13:08:17 +00:00
Andreas Tolfsen
6abe1c6703 Bug 1443466 - Link to firefox-source-docs.m.o in geckodriver README. r=me
MozReview-Commit-ID: CONSsWFMQiI
2018-03-06 13:08:16 +00:00
Andreas Tolfsen
b7fda6e441 Bug 1443466 - Improve --marionette-port documentation. r=me
Explains how --marionette-port interacts with --connect-existing.

MozReview-Commit-ID: 8WwM7wHXfcn
2018-03-06 13:08:16 +00:00
Jason Laster
0815223c4d Bug 1443193 - Release debugger v19.2 (remove reference to babel-traverse);r=jdescottes
MozReview-Commit-ID: 1vdPSsZIWp0

--HG--
extra : rebase_source : 26cc2e5d706bbd436f66c181738585f9b2a9a099
2018-03-06 10:57:05 +01:00
Csoregi Natalia
0ad2abb8e9 Backed out changeset 7aef35642e5f (bug 1436156) for failing ipc/chromium/src/base/id_map.h:60. CLOSED TREE 2018-03-06 13:50:36 +02:00
Andreas Tolfsen
4ecf111696 Bug 1443180 - Move Marionette README contents to firefox-source-docs.m.o. r=me
MozReview-Commit-ID: 5t4ofKmGvyC
2018-03-06 11:04:00 +00:00
Andreas Tolfsen
1151b11940 Bug 1443180 - Move Marionette contribution advice to firefox-source-docs.m.o. r=me
Because testing/marionette/CONTRIBUTING.md is hard to find and not indexed
anywhere, this patch moves all its content to the online documentation
at https://firefox-source-docs.mozilla.org/testing/marionette/marionette/.

The file has been split up in four documents:

  * Contributing.md, which covers introduction to new contributors
    and a brief summary of the Marionette architecture.

  * Building.md, covering build instructions.

  * Patches.md, explaining how to write and get patches reviewed.

  * Testing.md, which explains how to test a patch.

MozReview-Commit-ID: HuEAls8Kpfg
2018-03-06 11:03:59 +00:00
Tom Ritter
4d71507eac Bug 1442984 - Correct pointer math in timer fuzzing. r=baku
Negative input times would carry a negative sign all the way
through to where we do pointer math. That's bad, and embaressing.

As far as I know, there was no way to have the resulting value be
outside [-32, 28]. We coerce it down to [0, 28] to always stay in
bounds.
2018-03-05 13:04:32 -06:00
Christoph Diehl
bb37ad9aba Bug 1436156 CHECK() in Chromium IPC code should be fatal when not fuzzing. r=jld 2018-03-06 00:26:06 +01:00
Tiberius Oros
f3c2b2ecf8 Merge autoland to mozilla-central. a=merge 2018-03-06 11:52:14 +02:00
Cosmin Sabou
1611e7fc4f Merge mozilla-central to inbound. a=merge on a CLOSED TREE 2018-03-06 06:31:37 +02:00
Cosmin Sabou
c17d867e25 Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.js => browser/modules/AsyncTabSwitcher.jsm
2018-03-06 06:27:48 +02:00
Cosmin Sabou
e3fc61986f Backed out 3 changesets (bug 1387976) because of merge conflicts on AsyncTabSwitcher.jsm.
Backed out changeset d91b6a40b32a (bug 1387976)
Backed out changeset b708ab55bc72 (bug 1387976)
Backed out changeset 7958b0ccbe0b (bug 1387976)
2018-03-06 06:25:54 +02:00
Kannan Vijayan
627eb6ae9a Bug 1411415 - r=bz r=fitzgen 2018-03-05 19:27:02 -05:00
Jared Wein
2961eba0d6 Bug 1436423 - Reduce the schedule pressure limit closer to the values that users are reporting. r=mconley
Note that this value, 300, is still far above the 95% threshold that telemetry is reporting (59 milliseconds) so this won't be noticeable to most users. The > 1% of users who are having this issue will benefit greatly from this change.

MozReview-Commit-ID: Bd51gjc5z83

--HG--
extra : rebase_source : 4a9e96eb555e8021012a3a06cb76e03413a8da20
2018-03-05 14:09:39 -05:00
Jared Wein
ef2d1dbaa6 Bug 1443229 - Add a 'command' event listener for the urlbar search suggestions checkbox. r=Gijs
This was inadvertently removed when the preference attribute was removed to clean up a race condition.

MozReview-Commit-ID: 8yNPMwkGS3u

--HG--
extra : rebase_source : f6381588a47bc0bbd9c2b087ded55a85d131ec03
2018-03-05 16:17:25 -05:00
Botond Ballo
084c2d5c2d Bug 1443231 - Another follow-up to fix a debug assertion in the gtest. r=botond
MozReview-Commit-ID: 4p1zurPLCRB

--HG--
extra : rebase_source : 078b5aa8d558bc2c8bdd13ebe142706287c8123b
2018-03-05 17:00:46 -05:00
Jim Blandy
b1a56f5e14 Bug 1438121: Part 13: Make LiveSavedFrameCache::Entry's members const. r=fitzgen
MozReview-Commit-ID: GbJhE9nylaa

--HG--
extra : rebase_source : 07d6f2480dec2e384b4b28c3ab9e5f23cc718fe5
extra : amend_source : 2e22e23b0294d8e011a2fa162b1ed7a7ac612dc3
2018-03-02 23:56:26 -08:00
Olli Pettay
51b6aa1b21 Bug 1066965, make contentEditable and spellchecking to work in ShadowDOM, r=mrbkap 2018-03-06 09:34:40 +09:00
Tom Ritter
3c7ad292ee Bug 1443252 - Make nsGlobalWindowInner/Outer final to reduce build times. r=mystor
In Bug 1332680 we got a list of classes and methods we could mark 'final',
as suggested by an LTO build of gcc. One of the items on that list was
nsGlobalWindowInner and nsGlobalWindowOuter, with quite a lot of virtual
calls:

> dom/base/nsGlobalWindowInner.h:206:7: warning: Declaring type 'struct nsGlobalWindowInner' final would enable devirtualization of 483 calls
> dom/base/nsGlobalWindowOuter.h:164:7: warning: Declaring type 'struct nsGlobalWindowOuter' final would enable devirtualization of 143 calls

After trying it out, we saw a modest improvement to a single Talos tes
(displaylist mutate got 4-8.5% better). That's not the interesting
thing though.

For Linux and OSX (and some flavors of Android) build times were reduced
by half across the board. They're a bit variable of course, but 30-70%
improvements are shown by Talos. Windows and other flavors of Android
show 10-15% improvements.

MozReview-Commit-ID: GlEGBt2JOTt
2018-03-02 09:30:03 -06:00
Masayuki Nakano
9d71742b36 Bug 662591 - HTMLEditor should set caret to start of first editable text node or before first editable inline node r=m_kato
Currently, HTMLEditor doesn't initialize caret position when it gets focus by
itself in most cases.  Only when it's in designMode, it may move caret to the
first visible (not checking CSS actually).

In most cases, caret position is adjusted when EditorBase::InitializeSelection()
calls Selection::SetAncestorLimiter().  If selected range is outside of
new limiter, it moves caret to start of the new limiter.  However, this is
really different behavior from the other browsers.  The other browsers try
to move caret to the first editable text node or before the first editable
content such as <img>, <input>, etc.

This difference causes a serious incompatible issue with Draft.js.  It doesn't
initialize caret position when it gets focus but it assumes that caret is
always set to before <br> element if there is no other content.

So, let's try to behave as what other browsers do as far as possible.

This patch makes editor behave as:
* if selection is already in the editing host except start of the editing host,
  does nothing.
* if there is non-editable element before any editable node, move caret to
  start of the editing host.
* if there is editable text node or element node which cannot have a text node,
  move its start or before it.
* if there is no editable nodes which can contain text nodes, move caret to
  start of the editing host.

Note that before applying this patch, in designMode, BeginningOfDocument() used
document element instead of <body> element.  Therefore, it may set odd position
if <head> element has some text nodes with <script> or <style>.  However,
this doesn't make sense and for making more consistent behavior between
designMode and contenteditable, this patch makes it use editing host (it's
<body> element if it's in designMode).

MozReview-Commit-ID: 5neYoTMq6Cc

--HG--
extra : rebase_source : c4d06b6864a221d7cd2833a007d73f7d67821e95
2018-03-02 14:20:25 +09:00
Cosmin Sabou
385d483eb3 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-06 06:30:21 +02:00
Narcis Beleuzu
8c7d795b53 Backed out 2 changesets (bug 1439777) for xpcshell failures on /test_errorhandler_2.js
Backed out changeset d99402ad9ecc (bug 1439777)
Backed out changeset 1af3426dc956 (bug 1439777)
2018-03-06 04:43:41 +02:00
Hiroyuki Ikezoe
97b67fe961 Bug 1442150 - Re-enable test_running_on_compositor.html on Android. r=birtles
Now the test works fine with the new microtask handling.

MozReview-Commit-ID: EhFcN2XAClw

--HG--
extra : rebase_source : f1066bf09df07c1bcbfe5dc5dcc59596530424d0
2018-03-06 11:01:49 +09:00
Hiroyuki Ikezoe
795bd7d475 Bug 1442150 - Wait for one more frame if the animation starts at the current timeline time in the first test case. r=birtles
MozReview-Commit-ID: DVOiauPDqhM

--HG--
extra : rebase_source : 2e9dfd0b7dbef48e92fbe48a5166ec6f3aafcabf
2018-03-06 10:55:05 +09:00
Hiroyuki Ikezoe
16a0b8373a Bug 1442150 - Move startsRightNow into testcommon.js and rename it to animationStartsRightNow. r=birtles
MozReview-Commit-ID: 58umbOjy4di

--HG--
extra : rebase_source : eb6810658f09c848c38e11f7872fb7326021f1a3
2018-03-06 10:35:26 +09:00
Hiroyuki Ikezoe
4bc9a2e83a Bug 1442150 - Rewrite test_running_on_compositor.html with async/await. r=birtles
MozReview-Commit-ID: Cdk7kQWcbXU

--HG--
extra : rebase_source : cc9b0e753c6b7804c7f0233cab0a2d3135118f28
2018-03-06 10:35:26 +09:00
Bryce Van Dyk
3114bcb097 Bug 868797 - Update libnestegg to be more tolerant of blocks with negative timecodes. r=kinetik
Bump nestegg to commit 89ed0daf2edccb25f744e5faff88b8b4684adceb. This brings
across tolerance of blocks with negative timecodes. Instead of rejecting these
the timecodes are now set to 0.

Also brings across a change to appease clang in ne_read_block_additions by
adding an explicit assignment to data_size.

MozReview-Commit-ID: 7J8YPUUwSBp

--HG--
extra : rebase_source : f55bd987465baf21f383095b60e9148349936fef
2018-02-28 16:34:05 -05:00
Botond Ballo
1b4474359e Bug 1443231 - Follow-up to fix warning-as-error on Windows (CLOSED TREE). r=botond
MozReview-Commit-ID: 52PVwcjRVu3

--HG--
extra : rebase_source : 1c2b39bdcce30f47d1b675615a35c4573556459e
2018-03-05 16:38:17 -05:00
Narcis Beleuzu
34b2bf4c13 Backed out changeset a8130e46c530 (bug 1434483) for ESlint failures on browser_change_shipping.js. CLOSED TREE 2018-03-05 23:50:02 +02:00