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

630812 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin ea87c4dedf Bug 1504756 - [marionette] Remove default timeout from PollPromise. r=ato
By default PollPromise has to behave similar to a normal Promise
and wait forever until it gets resolved or rejected.

Depends on D13662

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:12:24 +00:00
Henrik Skupin 74c45eb2ed Bug 1504756 - [marionette] Use waitForObserverTopic when waiting for observer notifications. r=ato
Depends on D13661

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:14:22 +00:00
Henrik Skupin a384666194 Bug 1504756 - [marionette] Use waitForMessage() to wait for an expected message manager message. r=ato
Depends on D13660

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:12:17 +00:00
Henrik Skupin 2575586fb6 Bug 1504756 - [marionette] Use waitForEvent() when waiting for events. r=ato
Depends on D13659

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:10:47 +00:00
Henrik Skupin be3136d0ab Bug 1504756 - [marionette] Add executeSoon() to run tasks on the main thread. r=ato
To be closer to other test harnesses which are using executeSoon()
to run a task on the main thread, this patch adds the same
method to Marionette's sync module.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 10:10:14 +00:00
James Graham 679f0aa4c4 Bug 1517322 - Allow LSAN suppressions path to be set from wptrunner command line, r=mccr8
Previously we assumed that the path for the lsan_suppressions.txt file was the same as the prefs path,
which is correct in CI but wrong for local builds. This adds a --lsan-dir command line argument and sets
it in mach to the correct value for local builds and uses the prefs directory as a default for backwards
compatibility

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

--HG--
extra : moz-landing-system : lando
2019-01-09 20:39:40 +00:00
Csoregi Natalia 13506c036a Backed out 8 changesets (bug 181137) for bustage on FragmentOrElement.cpp:1751. CLOSED TREE
Backed out changeset 99a977d519a0 (bug 181137)
Backed out changeset 65a4b245e851 (bug 181137)
Backed out changeset 5385d5fd9b8b (bug 181137)
Backed out changeset 83bec02c21d9 (bug 181137)
Backed out changeset b7ab59bf545e (bug 181137)
Backed out changeset b6fc7a332db7 (bug 181137)
Backed out changeset 654fdbad67db (bug 181137)
Backed out changeset 90a1ff49b6b1 (bug 181137)

--HG--
rename : dom/base/ContentIterator.h => dom/base/nsContentIterator.cpp
rename : editor/spellchecker/FilteredContentIterator.cpp => editor/spellchecker/nsFilteredContentIterator.cpp
rename : editor/spellchecker/FilteredContentIterator.h => editor/spellchecker/nsFilteredContentIterator.h
2019-01-10 11:42:27 +02:00
Masayuki Nakano dcd72cf37f Bug 1514975 - Synthesize mousemove event before contextmenu event caused by long tap r=smaug,kats
Chrome synthesizes mousemove event and related events (mouseover, mouseenter,
etc) when context menu event is fired by long tap.  This allows users to open
submenu which is opened by moving mouse cursor over a link.

So, this fix improves accessibility of our users on some websites which are
designed for desktop.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 09:09:42 +00:00
Ehsan Akhgari 946ce15a46 Bug 1518959 - Don't format Java files by default; r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D16115

--HG--
extra : moz-landing-system : lando
2019-01-10 09:05:54 +00:00
Masayuki Nakano 796ceb094f Bug 181137 - part 8: Make ContentIteratorBase and its subclasses non-refcountable r=smaug
This patch makes ContentIteratorBase, PostContentIterator, PreContentIterator
and ContentSubtreeIterator classes non-refcountable because most users can
create their instances in stack and such users may be in a hot path.  So,
we can save a lot of cost of instantiation.

Unfortunately, only ScriptableContentIterator creates one of the concrete
classes and needs to destroy it properly.  Therefore, its
EnsureContentIterator(), destructor, traverse and unlink code becomes messy.
However, ScriptableContentIterator was designed for automated tests and we
need to maintain it not so many times.  Therefore, improvement of other
users must be worthwhiler than this demerit.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:50:41 +00:00
Masayuki Nakano 91a9670801 Bug 181137 - part 7: Get rid of nsIContentIterator interface r=smaug
Now, nobody requires nsIContentIterator interface.  So, we can get rid of it.

Unfortunately, there is no macro to keep the inherited class,
ContentSubtreeIterator, in the cycle collection to make it keep managing
ContentSubtreeIterator::mRange without nsISupports interface.  Therefore, this
patch moves it into ContentIteratorBase temporarily.  Anyway, the following
patch makes those classes not refcountable.  At that time, this issue will be
fixed.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:47:54 +00:00
Masayuki Nakano d15a70b2c2 Bug 181137 - part 6: Make nsFilteredContentIterator not derived from nsIContentIterator r=smaug
nsFilteredContentIterator is used only by TextServicesDocument and there is
no reason that it should be derived from nsIContentIterator except consistency.
Additionally, it's now only class which is derived from nsIContentIterator
except ContentIteratorBase.  So, after this change, we can get rid of
nsIContentIterator completely.

This patch moves nsFilteredContentIterator into mozilla namespace and
makes TextServicesDocument treat FilteredContentIterator directly instead of
nsIContentIterator interface.

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

--HG--
rename : editor/spellchecker/nsFilteredContentIterator.cpp => editor/spellchecker/FilteredContentIterator.cpp
rename : editor/spellchecker/nsFilteredContentIterator.h => editor/spellchecker/FilteredContentIterator.h
extra : moz-landing-system : lando
2019-01-10 08:47:11 +00:00
Masayuki Nakano bdc602b92f Bug 181137 - part 5: Make all users of PostContentIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of PostContentIterator can access it directly.  This patch
makes them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:46:32 +00:00
Masayuki Nakano 6f5a9fb98a Bug 181137 - part 4: Make all users of PreContentIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of PreContentIterator can access it directly.  This patch makes
them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:46:25 +00:00
Masayuki Nakano e4fd546fbd Bug 181137 - part 3: Make all users of ContentSutreeIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of ContentSubtreeIterator can access it directly.  This patch
makes them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:45:07 +00:00
Masayuki Nakano d877816981 Bug 181137 - part 2: Make nsContentIterator class is a base class of other concrete classes r=smaug
Currently, ContentIterator is created with a bool flag to decide whether the
instance lists up post-order or pre-order.  However, this is not clear.  For
example:

nsCOMPtr<nsIContentIterator> preOrderIter = new ContentIterator(false);

This is not clear whether this does right thing or not.

This patch makes any users can create PostContentIterator for post-order
iterator, and creates PreContentIterator for pre-order iterator.  So, now,
each creator needs to writhe above as:

nsCOMPtr<nsIContentIterator> preOrderIter = new PreContentIterator();

or

nsCOMPtr<nsIContentIterator> postOrderIter = new PostContentIterator();

Additionally, with this change, if each user starts to use concrete classes
directly, compiler can stop using virtual calls because of all concrete
classes are now marked as "final".

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

--HG--
extra : moz-landing-system : lando
2019-01-10 08:44:24 +00:00
Masayuki Nakano 8c30926700 Bug 181137 - part 1: Move nsContentIterator and nsContentSubtreeIterator into mozilla namespace r=smaug
First, we should move nsContentIterator and nsContentSubtreeIterator into
mozilla namespace and then, remove "ns" prefix.

Additionally, this patch separates the definition of the classes into
ContentIterator.h and exposes it as "mozilla/ContentIterator.h".  This allows
everybody access those concrete classes.

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

--HG--
rename : dom/base/nsContentIterator.cpp => dom/base/ContentIterator.cpp
rename : dom/base/nsContentIterator.cpp => dom/base/ContentIterator.h
extra : moz-landing-system : lando
2019-01-10 08:43:50 +00:00
Brian Birtles 9b742685c0 Bug 1518982 - Don't register animations with playbackRate == 0 with a timeline; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D16153

--HG--
extra : moz-landing-system : lando
2019-01-10 06:56:09 +00:00
Masayuki Nakano 95635bbb30 Bug 1499430 - Make PresShell::PageMove() use result of nsFrameSelection::GetFrameToPageSelect() when PresShell::GetScrollableFrameToScroll() returns nullptr r=smaug
If there is no scrollable frame, PresShell::GetScrollableFrameToScroll() returns
nullptr.  However, even when we don't expand selection, we need to move caret
in current selection root.  Therefore, it should call
nsFrameSelection::CommonPageMove() with the result of
nsFrameSelection::GetFrameToPageSelect() to move caret.

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

--HG--
rename : layout/base/tests/test_expanding_selection_per_page.html => layout/base/tests/test_moving_and_expanding_selection_per_page.html
extra : moz-landing-system : lando
2019-01-10 05:02:56 +00:00
Eitan Isaacson e708455671 Bug 1518805 - Don't update bounds on gone or defunct accessibles. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D16064

--HG--
extra : moz-landing-system : lando
2019-01-10 06:59:16 +00:00
Andreas Pehrson 7577f27956 Bug 1518834 - Don't disable pulling when stopping microphone source. r=drno
Differential Revision: https://phabricator.services.mozilla.com/D16148

--HG--
extra : moz-landing-system : lando
2019-01-10 06:13:25 +00:00
Marco Zehe b4ebbe90ae Bug 1515186 - Always calculate group position for all children of an accessible after a tree mutation, r=Jamie
Previously, if we had children a, b, c, and d, then removed b, the group position for c and d would potentially be marked as dirty, but a would not. This caused the check for the availability of previous group info to return outdated information.

This patch now always forces the update of all children's group position when a children move has occurred, since it potentially affects all the children, not just the ones after it. In addition, accGroupInfo::Update() now checks if the previous and next siblings that are being used as shortcuts have dirty group info, and are being used only if they do not.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 05:59:01 +00:00
Kyle Machulis d9173f8644 Bug 1518991 - Make nsIPrincipal URI getter infallible; r=bholley
nsIPrincipal::GetURI returns NS_OK for all implementations. Make it
infallible so we can clean up status checks in C++ code that uses principals.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 05:44:33 +00:00
Tooru Fujisawa 8c733563b0 Bug 1518662 - Clear pending exception when leaving promise rejection tracker callback. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D16003

--HG--
extra : moz-landing-system : lando
2019-01-10 05:17:06 +00:00
Mike Hommey a0b6688faa Bug 1518726 - Apply https://reviews.llvm.org/D56475 to clang. r=froydnj
Firefox uses multiple processes. It has intentional leaks, and when
running with ASAN, we have suppressions to eliminate those. When running
ASAN builds through CI tests, when Firefox exits, each of the processes
(parent and child) exits and goes through its leaks and when there are
(which is a given), the ASAN runtime runs llvm-symbolizer to symbolicate
and match against suppressions. So each process runs llvm-symbolizer. At
the same time.

Some of the addresses to symbolicate are in libxul. Which contains all
DWARF info, making it a ~1GB monster. Oh, and because you're lucky,
things align perfectly such that libxul size is a multiple of the page
size. That makes llvm-symbolizer pread() the file instead of mmap()ing
it. Did I say there are multiple processes? So suddenly you have n
processes simultaneously allocating and filling 1GB of memory each, on
CI machines that have enough memory for the job they usually run, but
not enough for a sudden rush of n GB.

And things go awry. When you're lucky and the OOM killer didn't take
care of killing the CI entirely, symbolication couldn't happen and the
suppressions are not matched, and leaks are reported.

This all turns out it originates in how llvm-symbolicate chooses between
pread() and mmap(), which turns out is just defaults not being made for
binary files.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 00:18:28 +00:00
Timothy Guan-tin Chien 005832324b Bug 1454357 - Remove the scrollbox binding r=NeilDeakin
With all the previous efforts, the scrollbox binding now does nothing but to create an inner box element holding the scrolling content.

It turned out that inner box can be easily removed. The padding set by the document sheets can be moved to the srollbox element directly.

The only gotcha is XULScrollElement::ScrollByIndex() -- it can now reach the child item frames directly from the scrolled frame.

Depends on D15169

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

--HG--
extra : moz-landing-system : lando
2019-01-09 20:12:26 +00:00
shindli e980a1693d Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-10 06:05:38 +02:00
shindli 9e30b4d75a Merge inbound to mozilla-central. a=merge 2019-01-10 06:03:36 +02:00
edward.i.wu 06030d9eb9 Bug 1370077 - Avoid deprecation message when background.persistent is true r=robwu,aswan
Add support for enumerations to boolean types, and use it to only show
a deprecation message when background.persistent is false.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 01:11:44 +00:00
Tooru Fujisawa e872cc3650 Bug 1510586 - Integrate clang-format into BinAST code generator. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D15059

--HG--
extra : moz-landing-system : lando
2019-01-10 02:53:50 +00:00
Andreas Pehrson 8b813e9e30 Bug 1515068 - Allow UpdateSrcStreamTime while paused. r=jya
This can legitimately happen while paused since the watchmanager calling this
is dispatching the calls. As such they're out of sync with the paused state,
and we need to allow updating the time while paused.

FireTimeUpdate does ignore the call if the time hasn't actually been updated,
so the only impact from this is that we could do a lot of unnecessary
dispatching while paused without noticing.

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

--HG--
extra : moz-landing-system : lando
2019-01-09 17:15:18 +00:00
Brian Grinstead 31787227c8 Bug 1441935 - Remove browser XBL binding r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D15594

--HG--
extra : moz-landing-system : lando
2019-01-10 01:45:45 +00:00
Brian Grinstead f6c12a437b Bug 1441935 - Modifications on top of the generated MozBrowser Custom Element r=mconley
In order to make the history easier to navigate, this changeset includes the
modifications required to make <xul:browser> actually work as a Custom Element,
and switches the app to use it instead of the XBL browser.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 01:45:43 +00:00
Brian Grinstead 5b6fac1c1c Bug 1441935 - Copy browser.xml and import the generated MozBrowser Custom Element r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D14910

--HG--
rename : toolkit/content/widgets/browser.xml => toolkit/content/widgets/browser-custom-element.js
extra : moz-landing-system : lando
2019-01-10 01:45:41 +00:00
Jed Davis 3e70bf3ff1 Bug 1487287 - Move child process launch off the I/O thread. r=mccr8
Launching processes takes enough time that we should avoid blocking the
parent process's IPC I/O thread for it; it's less bad for responsiveness
than blocking the main thread, but it's not good.

On Windows we need to use a dedicated thread, because the sandbox isn't
thread-safe and it asserts that the same thread is used for every
launch.  Otherwise, a thread pool is used.  (Or, in the Web Replay
middleman process, where there isn't enough of XPCOM for any of this,
launching the actual content processes remains on the I/O thread.)

Depends on D15886

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

--HG--
extra : moz-landing-system : lando
2019-01-09 02:52:10 +00:00
Jed Davis 47e47c7561 Bug 1487287 - Fix thread-safety of crash reporter pid map. r=gsvelto
Depends on D8945

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

--HG--
extra : moz-landing-system : lando
2019-01-08 23:53:37 +00:00
Jed Davis 3fe8a630c1 Bug 1487287 - Set profiler env vars in child processes without side-effecting the parent process. r=mstange
We can directly set environment variables for the child process on
all platforms now, instead of changing the parent's environment and
inheriting the changes.  This simplifies memory management, but more
importantly it's necessary for thread safety to allow launching
processes from a thread pool.

Depends on D8944

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

--HG--
extra : moz-landing-system : lando
2019-01-08 23:53:36 +00:00
Mike Hommey e489736f60 Bug 1518703 - Remove R_386_PC32 check. r=froydnj,ted
The test is actually redundant with the TEXTREL check in
check_binary.py (R_386_PC32 relocations will only happen as text
relocations)

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

--HG--
extra : moz-landing-system : lando
2019-01-10 00:07:53 +00:00
Matt Woodrow b2e6afc9ac Bug 1516702 - Skip building nsDisplaySVGGeometry display items when they have opacity:0. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D15891

--HG--
extra : moz-landing-system : lando
2019-01-09 23:06:28 +00:00
Botond Ballo 7c6946581e Bug 1518953 - Remove non-ASCII characters from comments in nsLayoutUtils.cpp. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D16113

--HG--
extra : moz-landing-system : lando
2019-01-09 23:21:44 +00:00
Dave Townsend 07e80de57e Bug 1518575: Remove unused nsIToolkitProfileService.lockProfilePath. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15965

--HG--
extra : moz-landing-system : lando
2019-01-09 15:17:13 +00:00
Dave Townsend e1283ad6c2 Bug 1518846: Fix missing includes in nsUpdateDriver.cpp. r=rstrong
Adds some includes that are needed for functions used in nsUpdateDriver.cpp.

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

--HG--
extra : moz-landing-system : lando
2019-01-09 17:27:21 +00:00
Ehsan Akhgari 3d2f05466f Bug 1518853 - Fix ContentBlockingLog::HasBlockedAnyOfType() to actually take into whether the recorded log entry is a blocked event or an allowed exception; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D16069

--HG--
extra : moz-landing-system : lando
2019-01-09 18:55:46 +00:00
Edwin Gao 0f390a7703 Bug 1514075 - added updated hostutils for macOS r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D16111

--HG--
extra : moz-landing-system : lando
2019-01-09 22:59:12 +00:00
Mike Hommey 3dc15d5c35 Bug 1516374 - Upgrade clang to 7.0.1. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D15346

--HG--
extra : moz-landing-system : lando
2019-01-09 23:01:46 +00:00
WR Updater Bot b8486fffd6 Bug 1518899 - Update webrender to commit d3edc30cf95d3c96fd8308969b22062698a0f6ce (WR PR #3493). r=kats
https://github.com/servo/webrender/pull/3493

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

--HG--
extra : moz-landing-system : lando
2019-01-09 22:16:02 +00:00
Dana Keeler 9b29562c1f bug 1518679 - install 32-bit libsecret so secret storage tests can use libsecret on 32-bit test systems r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D16085

--HG--
extra : moz-landing-system : lando
2019-01-09 22:43:10 +00:00
Gabriele Svelto 8a2aee6162 Bug 1517730 - Enable the crash reporter by default on Windows/AArch64 builds r=ted
Differential Revision: https://phabricator.services.mozilla.com/D15763

--HG--
extra : moz-landing-system : lando
2019-01-09 22:39:22 +00:00
Brindusan Cristian d8250d1175 Backed out changeset b66f64e5709d (bug 1516702) for mochitest failures on test_pointer-events-1a.xhtml. 2019-01-10 00:31:36 +02:00
Nico Grunbaum b1e55aa134 Bug 1518735 - reformat PeerConnection stats test r=mjf
reformating the PeerConnection stats test to make it easier to maintain

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

--HG--
extra : moz-landing-system : lando
2019-01-09 22:04:57 +00:00