Commit Graph

211 Commits

Author SHA1 Message Date
Mark Finkle
dce3d92e60 Bug 696433 - Improve link rel scanning for favicons [r=mbrubeck] 2011-12-08 08:56:43 -05:00
Mark Finkle
7743ccfa61 Bug 704970 - Favicon missing on URL bar; visible in awesome screen [r=mbrubeck] 2011-12-08 08:56:41 -05:00
Mark Finkle
e1b0ff8d43 Bug 706882 - Bad viewport description on startup [r=mbrubeck] 2011-12-07 22:21:03 -05:00
Brian Nicholson
40cf92be54 Bug 701376 - show search engine(s) when there are no/few awesomebar results [r=mfinkle] 2011-12-07 17:52:07 -08:00
Brian Nicholson
fd4a33f486 Bug 701376 - AwesomeBarTabs cleanup [r=mfinkle] 2011-12-07 17:52:05 -08:00
Kartikaya Gupta
442fc65cca Bug 707675 - Catch and handle a possible OOM while getting a screenshot r=blassey 2011-12-07 17:10:21 -08:00
Patrick Walton
248af5a25c Bug 701594 - Part 8: Make double-tap-to-zoom use the bounce infrastructure. r=kats 2011-12-07 13:34:52 -08:00
Patrick Walton
16631cef12 Bug 701594 - Part 7: Remove the per-axis bounce functionality. r=kats 2011-12-07 13:34:15 -08:00
Patrick Walton
45593fc7d0 Bug 701594 - Part 6: Separate out fling and bounce animations and make them use the "valid viewport metrics" infrastructure. r=kats 2011-12-07 13:33:55 -08:00
Patrick Walton
4a96159cee Bug 701594 - Part 5: Factor out the fling timer setting functions into separate functions. r=kats 2011-12-07 13:07:24 -08:00
Patrick Walton
bd59295e9c Bug 701594 - Part 4: Make LayerController.setViewportMetrics() not automatically assume it was called by the layer client. r=kats 2011-12-07 10:48:12 -08:00
Patrick Walton
c22e958de7 Bug 701594 - Part 3: Add viewport interpolation functions. r=kats 2011-12-07 10:44:36 -08:00
Patrick Walton
78b9fe16da Bug 701594 - Part 2: Don't duplicate state in the layer controller and pan zoom controller axes. r=kats 2011-12-07 10:44:02 -08:00
Patrick Walton
8bec5742fe Bug 701594 - Part 1: Precompute the ease-out animation. r=kats 2011-12-07 10:41:58 -08:00
Matt Brubeck
2fc7edb100 Bug 708085 - Remove unused files from mobile/android/themes [r=mfinkle] 2011-12-07 10:04:15 -08:00
Sriram Ramasubramanian
254f9ac8b8 Bug 705451: Anchor needs to be updated in url bar [r=mfinkle] 2011-12-06 15:15:37 -08:00
Kartikaya Gupta
d7fe093722 Bug 706251 - Add panning performance API r=blassey
Add a PanningPerfAPI class with static methods to record panning
performance.
2011-12-01 14:11:10 -05:00
Kartikaya Gupta
0cf4fa2d5b Bug 707483 - (Cleanup) Remove some unused event listeners [r=mfinkle] 2011-12-06 13:56:17 -05:00
Kartikaya Gupta
92d1c34ffe Bug 707483 - (Cleanup) Move tab-specific event handlers from BrowserEventHandler to Tab [r=mfinkle] 2011-12-06 13:53:10 -05:00
Kartikaya Gupta
5d06f92224 Bug 707483 - Make javascript scrollTo work properly [r=pcwalton]
If a scroll event comes in that changes the scroll coordinates
from those that were last set by user scrolling in Java, then
update the Java viewport with the new coordinates. Note that
this may occur in the middle of a draw, when Gecko already has
the transaction lock acquired on the tile buffer. Therefore we
need to delay the update until after the draw is complete.
2011-12-06 13:50:21 -05:00
Kartikaya Gupta
7b8edc0586 Backout 884b705c99fb (bug 704738) for twinopen failure 2011-12-06 13:45:32 -05:00
Axel Hecht
1e635cd3f5 bug 702302, bug 705137, enable l10n repacks for native UI, r=blassey,wesj
Fixing the l10n.ini and filter.py for both native and xul UI.
Fixing the repack logic for native to support both single-locale repacks
and multi-locale builds.
Removing some deb packaging code, that's not of any use for android native.
2011-12-06 16:54:12 +01:00
Kartikaya Gupta
f573cb88fd Bug 704738 - Resize page content on device rotation [r=wesj]
If the device rotates, ensure we don't end up with grey
areas because the page didn't zoom in enough.
2011-12-06 10:39:09 -05:00
Chris Lord
11a0149c9a Bug 703573 - Make document sub-frames scrollable. r=kats
The new Java compositor only handles scrolling the top-level scroll-frame. Use
browser.js to detect when a sub-frame is being scrolled and send an 'override'
event to Java to tell it to pass us scroll events instead of calling the
scroll function on the LayerController.
2011-12-06 15:13:14 +00:00
Sriram Ramasubramanian
b64d84ae3a Bug 707326: Reordering GeckoApp's AbsoluteLayout [r=pcwalton, r-mfinkle] 2011-12-02 15:41:14 -08:00
Steffen Wilberg
70d7dfa873 Bug 707575: about:fennec (about:firefox) appears too small (zoomed out) because of missing viewport meta tag. r=mfinkle 2011-12-05 19:26:44 +01:00
Kartikaya Gupta
e519a8f623 Bug 704738 - Snap to edges on device rotation [r=Cwiiis] 2011-12-05 13:23:32 -05:00
Wes Johnston
fd749418cf Bug 697701 - Double tap zoom support. r=cwiiis 2011-11-15 13:41:19 -08:00
Kartikaya Gupta
cb40afef41 Bug 696319 - Scroll window as needed when soft keyboard is up [r=mfinkle]
Send an event to scroll to the focused input field when the
soft keyboard comes up. Ensure that this happens *after* the
viewport change event is sent to Gecko, so that Gecko actually
knows that browser viewport is smaller and doesn't just no-op
the scroll request.
2011-12-03 22:59:27 -05:00
Kartikaya Gupta
e7a47c7a57 Bug 706614 - Catch OOM generating thumbnails [r=mbrubeck]
Prevent an out-of-memory error while generating a thumbnail
from taking down the entire application.
2011-12-03 22:54:05 -05:00
Sriram Ramasubramanian
8004a5b031 Bug 705041: Verify error in pre-honeycomb versions for ActionBar [r=mfinkle] 2011-11-30 13:30:02 -08:00
Sriram Ramasubramanian
068a32a466 Bug 703656: Optimize tab adapter in TabsTray [r=mfinkle] 2011-11-22 12:32:45 -08:00
Kartikaya Gupta
a2dac44a5d Bug 707285 - Disallow browser.js from overriding viewport size [r=pcwalton]
Don't allow Gecko to set the viewport size because Java knows
this better. Allowing this behaviour could result in Bad Things(TM)
under certain race conditions such as described in bug 707285.
2011-12-03 10:56:39 -05:00
Alex Pakhotin
4b9236a1fa Bug 705457 - Tab key should move focus to the next field in a form. r=blassey 2011-11-30 11:25:17 -08:00
Lucas Rocha
5d847cd2c3 Backout 839f36123bce (bug 704490) for Try failure 2011-12-02 18:38:46 +00:00
Kartikaya Gupta
700f3e80ec Bug 707132 - Adjust viewport used for meta-viewport calculations [r=mbrubeck]
Calculate the viewport size based on the user-visible content area
and the zoom factor, rather than relying on the screen size, since
the screen size doesn't take into account things like the URL bar
and android chrome that may be visible.
2011-12-02 13:11:40 -05:00
Lucas Rocha
97d5542205 Bug 704490 - Abstract all bookmark/history access behing a common API (r=blassey) 2011-12-02 17:27:56 +00:00
Lucas Rocha
4371f3e59d Bug 705212 - Update go/search icon on AwesomeBar for ICS/Honeycomb (r=mfinkle) 2011-12-02 16:49:28 +00:00
Lucas Rocha
ff918c0f8d Bug 706550 - Rename "All Sites" tab to "Top Sites" in AwesomeBar (r=mfinkle) 2011-12-02 16:47:42 +00:00
Lucas Rocha
8c319730fa Bug 706848 - Remove unused imports from AwesomeBar and AwesomeBarTabs (r=mfinkle) 2011-12-02 16:44:28 +00:00
Lucas Rocha
9e3ddd3676 Bug 706848 - Remove unnecessary @Override instances from AwesomeBarTabs (r=mfinkle) 2011-12-02 16:44:26 +00:00
Mark Finkle
f46b9389d2 Bug 707015 - BrowserApp.addTab(aURI) doesn't put the new tab in the foreground [r=sriram] 2011-12-02 11:12:47 -05:00
Mark Finkle
1de81ac3e5 Bug 706644 - Going back from about:home still displays about:home [r=blassey] 2011-12-02 11:12:43 -05:00
Mark Finkle
4f75250356 Bug 707014 - JavaScript Error: 'frame.frameElement is null' {file: 'chrome://browser/content/browser.js' line: 1856} [r=wesj] 2011-12-02 11:04:09 -05:00
Brad Lassey
ef43bddba9 merge birch to mozilla-central
--HG--
rename : embedding/android/GeckoBatteryManager.java => mobile/android/base/GeckoBatteryManager.java
2011-12-06 13:55:36 -05:00
Brian Nicholson
0ad7c93490 Bug 705725 - Move preferences getting out of the startup path [r=dougt] 2011-12-01 17:27:11 -08:00
Brad Lassey
f10333a841 bug 706901 - follow up to fix bad merge r=me 2011-12-01 19:02:05 -05:00
Brad Lassey
4395bf3fb7 bug 706901 - Get generating screenshot off the main thread if possible r=dougt 2011-12-01 17:54:19 -05:00
Brad Lassey
97a3c5530f bug 706822 - Delay when opening the AwesomeScreen and intermittent UI pauses when scrolling through listing of items r=dougt 2011-12-01 17:53:02 -05:00
Brad Lassey
fcfe34c425 bug 701791 - startup: android.view.MotionEvent.getActionMasked on Sony Ericsson Xperia x10i (NPE's) r=dougt 2011-12-01 17:47:40 -05:00
Patrick Walton
747a4d7e3c Bug 705170 - Use OES_draw_texture to render textures to the screen. r=Cwiiis 2011-12-01 14:05:41 -08:00
Mark Finkle
c42843fef8 Bug 706830 - pressing 'back' doesn't return user to about:home [r=mbrubeck] 2011-12-01 15:12:45 -05:00
Chris Lord
b196b19f2b Bug 706615 - Panning motion slows, then jerks. r=kats
The velocity filter patch from bug #705114 changed how displace worked during
panning, but this accidentally changed how it worked in some non-panning
situations (such as at the end of a fling or snap animation).
2011-12-01 19:27:50 +00:00
Kartikaya Gupta
c844bf872f Bug 704690 - Abort flings on gecko viewport update [r=Cwiiis]
If the Java code is in the middle of a fling when Gecko sends
a viewport update, abort the fling, cancel the velocity, and
re-fling. The re-fling is purely to get the page snapped to an
edge if needed.
2011-12-01 09:37:37 -05:00
Kartikaya Gupta
e6126c1cc3 Bug 704690 - Scroll on in-page links [r=Cwiiis]
Force a viewport update to Java when there is an in-page
navigation, as this will change the scroll coordinates.
This includes splitting the existing sendViewportUpdate
function into two - one that does the update and the other
that just does the send.
2011-12-01 09:36:41 -05:00
Brad Lassey
29bd27c504 bug 706383 - Save screenshot in bundle, adjust indentation r=dougt 2011-11-30 21:31:41 -05:00
Brad Lassey
c184dc6b6e bug 706658 - ennec defaults to about:support as a start page r=mfinkle 2011-11-30 21:28:05 -05:00
Brad Lassey
e7dda4c07e bug 705993 - read recommended-addons.json from the profile dir r=mfinkle 2011-11-30 21:28:05 -05:00
Brad Lassey
0c675775f4 bug 706393 - Add API to GeckoApp to get profile dir r=mfinkle 2011-11-30 21:28:05 -05:00
Brad Lassey
558cf1a575 bug 706383 - Save screenshot in bundle, clean up old unused code r=dougt 2011-11-30 21:28:05 -05:00
Brad Lassey
690edac9e0 bug 706383 - Save screenshot in bundle r=dougt 2011-11-30 21:28:05 -05:00
Brad Lassey
e37fccddf5 bug 704022 - PlaceholderLayerClient OOM at ByteBuffer.allocateDirect r=dougt 2011-11-30 21:28:04 -05:00
Matt Brubeck
437303c704 Bug 706705 - Fix "this.browser.contentDocument.body is null" error message [r=wesj] 2011-11-30 17:03:24 -08:00
Mark Finkle
191609dc93 Bug 706351 - Add support for Console API r=mbrubeck 2011-11-30 17:37:59 -05:00
Wes Johnston
53f126bec4 Bug 704579 - Tap highlights. r=cwiiis 2011-11-30 16:10:25 -05:00
Wes Johnston
c9b2105a53 Bug 705505 - Extend panzoom threshold. r=kats 2011-11-30 16:10:22 -05:00
Kartikaya Gupta
da116c45a0 Bug 706207 - Fix incorrect pageWidth in viewport update [r=dougt]
Missing pieces of the document resulted in pageWidth getting
assigned to NaN, which was serialized as null by JSON. This
resulted in an exception over in Java-land when deserialization
was attempted, and killed the viewport update entirely.
2011-11-30 14:22:40 -05:00
Steffen Wilberg
98e78974cf Bug 706272: Vertically align (center) the Clear button in about.config. r=mfinkle 2011-11-30 19:34:18 +01:00
Chris Lord
307be0441c Bug 705171 - Render when necessary, instead of continuously. r=kats,pcwalton
Set the render mode to RENDERMODE_WHEN_DIRTY and request a redraw when a layer
transaction ends and when the viewport in LayerController changes. This stops
us from drawing continuously.
2011-11-30 17:27:13 +00:00
Chris Lord
d00ca6f79c Bug 705114 - Filter velocity changes for kinetic panning. r=kats
Certain devices, such as the HTC Flyer, deliver motion events with identical
coordinates before a touch-release event. This causes kinetic panning to fail,
as the calculated velocity is only based on the last two events.

Introduce a velocity change factor, so that the velocity can only change by a
certain amount per event. This has the effect of smoothing velocity changes
and fixes the bug on the HTC Flyer, at least.
2011-11-30 11:32:49 +00:00
Doug Turner
a3e7dac5b5 no bug - more exceptions on ics. This block also throws a android.database.sqlite.SQLiteException. I am just going to catch everything for now. r=me 2011-11-30 00:13:36 -08:00
Brad Lassey
5f5d2704af no bug - fix crashing when we unregister an sms handler that isn't registered r=dougt 2011-11-30 01:57:04 -05:00
Doug Turner
eda415d74d no bug - Add try-catch blocks to the stuff that is throwing caused by 9aa68bb7be35 and 9a578e5405f5. r=me 2011-11-29 22:02:55 -08:00
Brad Lassey
8162819b01 bug 704307 - strictmode Disk read Violation when loading awesomebar r=dougt 2011-11-29 22:54:07 -05:00
Brad Lassey
fd1a67b876 bug 705402 - Save thumbnails in the history DB r=dougt 2011-11-29 22:54:07 -05:00
Brad Lassey
8fa901c3ce bug 706325 - add thumbnails to tab objects r=dougt 2011-11-29 22:54:07 -05:00
Doug Turner
0a640468d8 Merge with mozilla-central 95bca70369ef
--HG--
rename : embedding/android/AndroidManifest.xml.in => mobile/android/base/AndroidManifest.xml.in
rename : embedding/android/GeckoApp.java => mobile/android/base/GeckoApp.java
rename : embedding/android/GeckoAppShell.java => mobile/android/base/GeckoAppShell.java
rename : embedding/android/GeckoEvent.java => mobile/android/base/GeckoEvent.java
rename : embedding/android/GeckoSmsManager.java => mobile/android/base/GeckoSmsManager.java
rename : embedding/android/Makefile.in => mobile/android/base/Makefile.in
2011-11-29 20:58:39 -08:00
Doug Turner
f366c56d8b bug 705726 - No need to schedule redraw when conntecting gecko. r=pwalton 2011-11-29 16:29:16 -08:00
Doug Turner
22dd926d47 Backing out 09ad1564cd78. Wrong patch. 2011-11-29 16:27:23 -08:00
Brad Lassey
993aad8807 bug 701380 - follow up to fix buring r=me 2011-11-29 18:54:27 -05:00
Brad Lassey
7842ed81b5 bug 701380 - Implement a native about:home (start page) r=mfinkle
--HG--
extra : rebase_source : 3b61498dc4a17fbec21531bd831994f81fb85532
2011-11-29 01:38:35 -05:00
Doug Turner
96cd9b3757 bug 705726 - No need to schedule redraw when conntecting gecko. r=pwalton
--HG--
extra : rebase_source : 684e1bd83e010b213416c5bb715c16c07c3b74ea
2011-11-29 15:30:33 -08:00
Doug Turner
ab6eacddb2 no bug - remove content sink prefs and use default. r=pwalton
--HG--
extra : rebase_source : bcb4a50cb5e86b5566c1b81a896bc0079daa6490
2011-11-29 15:27:39 -08:00
Matt Brubeck
6cf5ba5b9c Bug 706215 - Send viewport updates from JS when metadata changes [r=mfinkle] 2011-11-29 14:45:18 -08:00
Matt Brubeck
834b6f6225 Bug 706160 - Don't auto-scale frameset pages [r=mfinkle] 2011-11-29 12:58:31 -08:00
Brian Nicholson
5c4e1e6a80 Bug 697857 - User Agent Switcher [r=mfinkle] 2011-11-29 10:43:29 -08:00
Steffen Wilberg
4a3d30d006 Bug 705850: Change about:config placeholder text from 'Filter Preferences' to 'Search Preferences'. r=mfinkle 2011-11-29 19:03:58 +01:00
Matt Brubeck
c04f249806 Clean up whitespace in browser.js (no bug - whitespace-only change) 2011-11-29 09:42:43 -08:00
Matt Brubeck
f764f27d3f Bug 694901 - (2/2) Set default zoom level based on viewport [r=mfinkle] 2011-11-29 09:35:26 -08:00
Matt Brubeck
fdb348c32d Bug 694901 - (1/2) Set viewport size based on meta[name="viewport"] tag [r=mfinkle] 2011-11-29 09:35:26 -08:00
Kartikaya Gupta
40aff73ee4 Bug 702983 - Reset viewport on opening new tab [r=Cwiiis]
Track the last-known viewport size in browser.js, and
open new tabs with that size.
2011-11-29 09:58:54 -05:00
Kartikaya Gupta
3564a4ada8 Bug 704950 - Update viewport as needed [r=Cwiiis]
Force updates to the Java-side viewport from
browser.js when loading a new page and switching
tabs. Ensure the scroll position and zoom are also
reset when needed.
2011-11-29 09:58:43 -05:00
Kartikaya Gupta
37965779eb Bug 704950 - Add a message to update the Java viewport [r=Cwiiis]
Add a Viewport:Update message that can be sent from browser.js
to the Java side to force an update to the viewport information.
2011-11-29 09:58:35 -05:00
Kartikaya Gupta
81e4d56a16 Bug 704950 - Remove java guess to reset viewport [r=Cwiiis]
This removes the "mNewContent" java-side guess as to when
gecko has loaded new content.
2011-11-29 09:58:22 -05:00
Mark Finkle
ecf24f982e Backout beea574981d2, e3266cb5a2a7 - tree is burning (no bug) 2011-11-29 08:42:22 -05:00
Brad Lassey
b8b507dcad follow up to bug 701380 to fix build bustage r=me 2011-11-29 08:13:03 -05:00
Brad Lassey
46bfa5de8b bug 701380 - Implement a native about:home (start page) r=mfinkle 2011-11-29 01:38:35 -05:00
Doug Turner
7da187d997 Bug 701627 - slashdot.org doesn't fire MozScrolledAreaChanged events as the page gets bigger while loading. r=mfinkle 2011-11-28 21:40:53 -08:00
Steffen Wilberg
753826b8f1 Bug 703920: In about:config, filter prefs when pressing the enter key, and close the keyboard. Remove the Filter button. r=mfinkle 2011-11-28 21:04:42 +01:00
Lucas Rocha
24e4fc2171 Bug 705105 - Only dismiss VKB when selecting lazy-loaded tabs in AwesomeBar (r=mfinkle) 2011-11-28 10:34:54 +00:00