Small fixes related to fixed toolbar support in BasicSelectionActionDelegate,
1) Change the order of menu items to match Android.
2) Clear selection when dismissing the toolbar.
3) Work around an Android bug where the menu is initially empty.
MozReview-Commit-ID: BQ6pgbBbc9e
--HG--
extra : rebase_source : f1f4337059eaef2608c9ac91c58cde817374d42f
We cannot open completely new windows on mobile, but we sort of mimic desktop
by having Ctrl + N/Ctrl + Shift + P always open a new normal/private tab,
whereas for Ctrl + T the kind of tab opened will now depend on the currently
selected tab.
MozReview-Commit-ID: KmPCcnn79OH
--HG--
extra : rebase_source : 9a120de03816d2d140e5cb877b3996326491747b
Somehow I must have overlooked that during review, but if I'm touching something
in the neighbourhood I might just as well clean this up.
MozReview-Commit-ID: 95gnzSebGyf
--HG--
extra : rebase_source : 3f68ad9ecbdfea74dfc0ae6f4d65e3a90fe08081
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.
This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.
This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.
MozReview-Commit-ID: 7gWj8KWUun3
--HG--
extra : rebase_source : 65bac47c2cd1a20b3c675a01b44a25a1d2d3ab7a
Like the way we treat select fields, don't pass pointer events to
date/time input fields either.
MozReview-Commit-ID: Eucfbu6MizX
--HG--
extra : rebase_source : 1887ca9911ee192c6c016ff2cfb7d621d8122be9
Locale.toString() doesn't return the correct locale format that Gecko
expects, so reformat the locale string before returning. (for example,
Locale.toString() returns "en_US_POSIX#Latn" whereas Gecko expects
"en-Latn-US-POSIX"). The incorrect locale format was preventing intl
code (and the datetime box) from initializing.
MozReview-Commit-ID: JmDYkDj31pL
--HG--
extra : rebase_source : 545e8f4e57e1e0086d3afb862c9dfa82ff89345f
Use BasicSelectionActionDelegate for GeckoView sessions by default, if
there is no existing delegate.
MozReview-Commit-ID: 1lrEav4esKh
--HG--
extra : rebase_source : b6ac3e689e2401eba419e12c7bc76354188b4d0a
Add a standard implementation of SelectionActionDelegate that uses
Android action mode for displaying selection actions.
MozReview-Commit-ID: Iv497bXDzMh
--HG--
extra : rebase_source : 1c889e5538e49620cf8ae12b6d34f09def236d59
Add a handler for selection action delegate in GeckoSession that calls
the callback methods.
MozReview-Commit-ID: C2mMHHheTJT
--HG--
extra : rebase_source : c9804fdfc80377b477e084d69a8b6034f75c95b3
Add JS modules for listening to accessible caret events, and relaying
those events to Java.
MozReview-Commit-ID: JPLTMzK7Nzn
--HG--
extra : rebase_source : 394cc9b74f53dc2c1ca2fb6062747c37d1d5b582
Add a SelectionActionDelegate interface for handling text selection.
MozReview-Commit-ID: I37Hm6nphJx
--HG--
extra : rebase_source : 2bca7ef076aaac72d3e21993b0fa3008d02c49a5
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.
This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.
This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.
MozReview-Commit-ID: 7gWj8KWUun3
--HG--
extra : rebase_source : 6f7d4fd1d6cdea2c14866705a2dc972eb5f43382
At least on some devices, there seems to exist some sort of intermediate danger
zone where the intent is no longer large enough to be rejected outright by the
OS, but still big enough to render Firefox inoperable through some sort of
resource exhaustion.
From Android 6.0 onwards, this doesn't matter as otherwise we would have crashed
anyway, but on previous Android versions a much too large intent will simply be
ignored, so if we truncate, but not enough, this actually makes matters worse.
The value used in this patch was chosen by attempting to share the whole
contents of planet.mozilla.org on a Samsumg S3 Mini running Android 4.1.2.
90k characters led to resource exhaustion and the screen turning black, while
85k characters still worked. On a more modern phone, even larger amounts (e.g.
100k characters, like Chrome) worked. Therefore, to have some additional margin,
a maximum limit of 80k characters will be used.
MozReview-Commit-ID: 6etHe0KUgig
--HG--
extra : rebase_source : 5f712da6cf53572dfa5c755ef097a5961a0be891
Calling setResourceSubstitutions in the child process was causing an
error that prevented the prompt code from initializing in the child
process.
MozReview-Commit-ID: 9bE7jvglPPw
--HG--
extra : rebase_source : 87e622d52b97407aab7ec98d576b97b40c83bc5c
Locale.toString() doesn't return the correct locale format that Gecko
expects, so reformat the locale string before returning. (for example,
Locale.toString() returns "en_US_POSIX#Latn" whereas Gecko expects
"en-Latn-US-POSIX"). The incorrect locale format was preventing intl
code (and the datetime box) from initializing.
MozReview-Commit-ID: JmDYkDj31pL
--HG--
extra : rebase_source : c9d1f4d042f1d0fae230e7389e057948fb41d3d9
This was an oversight in the landing of Bug 1443208. We need to set
AB_CD explicitly for the invoked target.
MozReview-Commit-ID: 29lQXYiOf6a
--HG--
extra : rebase_source : 6070a803e952f15a787aab27aae488e7a148b1a9
This patch moves all TLS error string handling to the frontend.
Dev-tools doesn't show the same error code as the page does anymore but only the error code as string.
All logging of these error messages has been removed.
Bug #: 1415279
Differential Revision: https://phabricator.services.mozilla.com/D607
--HG--
extra : rebase_source : 61e2d94cb21ef4c02b81448531609205c85a9707