Commit Graph

207 Commits

Author SHA1 Message Date
Dan Egnor
ee756b3d02 Make HttpDateTime public (but hidden), so the rest of us can use it
instead of SimpleDateTime (which is super slow).
2009-07-23 16:38:50 -07:00
Leon Scroggins
72543e1bc3 Improvements to dragging on the WebTextView.
When TextView handles a mouse move as a scroll, scroll the
underlying textfield/textarea.  Also do not hide the cursor
while scrolling within a text input.  Requires a change to
external/webkit.
2009-07-23 16:32:38 -04:00
Android (Google) Code Review
f88c0a0625 Merge change 8199
* changes:
  Prevent a drag from both scrolling the page and changing the selection.
2009-07-23 10:19:27 -07:00
Android (Google) Code Review
8dc0c9b4ad Merge change 8189
* changes:
  Enforce app cache maximum size
2009-07-23 09:44:23 -07:00
Grace Kloba
675c7d2eb8 Fix 1997929. The final mScrollX/Y has been pinned to the legal bounds.
So we can't use it to calculate the intermediate scroll position. Use
the original scroll offset and scale to find the animated scroll position.
2009-07-23 09:21:21 -07:00
Android (Google) Code Review
eda7572365 Merge change 8211
* changes:
  cleanup the WebStorage Java class. There were too many calls to syncValues().
2009-07-22 11:26:16 -07:00
Andrei Popescu
9a56bb838c cleanup the WebStorage Java class. There were too many calls to syncValues(). 2009-07-22 19:21:48 +01:00
Leon Scroggins
416a3c7cdd Prevent a drag from both scrolling the page and changing the selection.
Fix for http://issue?id=1995835.  If the user uses touch to drag a
web page by the WebTextView, do not change the selection as well.
2009-07-22 13:05:43 -04:00
Andrei Popescu
1c829208ea Enforce app cache maximum size 2009-07-22 16:54:16 +01:00
Leon Scroggins
0f5ad842fb Allow the user to scroll a webpage by touching a textfield.
Fix for http://b/issue?id=1703971.  Because the browser overlays
the WebTextView over textfields, it intercepts all the touch
events, which was preventing the page from scrolling.  This
change passes the move events back to the WebView to make
the page scroll.
2009-07-22 11:21:18 -04:00
Android (Google) Code Review
c309e1509e Merge change 8025
* changes:
  wire appcache to the HTML5 UI
2009-07-22 00:45:05 -07:00
Patrick Scott
9f61732e9b Add text extensions to the extension mime type map.
The Browser used to have a concern around mapping text extensions to various
text/* mime types. If a text extension mapped to an unknown text/* mime type,
the Browser would attempt to download a url instead of just displaying the
content.

There is another change in external/webkit that uses 2 static functions in
DOMImplementation that determine if a mime type is text or xml. The text
function in particular checks for a leading "text/" string in the mime type.
With that change, pruning text mime types is no longer needed.

Bug: 1988375
2009-07-21 15:28:12 -04:00
Andrei Popescu
af9c77edbd wire appcache to the HTML5 UI 2009-07-21 18:24:38 +01:00
Patrick Scott
c319c69b12 Allow 205 and 305 to have content.
205 is interpreted by Safari to be like 200 and show the given content. Change
canHaveResponseBody to allow 205 to have a body.

305 is a very rare server response indicating to the client to use the given
Location header as a proxy and reissue the original request. Curl doesn't do
anything with this header and neither does internal networking code. For now,
we will just allow the response body to propagate to webcore.
2009-07-21 07:55:50 -04:00
Android (Google) Code Review
3f52359485 Merge change 7910
* changes:
  Do not hide the soft keyboard when the DOM has moved focus.
2009-07-20 13:37:05 -07:00
Leon Scroggins
10be4fc63a Do not hide the soft keyboard when the DOM has moved focus.
Instead of calling remove(), which would hide the soft
keyboard, remove the WebTextView manually, so the soft
keyboard remains up (if it was up to begin with).  WebView
will properly handle the keys now that the focus has
changed.
2009-07-20 14:26:37 -04:00
Android (Google) Code Review
0e9dd3b008 Merge change 7827
* changes:
  Fix 1986313. WebKit assumes things happened in a certain order. In this case, we can't call LoadListener's nativeError until BrowserFrame's startLoadingResource returns. Otherwise, the failed request will not be removed from the DocLoader's request list. So the page will never finish loading.
2009-07-20 11:22:01 -07:00
Android (Google) Code Review
cd54538fa6 Merge change 7884
* changes:
  Clear the WebTextView in didFirstLayout.
2009-07-20 10:10:33 -07:00
Leon Scroggins
10c7a4da56 Clear the WebTextView in didFirstLayout.
When reaching a new page, remove the WebTextView. This
fixes a bug where the user logs into a site, and the
WebTextView remains on screen.
2009-07-20 11:54:05 -04:00
Patrick Scott
fb6aecb703 Added hooks from jni to create and manage SurfaceViews for plugins.
A subclass of SurfaceView is created in order to appear like a normal
SurfaceView to jni but can be managed in Java easily. This class implements the
SurfaceHolder.Callback interface in order to notify the native PluginSurface
when the surface changes.
2009-07-20 09:31:56 -04:00
Grace Kloba
fadbbd2a0c Fix 1986313. WebKit assumes things happened in a certain order. In this case, we can't call LoadListener's nativeError until BrowserFrame's startLoadingResource returns. Otherwise, the failed request will not be removed from the DocLoader's request list. So the page will never finish loading. 2009-07-17 20:39:25 -07:00
Leon Scroggins
0857767516 Show the password in browser password fields.
Fix for http://b/issue?id=1979719 : cannot see password in browser
textfield.  Show the system's password transformation in a password
field, which can be set to show the text partially or completely,
rather than webkit's version, which never shows the text.
2009-07-16 15:03:27 -04:00
Patrick Scott
4c3ca701fe Check for a null url before trying to load it.
There are some bad things that happen if WebCore gets a blank url.
2009-07-16 08:37:27 -04:00
Grace Kloba
d7f2036aaa resolved conflicts for merge of 21d769da to master 2009-07-15 14:38:20 -07:00
Patrick Scott
fe4fec7c66 Remove all our old high priority knowledge since WebCore will manage it.
Also removed an unused variable in RequestQueue.java.
2009-07-15 15:48:02 -04:00
Android (Google) Code Review
21d769da89 Merge change 6926 into donut
* changes:
  Fix #1976384. Add p12 to the MimeTypeMap. When downloading p12 in the WebView, send it to the certTool.
2009-07-15 09:47:05 -07:00
Grace Kloba
f8ddc988dc Fix #1976384. Add p12 to the MimeTypeMap. When downloading p12 in the WebView, send it to the certTool. 2009-07-14 15:44:58 -07:00
Andrei Popescu
190adf7fb2 Remove the Google domains from the Gears permission table when the global location setting is set to false 2009-07-14 14:24:04 -07:00
Andrei Popescu
15d21453b0 Do not merge
Install an observer for the Location system setting and
move the Gears permission check to a slightly earlier time.
Move the logic into a separate manager class.

Also delete some whitespace and fix some style issues.
2009-07-10 17:54:32 +01:00
Andrei Popescu
972acd0c33 Undo the changes accidentally merged from Donut 2009-07-10 16:58:13 +01:00
Grace Kloba
ec696c0115 Fix the build. Remove mPluginsPath as it is not used in the master any more. 2009-07-09 14:07:55 -07:00
Android (Google) Code Review
a5f451f3ae am 3bb69233: Merge change 6620 into donut
Merge commit '3bb692338fed7f34f010398fe8b831d0de22c6e8'

* commit '3bb692338fed7f34f010398fe8b831d0de22c6e8':
  Keep Gears permissions in sync with system location settings.
2009-07-09 12:50:26 -07:00
Andrei Popescu
215a23654a Keep Gears permissions in sync with system location settings. 2009-07-09 17:33:26 +01:00
Android (Google) Code Review
e541ba9e8d Merge change 6356
* changes:
  Add fullscreen support back in.
2009-07-09 06:39:47 -07:00
Andrei Popescu
3c946a1a96 Add fullscreen support back in. 2009-07-08 17:01:59 +01:00
Leon Scroggins
43488fc78c Update text webcore thread's text generation number.
When the user edits text in a textfield, we increase a generation
number so we can mark changes from webkit to be out of date.  With
this change, update webcore's notion of the text generation number
in deleteSelection and replaceTextfieldText, in addition to
passToJs.  Requires a change in external/webkit.
2009-07-07 10:07:17 -04:00
Android (Google) Code Review
005ae544f9 am 79ec07b3: Merge change 6241 into donut
Merge commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed'

* commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed':
  Fixes #1444844. Set a maximum fling velocity in scrollable views.
2009-07-06 13:12:36 -07:00
Romain Guy
4296fc4d32 Fixes #1444844. Set a maximum fling velocity in scrollable views. 2009-07-06 11:48:52 -07:00
Android (Google) Code Review
f6a6cff234 am 4492bcb8: Merge change 6081 into donut
Merge commit '4492bcb851f4ee862a446664eb9045045ebb7b5e'

* commit '4492bcb851f4ee862a446664eb9045045ebb7b5e':
  Migrate to the CertTool library.
2009-07-06 11:22:11 -07:00
Patrick Scott
0a5ce01eda Basic changes to get embedded video working.
Add the ViewManager class to handle child views within a WebView. This class
attaches and removes the views in the UI thread. It also scales the layout
params based on the scale of the WebView.
2009-07-06 14:08:45 -04:00
Android (Google) Code Review
ae596082b5 Merge change 6159
* changes:
  Add the code to detect how long the WebViewCore thread is idle in the real time.
2009-07-06 10:29:41 -07:00
Leon Scroggins
4890feb048 In WebTextView, check the focus before sending a key.
This fixes a bug where the DOM has moved the focus, but the WebTextView
is still sending keys to the old focus.  Requires a change in
external/webkit.
2009-07-06 11:15:07 -04:00
Chung-yih Wang
bf20b9963a Migrate to the CertTool library.
Keystore is reimplemented and it is mainly for storing
(key, value) pair generically. The certificate related
APIs are moved to the class CertTool instead.

Updates:
  Provide the getInstance() which gives the singleton.
  Fix the missing construction of the BIO in cert.c.
2009-07-04 00:22:51 +08:00
Grace Kloba
f099481c26 Add the code to detect how long the WebViewCore thread is idle in the real time. 2009-07-02 17:22:01 -07:00
Derek Sollenberger
945f3b43a0 recognize when plugin is eligable for user events and then notify the plugin. 2009-07-02 10:27:08 -04:00
Android (Google) Code Review
e10809d02c am 7a573862: Merge change 5720 into donut
Merge commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60'

* commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60':
  Fix #1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it.
2009-07-01 11:19:50 -07:00
Leon Scroggins
409812691d Fixes for moving a focused textfield on screen when entering a character.
When the focused node is a textfield, but the WebView has focus
(for example if the page had an initial focus) and the cursor
is not over a plugin or textfield, rebuild the WebTextView
to handle the keys.  Also, remove mScrollToAccommodateCursor,
since now the WebTextView is only showing when we want to
scroll.
2009-07-01 10:57:47 -04:00
Leon Scroggins
3ccd3655a0 Fix a WebView longpress bug.
Longpressing on a WebView while the WebTextView is up calls
WebTextView::performLongPress().  This used to be fine, but now
we may still leave the WebTextView up while the user is longpressing
on something else.  Check to ensure that the focus is the same
as the cursor before calling WebTextView's version.  Also,
send a click if the user longpresses on a different WebTextView,
so it will now behave appropriately.  Requires a change in
external/webkit.

Also remove a duplicate check for inEditingMode().
2009-06-30 11:47:26 -04:00
Leon Scroggins
8cdad88915 Make the caret/selection draw when gaining window focus.
When the WebView loses WindowFocus, we stop drawing the
selection.  We need to resume drawing it, especially for
the context menu, which steals WindowFocus.  Corresponds
to a change in Webkit.
2009-06-30 10:28:44 -04:00
Grace Kloba
65c0fc4fc4 Fix #1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it. 2009-06-29 17:03:42 -07:00