Commit Graph

536559 Commits

Author SHA1 Message Date
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
Jon Coppeard
ebfe174007 Bug 1365654 - Fix style bustage r=me 2017-05-18 16:47:53 +01:00
Dale Harvey
043815b052 Bug 1365906 - Increase URL bar and the search bar text size for all Windows versions. r=dao
MozReview-Commit-ID: FMu4bta3lgV
2017-05-18 17:34:40 +02:00
Dão Gottwald
82f369c7bd Bug 1365683 followup: move urlbar-searchbar.inc.css include to the right place so that it works for non-Photon
MozReview-Commit-ID: GFTtOBlSLnj
2017-05-18 17:26:09 +02:00
Jon Coppeard
e85f5ed76c Bug 1365654 - Add a move constructor to HashTable::Enum r=luke 2017-05-18 16:22:00 +01:00
Michelangelo De Simone
c6ca6e9675 Bug 1357911 - Baldr: update names section format (r=luke)
MozReview-Commit-ID: 5xIiHiB6ico

--HG--
extra : rebase_source : 23999118a544fbb2b54f346bd499a7c750ee566d
2017-05-18 09:51:02 -05:00
Nicolas B. Pierron
9df25fcb32 Bug 1364118 - List JS bytecode cache preferences in all.js. r=mrbkap 2017-05-18 14:12:15 +00:00
Carsten "Tomcat" Book
067f1fa700 Merge mozilla-central to mozilla-inbound 2017-05-18 14:59:47 +02:00
Bob Owen
a86639fa9d Bug 1175267 Part 2: Ensure that process does not switch for file:// XPI installs. r=mossop 2017-05-18 13:31:44 +01:00
Bob Owen
d01f9cd1f7 Bug 1175267 Part 1: Handle file:// URI xpi files in chrome code directly instead of routing through content browser. r=mossop 2017-05-18 13:31:44 +01:00
Carsten "Tomcat" Book
24c443a440 merge mozilla-inbound to mozilla-central a=merge 2017-05-18 14:19:18 +02:00
cku
d528aa4d56 Bug 1205475 - Part 2. Prevent multiple EffectSet property look up. r=mattwoodrow
Functions like BuildDisplayListForStackingContext or BuildDisplayListForChild look
up EffectSet property several times in callees, such as IsTransformed() or
HasOpacity(), which is time wasting.

We should look up EffectSet just once, and pass the found one to all callees
that need it.

MozReview-Commit-ID: GZywm2UcpU7

--HG--
extra : rebase_source : 21f5dd0076a90d876a6df35eee2b886844b44f0a
2017-05-17 15:13:12 +08:00
cku
19af87ab38 Bug 1205475 - Part 1. Hold MAY_HAVE_OPACITY_ANIM/ MAY_HAVE_TRANSFOMR_ANIM information in EffectSet. r=mattwoodrow
FRAME_STATE_BIT of nsFrame and nsINode::mBoolFlags are both full, we need to
find another place to hold MAY_HAVE_OPACITY information.

nsINode::mSlots might be a choice, but since we always use this information in
painting, memory footprint of nsINode will become larger after this change.

So I decide to put this information right in EffectSet. The drawback of storing
this information in EffectSet is, although unnecessary Effect look-up is
prevented, we still need EffectSet property look-up in each time
HasOpacityInternal call, so we need Part 2.

Conceptually, Part 1 and Part 2 are independent.

MozReview-Commit-ID: 6sfBFSHjxQb

--HG--
extra : rebase_source : 394141cec3b44bb352297a0add8f9763d815bddb
2017-05-16 19:11:04 +08:00
Evan Tseng
deefcfad44 Bug 1365259 - Update the result not found message. r=mconley
MozReview-Commit-ID: 3vmUP0GVbgy

--HG--
extra : rebase_source : f8fb8a2bdca49e029b632ab9129c9af0d8edbaab
2017-05-17 18:36:54 +08:00
Carsten "Tomcat" Book
318136aacc Backed out changeset 420cf7ba089f (bug 1360493) for eslint failure in own test 2017-05-18 09:13:05 +02:00