Commit Graph

18015 Commits

Author SHA1 Message Date
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
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
Nevin Chen
333884f49b Bug 1320900 - Do not show Reader View icon on error pages. r=sebastian
MozReview-Commit-ID: GrQqKqccicf

--HG--
extra : rebase_source : 1cd6b57ad7958f607da17101b9b313f9cd508759
2016-12-30 11:11:09 +08:00
cnevinc
506742c281 Bug 1317632 - If the bookmark to add is a reader mode page, defer db action till it cache completely and save the same url in bookmarks and uriannotations table to avoid URL chagne between two http requests. r=sebastian
MozReview-Commit-ID: 8ZwteTOKe1G

--HG--
extra : rebase_source : 1ca9d9a24d3dca32dd394414ffad88304d06a28c
2017-01-14 12:05:48 +08:00
Nicholas Nethercote
22b6d342d7 Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium.
--HG--
extra : rebase_source : 223f3a17f009645369be503392cc1f0cea7f19a1
2017-01-24 14:15:12 +11:00
John Lin
dfdaf47766 Bug 1333323 - remove nightly flag to enable OOP decoding for all versions. r=snorp
MozReview-Commit-ID: AjOsDiSmuz2

--HG--
extra : rebase_source : 63f7384bbe54077e5bbfd89016be2188856ae1de
2017-01-24 14:28:55 +08:00
Phil Ringnalda
bcbe2e1fcc Merge m-c to autoland 2017-01-20 19:15:16 -08:00
Dave Townsend
c5f0e2be67 Bug 1331968: Implement the moz: protocol handler to redirect to a fixed website. r=gijs
The protocol handler is intentionally simple. It works for the entering into the
urlbar case but not a lot else. Included some basic tests.

MozReview-Commit-ID: 4FQ1irdt3Nj

--HG--
extra : rebase_source : 30d9fc7ba2c500f268d282e47d291724d9899ba4
2017-01-18 14:10:46 -08:00
Andrzej Hunt
1e0cff53d2 Bug 1311555 - Use filled bookmark star in ActivityStream context menu r=sebastian
Unfortunately tinting the bookmark star is highly complicated due to the tinting
that NavigationView performs (i.e. we'd likely have to disable NavigationView
tinting, and do manual tinting on every icon - alternatively we could hack
the tint-list to use blue for "checked" items, and set the bookmark item
as checked). Since it's unclear if we even want the star to be blue,
we'll leave it grey (but filled) for now.

MozReview-Commit-ID: DekRZJayKIz

--HG--
extra : rebase_source : 1e3443e5f09c60bd0d7295bc35ecc08ca17b3dab
2017-01-18 12:20:50 +01:00
Andrzej Hunt
9bd6a8b199 Bug 1311555 - Pre: remove unused imports r=ahunt
MozReview-Commit-ID: 6Xk7Z01m41A

--HG--
extra : rebase_source : cfe5a302b9795ae5ae15af00452b39ef8d9db737
2017-01-18 12:18:06 +01:00
Andrzej Hunt
e75d6e42c4 Bug 1330986 - Override proguard config to fix VectorDrawable corruption on Android 4 r=sebastian
See https://code.google.com/p/android/issues/detail?id=209558 . On Devices
running Android 4 and below, VectorDrawable's can be corrupted due
to overzealous proguarding. This doesn't appear to have been
fixed in the support library yet, and even if it were fixed we
still wouldn't be able to switch to the most modern support
library without significant work.

MozReview-Commit-ID: 3ByogGygCEd

--HG--
extra : rebase_source : 2adeed63f88ca39a71feec60627fb812b76d3bb4
2017-01-17 12:16:42 +01:00
Nevin Chen
a2bee3f570 Bug 1331431 - Use baseline and FontMetrics instead of textview's center and text size to get the real text height. r=sebastian
MozReview-Commit-ID: 4HJKZP0F0ow

--HG--
extra : rebase_source : ef8a6a8b333733e3e07a23cc6bd0c19fe179d282
2017-01-18 17:59:23 +08:00
Nevin Chen
790b6fa100 Bug 1275662 - Close all tabs and clean up session files when "Open Tabs" is selected in "Clear private data on exit" or "Clear private data" pref. r=JanH,sebastian
MozReview-Commit-ID: GoUQVDIzYbI

--HG--
extra : rebase_source : 13bbf3477a29cf301df72b521a0e02875bb5ef14
2016-12-29 14:22:45 +08:00
Nevin Chen
bcd1e464ce Bug 1275662 - Add "Open tabs" as an item in [Clear Private data on exit] dialog. r=JanH,sebastian
MozReview-Commit-ID: 6KJvCfYTJSZ

--HG--
extra : rebase_source : 7e408b01c632536fac4fd02d3262376293c0e706
2016-12-29 11:44:36 +08:00
John Lin
25bf73baef Bug 1332177 - handle ICodec.configure() failure. r=jchen
MozReview-Commit-ID: KPhI04EA9n3

--HG--
extra : rebase_source : ceb40b48a1cb1e1a1458626c1ef2adbbc472d58e
2017-01-19 16:11:01 +08:00
jwu
9f9d605eea Bug 1325586 - Prevent creating IconDescriptor with null url, r=sebastian
MozReview-Commit-ID: 4y6fKR49DGG

--HG--
extra : rebase_source : c91f81e887ff59a11b80b407944ee943dd763e52
2017-01-16 15:56:43 +08:00
Wes Kocher
336f27142f Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3pEpsd3DljH
2017-01-19 16:47:25 -08:00
Carsten "Tomcat" Book
3b3ce27e84 Merge mozilla-central to mozilla-inbound 2017-01-19 16:35:21 +01:00
Dylan Roeh
9d83c8ce5e Bug 1303362 - Set a flag on custom tabs so that links do not open in a new tab. r=snorp 2017-01-19 09:18:40 -06:00
maliu
b67796ca12 Bug 1332258 - Reset text fading gradient to null when text direction changed, r=sebastian
MozReview-Commit-ID: EaUUO8aegzj

--HG--
extra : rebase_source : 47c719ec9d464208c48191e96c1227d0333dc083
2017-01-19 15:09:14 +08:00
Sebastian Kaspari
255526a131 Bug 1331808 - IconRequest.moveToNextIcon(): Throw exception if removing current item failed. r=Grisha
MozReview-Commit-ID: 2dfgG7N9bX6

--HG--
extra : rebase_source : b0d9e6b5734e082fb0008e12d841b6d4e489d9b7
2017-01-18 15:06:44 +01:00
Sebastian Kaspari
7c526adbf9 Bug 1331808 - IconDescriptorComparator: Return consistent order for compared items. r=Grisha
Previously if we could not compare two icon descriptions we'd always return the "right" one. This does
not create a consistent order if the parameters are flipped. As a result some operations on a TreeSet
can fail (like remove()).

MozReview-Commit-ID: EYPlhzGUEnD

--HG--
extra : rebase_source : f8918c022188401e21a03ac666628cff3e87f317
2017-01-18 14:50:35 +01:00
Julian_Chu
ee4031267e Bug 1322114 - Add test cases for MediaControlService r=sebastian
Also refactor MediaControlService to be test-friendly.

MozReview-Commit-ID: 344cEEuVroG

--HG--
extra : rebase_source : 14042bc3225538f621605b7aadb9d729c01ac62b
2017-01-12 15:44:19 +08:00
Julian_Chu
1037846788 Bug 1322114 - Part 2: handle more media state change r=alwu
When the playing-media changes (ie. in Youtube click another
video when it is alreay playing one), there will be one more
event MEDIA_PLAYING_CHANGE, and the tab is still playing media.

This fix is to handle this situation then update state.

MozReview-Commit-ID: Aje2BBqFZKE

--HG--
extra : rebase_source : f7c8f80c1d49e3a9aef868d11a4cd9d722a5c221
2017-01-12 14:54:05 +08:00
Julian_Chu
dad1b5861b Bug 1322114 - Part 1: Change UI updating flow r=alwu
This patch involve State into MediaControlService.

ACTION is behaviour for an intention, and so far we use it for storing
media state. Now involve enum to distinguish State from Action.

So flow becomes: Action happens -> Change State -> UI reflect state
changing.

MozReview-Commit-ID: FBHn02tgVO6

--HG--
extra : rebase_source : e1c57502a13669fad0ee2848c6cff420ebbe064f
2017-01-11 18:24:53 +08:00
Michelangelo De Simone
7baf165ae7 Bug 1313155 - Remove dom/settings and related code. r=Ehsan
MozReview-Commit-ID: Gi7frPFQ6yW

--HG--
extra : rebase_source : 69bb31fe3bc96ca460f0e35abb0b0f82d03defb6
2016-12-29 11:26:49 -08:00
Wes Kocher
656a71a520 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2KR6yXYC2xj
2017-01-18 15:39:12 -08:00
Ryan VanderMeulen
9e4ddf00bd Backed out 3 changesets (bug 1319660) for causing bug 1329446.
Backed out changeset d506d3c193c9 (bug 1319660)
Backed out changeset 93353b53a706 (bug 1319660)
Backed out changeset 9a7c2edd54b8 (bug 1319660)

--HG--
extra : rebase_source : 43ad1287462697f2312aa18925a462eb85c52495
2017-01-18 10:55:53 -05:00