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

536573 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd 9bd7ba44b3 Bug 1364428 - disable stylo for valgrind builds; r=rillian 2017-05-18 18:39:39 -04:00
Nathan Froyd 64a0bd97c8 Bug 1364428 - use normsep for windows bindgen paths; r=rillian
bindgen, for whatever reason, is much happier with C:/path/to/file
than "normal" Windows paths.  If we provide normal Windows paths,
clang-sys will complain that it's unable to find libclang.dll/clang.dll,
even though we've clearly given it the correct paths by passing in an
appropriate value for LIBCLANG_PATH.
2017-05-18 18:39:39 -04:00
Bobby Holley 5751b4990d Bug 1364428 - Pass bindir instead of libdir to llvm-config on windows; r=froydnj
libdir contains libclang.lib, whereas bindir contains libclang.dll; we
want the latter on Windows for bindgen's purposes.
2017-05-18 18:39:39 -04:00
Bobby Holley f9bb028811 Bug 1364428 - Add a separate define for enabling stylo; r=rillian
This completes the separation between "build stylo" and "enable stylo"
that we started in the build system a few commits ago.
2017-05-18 18:39:39 -04:00
Bobby Holley 0cb7b89a56 Bug 1364428 - Disable packaging of stylo buidings for artifact builds; r=froydnj 2017-05-18 18:39:39 -04:00
Bobby Holley 40e3831e71 Bug 1364428 - Disable stylo for static analysis builds that use llvm38; r=froydnj 2017-05-18 18:39:39 -04:00
Bobby Holley 4d7d95016d Bug 1364428 - Pass LLVM_CONFIG everywhere; r=froydnj 2017-05-18 18:39:39 -04:00
Bobby Holley afc221f23b Bug 1364428 - Don't use LLVM_CONFIG in non-stylo builds; r=froydnj
We'll want to define LLVM_CONFIG in mozconfig.common for building Stylo
by default.  But if we do that, builds where we don't have an
appropriate clang available will complain that they can't find
llvm-config.  So we should only check if we're building Stylo.
2017-05-18 18:39:39 -04:00
Nathan Froyd 0b54cd9c51 Bug 1364428 - make stylo enabling more flexible; r=rillian
We currently have an --enable-stylo option, which when passed builds
Stylo and enables Stylo at runtime.  With an upcoming move to building
Stylo everywhere by default, but only enabling it on specific platforms,
we need something more sophisticated than a binary yes/no.

The recent WebRender support offers a model worth emulating: we modify
things so there are four possibilities:

* nothing passed (the default);
* --disable-stylo (explicitly not building);
* --enable-stylo=build (build, but do not enable by default);
* --enable-stylo (build and enable)

The last option corresponds exactly to what we have today, so there's no
change in functionality.  This patch makes the default and
--disable-stylo the same; splitting the default and --disable-stylo into
separate cases enables us to change the default behavior at some point
in the future.
2017-05-18 18:39:40 -04:00
Bobby Holley 90b93c9d35 Bug 1364428 - Add clang to more tooltool manifests; r=froydnj 2017-05-18 18:39:40 -04:00
Jason Laster 6b9faaa780 Bug 1366033 - Update Debugger Frontend (5/18). r=jdescottes 2017-05-18 12:02:00 -04:00
Jim Chen 96684881fe Bug 1365485 - Remove GeckoInterface.getDefaultChromeURI; r=droeh
Add getChromeUri/setChromeUri APIs to GeckoView, to allow each
GeckoView's chrome URI to be set individually. This lets us remove
GeckoInterface.getDefaultChromeURI. This patch also changes the default
chrome URI to the GeckoView default, and let Fennec specify its chrome
URI (browser.xul) inside GeckoApp.

MozReview-Commit-ID: Gkwbp8VyLcu
2017-05-18 18:09:20 -04:00
Jim Chen 17f8d00256 Bug 1365360 - Remove GeckoInterface.setAccessibilityEnabled; r=snorp
Instead of calling GeckoInterface.setAccessibilityEnabled, let
GeckoAccessibility dispatch an "Accessibility:Enabled" event to let
BrowserApp know whether accessibility is enabled or not.

MozReview-Commit-ID: 9ntRP5Pc3lX
2017-05-18 18:09:20 -04:00
Jim Chen b5676f0d84 Bug 1365127 - Move history accessors from GeckoAppShell to GlobalHistory; r=droeh
Move checkUriVisited, markUriVisited, and setUriTitle from
GeckoApp/GeckoAppShell to GlobalHistory. Make them static and directly
accessible from native code, so that we can remove those methods from
GeckoInterface.

MozReview-Commit-ID: JrmlfeKibaW
2017-05-18 18:09:16 -04:00
Jim Chen 5412475e7c Bug 1365126 - Move shortcut creation to static methods in GeckoApplication; r=droeh
Move shortcut creation code in GeckoApp to GeckoApplication, and make
the methods static so that we can call them without a GeckoInterface
instance. This lets us remove GeckoInterface.createShortcut.

MozReview-Commit-ID: AUnQGI02Bk
2017-05-18 18:09:05 -04:00
Jim Chen 9fe9e6e1c3 Bug 1365122 - Move launchOrBringToFront from GeckoAppShell to GeckoApp; r=droeh
Move GeckoAppShell.launchOrBringToFront to GeckoApp, so that we can use
GeckoActivityMonitor to check whether BrowserApp is the current
foreground Activity. This lets us remove GeckoInterface.isForegrounded.

MozReview-Commit-ID: CgjnaNK8OGW
2017-05-18 18:09:04 -04:00
Jim Chen 91d00481cb Bug 1365124 - 3. Don't call getGeckoInterface() in enableSensor/disableSensor/loadPluginClass; r=me
GeckoAppShell.enableSensor/disableSensor/loadPluginClass don't make use
of the GeckoInterface instance, so get rid of the getGeckoInterface()
call. r=me for trivial patch.

MozReview-Commit-ID: 24PwdQqO0oq
2017-05-18 17:40:32 -04:00
Jim Chen 1cd93ec6b6 Bug 1365124 - 2. Remove GeckoInterface.invalidateOptionsMenu; r=me
invalidateOptionsMenu is no longer called through GeckoInterface, so we
can safely remove it. r=me for trivial patch.

MozReview-Commit-ID: CFYWNq1KVc
2017-05-18 17:40:32 -04:00
Jim Chen 4c11fe72e9 Bug 1365124 - 1. Remove GeckoInterface.areTabsShown; r=me
Remove areTabsShown because it is never called through GeckoInterface.
r=me for trivial patch.

MozReview-Commit-ID: 35L4jpnJqk4
2017-05-18 17:40:32 -04:00
Jim Chen 37fd65f106 Bug 1365120 - Add WakeLockDelegate; r=rbarker
Add and use WakeLockDelegate within GeckoView code to replace the
notifyWakeLockChanged method in GeckoInterface. Fennec will use the
default implementation in GeckoView, while GeckoView users are free to
override the default implementation through
GeckoAppShell.setWakeLockDelegate.

MozReview-Commit-ID: I8S8q2RZRMu
2017-05-18 17:40:32 -04:00
Jim Chen c083d97f53 Bug 1363457 - 2. Remove GeckoApp.getEventDispatcher(); r=droeh
Use the current Activity to derive GeckoApp instances in tests, so we
no longer need GeckoApp.getEventDispatcher() at all.

Also refactor some code for getting an Activity from Context in
FindInPageBar and FormAssistPopup.

MozReview-Commit-ID: H1QNbtt9dB1
2017-05-18 17:40:32 -04:00
Jim Chen ce3a0eabe2 Bug 1363457 - 1. Remove GeckoInterface.getAppEventDispatcher(); r=me
Remove GeckoInterface.getAppEventDispatcher(), which is actually no
longer called by anyone. r=me for trivial patch.

MozReview-Commit-ID: ILjiyMuPwEB
2017-05-18 17:40:31 -04:00
Andrew Swan 068d147319 Bug 1358907 Part 1 Addon Manager hooks for startup telemetry r=kmag
Add AddonManager.getActiveAddons() which can be called during
startup to get a limited amount of information about active addons
without forcing an unwated read of the extensions database.

MozReview-Commit-ID: Fj6z5eYgYYC

--HG--
extra : rebase_source : 24980d599d21ef5bdd42e58f5247567779fbf3e5
extra : source : e032b0944c80a3ab260982f3c219ce4039f61f17
2017-05-18 13:07:14 -07:00
Sebastian Hengst c969e15a51 Backed out changeset 3a6693755c7d (bug 1365940) for bustage at nsTArray.h:568. r=backout on a CLOSED TREE 2017-05-18 23:30:55 +02:00
David Major 93dadb283c Bug 1180561 - Bustage followup - 32-bit builds don't have RtlIFTC. CLOSED TREE 2017-05-18 17:16:36 -04:00
Andrea Marchesini f392174bc4 Bug 1365940 - struct WindowAction in WorkerPrivate.cpp should be marked MOZ_RAII, r=qdot 2017-05-18 23:04:46 +02:00
Kris Maglione 8214c8e5a5 Bug 1358914: Avoid calling evalInSandbox when creating bootstrap scopes. r=rhelmer
MozReview-Commit-ID: GDxnEdxe1bu

--HG--
extra : source : e12dcb4be8551c14073c891a4c9f790e0d790215
extra : amend_source : 5bf24dbc660892119d147fca574f1601915d7e63
2017-04-15 20:13:07 -07:00
Kris Maglione 0436b5c05b Bug 1365509: Don't trigger a sync load of the add-ons DB at startup when a built-in LWT is enabled. r=rhelmer
MozReview-Commit-ID: AG0dXSnBwZ3

--HG--
extra : rebase_source : 30111612390a833c4add3bb63d0948cbe2eaf0a2
2017-05-17 13:51:42 -07:00
Kris Maglione cf88e25324 Bug 1365509: Special case handling of enabled state for XUL themes. r=rhelmer
Legacy XUL themes are treated specially for chrome registration when a
lightweight theme is enabled. In those cases, all XUL themes are marked as
disabled for the purposes of UI, but chrome for the default theme still needs
to be loaded. So we need to treate the `selectedTheme` as enabled for chrome
registration purposes regardless of its database disabled state.

MozReview-Commit-ID: EZLckFhftqt

--HG--
extra : rebase_source : e9ab9e9f0d4bdf84e31aa1c7ca77f3a5f0d49fca
2017-05-17 13:48:47 -07:00
Michael Layzell 0700aeac13 Bug 1360441 - Disable the IsHandlingUserInput timeout for execCommand(copy/cut) commands, r=ehsan
MozReview-Commit-ID: 341K1DEsVCg
2017-05-18 16:51:48 -04:00
David Major 89f6d51919 Bug 1180561 - Intercept msmpeg2vdec's JIT unwind callback on Win7 x64. r=aklotz
So we can avoid stack-walking their JIT code. They don't have unwind information so their callback just kills the process.
2017-05-18 16:15:29 -04:00
David Major 44b9e8090f Bug 1180561 - Cleanup - Remove the DLL blocklist's anonymous namespace. r=aklotz
It makes it really annoying to set breakpoints on patched_LdrLoadDll.
2017-05-18 16:05:32 -04:00
Ehsan Akhgari c390c86ef6 Bug 1365836 - Inline nsContentUtils::InternalContentPolicyTypeToExternal(OrPreload); r=mystor 2017-05-18 15:47:47 -04:00
Ehsan Akhgari 319875e358 Bug 1365830 - Don't flush layout for (0, 0) in nsGlobalWindow::ScrollTo(); r=bzbarsky
Accurate layout information for this operation isn't ever
needed.
2017-05-18 15:47:46 -04:00
Ehsan Akhgari 856b95eb52 Backout bug 1365830 for build bustage 2017-05-18 15:39:54 -04:00
Ehsan Akhgari 1a146ac9e1 Bug 1365830 - Don't flush layout for (0, 0) in nsGlobalWindow::ScrollTo(); r=bzbarsky
Accurate layout information for this operation isn't ever
needed.
2017-05-18 15:38:02 -04:00
Stephen A Pohl ce1514ce6c Bug 1365825: Fix occasional crashes on OSX when handling custom shortcuts. r=mstange 2017-05-18 15:37:01 -04:00
Ehsan Akhgari b63c15138b Bug 1365793 - Inline isxdigit() manually in the JS engine; r=luke
MSVC uses a slow, locale-aware isxdigit() implementation which
only serves to waste time here, so we need to inline this manually.

This helps improve the performance of JSON parsing on Windows.
2017-05-18 15:30:47 -04:00
Sébastien Marie 9461e33846 Bug 1364547 - Followup to fix build on OpenBSD where size_t is an unsigned long (like OSX). r=jonco 2017-05-18 11:00:00 -04:00
Robert Strong 7d35bd00fd Bug 1365861 - Minor gonk cleanup in nsUpdateService.js. r=mhowell
Removes unused gonk code
Changes use of Array.prototype.indexOf(val) != -1 to Array.prototype.includes(val)
Some very minor indentation and logging cleanup
2017-05-18 11:33:24 -07:00
Jan Keromnes 48524055f0 Bug 1365559 - Remove unused pref. r=dao
MozReview-Commit-ID: F3hCiuuk9kx
2017-05-18 19:59:47 +02:00
Michael Layzell 8a302e6be2 Bug 1357829 - Part 4: Remove TickController, r=njn
MozReview-Commit-ID: 2IHa6ybR9ug
2017-05-18 13:56:20 -04:00
Michael Layzell e62bfa945f Bug 1357829 - Part 3: Remove profiler_get_stack_top, r=njn
MozReview-Commit-ID: C4DvuOvYSrs
2017-05-18 13:56:20 -04:00
Michael Layzell 3a8384acc0 Bug 1357829 - Part 2: Use profiler_suspend_sample_thread in the background hang monitor, r=froydnj
This patch uses the profiler_suspend_sample_thread method which was added in
part 1.

With this patch, we no longer manually run code to pause the target thread,
instead using the profiler's provided code to do so. In addition, we no longer
manually walk the stack to collect native stack frames, instead relying on the
profiler's cross-platform stack walking logic.

This helps remove some of the code from ThreadStackHelper which was redundant
with the profiler. Much of the pseudostack code in ThreadStackHelper is also
redundant, and should hopefully be eliminated in a follow-up.

MozReview-Commit-ID: 4RjLHt6inH9
2017-05-18 13:56:20 -04:00
Michael Layzell dd07e2a56b Bug 1357829 - Part 1: Expose profiler_suspend_and_sample_thread, r=njn
This patch performs a refactoring to the internals of the profiler in order to
expose a function, profiler_suspend_and_sample_thread, which can be called from a
background thread to suspend, sample the native stack, and then resume the
target passed-in thread.

The interface was designed to expose as few internals of the profiler as
possible, exposing only a single callback which accepts the list of program
counters and stack pointers collected during the backtrace.

A method `profiler_current_thread_id` was also added to get the thread_id of the
current thread, which can then be passed by another thread into
profiler_suspend_sample_thread to sample the stack of that thread.

This is implemented in two parts:

1) Splitting SamplerThread into two classes: Sampler, and SamplerThread.

Sampler was created to extract the core logic from SamplerThread which manages
unix signals on android and linux, as well as suspends the target thread on all
platforms. SamplerThread was then modified to subclass this type, adding the
extra methods and fields required for the creation and management of the actual
Sampler Thread.

Some work was done to ensure that the methods on Sampler would not require
ActivePS to be present, as we intend to sample threads when the profiler is not
active for the Background Hang Reporter.

2) Moving the Tick() logic into the TickController interface.

A TickController interface was added to platform which has 2 methods: Tick and
Backtrace. The Tick method replaces the previous Tick() static method, allowing
it to be overridden by a different consumer of SuspendAndSampleAndResumeThread,
while the Backtrace() method replaces the previous MergeStacksIntoProfile
method, allowing it to be overridden by different consumers of
DoNativeBacktrace.

This interface object is then used to wrap implementation specific data, such as
the ProfilerBuffer, and is threaded through the SuspendAndSampleAndResumeThread
and DoNativeBacktrace methods.

This change added 2 virtual calls to the SamplerThread's critical section, which
I believe should be a small enough overhead that it will not affect profiling
performance. These virtual calls could be avoided using templating, but I
decided that doing so would be unnecessary.

MozReview-Commit-ID: AT48xb2asgV
2017-05-18 13:56:20 -04:00
Jordan Lund 9bf70967d9 Bug 1365588 - fix l10n repacks for DevEdition on Beta, gecko, DONTBUILD, r=rail
MozReview-Commit-ID: 1arksrFhsv9

--HG--
rename : browser/config/mozconfigs/linux32/l10n-mozconfig => browser/config/mozconfigs/linux32/l10n-mozconfig-devedition
rename : browser/config/mozconfigs/linux64/l10n-mozconfig => browser/config/mozconfigs/linux64/l10n-mozconfig-devedition
rename : browser/config/mozconfigs/macosx64/l10n-mozconfig => browser/config/mozconfigs/macosx64/l10n-mozconfig-devedition
rename : browser/config/mozconfigs/win32/l10n-mozconfig => browser/config/mozconfigs/win32/l10n-mozconfig-devedition
rename : browser/config/mozconfigs/win64/l10n-mozconfig => browser/config/mozconfigs/win64/l10n-mozconfig-devedition
rename : testing/mozharness/configs/single_locale/dev-mozilla-beta.py => testing/mozharness/configs/single_locale/dev-mozilla-beta_devedition.py
rename : testing/mozharness/configs/single_locale/linux64.py => testing/mozharness/configs/single_locale/linux64_devedition.py
rename : testing/mozharness/configs/single_locale/linux.py => testing/mozharness/configs/single_locale/linux_devedition.py
rename : testing/mozharness/configs/single_locale/macosx64.py => testing/mozharness/configs/single_locale/macosx64_devedition.py
rename : testing/mozharness/configs/single_locale/mozilla-beta.py => testing/mozharness/configs/single_locale/mozilla-beta_devedition.py
rename : testing/mozharness/configs/single_locale/win32.py => testing/mozharness/configs/single_locale/win32_devedition.py
rename : testing/mozharness/configs/single_locale/win64.py => testing/mozharness/configs/single_locale/win64_devedition.py
extra : rebase_source : c1242ce513624d519756d1628896f3343a047d00
extra : amend_source : f434761fe2f88cfc4af97229d5bdbe07becf75a2
extra : source : 9cee0e8b00d28d7e977df6ee3e1adc9680004b8d
2017-05-17 17:24:01 -07:00
Ryan VanderMeulen 96f477fd99 Bug 1366004 - Update pdf.js to version 1.8.363. r=bdahl 2017-05-18 13:40:06 -04:00
Lee Salzman b138a8ec44 Bug 1365935 - add Moz2D Factory methods for making an FT_Library. r=jrmuizel
MozReview-Commit-ID: 7gQuVrl38aT
2017-05-18 13:16:06 -04:00
L. David Baron 51adf3206b Bug 1365831 - Replace assertion that non-display SVG containers are only reflowed with NS_FRAME_IS_DIRTY with a real test of the condition. r=heycam
The primary patch in bug 1308876 causes frames to be reflowed less often
with NS_FRAME_IS_DIRTY, particularly when multiple passes of reflow are
required for the frame or one of its ancestors (which is generally the
case for a document that ends up not having scrollbars).  This change
causes this assert to fire on various SVG tests such as
layout/reftests/svg/svg-integration/conditions-outer-svg-01.xhtml .
This happens because the outer SVG with conditional processing (in this
test, systemLanguage="x") is reflowed due to its parent resizing,
without NS_FRAME_IS_DIRTY set.  This is a relatively normal thing to
happen during reflow; we just didn't have any tests that exercise it.

This patch adds a crashtest that triggers the assertion through the same
mechanism, but with a dynamic change, rather than depending on the
non-dirty reflow triggered by bug 1308876.  (I confirmed locally that
this test does trigger the assertion without this patch, when run in the
crashtest harness.)

I think fundamentally the assertion isn't valid, and we should instead
be testing the condition that it asserts.

MozReview-Commit-ID: D8hjAbjKyuL

--HG--
extra : transplant_source : %98C%3A%B1%93jb%E7%3D%81%19%97%A6%04%0F%88%8B%D2%A35
2017-05-18 09:24:33 -07:00
Matt Howell 024b5bad85 Bug 1361326 - Delay-load DLL's used by the 7-zip self-extractor. r=rstrong
MozReview-Commit-ID: 7O0NJBVxaLQ

--HG--
extra : source : dc853c57ba1fdb220a3731c9d00d0b60bbbf18f2
2017-05-05 15:33:18 -07:00