Commit Graph

17635 Commits

Author SHA1 Message Date
Kan-Ru Chen
24126f5767 Bug 1123237 - Part 7. XPCOM interface for memory profiler. r=smaug
Based on patch from Ting-Yuan Huang <laszio.bugzilla@gmail.com>
2015-09-16 10:31:12 +08:00
Wes Kocher
7b3f9b8da9 Merge m-c to inbound, a=merge 2015-09-15 17:20:16 -07:00
Liang-Heng Chen
d8d823d62c Bug 1193605 - Part 2: process callbacks correctly. r=rnewman 2015-08-30 19:56:00 +02:00
Dylan Roeh
e025a5afc3 Bug 1193027 - Disables all downloads of file:// urls on Android. r=snorp 2015-09-08 15:41:36 -05:00
Michael Comella
c8d5bc1f70 Bug 1202870 - Set toolbar menu row height to 48dp. r=mhaigh
I tried to use the `?android:attr/...` method listed in the nearby comments but
kept receiving a "ResourceNotFound" exception. I wonder if this is related to
the way we inherit and then override the themes.
2015-09-08 16:57:38 -07:00
Martyn Haigh
8d41e437d0 Bug 1203036 - Put tab tray improvements behind nightly flag; r=mcomella
This patch reintroduced changes behind a nightly flag removed by:

    1161638: Remove the chrome at the bottom of the screen in the Tabs Tray
    1164723: Inherit from Tablet UI on Mobile UI (aka compact tabs)
    1193745: Implement the tablet tabs tray grid view on mobile

I've also done a bit of work to allow the chrome to sit at the correct Y location in landscape on mobile devices when the tabs panel is shown to account for bug 1193374 which adjusts the aspect ratio of the tabs panel thumnbnails and didn't need to be hidden behind a nightly flag. Tablets remain unaffected by this change.
2015-09-10 10:51:54 +01:00
Christoph Kerschbaumer
3f54a6097b Bug 1195162 - Move mozapps/plugins into pluginproblem (r=sicking,bsmedberg) 2015-09-14 19:08:06 -07:00
Nick Alexander
300fd24d79 Bug 1204937 - Part 3: Add Accounts:UpdateAccountFromJSON message. r=sebastian
This commit does a few things.  First, it fixes a typo
(s/ForResponse/ForResult/).  It's not clear how this /ever/ worked,
but it did.

Second, it adds an UpdateAccountFromJSON sibling to
CreateAccountFromJSON.  It would have been reasonable to have the
create message do double-duty and update an existing account (we have
the latitude to change the meaning since this API is not yet public)
but I generally prefer each consumer to perform the conditional state
check and to act appropriately.

Third, it generalizes the existing Accounts:Exist message to provide
some details (including email and UID) of any existing Firefox
Account.  The Accounts.exist() API /is/ public, so I introduce a new
(not yet public) API for this richer information.
2015-08-21 11:27:54 -07:00
Eitan Isaacson
c5b2bc4dfb Bug 1182222 - Make Layerview support accessibility HTML navigation. r=yzen r=mfinkle 2015-09-14 10:52:43 -07:00
Kartikaya Gupta
6fe7e505bd Bug 1204508 - Remove calls to function that was removed. r=mfinkle 2015-09-14 13:08:47 -04:00
Nick Alexander
e172582e0e Bug 1204937 - Part 2: Extract Accounts: messages to AccountsHelper. r=sebastian
There are enough Accounts: messages to separate them from BrowserApp,
and the list is only growing.

This has also the small advantage of removing some non-native event
listeners.
2015-08-20 10:03:20 -07:00
Nick Alexander
2ab0360c92 Bug 1204937 - Part 1: Redirect native account UI launches through action intent filters. r=sebastian
This patch stops referring to package/class objects to identify
Android components directly and instead launches through action intent
filters.  The intent filters are scoped to the package, but not marked
as private or as requiring a permission.  A malicious package could
inject itself into an account flow, but I don't think there's much
advantage: the only time a secret is passed between activities is when
the native sign up (CreateAccount) and sign in (SignIn) activities
link between themselves, and in this instance I didn't route through
the action intent filters.  (This is entirely native -- there's no web
analog -- so I didn't use the indirection.)
2015-09-15 14:18:46 -04:00
Nick Alexander
49c4c93026 Bug 1204937 - Pre: use native account UI in Fennec. r=me 2015-09-15 13:35:06 -04:00
Martyn Haigh
55b45bac8b Bug 1204875 - Hide Tabs Panel thumbnail height change behind nightly flag; r=mfinkle 2015-09-15 15:46:23 +01:00
Carsten "Tomcat" Book
039287e013 Merge mozilla-central to fx-team 2015-09-09 14:10:46 +02:00
Carsten "Tomcat" Book
c7883cea3b merge mozilla-inbound to mozilla-central a=merge 2015-09-09 14:04:59 +02:00
Bob Clary
06abb2c2a3 Bug 1201061 - Autophone - set robocop_autophone.ini to run flash test, r=gbrown. 2015-09-08 22:53:11 -07:00
Mark Finkle
91a5e2ec19 Bug 1202154 - Switchboard does not catch Locale related exceptions r=nalexander 2015-09-08 23:49:07 -04:00
Mark Finkle
c18eaff865 Bug 1201384 - Add support for determining Switchboard buckets locally r=chenxia 2015-09-08 23:28:01 -04:00
Christian Schmitz
117e41f1e6 Bug 1197428 - Remove UrlBar.ImageButton.Icon style and change inheritors. r=mcomella 2015-09-02 03:14:00 +02:00
Prateek Arora
f2fcfdfa42 Bug 1197427 - Move UrlBar.ImageButton.TabCount out of styles. r=mcomella 2015-09-04 22:26:48 +05:30
Michael Comella
cadab87243 Bug 1155855 - Don't override animations when opening the browser from the share overlay. r=liuche
When used to do our own animation when opening the browser from the
share overlay. That caused this bug: we didn't call `finish` until
`onAnimationEnd` but since `startActivity` was called, the application
was switched before `onAnimationEnd`, and thus `finish`, could be
called. When we returned to the share overlay, it was in an unexpected
state (`isAnimating` was true) and the user could no longer interact
with it, blocking access to the app the ShareOverlay was opened from.

We fix this by not doing our custom animations and just calling `finish`.

Note: in any case, overriding the animation when opening the browser
could be unintuitive to users because they might expect a consistent
app-switch animation throughout the system.
2015-08-28 17:32:23 -07:00
Kartikaya Gupta
61e2dbec5c Bug 1201416 - Remove incorrect call to setResolution. r=snorp
The call to setResolution has (I believe) not been needed since bug 732971. Prior
to that resolutions used to be applied on the root document in Fennec, and so
browser.js would have to reapply the desired resolution on every tabswitch.
After that bug, the resolution was saved on the content documents for each tab
and so browser.js no longer needed to reapply the resolution. Until recently
doing this was redundant but harmless.

With bug 1180267 though the browser.js code that tracks the resolution may have
the wrong resolution initially, because that is determined in C++ code. Only
after the Java-side code process the setFirstPaintViewport message and sends
that information to browser.js does everything have the correct resolution. In
the case where a tab loaded in the background is brought into the foreground, the
tab-selected code runs before the setFirstPaintViewport code, and therefore uses
an incorrect resolution. This then screws up the viewport clamping code and causes
the page to get scrolled.
2015-09-08 14:04:54 -04:00
Kartikaya Gupta
e53c26755a Bug 1202652 - Remove redundant and incorrect check when setting displayport margins. r=snorp
The intent of this check is to avoid setting the same margins more than once.
However this is redundant because the code in nsLayoutUtils::SetDisplayPortMargins
already has an equivalent check. Further, this code is wrong because it stores
the old margins per-tab, and so once a new document is loaded the margins may be
the same as "before" but they apply to a different element. In order to be correct
the check would have to track the target element as well as the margin values,
but it's easier to just get rid of this and let nsLayoutUtils handle it.
2015-09-08 14:04:48 -04:00
Kartikaya Gupta
f6fec4cdc7 Bug 1201569 - Remove unused fields. r=snorp 2015-09-08 14:04:42 -04:00
Michael Comella
5a2e205212 Bug 1199041 - Clarify comment in DrawableUtil. r=liuche 2015-09-01 16:26:19 -07:00
Allison Naaktgeboren
310a78f16b Bug 1201324 - Hide savedsearch feature in a nightly flag.r? 2015-09-08 09:54:21 -07:00
Carsten "Tomcat" Book
f76708346b merge mozilla-inbound to mozilla-central a=merge 2015-09-08 15:37:12 +02:00
Martyn Haigh
c2da5e6393 Bug 1201619 - Fix some tab tray dimen issues; r=mcomella 2015-09-03 18:47:58 +01:00
Prateek Arora
852f1655d8 Bug 1197441 - Remove BrowserToolbarBase.setButtonEnabled. r=mcomella 2015-09-01 22:12:31 +05:30
Gian-Carlo Pascutto
a87ceb68d3 Bug 1107372 - Update preferences for new SafeBrowsing prefs structure. r=francois 2015-09-08 08:22:10 +02:00
Phil Ringnalda
10105b6697 Merge m-c to m-i
CLOSED TREE
2015-09-10 15:30:31 -07:00
Mark Goodwin
25d06c35c0 Bug 1016555 - Disable OCSP checking for certificates covered by OneCRL r=keeler
1) Added some comments to firefox.js to explain the relationship between
extensions.blocklist.interval and security.onecrl.maximum_staleness_in_seconds
2) Modified default values in firefox.js and mobile.js to set maximum staleness
to 1.25x blocklist interval
3) modified the tests_ev_certs.js xpcshell test to cope with larger maximum
staleness values to address test failures
2015-09-10 11:10:07 +01:00
Ms2ger
d10f7a3adc Bug 1193270 - Use lower-case variables for local variables in geckoview_library's Makefile.in; r=nalexander
This makes it easier to distinguish this local variable from standardized
variables.
2015-09-10 13:49:19 +02:00
Ehsan Akhgari
9b8ecdaafa Bug 1203160 - Part 1: Turn service workers and fetch interception on in Fennec Nightly; r=nsm 2015-09-10 01:05:16 -04:00
Kartikaya Gupta
d9051e0e5d Bug 1151102 - Add some diagnostic logging. r=snorp 2015-09-09 23:22:19 -04:00
Shu-yu Guo
45211869c8 Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Wes Kocher
9de1c195f2 Merge m-c to b2ginbound, a=merge 2015-09-14 17:27:31 -07:00
Fabrice Desré
52d1c0fd88 Bug 1200445 - Expose android native apps trough the navigator.mozApps api r=snorp,ferjm 2015-09-14 09:30:28 -07:00
Wes Kocher
70fa24eece Backed out 2 changesets (bug 1200445) for test_operator_app_install.xul bustage
Backed out changeset a1f7f70e87bd (bug 1200445)
Backed out changeset fd2a42de5203 (bug 1200445)
2015-09-14 12:49:03 -07:00
Fabrice Desré
5ffb3fba25 Bug 1200445 - Expose android native apps trough the navigator.mozApps api r=snorp,ferjm 2015-09-14 09:30:28 -07:00
James Willcox
a0e96ceae4 Bug 1182665 - Adjust tile sizes depending on the screen size r=nical 2015-09-11 09:09:19 -05:00
James Willcox
cd11506884 Bug 1182665 - Use a direct JNI call to determine screen size in nsScreenManagerAndroid r=jchen 2015-09-11 09:09:18 -05:00
Wes Kocher
1ffac71f86 Merge m-c to b2ginbound, a=merge 2015-09-04 15:41:50 -07:00
Wes Kocher
f8ff1e61cb Merge inbound to central, a=merge 2015-09-04 15:34:42 -07:00
Fabrice Desré
bfcb2e2e41 Bug 1201145 - Make android intent & web activities coexist peacefully r=snorp 2015-09-04 14:06:49 -07:00
Fabrice Desré
486eb86701 Bug 1200513 - Route http(s) url to gaia r=snorp 2015-09-04 14:06:44 -07:00
Allison Naaktgeboren
da9b0cbd87 Bug 1200371 - ContentResolver.query()'s wildcard % not performing as expected.r=mcomella 2015-09-03 20:17:41 -07:00
Wes Kocher
49ee79c244 Merge m-c to fx-team, a=merge 2015-09-03 14:12:23 -07:00
Carsten "Tomcat" Book
bab23a9d3c Backed out changeset b317ee483a64 (bug 1107372) for causing test failures in test_home_provider.html 2015-09-03 17:02:20 +02:00
Kartikaya Gupta
67033a6721 Bug 1197824 - Remove/simplify more code in browser.js dealing with viewport metadata. r=snorp 2015-09-03 10:30:41 -04:00
Kartikaya Gupta
41b98b3a21 Bug 1197824 - Switch Fennec over to using the zoom constraints from Gecko. r=snorp
Now Fennec can use the message from Gecko with the zoom constraints and we can
delete a bunch of code that did the equivalent job in browser.js
2015-09-03 10:30:41 -04:00
Kartikaya Gupta
1f4c6a816d Bug 1197824 - Stop propagating the default zoom around unnecessarily. r=snorp
The default zoom value is only used on the Java side to clamp the min/max zoom
values in the case where zooming is disabled. We can do this much earlier in
the flow, when we are computing the metadata, and reduce the amount of
redundant information being passed around.
2015-09-03 10:30:40 -04:00
Kartikaya Gupta
f90caaab5c Bug 1201539 - Remove Fennec front-end code to deal with reflow-on-zoom. r=mfinkle 2015-09-04 11:49:48 -04:00
Florian Quèze
ecb2f187fc Bug 1169459 - remove the loadFromJars/jarURIs prefs, r=Mossop. 2015-09-04 11:50:49 +02:00
Gian-Carlo Pascutto
88e8796590 Bug 1107372 - Update preferences for new SafeBrowsing prefs structure. r=francois 2015-09-03 15:36:06 +02:00
Carsten "Tomcat" Book
a6ff6a0c61 merge mozilla-inbound to mozilla-central a=merge 2015-09-03 13:14:37 +02:00
Kartikaya Gupta
cb3b122036 Bug 1201217 - Don't fiddle with the resolution on tab switch when using APZ in fennec. r=rbarker 2015-09-02 16:31:06 -04:00
Carsten "Tomcat" Book
08015ac700 Merge mozilla-central to fx-team 2015-09-02 14:52:27 +02:00
Carsten "Tomcat" Book
81935f3431 merge mozilla-inbound to mozilla-central a=merge 2015-09-02 13:53:06 +02:00
dominique vincent
1dc9e98f9f Bug 1200177 - Form Assistant is not always correctly closed. r=mcomella 2015-08-31 14:28:58 +02:00
Sebastian Kaspari
56a9bf3fa2 Bug 1199596 - Only install "Parental Controls Theme" for restricted profiles and not guest profiles. r=ally
From browser.js's point of view there's no difference between restricted and guest profiles. Both use the
parental controls API. So there are only two "simple" solutions here:

* 1) Add a method to nsIParentalControlsService to determine whether the current profiles is a restricted or
  a guest profile (Something like isGuest()). But then every platform using this interface would require
  to at least implement a stub for this method.

* 2) Add a new restriction that controls installing the theme.

This patch implements option 2. While this restriction is not of much use besides deciding whether we need
to install a specialized theme (DISALLOW_DEFAULT_THEME), it still offers the most flexibility. In a
follow-up bug we could decide to make the restriction configurable by the device admin (requires localized
strings).
2015-08-31 18:09:42 +02:00
Sebastian Kaspari
26d61cfbf5 Bug 1196198 - Use ordered list to find new default panel. r=mhaigh 2015-08-31 14:26:46 +02:00
Sebastian Kaspari
32b4889eaa Bug 1199639 - Block access to about:addons for guest profiles. r=mhaigh 2015-08-28 16:37:35 +02:00
Sebastian Kaspari
cad54d5209 Bug 1195287 - Fix wrong colors in text selection toolbar on v21+. r=mhaigh
This patch creates a copy of the GeckoAppBase style in v21/themes.xml and removes
the custom icons for copy, cut and paste we use on v11+. Instead the system icons,
that match the look&feel of the ActionBar, will be used.
2015-08-28 16:22:11 +02:00
Sebastian Kaspari
d1f60fe006 Bug 1197721 - Restricted profiles: Hide "Display" menu items in non-"split pane" settings list too. r=mhaigh 2015-08-28 13:31:45 +02:00
Sebastian Kaspari
3385433bf5 Bug 1196708 - Restricted profiles: Hide Remove context menu item from Top Sites. r=mhaigh 2015-08-28 12:41:10 +02:00
Sebastian Kaspari
00eeeeb903 Bug 1197171 - Remove "Mark as read/unread" options from Top Sites grid view context menu. r=mhaigh 2015-08-28 10:02:25 +02:00
Sebastian Kaspari
58203743f2 Bug 1200151 - Restricted profiles: Hide developer tools based on restriction. r=ally 2015-08-31 13:52:32 +02:00
Margaret Leibovic
4c4a603dbb Bug 1190301 - Use compound drawables instead of ImageButton views for tab audio indicator. r=mhaigh 2015-08-24 10:12:06 -06:00
Margaret Leibovic
2085d0e695 Bug 1190301 - Enable tab audio indicator by default. r=mcomella 2015-08-24 09:30:00 -06:00
Margaret Leibovic
f3ec535d50 Bug 1190301 - Remove mute button functionality from tab audio indicator. r=mcomella 2015-08-24 08:55:43 -06:00
Michael Comella
a8dad1da57 Bug 1186020 - Convert download animation icons to white. r=liuche
To do this, I ran:
  convert <image> -alpha extract -alpha on <image>

The resultant images were slightly larger than their previous
counterparts so I then compressed them with ImageOptim.
2015-08-26 15:45:06 -07:00
Nick Alexander
a067f87693 No bug - Add |mach android| command. r=me
DONTBUILD NPOTB

This adds a pass-thru |mach android| command.  It's just here to make
it easier to add and remove Android SDK packages: since most folks
don't have the Android tools on their PATH, this saves them having to
root through the object directory to find the path to the tool.
2015-08-26 10:57:49 -07:00
Nick Alexander
2ae57f0216 No bug - Make project-wide default language level be Java 1.7 in IntelliJ. r=me
DONTBUILD NPOTB

Straight from http://stackoverflow.com/a/24751182 and the linked
IntelliJ tickets.
2015-08-21 16:16:16 -07:00
Ryan VanderMeulen
c1dcfb7c4c Merge m-c to fx-team. a=merge 2015-09-01 21:22:15 -04:00
Ryan VanderMeulen
92baa91037 Merge fx-team to m-c. a=merge 2015-09-01 21:15:09 -04:00
Allison Naaktgeboren
22e4820036 CLOSED TREE missing space in commit from Bug 1197054 2015-09-01 16:28:47 -07:00
Allison Naaktgeboren
8a23e8793a Bug 1197054 - Build changes to get rid of bookmarks.inc.r=nalexander 2015-09-01 15:52:26 -07:00
Allison Naaktgeboren
348dde3d42 Bug 1189719 - Recall and display search history within main browser UI.r=mcomella 2015-09-01 15:32:33 -07:00
Ryan VanderMeulen
65057a2bd1 Merge m-c to fx-team. a=merge 2015-09-01 15:20:21 -04:00
Fabrice Desré
6c6553885f Bug 1199873 - Map the screen on/off events to gaia events r=snorp 2015-09-01 07:45:47 -07:00
Mark Finkle
6f9d0c80b6 Bug 1129614 - Thumbnails in the tabs drawer are expired r=nalexander 2015-08-31 18:54:59 -04:00
Mark Finkle
f1d30d1a2f Bug 1078432 - Use Android print service to enable cloud printing r=sebastian 2015-08-31 17:54:23 -04:00
Ryan VanderMeulen
bea8f74710 Merge m-c to inbound. a=merge 2015-09-01 15:19:34 -04:00
Martyn Haigh
369373a0ea Bug 1196254 - Contextual hint shown the first time tracking protection is triggered is cut off in landscape r=sebastian 2015-08-21 15:55:34 +01:00
Kartikaya Gupta
680f5210da Bug 1149000. r=mfinkle 2015-09-01 13:17:25 -04:00
Michael Comella
1d1b0768ed Bug 1148550 - Remove add_tab private browsing and dark assets. r=mhaigh
Replace dark assets with tinting.
2015-08-25 15:18:54 -07:00
Michael Comella
c0873ab7e6 Bug 1148550 - Replace new tab asset with Material one. r=mhaigh 2015-08-25 10:05:47 -07:00
Michael Comella
12315bff7b Bug 1148550 - Update 3-dot menu icon to Material in tabs panel. r=mhaigh 2015-08-24 16:13:21 -07:00
Michael Comella
bed19a1882 Bug 1148550 - Update 3-dot menu icon to Material on toolbar. r=mhaigh
Other 3-dot menu button locations to follow.

I tested that the colors are correct in the various states (e.g. private
browsing).

This patch additionally:
* Restructured the menu button (which allowed the removal of a setVisibility
  call
* Removed the now unused tablet assets.
2015-08-21 17:34:00 -07:00
Michael Comella
ccdbc90470 Bug 1148550 - Add new Material 3-dot menu assets. r=mhaigh
And replace the older assets.

These are the 36dp icons from Google's material design page:
  https://www.google.com/design/icons/#ic_more_vert

Then we trim off the whitespace with image magick:
  convert icon.png -trim out.png

And compress with ImageOptim.
2015-08-21 17:36:50 -07:00
Michael Comella
20b7132cc1 Bug 1148550 - Update GeckoMenu pressed color. r=mhaigh
This also involved moving a redundant background declaration to only the
containing style.
2015-08-20 12:43:48 -07:00
Michael Comella
a60afcdb02 Bug 1148550 - Change menu padding left to 15dp. r=mhaigh 2015-08-19 16:49:01 -07:00
Martyn Haigh
85bb863813 Bug 1193745 - Implement the tablet tabs tray grid view on mobile r=mcomella 2015-09-01 13:57:44 +01:00
Garvan Keeley
00dbf67707 Bug 1200696 - Don't use VERSION_CODE as it can break the build with older sdks. r=sebastian 2015-09-01 14:17:08 -04:00
Michael Comella
7d3ab3026f Bug 1198084 - Set appropriate content description on tabs playing audio. r=mhaigh
Tested using TalkBack on N4 Android 5.1.
2015-09-02 18:34:25 -07:00
Michael Comella
90bf5c7adf Bug 1198084 - Add strings for tab playing audio. r=mhaigh 2015-09-02 18:28:07 -07:00
Michael Comella
60177911bf Bug 1198084 - Remove unused tab audio strings. r=mhaigh
These appear to have been added in the initial implementation of this feature.
2015-09-02 18:12:30 -07:00
Allison Naaktgeboren
76d0a6c603 Bug 1200299 - Change background color of header block on edit logins page.r=mfinkle 2015-09-03 10:48:14 -07:00