Commit Graph

2732 Commits

Author SHA1 Message Date
Florian Quèze
fc6379e827 Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
Tomer Cohen
3c55375e33 bug 1298385 Add RTL alignment to text in the Private Tab welcome page r=sebastian
MozReview-Commit-ID: 8pDxAlMnNMX

--HG--
extra : rebase_source : 8b4eb972665842956d693fb9ea7e159673f64554
2016-12-06 22:58:46 +02:00
Tomer Cohen
88a6128407 Bug 1298889 [RTL] "Firefox \<VersionNumber\>" is hidden by Firefox logo in about:firefox r=sebastian
MozReview-Commit-ID: J4rWoKrsaAv

--HG--
extra : rebase_source : ed197586ae6c47685616b9d419b80ef466e4494d
2016-12-07 00:53:11 +02:00
Jan Henning
fa8b0f3184 Bug 1266594 - Part 1 - Wait for Java-side sanitizing to be triggered before exiting the UI. r=jchen
When clearing private data on exit, Gecko sends a "Sanitize:ClearHistory" message back to the Java UI, so the latter can clear the history DB if necessary.
For some users, this process is not working, presumably because there is a race condition depending on whether Gecko gets as far as sending that message before the background thread responsible for receiving that message has already shut down/had its listener unregistered, or not.

Therefore, we now wait until the UI's sanitize handlers have been called before starting to shut it down as well.

MozReview-Commit-ID: HoifMYv3spA

--HG--
extra : rebase_source : de4bb656c67104b9d5b1ea83329b77de0688a5d6
2016-12-31 13:35:38 +01:00
Julian_Chu
41076b6f35 Bug 1320898: To make notification bar only dimmed in Reader Mode r=sebastian
The notification bar will be dimmed if in Reader Mode and user scroll
down the page. If not in Reader Mode, make sure the notification bar is
not dimmed.

MozReview-Commit-ID: 87LisdS3nRO

--HG--
extra : rebase_source : c7a6795a2b9b007aeddbee1044f94168a03cd761
2016-12-27 17:42:47 +08:00
Mike Taylor
a45c16df23 Bug 1328416. Add src param to track where compat reports are coming from. r=sebastian
MozReview-Commit-ID: GNLVJHVWEB4

--HG--
extra : rebase_source : 394c5cf6486271411fd4bff70dd7138f989a133f
2017-01-03 17:10:06 -06:00
Jim Chen
c3a02d7e8e Bug 1325155 - 2. Convert text selection events to bundle events; r=sebastian
Convert the "TextSelection:*" events to use BundleEventListener /
GeckoBundle, in both ActionBarTextSelection.java and
FloatingToolbarTextSelection.java. UI events are used because the
listeners require the UI thread. The "TextSelection:Update" listeners
are removed because the event is no longer sent by ActionBarHandler.
2016-12-28 17:49:29 -05:00
Jim Chen
16e63f30d7 Bug 1325153 - Convert DoorHangerPopup events to bundle events; r=sebastian
Convert "Doorhanger:Add" and "Doorhanger:Remove" to bundle events. UI
events are used because the listener performs UI operations. As part of
the refactoring, DoorHangerConfig was refactored to use GeckoBundle, and
due to that change, a lot of other doorhanger-related classes also had
to be refactored to use GeckoBundle.
2016-12-28 17:49:28 -05:00
David Keeler
104c38c723 bug 1324071 - add nsIPK11Token.hasPassword to replace unnecessary uses of nsIPKCS11Slot.status r=Cykesiopka,gps,MattN,sebastian
MozReview-Commit-ID: C2jwQHPEDC0

--HG--
extra : rebase_source : 16271e70ef32da8657cdc4f8df41b7822430e3bf
2016-12-02 15:09:35 -08:00
Masayuki Nakano
7436f01057 Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug
Doing QI from nsIEditor to nsIEditorIMESupport doesn't make sense because editor should always support all methods and attributes of nsIEditorIMESupport (it does NOT mean that all nsIEditor implementation need to support IME).

This patch moves all of them to nsIEditor for avoiding redundant QIs.

MozReview-Commit-ID: DzIKuGHG4iy

--HG--
extra : rebase_source : cc5e9a6ae4572ebe461d9770ffa5c23d33dc8526
2016-12-20 21:47:31 +09:00
Jim Chen
c98ff94c00 Bug 1323577 - Convert "SearchEngines:Data" event to bundle event; r=sebastian
Convert "SearchEngines:Data" to use BundleEventListener/GeckoBundle,
including usages in BrowserSearch, SearchPreferenceCategory,
testAddSearchEngine, testDistribution, etc. Also, convert JSON parsing
code in various classes. UI thread is used because the event listeners
perform various UI operations based on the event data.
2016-12-18 08:10:19 -05:00
Kris Maglione
22eba76d86 Bug 987512: Part 5 - Remove manual AddonManager promise wrappers. r=rhelmer
MozReview-Commit-ID: LrEiGbQGrt6

--HG--
extra : rebase_source : 38971f7242261e5d8b11d586f6eb033b6364c6cf
extra : histedit_source : 0b9403a97d3f3092b8991e8e6af5095b898dd8c3
2016-12-15 12:03:24 -10:00
Gijs Kruitbosch
cb6c0c81ac Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley
MozReview-Commit-ID: 2yb0WGFYBsH

--HG--
extra : rebase_source : 376171077c577e41e82cec5e994c425c6d9f2d80
extra : histedit_source : 39aad91381749a263042cd0452fe32019a1974b8
2016-12-09 09:23:24 -10:00
Tooru Fujisawa
25ecae81fc Bug 1321226 - Remove legacy generator from mobile/. r=sebastian 2016-12-15 16:54:46 +09:00
Tom Klein
f2ac7261a0 Bug 1313296 - Don't collect metadata for "about:" pages. r=Grisha
MozReview-Commit-ID: 6opB4lT85vs

--HG--
extra : rebase_source : 9c422ba61d4981907aa4c3068775e98de4c09fbf
2016-12-02 23:00:38 -06:00
Carsten "Tomcat" Book
fa5c335f38 merge mozilla-inbound to mozilla-central a=merge 2016-12-13 16:04:16 +01:00
Jim Chen
e47caac9a9 Bug 1322711 - 2. Convert test-only events to Bundle events; r=gbrown
Convert events that are only used in robocop tests to Bundle events,
which are then used through Actions.expectGlobalEvent /
expectWindowEvent.

"Content:" prefix is added to "DOMContentLoaded" to follow the event
naming convention.

SelectionHandlerTest.java is removed because it's no longer used
anywhere.
2016-12-13 03:21:47 -05:00
Phil Ringnalda
0111ff534b Merge m-i to m-c, a=merge
MozReview-Commit-ID: BnSh8kutBaR
2016-12-10 08:27:52 -08:00
Shih-Chiang Chien
7ed7acac25 Bug 1322602 - remove Fennec-to-FxOSTV video casting. r=rbarker
MozReview-Commit-ID: KjEJUPkgRLo

--HG--
extra : rebase_source : 41ecdfec4caebc18934766120501a95ae2125e2f
2016-12-08 16:02:13 -10:00
Kit Cambridge
8558928fe7 Bug 1322954 - Fix incorrect instanceof negations. r=markh
MozReview-Commit-ID: PgQmAu9hbQ

--HG--
extra : rebase_source : 376b83af517442cc05bc46ff7ca36e6ac46b06e2
2016-12-12 13:50:10 -08:00
Eugen Sawin
f057928823 Bug 1322509 - [2.0] Fix log typo. r=jchen 2016-12-09 09:27:19 -10:00
Jim Chen
e9532b9a3f Bug 1321418 - Use GekcoBundle events in GeckoApp/BrowserApp; r=snorp r=sebastian r=gbrown
Bug 1321418 - 1. Use GekcoBundle events in GeckoApp; r=snorp r=sebastian

Switch GeckoApp to using GeckoBundle events everywhere. UI or Gecko
events are used if the event requires the UI or Gecko thread,
respectively, and background events are used for all other events.

There are changes to some other Java classes, such as SnackbarBuilder
and GeckoAccessibility, due to the switch to GeckoBundle.

For "Snackbar:Show", we need the global EventDispatcher because the
event can be sent to both GeckoApp and GeckoPreferences. Howveer, we
only want one listener registered at the same time, so we register and
unregister in GeckoApp's and GeckoPreferences's onPause and onResume
methods.

Bug 1321418 - 2. Use appropriate JS EventDispatcher to send GeckoApp events; r=snorp r=sebastian

Change JS code that sends events to GeckoApp to use either the global
EventDispatcher or the per-window EventDispatcher.

"Session:StatePurged" is not used so it's removed. "Gecko:Ready" in
geckoview.js is not necessary because it's only used for GeckoApp, so
it's removed from geckoview.js.

Bug 1321418 - 3. Use GeckoBundle events in BrowserApp; r=snorp r=sebastian

Switch BrowserApp to using GeckoBundle events, in a similar vein as
GeckoApp. UI or Gecko events are used if the event handlers required UI
or Gecko thread, respectively, and background events are used for all
other events.

Some other Java classes also have to be modified as a result of
switching to GeckoBundle.

Bug 1321418 - 4. Use global EventDispatcher to send BrowserApp events; r=snorp r=sebastian

Change JS code that sends events to BrowserApp to use the global
EventDispatcher instead of "Messaging".

Bug 1321418 - 5. Update usages of events in tests; r=gbrown

Update cases where we use or wait for events in tests.
2016-12-09 12:32:45 -05:00
Boris Zbarsky
162c8766a4 Bug 1310796 part 4. Get rid of 'content-targetable' values for the 'type' attribute everywhere except tabbrowser.xml. Just use 'content' instead. r=gijs 2016-12-08 16:41:45 -10:00
Dylan Roeh
9ff1fe4af5 Bug 1235431 - Implement windowClient.focus() for Fennec. r=catalinb 2016-11-14 17:22:13 -06:00
André Bargull
440601a995 Bug 1320143 - Remove String generics uses in mobile/android/chrome/content. r=sebastian
--HG--
extra : rebase_source : ff926dec0ab0aa1d79a13d7312808607652d1364
2016-11-24 13:18:09 -08:00
Jim Chen
ee7152f6a6 Bug 1319496 - 4. Fix context menu item IDs; r=sebastian
Context menu items used UUIDs as their prompt list item IDs. However,
prompt list items only support integers as IDs. This error didn't show
up before because JSONObject was silently ignoring the error. This patch
changes to using an incremental integer as the ID and fixes the error.
2016-11-29 12:25:53 -05:00
Jan Henning
0dcdc37035 Bug 1320564 - Fix the default value logic for "selected" when creating a new tab. r=sebastian
The idea is that cancelling edit mode when opening a new tab implies that we want to select it as well, otherwise we wouldn't have to cancel edit mode in the first place.

MozReview-Commit-ID: Gova1ymzlHn

--HG--
extra : rebase_source : a1d957de82a5e1ec9bf9162e1f01641e34e16ab4
2016-11-27 18:46:53 +01:00
Jan Henning
ebe2077f8b Bug 1320550 - Part 1 - Only try showing the "Undo close tab" snackbar if we actually have some closed tab data. r=sebastian
This can happen if the users sets browser.sessionstore.max_tabs_undo to 0 - with no closed tabs available, without this fix the resulting exception breaks browser.js's closed tab handling, meaning the tab gets closed in the UI but not in Gecko.

MozReview-Commit-ID: 7yMyIB6UzAB

--HG--
extra : rebase_source : 37ca55519b30cbd5d263127d3ecd6b893ccfafc9
2016-11-27 16:44:38 +01:00
Nevin Chen
2cfbaefbeb Bug 1314563 - Add info for Java to know when the url is in the exception list and show the correct icon r=sebastian
MozReview-Commit-ID: FG6a7mRCzZY

--HG--
extra : rebase_source : 998a0d60436f84df4554d62f48d985f9a03ffea0
2016-11-15 09:47:12 +08:00
Alastor Wu
cfe81f3b38 Bug 1301055 - part1 : allow to replay the same video again. r=snorp
MozReview-Commit-ID: LNz6vEeMZOL

--HG--
extra : rebase_source : f2529c77ed453a6ba14d6df6b3d0f4d504af2a08
2016-11-24 10:24:02 +08:00
Jim Chen
347c3ce21e Bug 1317604 - 1. Add EventDispatcher to Messaging.jsm; r=snorp r=sebastian
Add a new EventDispatcher interface to Messaging.jsm, and provide means
to access either the global EventDispatcher through
EventDispatcher.instance or a per-window EventDispatcher through
EventDispatcher.for(window). The old Messaging object is retained until
we can convert all existing uses of it in Fennec to use EventDispatcher,
at which point `Messaging` will be made to point to
`EventDispatcher.instance`.
2016-11-21 10:01:30 -05:00
Tooru Fujisawa
ae8843de1e Bug 1293305 - Part 1.8: Do not use non-standard for-each. r=sebastian 2016-11-21 15:03:44 +09:00
Phil Ringnalda
e3b53628aa Merge m-c to m-i
MozReview-Commit-ID: GwBaSZdoAZK
2016-11-17 20:33:59 -08:00
Kris Maglione
36250d10ef Bug 1317101 - Part 3: Apply remote-browser binding to all remote="true" <browser>s. r=billm
MozReview-Commit-ID: 83sNFdLM4W7

--HG--
extra : rebase_source : 7383c57f6ee52f0c0dfc8401ae3c6f35eee7eb1b
extra : source : 07321664430ab3416a0aa3a29055012b5eb149c5
2016-11-15 15:11:27 -08:00
Wes Kocher
4e5f6472fd Backed out 15 changesets (bug 1317101) for e10s jsreftest failures a=backout CLOSED TREE
Backed out changeset 17757ba4c0e8 (bug 1317101)
Backed out changeset 61f8a4084bbd (bug 1317101)
Backed out changeset a8cdc81cdcce (bug 1317101)
Backed out changeset e06d269a5d4f (bug 1317101)
Backed out changeset 1e1bfb578dcd (bug 1317101)
Backed out changeset 0f8144296a9d (bug 1317101)
Backed out changeset b7892d3fb0ca (bug 1317101)
Backed out changeset 039d63d5fef7 (bug 1317101)
Backed out changeset ef7e061b37bf (bug 1317101)
Backed out changeset af7b81d7a5cc (bug 1317101)
Backed out changeset 225ad2535585 (bug 1317101)
Backed out changeset b0521588011d (bug 1317101)
Backed out changeset 07321664430a (bug 1317101)
Backed out changeset 47d283897283 (bug 1317101)
Backed out changeset ffc63be3557c (bug 1317101)
2016-11-16 16:44:30 -08:00
Kris Maglione
2fff8d9e6c Bug 1317101 - Part 3: Apply remote-browser binding to all remote="true" <browser>s. r=billm
MozReview-Commit-ID: 83sNFdLM4W7

--HG--
extra : rebase_source : 5ec958a9b762ea85b0e77fc5c42beeb74cad260c
2016-11-15 15:11:27 -08:00
Ehsan Akhgari
eac76d9772 Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Carsten "Tomcat" Book
3eacc680db Backed out changeset 7d1f7dd996f7 (bug 1310845) 2016-11-16 14:50:44 +01:00
Timothy Guan-tin Chien
0be3a8d10c Bug 1303993 - Display "Save Media" for long tapping unloaded video, r=sebastian
MozReview-Commit-ID: 7L1AJ0a0yFL

--HG--
extra : rebase_source : 1c7c91aadd1893f699821c7ce970f034b1354888
2016-11-15 14:53:28 +08:00
Ehsan Akhgari
cb369370b3 Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-15 18:31:46 -05:00
Boris Zbarsky
b80b8248f9 Bug 1316661 part 4. Eliminate IsCallerChrome callers in HTMLMenuElement. r=smaug 2016-11-15 00:18:33 -05:00
KuoE0
3f2d9fc602 Bug 1305352 - (Part 2) Implement PresentationRequestUIGlue on Fennec. r=schien,snorp
MozReview-Commit-ID: ISG6HS7HcPn

--HG--
extra : rebase_source : ef47383e97f360b57f78329e7b35feb0c286035e
2016-08-30 18:16:31 +08:00
Alastor Wu
d075282bff Bug 1305869 - don't display media control for very short sound. r=sebastian
For the short sound, we don't want to show the media control interface for them, eg. game effect.
Therefore, we check the media's duration to decide whether need to notify Java side "Tab:MediaPlaybackChange" or not.

MozReview-Commit-ID: 8PlQl2w2BSI

--HG--
extra : rebase_source : c4e5d38eae1dba22af268ea575dd6c9672e7cf9f
2016-11-01 12:22:39 +08:00
Dylan Roeh
041f83edff Bug 1262251 - Make openWindow() launch Fennec if it isn't already running. r=catalinb 2016-10-31 14:10:25 -05:00
Phil Ringnalda
9fa3ebe028 Backed out changeset 582e5f96a727 (bug 1262251) for Linux serviceworker bustage 2016-10-27 18:50:12 -07:00
Dylan Roeh
df4c14e4bb Bug 1262251 - Make openWindow() launch Fennec if it isn't already running. r=catalinb 2016-10-27 13:58:39 -05:00
Michael Layzell
de29c95ed2 Bug 1303196 - Part 7: Updates to apply correctly after noopener changes, r=smaug
MozReview-Commit-ID: 25Ew2PLpP5c
2016-10-27 15:53:35 -04:00
Michael Layzell
0f986f1b54 Bug 1303196 - Part 6: Correctly set the opener when creating new tabs on android, r=smaug
MozReview-Commit-ID: CLT9G1o6lXv
2016-10-27 15:53:35 -04:00
Wes Kocher
cbc0a94248 Backed out changeset 0349a81229e7 (bug 1262251) for build bustage a=backout CLOSED TREE
--HG--
extra : amend_source : 68bb204192d6e3f0c2ae4287dbbf09b81f676f64
2016-10-27 11:55:12 -07:00
Dylan Roeh
04eecc22e1 Bug 1262251 - Make openWindow() launch Fennec if it isn't already running. r=catalinb 2016-10-27 12:49:50 -05:00