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

22103 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher 8fa84ca644 Merge inbound to central, a=merge
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Wes Kocher 7365007b83 Merge autoland to central, a=merge
MozReview-Commit-ID: EnErkgbuNge
2017-01-26 16:08:33 -08:00
Wes Kocher c3cc3b6407 Backed out 13 changesets (bug 1296767) for xpcshell failures a=backout CLOSED TREE
Backed out changeset 41ed77788333 (bug 1296767)
Backed out changeset 1c0c9289b532 (bug 1296767)
Backed out changeset 50294db1d871 (bug 1296767)
Backed out changeset 26c065f79c54 (bug 1296767)
Backed out changeset 0362a78d6978 (bug 1296767)
Backed out changeset 4e71cf94e4ee (bug 1296767)
Backed out changeset f6f59447d22a (bug 1296767)
Backed out changeset 6c9b792cc296 (bug 1296767)
Backed out changeset 46a52b10a868 (bug 1296767)
Backed out changeset 5d70d87d2a8f (bug 1296767)
Backed out changeset 8219686be6a2 (bug 1296767)
Backed out changeset 0a989b0cea67 (bug 1296767)
Backed out changeset 9f59a0b75c1f (bug 1296767)

MozReview-Commit-ID: 2XBNsd8JrZL

--HG--
extra : amend_source : 1afafaa8127fcebac31ce1d7743dc16872fa0522
2017-01-26 11:16:12 -08:00
Justin Wood d01d00bce4 Bug 1333921 - Taskcluster Android l10n nightlies broken due to missing API key. r=mshal a=bustage
MozReview-Commit-ID: CxiqFKZZpaz

--HG--
extra : source : ea60d075a998cf5037cd9c31bf5ee8d0719bd816
2017-01-26 09:37:14 -05:00
Phil Ringnalda 39e57631eb Merge m-c to m-i 2017-01-25 20:48:39 -08:00
Eugen Sawin 714ebcecb4 Bug 1323429 - [2.1] Remove the context reference from Clipboard. r=jchen 2017-01-26 15:52:21 +01:00
Jim Chen caaf58697a Bug 1333589 - 3. Convert SiteIdentityPopup observers to events; r=sebastian
Convert the "Permissions:*" and "Session:Reload" observers to events
that go through GlobalEventDispatcher.
2017-01-25 18:57:32 -05:00
Jim Chen 174b21ef30 Bug 1333589 - 2. Convert SiteIdentityPopup events to bundle events; r=sebastian
Convert the events used in SiteIdentityPopup to bundle events. UI thread
events are used because the listeners perform operations on the UI
thread.
2017-01-25 18:57:31 -05:00
Jim Chen a8edf60a6c Bug 1333589 - 1. Use GeckoBundle for DoorHanger.OnButtonClickListener; r=sebastian
Convert the onButtonClick method to provide GeckoBundle as the response.
2017-01-25 18:57:31 -05:00
Jim Chen f6a51590a8 Bug 1333588 - Convert PageActions events to bundle events; r=sebastian
Convert events used in PageActions to bundle events. UI thread events
are used because the listeners require the UI thread. The observer
notifications from Java to Gecko are converted to events as well.
2017-01-25 18:57:31 -05:00
Jim Chen 2e56d7739e Bug 1333586 - Convert AccountsHelper events to bundle events; r=sebastian
Convert events used in AccountsHelper to bundle events. Most events are
kept as Gecko thread events, but a couple events that start activities
are converted to UI thread events.
2017-01-25 18:57:31 -05:00
Jim Chen a396212751 Bug 1333581 - Convert IntentHelper events to bundle events; r=sebastian
Convert events used in IntentHelper to bundle events. UI thread events
are used for most events because the listeners perform operations on
Intent objects, which is best done on the UI thread. For
"Intent:GetHandlers", use a Gecko thread event because it's possible we
want a synchronous callback response.
2017-01-25 18:57:31 -05:00
Jim Chen 296c0b8b43 Bug 1330439 - 4. Convert home panel observers to events; r=sebastian
Convert nsIObserverService observers used in home panels to events that
go through EventDispatcher.
2017-01-25 18:53:58 -05:00
Jim Chen dfcdeb5ce1 Bug 1330439 - 3. Convert HomePanelsManager events to bundle events; r=sebastian
Convert events used in HomePanelsManager to bundle events. Background
thread events are used because HomePanelsManager processes panel changes
in the background thread. Changing to background thread events also lets
us make the change queue a simple ArrayList instead of a
ConcurrentLinkedQueue, because there is no longer multiple threads
involved.
2017-01-25 18:53:58 -05:00
Jim Chen 768eb3905e Bug 1330439 - 2. Convert HomeBanner events to bundle events; r=sebastian
Convert the events in HomeBanner to bundle events. "HomeBanner:Shown" is
removed in favor of using a callback.
2017-01-25 18:53:58 -05:00
Jim Chen 6738ee9866 Bug 1330439 - 1. Convert PanelInfoManager events to bundle events; r=sebastian
Convert the "HomePanels:Data" event to a GeckoBundle/BundleEventListener
event. UI thread event is used because the listener invokes the callback
on the UI thread.
2017-01-25 18:53:58 -05:00
Jim Chen a1a65941ef Bug 1330411 - 2. Convert FindInPageBar events to bundle events; r=sebastian
Convert events used in FindInPageBar to GeckoBundle/BundleEventListener
events. UI thread events are used because the listener performs UI
operations. FindInPageBar also sends some events like "FindInPage:Find"
from Java to Gecko; those events will be converted in another bug.
2017-01-25 18:53:58 -05:00
Jim Chen 59b3ffa09c Bug 1330411 - 1. Convert ActionBarHandler observers to events; r=sebastian
Convert observers in ActionBarHandler.js to events that go through
WindowEventDispatcher. "TextSelection:Get" now replies through the
callback interface rather than a "TextSelection:Data" event. The patch
also adds new lazy-loading events in browser.js to replace the
lazy-loading observers that ActionBarHandler relied on.
2017-01-25 18:53:58 -05:00
Jim Chen 9a9702cab0 Bug 1330409 - Convert CastingApps events to bundle events; r=sebastian
Convert the events used in MediaCastingBar and ChromeCastPlayer to
GeckoBundle/BundleEventListener events. UI thread events are used
because the listener performs operations on the UI thread.
2017-01-25 18:53:57 -05:00
Grigory Kruglov 4f96795b02 Bug 1331091 - Document behaviour of special "experiment" telemetry sessions r=liuche
MozReview-Commit-ID: KKT2maMyDqj

--HG--
extra : rebase_source : 338e6b7cdde9cf61c1e2b7ab74d02d68c512363a
2017-01-25 12:28:41 -08:00
Edouard Oger 0c915a6f46 Bug 1296767 part 1 - Remove J-PAKE from Sync. r=markh
MozReview-Commit-ID: iD4OJv436i

--HG--
extra : rebase_source : 1653284a3b2e014719a7eb37588f99df868e2060
2017-01-10 13:47:24 -05:00
Andrzej Hunt 121fe4fced Bug 1325375 - Make PopupContextMenu visible on Android 4 Asus tablets r=sebastian
MozReview-Commit-ID: 1XSiiyQPAXb

--HG--
extra : rebase_source : 6d04d2642129b6e4e5822bd5580b2ff53145a011
2017-01-24 12:28:57 -08:00
Edouard Oger 2458eff863 Bug 1333494 - Bump Android Sync tab records TTL to 21 days. r=Grisha
MozReview-Commit-ID: DpuIkqPlztd

--HG--
extra : rebase_source : b869f21a78b5de1001d58777e8604faaa05b66d3
2017-01-24 13:25:09 -05:00
Carsten "Tomcat" Book 58b6101373 Merge mozilla-central to autoland 2017-01-26 12:37:41 +01:00
Jan Henning 5812dc3cb2 Bug 1333386 - Use {once: true} for session store window "load" listener. r=sebastian
MozReview-Commit-ID: Kc9ydTUrLy1

--HG--
extra : rebase_source : 5dd77f5bff248c305674ef0f7cfbef53675d0a90
2017-01-25 20:19:14 +01:00
Jan Henning 668da1fdc7 Bug 1333046 - Part 2 - Move zombification function into the tab object. r=ahunt
A tab object should know how to zombify itself instead of having to rely on the MemoryObserver. This also simplifies the situation for anybody else who wants to call this function since it is no longer necessary to figure out how to load the MemoryObserver for this.

MozReview-Commit-ID: 5IX114QUjBT

--HG--
extra : rebase_source : 964186678848b804e5f0550e1b6a328d7fcfbc50
2017-01-19 21:45:03 +01:00
Jan Henning 8464eb0fcf Bug 1333046 - Part 1 - Expose a method to restore delay-loaded tabs via the tab object. r=ahunt
Actors outside of the session store shouldn't have to poke around within the session store's data structure and end up reimplementing parts of the session store code (and cause data loss if the implementation is incomplete) in order to restore delay loaded zombie tabs. Therefore, we simply expose a method for this via BrowserApp's tab object.

To simplify handling and make the method a little more fool-proof for external callers, the check whether the tab is actually zombified is moved into the restoreZombieTab() function.

Later on, we can also hook up this method to the appropriate web extension API (see bug 1322485).

MozReview-Commit-ID: 85lnbCpMcP3

--HG--
extra : rebase_source : a6f1cfa11debcb18471b49804776521c60655fce
2017-01-25 21:33:33 +01:00
Carsten "Tomcat" Book 182312677f merge mozilla-inbound to mozilla-central a=merge 2017-01-25 13:47:25 +01:00
Makoto Kato 812588087b Bug 1332792 - Add mozIntl.xpt to Android package for xpcshell test failure. r=gandalf
With --with-intl-api, xpcshell test for MozIntl is always failure on Android.  So we should add mozIntl.xpt to package.

MozReview-Commit-ID: BWBKSG3gSqr

--HG--
extra : histedit_source : d4091b91221bc2ef282d0855dbf4856adb403c9b
2017-01-25 15:31:15 +09:00
Florian Quèze 0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Tomer Cohen b670b52324 Bug 1298913 - [RTL] RTL the preferences in about:config r=sebastian
MozReview-Commit-ID: 132jVEEFH2W

--HG--
extra : rebase_source : 0bbe5586abdb82b2abb41d0be71ca8debff9e056
2017-01-19 22:52:07 +02:00
Phil Ringnalda 1b60bc19eb Merge m-c to autoland 2017-01-24 18:56:54 -08:00
Phil Ringnalda bf98cd4315 Merge m-i to m-c, a=merge 2017-01-24 18:53:29 -08:00
Wes Kocher a65c1b1dfe Merge inbound to central, a=merge
MozReview-Commit-ID: BeGxZAeguBr
2017-01-24 16:08:16 -08:00
Eugen Sawin e03bb44096 Bug 1333241 - [1.0] Initialize screen orientation on instantiation. r=jchen 2017-01-24 21:47:08 +01:00
James Cheng a72c2a70e2 Bug 1332981 - [EME][Fennec] Pref on EME API not only for Nightly build. r=cpearce
MozReview-Commit-ID: 77MrnKZRtoN

--HG--
extra : rebase_source : ca59175b50c5b17623f913be36854473bb8d8bed
2017-01-23 12:31:34 +08:00
Wes Kocher 8439919627 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7eiveonzAo4
2017-01-24 16:11:28 -08:00
Phil Ringnalda 9823741350 Merge m-c to m-i 2017-01-23 18:57:15 -08:00
Michael Kaply 506dc7f883 Bug 1107942 - Allow zh-CN distribution to add Quit menu. r=sebastian 2017-01-23 17:43:47 -06:00
Jim Chen 8b160783a8 Bug 1319660 - Fix possible crash when editing contentEditable; r=esawin r=masayuki r=smaug
Bug 1319660 - 1. Don't take shortcut if old replacement ranges don't match; r=esawin

The block at [1] is a shortcut we take when we reconcile Java text
changes with Gecko text changes. However, we only checked that the new
ranges are the same, i.e. that the new Gecko text is the same as the new
Java text. We should also be checking that the old ranges are the same,
i.e. that the replaced Gecko text is the same as the replaced Java text.

[1] https://dxr.mozilla.org/mozilla-central/rev/bbbd2f7539f224a482cc6d2dd10e6a5f31c8baf3/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoEditable.java#1233

Bug 1319660 - 2. Use previous node instead of sibling when adjusting last node; r=masayuki r=smaug

nsContentIterator in pre mode adjusts its last node if the node is a
childless node like <br>. However, right now it's using GetPrevSibling,
which can lead to error in some edge cases such as:

<p></p><div><br></div>

In this case, if the last node is <br> with offset 0, GetPrevSibling
will return <p> because <p> is <br>'s parent's previous sibling, and the
last node will be set to <p>. However, the correct last node in this
case is <div>, because <br> with offset 0 refers to the position to the
left of <br>, which is <div> with offset 0. In this case, PrevNode
returns the correct <div> value, so we should set the last node to the
result of PrevNode.

For the first node, for a childless node in pre mode, GetNextSibling and
NextNode are the same, so there is no bug in this case. Nevertheless,
this patch changes the call to NextNode to be consistent with calling
PrevNode for the last node.

Bug 1319660 - 3. Add test for correctly adjusting last node in content iterator; r=masayuki

Add a test for the previous patch that makes sure querying selected text
in an edge case works correctly.

Bug 1319660 - 4. Add test for start node regression; r=me

Add a new test case for the NextNode() regression. r=me for trivial
test-only patch.

Bug 1319660 - 5. Restore GetNextSibling call for first node of pre-content-iterator; r=smaug

The last patch changed the `GetNextSibling()` call to `NextNode()`
because I assumed they're equivalent in this case. That turned out to
not be the case because we can reach this line even if the node has
children -- the index just has to be after the last child. So this patch
restores the `GetNextSibling` call to restore the correct behavior.

I also added some comment to clarify that we can reach this line due to
one of two conditions: 1) the node has no children; 2) the node has
children but the index is after the last child.

This patch also replaces the `HasChildren()` check when setting
`cChild`.  If the index is after the last child (i.e. index ==
childCount), `GetChildAt()` fails and we erroneously log an assertion
warning, even though the input was valid. The new check handles all
cases whether start node has children or not.
2017-01-23 14:35:04 -05:00
Ralph Giles 6af75bbd06 Bug 1332759 - Update android builders to rust 1.15.0-beta.4. r=rillian
Bump the Android builders to the latest beta release to reduce
the variance when we update Firefox 53 to 1.15.0 stable early
in the Aurora phase.

Android builds were moved to 1.15 early to address a code generation
issue with devices without neon.

Work around an issue with tarball naming in the cargo packages.

MozReview-Commit-ID: KQfkWmXV9hQ

--HG--
extra : rebase_source : 9448e0b948740fc3905ef70c8df316dc7342d52e
2017-01-20 15:18:26 -08:00
Tomer Cohen 3dcaa6b2cd Bug 1332694 - Add chevron-rtl.png to android chrome manifest r=sebastian
MozReview-Commit-ID: 8jtEMtqZWOg

--HG--
extra : rebase_source : 1a2e5c86b9d6df77f9f92131cd8328a56db0003d
2017-01-20 20:24:03 +02:00
Tomer Cohen a5c096dde5 Bug 1332396 - [about:config] Unable to store non latin-1 characters r=sebastian
MozReview-Commit-ID: 3JBTcHePyl3

--HG--
extra : rebase_source : d7dde5561bcb186020456d4c390d1975ee97d584
2017-01-19 21:07:26 +02:00
Tomer Cohen a3277b929b Bug 1332471 - about:config on Android is missing a page title r=sebastian
MozReview-Commit-ID: 81jNo9jxNNY

--HG--
extra : rebase_source : 60a71b5604b2aeee1e8f087f93fcaadb6d15ba1a
2017-01-20 00:19:20 +02:00
Jan Henning 7f37054663 Bug 1332863 - Turn on strict mode for mobile session store. r=sebastian
MozReview-Commit-ID: 20KRW4yxPm4

--HG--
extra : rebase_source : 31cda3723011281523468643a5a48da22066fc6f
2017-01-21 19:58:57 +01:00
Makoto Kato c69d395f8b Bug 1332806 - Check AppConstants.MOZ_ENABLE_PROFILER_SPS to use Profiler object on browser.js. r=sebastian
When turning off SPS profiler by configure option, or we build non-SPS arch build  such as android/aarch64, Tab.prototype.onStateChange already throws the exception because Profiler isn't defined.

So we should check AppConstants.MOZ_ENABLE_PROFILER_SPS to use Profiler object.

MozReview-Commit-ID: A9ISurxiRmc

--HG--
extra : rebase_source : 25103e97cd4827edef33335e3aec9384a6695526
2017-01-21 12:41:22 +09:00
cnevinc 8dde17828f Bug 1333006 - Add localization note explaining that "Open" here is not an action, like a button, but an adjective. r=sebastian
MozReview-Commit-ID: 8y8g8CfpdzJ

--HG--
extra : rebase_source : bc56c27f41277909d5d3016c7e43e7365f735bb6
2017-01-23 16:05:25 +08:00
Jan Henning 7886887a86 Bug 1330422 - Use arrow functions instead of capturing "this" in the session store. r=sebastian
MozReview-Commit-ID: AlLHJipN6kL

--HG--
extra : rebase_source : f279021f013bcfb4e671b9c6d609f342b57faac9
2017-01-12 21:36:01 +01:00
Jan Henning c90cc004dc Bug 1317079 - Avoid spurious exception when snackbar is dismissed. r=jchen
When a snackbar with a button callback is dismissed, this translates to a rejected promise from sendRequestForResult(). We need to catch this in order to avoid a spurious 'JavaScript Error: "uncaught exception: undefined"' message appearing in the console and possibly causing confusion.

MozReview-Commit-ID: 7hsAOAMTeDP

--HG--
extra : rebase_source : 6c5eb28d2e0dcf39a35b310d1e1c45cfc47f272b
2017-01-21 21:47:08 +01:00
Jan Henning 629cf290d4 Bug 1329330 - Remove old session store code that's no longer needed. r=sebastian
We've been parsing the session store file and doing the initial tab creation on the Java side for a long time now, so the code to open completely new tabs on the session store side instead of using tab stubs is no longer necessary.

Besides, because of bug 1301160 the on-disk session file is now containing tab IDs as well, so this distinction between tabs read directly from the raw session file and those contained in a session string passed over from the Java UI is no longer available.

MozReview-Commit-ID: Hmq0TwClqMQ

--HG--
extra : rebase_source : 1f9ab6da18a7fd0f40a1cb0784082abb2384404f
2017-01-07 22:26:51 +01:00