OSDN Git Service

android-x86/external-webkit.git
13 years agoMerge "Do more AutoFill steup lazily"
Steve Block [Wed, 1 Dec 2010 18:49:56 +0000 (10:49 -0800)]
Merge "Do more AutoFill steup lazily"

13 years agoDo more AutoFill steup lazily
Steve Block [Wed, 1 Dec 2010 18:18:33 +0000 (18:18 +0000)]
Do more AutoFill steup lazily

Currently, much of the AutoFill setup is done in the WebAutoFill
constructor, which is called when the Page is created. This change moves
this setup to be done lazily when searchDocument() is called, which is
the entry point into the feature.

Change-Id: I0d437ed53391b5a7d8d16ec1000dc783c710e564

13 years agoMerge "Fix a bug when cleaning up private browsing"
Steve Block [Wed, 1 Dec 2010 17:26:40 +0000 (09:26 -0800)]
Merge "Fix a bug when cleaning up private browsing"

13 years agoMerge "Youtube urls can now start with /v/ or /e/"
Kristian Monsen [Wed, 1 Dec 2010 17:22:48 +0000 (09:22 -0800)]
Merge "Youtube urls can now start with /v/ or /e/"

13 years agoYoutube urls can now start with /v/ or /e/
Kristian Monsen [Wed, 1 Dec 2010 12:19:46 +0000 (12:19 +0000)]
Youtube urls can now start with /v/ or /e/

Fix for bug 3242961

Note that the youtube player crashes when you launch it,
but that also happens with old style urls.

Tested with the testcase in the bug.

Change-Id: I0cb59f8404fe47aabec34c0a21e614f553ea0c32

13 years agoFix a bug when cleaning up private browsing
Steve Block [Tue, 30 Nov 2010 17:57:14 +0000 (17:57 +0000)]
Fix a bug when cleaning up private browsing

Delete the singleton WebCache and WebCookieJar objects when we
clear up private browsing, so that they are correctly recreated when
next required.

Note that this patch causes the WebCache to leak the HostResolver
object, as was the case before the refactoring in b/3113804. See
b/3243797.

Bug: 3113804
Change-Id: Ic0e2a45b5fd2b30097880e57eac2f6cadbd5dc85

13 years agoWtfStringToJString should be able to return a valid string on empty input
Ben Murdoch [Wed, 1 Dec 2010 14:38:53 +0000 (14:38 +0000)]
WtfStringToJString should be able to return a valid string on empty input

It is sometimes desirable to return a valid but 0-length string created
from a 0-length WTF string but currently the WtfStringToJString function
will always return a null jstring on an empty input. Add a parameter to
specify that it should return an empty jstring on empty WTF string and
default it to false.

Change-Id: Ia449f1f9ae9b37c3da7d0272424e4fd4878ceb31

13 years agoMerge "Add FlushCookieStore() method to CookieManager (C++ side)."
Iain Merrick [Wed, 1 Dec 2010 14:46:37 +0000 (06:46 -0800)]
Merge "Add FlushCookieStore() method to CookieManager (C++ side)."

13 years agoMerge "attach the last extra to the next picture"
Cary Clark [Wed, 1 Dec 2010 13:33:11 +0000 (05:33 -0800)]
Merge "attach the last extra to the next picture"

13 years agopass the x and y to retrieve anchor data
Cary Clark [Tue, 30 Nov 2010 20:51:10 +0000 (15:51 -0500)]
pass the x and y to retrieve anchor data

During a long press, the original pointer to the
node and frame may change. Pass the location instead
to attempt to find the anchor.

companion change in frameworks/base

bug:3240869
Change-Id: Idf5eb67e2cb544dfa312e41f9224813c6ca80563

13 years agoattach the last extra to the next picture
Cary Clark [Wed, 1 Dec 2010 12:38:01 +0000 (07:38 -0500)]
attach the last extra to the next picture

When a new picture is generated for the content,
use the last cursor ring / text selection etc.
for the interval between the picture message and
the view inval. This reduces flickering.

bug:3230094
Change-Id: Ie099a8db395bfa707790ffe3c1f7f5398cc9afa4

13 years agoAdd FlushCookieStore() method to CookieManager (C++ side).
Iain Merrick [Tue, 30 Nov 2010 11:42:19 +0000 (11:42 +0000)]
Add FlushCookieStore() method to CookieManager (C++ side).

The browser app will use this to sync cookies to flash when it is
sent to the background. Corresponding Java code is in I04e96aff.

Depends on external/chromium changes in Ie600c588.

Bug: 3231371

Change-Id: Ia9b56f3cdb5acd1fca23102b68b2f83a94ba6e69

13 years agoam e5097951: (-s ours) am 5793dcc1: Merge "Do not merge: fix dns prefetch, multiply...
Cary Clark [Wed, 1 Dec 2010 11:35:08 +0000 (03:35 -0800)]
am e5097951: (-s ours) am 5793dcc1: Merge "Do not merge: fix dns prefetch, multiply range" into gingerbread

* commit 'e5097951a2019ae742b9c348b21e613631f59cdc':
  Do not merge: fix dns prefetch, multiply range

13 years agoam 5793dcc1: Merge "Do not merge: fix dns prefetch, multiply range" into gingerbread
Cary Clark [Tue, 30 Nov 2010 19:46:28 +0000 (11:46 -0800)]
am 5793dcc1: Merge "Do not merge: fix dns prefetch, multiply range" into gingerbread

* commit '5793dcc19c1dd5f2f3daacd05646ae237f050e58':
  Do not merge: fix dns prefetch, multiply range

13 years agoMerge "hit test complete node even if partially visible"
Cary Clark [Tue, 30 Nov 2010 18:24:15 +0000 (10:24 -0800)]
Merge "hit test complete node even if partially visible"

13 years agoRemove a superfluous TODO in ResourceLoaderAndroid.cpp
Steve Block [Tue, 30 Nov 2010 15:04:16 +0000 (15:04 +0000)]
Remove a superfluous TODO in ResourceLoaderAndroid.cpp

Change-Id: I290228dce1ce3e0be56666775f591c6c2b7dab32

13 years agoMerge "Do not merge: fix dns prefetch, multiply range" into gingerbread
Cary Clark [Tue, 30 Nov 2010 13:08:37 +0000 (05:08 -0800)]
Merge "Do not merge: fix dns prefetch, multiply range" into gingerbread

13 years agoMerge "Provide a URLRequestContext directly to AutoFill, rather than a factory function"
Steve Block [Tue, 30 Nov 2010 12:20:07 +0000 (04:20 -0800)]
Merge "Provide a URLRequestContext directly to AutoFill, rather than a factory function"

13 years agoProvide a URLRequestContext directly to AutoFill, rather than a factory function
Steve Block [Tue, 30 Nov 2010 11:32:14 +0000 (11:32 +0000)]
Provide a URLRequestContext directly to AutoFill, rather than a factory function

In b/3044989, AutoFill was modified to take a factory function for the
URLRequestContext (which was then created when needed), rather than
taking the context directly. This was to avoid a race condition where
the context is created before the required storage paths have been
synced to the WebCore thread through the BrowserFrame.

Since https://android-git.corp.google.com/g/76579 and
https://android-git.corp.google.com/g/80056, we read the required
paths directly from JniUtils, so the race condition no longer exists. We
can therefore provide the context directly to AutoFill.

Note that while the context may be created before the Settings have been
synced to the WebCore thread, the necessary properties will be updated
as part of this sync before the context is used.

This change will also simplify things when we use one context per
WebView.

Also requires a change in external/chromium ...
https://android-git.corp.google.com/g/82146

Change-Id: Idfc34d435bae21654a02e5898aef0e84da98218a

13 years agoam a5b8875c: (-s ours) am 1baa4609: Cherry-pick WebKit security fix (webkit.org r6470...
Bart Sears [Tue, 30 Nov 2010 01:15:52 +0000 (17:15 -0800)]
am a5b8875c: (-s ours) am 1baa4609: Cherry-pick WebKit security fix (webkit.org r64706) Do not merge

* commit 'a5b8875c0b61e9dc9eb76e16a4cc1f741709ee74':
  Cherry-pick WebKit security fix (webkit.org r64706) Do not merge

13 years agoam 1baa4609: Cherry-pick WebKit security fix (webkit.org r64706) Do not merge
Bart Sears [Tue, 30 Nov 2010 01:12:45 +0000 (17:12 -0800)]
am 1baa4609: Cherry-pick WebKit security fix (webkit.org r64706) Do not merge

* commit '1baa4609252ea42065c4399b9081b2087c8d70a2':
  Cherry-pick WebKit security fix (webkit.org r64706) Do not merge

13 years agohit test complete node even if partially visible
Cary Clark [Mon, 29 Nov 2010 21:28:22 +0000 (16:28 -0500)]
hit test complete node even if partially visible

An older test incorrectly discards nodes if they are partially
off the screen. The test was attempting to ignore nodes that
were fully invisible, so change the test to do that.

bug:3198707
Change-Id: I3cb13de3c86b43d3388849161bdfc44f84d93b3d

13 years agoMerge "Refactoring the zoom"
Nicolas Roard [Mon, 29 Nov 2010 18:57:05 +0000 (10:57 -0800)]
Merge "Refactoring the zoom"

13 years agoMerge "AutoFill no longer needs a unique profile id native side."
Ben Murdoch [Mon, 29 Nov 2010 15:38:49 +0000 (07:38 -0800)]
Merge "AutoFill no longer needs a unique profile id native side."

13 years agoMerge changes I006cddf2,Ib304a845,I4622749d
Steve Block [Mon, 29 Nov 2010 15:19:42 +0000 (07:19 -0800)]
Merge changes I006cddf2,Ib304a845,I4622749d

* changes:
  Moves implementation of ResourceLoaderAndroid to ResourceLoaderAndroid.cpp
  Add a static WebRequestContext::acceptLanguage() method
  Make WebCookieJar::get() threadsafe

13 years agoMoves implementation of ResourceLoaderAndroid to ResourceLoaderAndroid.cpp
Steve Block [Mon, 29 Nov 2010 14:55:36 +0000 (14:55 +0000)]
Moves implementation of ResourceLoaderAndroid to ResourceLoaderAndroid.cpp

This means that the implmentation of this class for both HTTP stacks is
in the same place.

Change-Id: I006cddf27c245a88327643314bb7564a2486ff38

13 years agoAdd a static WebRequestContext::acceptLanguage() method
Steve Block [Mon, 29 Nov 2010 14:09:58 +0000 (14:09 +0000)]
Add a static WebRequestContext::acceptLanguage() method

This removes the need for PlatformBridge::computeDefaultLanguage() to
get an instance of WebRequestContext. This is part of the refactoring to
use a WebRequestContext per WebView.

Bug: 3113804
Change-Id: Ib304a8457a82d09d80fe4d6298f00f688ec53b7c

13 years agoscroll the selection when dragging near the edge
Cary Clark [Thu, 11 Nov 2010 20:26:06 +0000 (15:26 -0500)]
scroll the selection when dragging near the edge

Return the bounds of a layer.

support for a companion change in frameworks/base

bug:3186988
Change-Id: Ie8f69dc8c46c6329fd0b093ecdba4715f8cde2a9

13 years agoAutoFill no longer needs a unique profile id native side.
Ben Murdoch [Mon, 29 Nov 2010 13:25:42 +0000 (13:25 +0000)]
AutoFill no longer needs a unique profile id native side.

AutoFill profiles now use GUIDs that they generate themselves
rather than injecting a unique int ID so we no longer need to
reach into the java class to grab the ID.

Change-Id: I26492aeddd130831e941ec79ef1f5e36271903c8

13 years agoMake WebCookieJar::get() threadsafe
Steve Block [Mon, 29 Nov 2010 12:46:55 +0000 (12:46 +0000)]
Make WebCookieJar::get() threadsafe

This should have been part of
https://android-git.corp.google.com/g/78476 which factored
WebCookieJar out of WebRequestContext.

Also, now that WebRequestContext::get() is called nly on the WebCore
thread, it does not need to be threadsafe.

Bug: 3113804
Change-Id: I4622749d1650be0b9ca0d37541361955a367110f

13 years agoMerge "Factor out WebCache from WebRequestContext"
Steve Block [Mon, 29 Nov 2010 11:51:10 +0000 (03:51 -0800)]
Merge "Factor out WebCache from WebRequestContext"

13 years agoFactor out WebCache from WebRequestContext
Steve Block [Fri, 26 Nov 2010 16:11:52 +0000 (16:11 +0000)]
Factor out WebCache from WebRequestContext

This is the second step in allowing us to have a WebRequestContext per
WebView, which is required to allow the useragent string to be
configured per WebView.

Bug: 3113804
Change-Id: Idcd252194562d1ef91d9d6e2baf8c65b8ff088d4

13 years agoMerge "Minor code cleanup in WebCookieJar"
Steve Block [Fri, 26 Nov 2010 17:18:30 +0000 (09:18 -0800)]
Merge "Minor code cleanup in WebCookieJar"

13 years agoMinor code cleanup in WebCookieJar
Steve Block [Fri, 26 Nov 2010 14:31:37 +0000 (14:31 +0000)]
Minor code cleanup in WebCookieJar

Change-Id: Ia68bac6bd93b0afeff049a9ac0f056191d92d2a0

13 years agoMerge "Factor out CookieManager from WebRequestContext"
Steve Block [Fri, 26 Nov 2010 13:31:28 +0000 (05:31 -0800)]
Merge "Factor out CookieManager from WebRequestContext"

13 years agoFactor out CookieManager from WebRequestContext
Kristian Monsen [Fri, 5 Nov 2010 14:43:45 +0000 (14:43 +0000)]
Factor out CookieManager from WebRequestContext

This is the first step in allowing us to have a WebRequestContext per
WebView, which is required to allow the useragent string to be
configured per WebView.

Bug: 3113804
Change-Id: I9ccf07d4a277147e74e2f3e701bd6d2166954280

13 years agoMerge "No longer need to pass storage paths to WebRequestContext.cleanupPrivateBrowsi...
Steve Block [Fri, 26 Nov 2010 12:28:14 +0000 (04:28 -0800)]
Merge "No longer need to pass storage paths to WebRequestContext.cleanupPrivateBrowsingFiles()"

13 years agoNo longer need to pass storage paths to WebRequestContext.cleanupPrivateBrowsingFiles()
Steve Block [Fri, 26 Nov 2010 11:27:42 +0000 (11:27 +0000)]
No longer need to pass storage paths to WebRequestContext.cleanupPrivateBrowsingFiles()

Requires the following changes to frameworks/base and packages/apps/Browser
https://android-git.corp.google.com/g/81782
https://android-git.corp.google.com/g/81780

Bug: 3232569
Change-Id: I73cabb561e206beee2bc1716f04aed8764797cc1

13 years agoMerge "Fixes WebResourceRequest to correctly set load flags"
Steve Block [Fri, 26 Nov 2010 10:06:54 +0000 (02:06 -0800)]
Merge "Fixes WebResourceRequest to correctly set load flags"

13 years agoFixes WebResourceRequest to correctly set load flags
Steve Block [Thu, 25 Nov 2010 12:11:15 +0000 (12:11 +0000)]
Fixes WebResourceRequest to correctly set load flags

We now correctly set the cookie load flags and the cache control HTTP
headers.

Bug: 2889880
Change-Id: I759a3131b73a8fc82432a067a31754fcc566c136

13 years agoSession cookies are now persistent.
Iain Merrick [Thu, 25 Nov 2010 15:26:17 +0000 (15:26 +0000)]
Session cookies are now persistent.

We previously checked !IsPersistent() to determine whether a
cookie is a session cookie, but now all cookies are persistent,
so we need to call the new method IsSessionCookie().

Depends on https://android-git.corp.google.com/g/81755

Bug: 2864791
Change-Id: Ia44cd0cdc5e68a4b0a61bdeebd70cdccfc8e4e1b

13 years agoSet useCachedCredentials to true on first auth request.
Iain Merrick [Wed, 24 Nov 2010 10:38:33 +0000 (10:38 +0000)]
Set useCachedCredentials to true on first auth request.

This flag previously defaulted to false, but the Android CTS
specifies that a "sufficient" implementation should return true
on the first authentication request. (The second and subsequent
auth requests aren't tested.)

This CL sets the flag to true on the first authentication request
for a given WebRequest, but false for subsequent requests (i.e.,
if the first attempt to authenticate failed).

Using a counter rather than a flag in WebRequest for readability.
"isFirstAuthRequest" would be a bit ambiguous as a member variable,
but "authRequestCount" seems pretty clear.

Change-Id: Id9baae4c30111f743e079f90940078b07498b168

13 years agoRefactoring the zoom
Nicolas Roard [Tue, 23 Nov 2010 03:48:11 +0000 (19:48 -0800)]
Refactoring the zoom

Change-Id: I84d44b6aab2222b52d21a65ceb74e390c677fe72

13 years agoMerge "use style ignoring pending style sheets"
Cary Clark [Wed, 24 Nov 2010 19:58:36 +0000 (11:58 -0800)]
Merge "use style ignoring pending style sheets"

13 years agouse style ignoring pending style sheets
Cary Clark [Wed, 24 Nov 2010 19:50:46 +0000 (14:50 -0500)]
use style ignoring pending style sheets

If the style is not yet computed, attempting to
compute the style may blow up (e.g., the font points
to zero and is dereferenced). The webkit way around
this appears to be to ignore pending style sheets,
even though six lines down from this change, the
regular webkit makes the original styleForElement
call.

This does fix sfgate.com, so it's not a bad thing to
do, and the real style change should retrigger this
code path later on.

bug:3194102
Change-Id: Ia558e3d49c94ed817d69d528b9e914f906f62a66

13 years agoMerge "allow animated gifs to skip frames"
Cary Clark [Wed, 24 Nov 2010 18:34:30 +0000 (10:34 -0800)]
Merge "allow animated gifs to skip frames"

13 years agoMerge "Fix crash in JavaClassV8"
Ben Murdoch [Wed, 24 Nov 2010 18:23:00 +0000 (10:23 -0800)]
Merge "Fix crash in JavaClassV8"

13 years agoallow animated gifs to skip frames
Cary Clark [Wed, 24 Nov 2010 18:17:30 +0000 (13:17 -0500)]
allow animated gifs to skip frames

Removing this patch causes gifs to skip frames rather than
play all intermediate frames in an attempt to catch up.

bug:2621902
Change-Id: Idc19b11991c37c685d1dc61bb5daddc6d12d30e0

13 years agoFix crash in JavaClassV8
Ben Murdoch [Wed, 24 Nov 2010 12:16:03 +0000 (12:16 +0000)]
Fix crash in JavaClassV8

It is possible that the m_name member of JavaClass is uninitialized as
we possibly early out from the constructor if we could not load the Java
class from the JVM. In this case when we call the dtor we try to free
uninitialized memory and crash. m_name is not actually used anywhere
so we just remove it.

Will upstream to webkit.

Bug: 3222518
Change-Id: I9354e9914157d2c4afd72dcce9122329c2486c89

13 years agoMerge "Removing CRASH() from asserts in WebRequest.cpp"
Kristian Monsen [Wed, 24 Nov 2010 17:54:55 +0000 (09:54 -0800)]
Merge "Removing CRASH() from asserts in WebRequest.cpp"

13 years agoMerge "Add LayoutTests http/tests/cookies at r71558"
Steve Block [Wed, 24 Nov 2010 16:25:11 +0000 (08:25 -0800)]
Merge "Add LayoutTests http/tests/cookies at r71558"

13 years agofix radio, checkbox hit testing
Cary Clark [Wed, 24 Nov 2010 15:45:12 +0000 (10:45 -0500)]
fix radio, checkbox hit testing

Radio and checkbox input types draw only a bitmap in
their navigation bounds, and require some special treatment.

Never treat them as transparent.

Use the slop box instead of the exact box when detecting
them, since our asset may be larger than the space webkit
provides.

Also, fix a debug test if the layer is null.

bug:3215174
Change-Id: I3b573e3aa215268390db2d58435ac47115804ed7

13 years agoAdd LayoutTests http/tests/cookies at r71558
Steve Block [Wed, 24 Nov 2010 13:46:35 +0000 (13:46 +0000)]
Add LayoutTests http/tests/cookies at r71558

All tests pass or have failing test expectations.

Bug: 3227269
Change-Id: Ia0d58eb29d312c57c2f687e5431bb997b9433560

13 years agoRemoving CRASH() from asserts in WebRequest.cpp
Kristian Monsen [Wed, 24 Nov 2010 10:34:19 +0000 (10:34 +0000)]
Removing CRASH() from asserts in WebRequest.cpp

These asserts have not been triggered in months, so removing the
crash (but keeping logging), and closing bug 2951985.

Change-Id: I5bb31c6e23c18e83301428582ad895b0b679ff86

13 years agoreenable draw extras when GL is turned on
Cary Clark [Fri, 19 Nov 2010 19:23:02 +0000 (14:23 -0500)]
reenable draw extras when GL is turned on

This captures the drawing in the UI thread, then passes
the drawing to the tile imaging thread.

The draw extras interface now takes an additional rectangle,
and each draw extra fills in the inval area formed as that
part is drawn.

The old extra implementation in GLWebViewState has been
removed. The inval portion of the setBaseLayer call has been split
out so it can be called directly.

bug:3161294
Change-Id: I28d3e6879059770b973e7c0f7c0796909f7359aa

13 years agoRevert "Merge Chromium at r65505: Work around regression introduced by 64761"
Ben Murdoch [Tue, 23 Nov 2010 14:42:50 +0000 (14:42 +0000)]
Revert "Merge Chromium at r65505: Work around regression introduced by 64761"

This reverts commit 0c918ae77b5edfe59b726ff40a7c86dbc4a94307.

This was actually not really a regression as we were still broken
previously it's just that this change makes that breakage more visible.

The problem reproduces on tip of tree Chromium, so we can make the fix
upstream and then cherry pick into Android.

Change-Id: I4d65544b4ea137d77c00a39fcd29edb28b40aa1c

13 years agoMerge "By default, provide native AutoFill with an empty profile."
Ben Murdoch [Tue, 23 Nov 2010 12:20:38 +0000 (04:20 -0800)]
Merge "By default, provide native AutoFill with an empty profile."

13 years agoBy default, provide native AutoFill with an empty profile.
Ben Murdoch [Wed, 17 Nov 2010 11:03:51 +0000 (11:03 +0000)]
By default, provide native AutoFill with an empty profile.

If no profile is set then AutoFill will not inform Java that it has
found a form that could be autofilled. We want to be able to offer
the user the option Java side to set up a profile in this case, so
we set by default an empty profile that is active until the user
syncs their real profile. This ensures that the AutoFill detection
code will not early out.

Change-Id: I474b25c5b31dae59e4ddb23c7f398d013e9d3beb

13 years agoFix the Zoom out / dirty tiles bug
Nicolas Roard [Tue, 23 Nov 2010 03:25:45 +0000 (19:25 -0800)]
Fix the Zoom out / dirty tiles bug

Bug:3212531 Bug:3212527
Change-Id: Ie038f5b42cd34653f0a3e8fbe8c1fb1c0c3aceca

13 years agoFix case where the Texture class held a reference to a deleted Tile.
Derek Sollenberger [Mon, 22 Nov 2010 21:13:02 +0000 (16:13 -0500)]
Fix case where the Texture class held a reference to a deleted Tile.

bug: 3217947
Change-Id: If75673ece459d6539f1fd990d538347e13d60d68

13 years agoClear GL inside clear view.
Shimeng (Simon) Wang [Sat, 20 Nov 2010 01:50:21 +0000 (17:50 -0800)]
Clear GL inside clear view.

issue: 3215000
Change-Id: I8668a857d840084c363b13c95efffc740a1451db

13 years agoFix browser ANR when using Hardware Acceleration
Nicolas Roard [Mon, 22 Nov 2010 21:01:53 +0000 (13:01 -0800)]
Fix browser ANR when using Hardware Acceleration

Bug:3217947
Change-Id: Ic0da5c4c131026a88afff2acc254a23a4d6a42ff

13 years agoMerge "Call maybeSavePassword() from Chrome HTTP stack."
Iain Merrick [Mon, 22 Nov 2010 17:34:46 +0000 (09:34 -0800)]
Merge "Call maybeSavePassword() from Chrome HTTP stack."

13 years agoMerge "Add maybeSavePassword() method to WebFrame."
Iain Merrick [Mon, 22 Nov 2010 17:34:39 +0000 (09:34 -0800)]
Merge "Add maybeSavePassword() method to WebFrame."

13 years agoMerge "Fixes the handling of unspecified mime-type"
John Reck [Mon, 22 Nov 2010 17:29:44 +0000 (09:29 -0800)]
Merge "Fixes the handling of unspecified mime-type"

13 years agoFixes the handling of unspecified mime-type
John Reck [Fri, 19 Nov 2010 23:01:47 +0000 (15:01 -0800)]
Fixes the handling of unspecified mime-type

 Bug: 3211038 and 3211569
 If the server doesn't specify a Content-Type header in the response,
 there was no mime-type set when using the Chrome HTTP stack. This change
 fixes it so that it makes a guess based off of the URL extension.

Change-Id: I33ef90c1db54bdccb4e143795656f4f9b56572ca

13 years agoCall maybeSavePassword() from Chrome HTTP stack.
Iain Merrick [Fri, 19 Nov 2010 12:07:55 +0000 (12:07 +0000)]
Call maybeSavePassword() from Chrome HTTP stack.

This will prompt the user to save the username and password
when posting a form. Same behaviour as the Android HTTP stack.

Bug: 3060688
Test: Logged into amazon.co.uk, checked that password is saved.

Change-Id: I4185b7ef2fbb299e4441b18b50f0018f0208d264

13 years agoAdd maybeSavePassword() method to WebFrame.
Iain Merrick [Thu, 18 Nov 2010 18:18:30 +0000 (18:18 +0000)]
Add maybeSavePassword() method to WebFrame.

This calls through to the new entrypoint on the Java size
(see change I3f3f84a1). I've done some modest refactoring
to minimize code duplication. The way we obtain a pointer
to the frame is still a bit messy, but I couldn't find a
really clean solution to that.

Change-Id: Ia5c12f615b8c41f1c846bbf6fd6dcfe56f3e2a51

13 years agoProvide the line spacing attribute for textareas.
Leon Scroggins [Thu, 18 Nov 2010 18:58:43 +0000 (13:58 -0500)]
Provide the line spacing attribute for textareas.

Bug:3085564

In order to line up the WebTextView text with the page's text,
we need to know the line spacing attribute stored in the DOM.

Requires a change in frameworks/base:
https://android-git.corp.google.com/g/#change,80646

Change-Id: I539454df318826233496ffcd140ba1d6e396a4a0

13 years agoMerge Chromium at r65505: Work around regression introduced by 64761
Ben Murdoch [Mon, 22 Nov 2010 10:12:24 +0000 (10:12 +0000)]
Merge Chromium at r65505: Work around regression introduced by 64761

This is a temporary workaround to fix the regression introduced on
Android by http://src.chromium.org/viewvc/chrome?view=rev&revision=64761

It should be reverted when we understand better the root cause of the
regression.

Change-Id: I6652d817254f1b8c3857e2f14b53d5d034d2f12f

13 years agoMerge Chromium at r65505: Merge AutoFill change 64761
Ben Murdoch [Fri, 19 Nov 2010 18:41:33 +0000 (18:41 +0000)]
Merge Chromium at r65505: Merge AutoFill change 64761

Merge in http://src.chromium.org/viewvc/chrome?view=rev&revision=64761

This is not part of the bigger autofill merge as this introdcues
a regression that we need to understand.

Change-Id: I08cfcefb93181e70a8a48d0c6da2217d3a5bbcf9

13 years agoMerge Chromium at r65505: Update AutoFill files.
Ben Murdoch [Fri, 19 Nov 2010 18:26:32 +0000 (18:26 +0000)]
Merge Chromium at r65505: Update AutoFill files.

Bring our forked AutoFill files in line with r65505.

http://src.chromium.org/viewvc/chrome?view=rev&revision=63527
http://src.chromium.org/viewvc/chrome?view=rev&revision=63797
http://src.chromium.org/viewvc/chrome?view=rev&revision=64470
http://src.chromium.org/viewvc/chrome?view=rev&revision=64572
http://src.chromium.org/viewvc/chrome?view=rev&revision=64612
http://src.chromium.org/viewvc/chrome?view=rev&revision=64691
http://src.chromium.org/viewvc/chrome?view=rev&revision=64696

Change-Id: I34755e649d1093a79ad50de53dfd1d1f9e92a584

13 years agoMerge Chromium at r65505: Initiliase the OpenSSL library.
Ben Murdoch [Fri, 19 Nov 2010 13:40:28 +0000 (13:40 +0000)]
Merge Chromium at r65505: Initiliase the OpenSSL library.

See https://chromereview.prom.corp.google.com/2010002/

Change-Id: I16754f6f18a54350671a2226d4c8c69615c63812

13 years agoMerge Chromium at r65505: Update use of AutoFillProfile.
Ben Murdoch [Thu, 18 Nov 2010 19:56:26 +0000 (19:56 +0000)]
Merge Chromium at r65505: Update use of AutoFillProfile.

With this new Chromium merge, unique profile ids have been
deprecated and profile previews are obtained through the
Label function rather that PreviewSummary.

WebKit/android/WebCoreSupport/autofill/WebAutoFill.cpp:
WebKit/android/jni/WebSettings.cpp:
WebKit/android/WebCoreSupport/autofill/WebAutoFill.h:
http://src.chromium.org/viewvc/chrome?view=rev&revision=63806
http://src.chromium.org/viewvc/chrome?view=rev&revision=65100

Change-Id: I8af86c8be8627e17b13edf66349d9df8f85638a1

13 years agoMerge Chromium at r65505: Update log message handler
Ben Murdoch [Thu, 18 Nov 2010 19:54:50 +0000 (19:54 +0000)]
Merge Chromium at r65505: Update log message handler

Add new parameters to our error logging handler.

WebKit/android/WebCoreSupport/ChromiumLogging.cpp
http://src.chromium.org/viewvc/chrome?view=rev&revision=65062

Change-Id: I6f34f2c5170b218c81894da541c923782e150e2e

13 years agoMerge Chromium at r65505: Update call to CreateSystemHostResolver.
Ben Murdoch [Thu, 18 Nov 2010 19:50:49 +0000 (19:50 +0000)]
Merge Chromium at r65505: Update call to CreateSystemHostResolver.

Pass NULL, which uses getaddrinfo() as the host resolver.

WebKit/android/WebCoreSupport/WebRequestContext.cpp:
http://src.chromium.org/viewvc/chrome?view=rev&revision=64271

Change-Id: I85d9371d568911ab925307bfbeb2e984bd947e2b

13 years agoMerge "do a better job of finding closest selectable text"
Cary Clark [Fri, 19 Nov 2010 17:19:21 +0000 (09:19 -0800)]
Merge "do a better job of finding closest selectable text"

13 years agodo a better job of finding closest selectable text
Cary Clark [Fri, 19 Nov 2010 16:28:17 +0000 (11:28 -0500)]
do a better job of finding closest selectable text

Measure the closest to the edge, instead of closest to the center.

Identify vertical overlaps, and use them to discount characters
which are vertically closer.

Add more debugging.

bug:3183434
Change-Id: I80a14be25260113220e446b876868566440be252

13 years agoMerge "fix indices in cached frame"
Cary Clark [Thu, 18 Nov 2010 19:32:25 +0000 (11:32 -0800)]
Merge "fix indices in cached frame"

13 years agocall ReverseBidi as needed in FindCanvas
Cary Clark [Thu, 18 Nov 2010 19:10:13 +0000 (14:10 -0500)]
call ReverseBidi as needed in FindCanvas

bug:3184921
Change-Id: I2f05db656ab467a361fd395d264be3281f69b78c

13 years agofix indices in cached frame
Cary Clark [Thu, 18 Nov 2010 14:39:19 +0000 (09:39 -0500)]
fix indices in cached frame

After the CachedFrame is built, it may replace the previous
node. Replace the indices stored in the CachedFrame and in the
CachedNode with the index from the overwritten node.

bug:3201246
Change-Id: Ia70f4f2c1f8009db2370e723bc8631e4a3873e75

13 years agoMerge WebKit at r71558: Update WebKit revision number.
Teng-Hui Zhu [Tue, 16 Nov 2010 01:22:49 +0000 (17:22 -0800)]
Merge WebKit at r71558: Update WebKit revision number.

Change-Id: I4839c51a42fb175f7e13934b637c2dc669953726

13 years agoMerge Webkit at r71558: Functions generated from .idl file should be guarded.
Teng-Hui Zhu [Tue, 16 Nov 2010 22:07:38 +0000 (14:07 -0800)]
Merge Webkit at r71558: Functions generated from .idl file should be guarded.

This is a cherry pick from the webkit fix.
http://trac.webkit.org/changeset/72216

The change cause this compile error is
http://trac.webkit.org/changeset/71515

Change-Id: Ibf7f689b1463116bb856739af7bbab8457498d05

13 years agoMerge Webkit at r71558: Add computeDefaultLanguage
Teng-Hui Zhu [Fri, 12 Nov 2010 18:27:14 +0000 (10:27 -0800)]
Merge Webkit at r71558: Add computeDefaultLanguage

Because navigotor.language no longer hardcoded.

Note that on android HTTP stack, this function will
naivelly return English in order to avoid code dependency
on chrome stack specific code.

http://trac.webkit.org/changeset/71484

Change-Id: I151105bb1478fa2da12ecf50c45102c3afceeb82

13 years agoMerge Webkit at r71558: fix code generation script
Teng-Hui Zhu [Fri, 12 Nov 2010 01:35:28 +0000 (17:35 -0800)]
Merge Webkit at r71558: fix code generation script

This is a cherry pick of webkit change.
http://trac.webkit.org/changeset/71984

Change-Id: I7bc944b6e9105a3cbfa52be305b7bd4755205244

13 years agoMerge Webkit at r71558: Define ImageInterpolationQuality in Android
Teng-Hui Zhu [Thu, 11 Nov 2010 23:23:48 +0000 (15:23 -0800)]
Merge Webkit at r71558: Define ImageInterpolationQuality in Android

http://trac.webkit.org/changeset/71337

Change-Id: I2c800902231b676f6b9ec73fe43c6621939b9fb9

13 years agoMerge Webkit at r71558: Resolve conflit with INSPECTOR
Teng-Hui Zhu [Mon, 15 Nov 2010 22:04:10 +0000 (14:04 -0800)]
Merge Webkit at r71558: Resolve conflit with INSPECTOR

This is a cherry pick from one latest webkit fix.
http://trac.webkit.org/changeset/71981

Change-Id: I46d45af50654d836c7bfcf4c7d2d58a827cd366b

13 years agoMerge Webkit at r71558: resolve BackForwardList refactor conflict
Teng-Hui Zhu [Thu, 11 Nov 2010 19:39:36 +0000 (11:39 -0800)]
Merge Webkit at r71558: resolve BackForwardList refactor conflict

http://trac.webkit.org/changeset/70960

Change-Id: I9a423e7069bd90a37edfdfcc4bd66fdc55600bcb

13 years agoMerge Webkit at r71558: Add function focusedFrameChanged
Teng-Hui Zhu [Tue, 16 Nov 2010 19:10:55 +0000 (11:10 -0800)]
Merge Webkit at r71558: Add function focusedFrameChanged

http://trac.webkit.org/changeset/71541

Change-Id: Ic068c75dec986e8761c6d57030ce7cfba2e8eb01

13 years agoMerge Webkit at r71558: Vitual function implementation in ChromeClientAndroid.*
Teng-Hui Zhu [Thu, 11 Nov 2010 19:36:28 +0000 (11:36 -0800)]
Merge Webkit at r71558: Vitual function implementation in ChromeClientAndroid.*

http://trac.webkit.org/changeset/71041

Change-Id: Ifc88920a1cce9bf483d06a68a5ab4d23b63228d0

13 years agoMerge Webkit at r71558: Remove clipOutEllipseInRect
Teng-Hui Zhu [Thu, 11 Nov 2010 18:20:19 +0000 (10:20 -0800)]
Merge Webkit at r71558: Remove clipOutEllipseInRect

http://trac.webkit.org/changeset/70996

Change-Id: I0e12e9f1b94fc1a9798ab2faa61d4fd2aeb8f076

13 years agoMerge Webkit at r71558: Fix compiling error after a renaming
Teng-Hui Zhu [Thu, 11 Nov 2010 18:19:50 +0000 (10:19 -0800)]
Merge Webkit at r71558: Fix compiling error after a renaming

http://trac.webkit.org/changeset/71503

Change-Id: I12f477f18630b364b704b28fd63aaf46abb1be9a

13 years agoMerge Webkit at r71558: Cache.h relocated as MemoryCache.h
Teng-Hui Zhu [Thu, 11 Nov 2010 18:14:40 +0000 (10:14 -0800)]
Merge Webkit at r71558: Cache.h relocated as MemoryCache.h

http://trac.webkit.org/changeset/71492
http://trac.webkit.org/changeset/71499

Change-Id: Iacd8a22d0c1caece7bec2273f1d4e69dd3e4eb2c

13 years agoMerge Webkit at r71558: Fix Makefiles
Teng-Hui Zhu [Thu, 11 Nov 2010 18:10:30 +0000 (10:10 -0800)]
Merge Webkit at r71558: Fix Makefiles

Change-Id: I6e437c61405ca117da435b32a8a933a3aa53ba32

13 years agoMerge Webkit at r71558: Fix conflicts.
Teng-Hui Zhu [Thu, 11 Nov 2010 02:17:16 +0000 (18:17 -0800)]
Merge Webkit at r71558: Fix conflicts.

WebCore/loader/FrameLoader.cpp
http://trac.webkit.org/changeset/70960
http://trac.webkit.org/changeset/70971

WebCore/css/CSSStyleSelector.cpp
http://trac.webkit.org/changeset/71218

WebCore/css/CSSParser.cpp
http://trac.webkit.org/changeset/71218

WebCore/html/HTMLLinkElement.cpp
http://trac.webkit.org/changeset/71159

WebCore/platform/android/PlatformBridge.h
http://trac.webkit.org/changeset/71484

WebCore/platform/android/TemporaryLinkStubs.cpp
http://trac.webkit.org/changeset/71484

WebCore/rendering/RenderTableSection.cpp
http://trac.webkit.org/changeset/71382
http://trac.webkit.org/changeset/71251

WebCore/rendering/RenderLayer.cpp
http://trac.webkit.org/changeset/71536

WebCore/rendering/RenderTable.cpp
http://trac.webkit.org/changeset/71382

WebCore/Android.v8bindings.mk
http://trac.webkit.org/changeset/71515

WebCore/bindings/scripts/CodeGeneratorV8.pm
http://trac.webkit.org/changeset/71227
http://trac.webkit.org/changeset/71230

Change-Id: I3ad8c6bc6e36c90aedebedf915a8614b2c786550

13 years agoMerge WebKit at r71558: Initial merge by git.
Teng-Hui Zhu [Wed, 10 Nov 2010 23:31:59 +0000 (15:31 -0800)]
Merge WebKit at r71558: Initial merge by git.

Change-Id: Ib345578fa29df7e4bc72b4f00e4a6fddcb754c4c

13 years agoMerge "Removing tests that pass after a v8 merge"
Kristian Monsen [Wed, 17 Nov 2010 19:48:10 +0000 (11:48 -0800)]
Merge "Removing tests that pass after a v8 merge"

13 years agoRemoving tests that pass after a v8 merge
Kristian Monsen [Wed, 17 Nov 2010 17:53:59 +0000 (17:53 +0000)]
Removing tests that pass after a v8 merge

Change-Id: Ia69c678a3098cc39c1e4687bd00f8ebba41cf732

13 years agoMerge "improve select text anchor tracking"
Cary Clark [Wed, 17 Nov 2010 16:23:36 +0000 (08:23 -0800)]
Merge "improve select text anchor tracking"

13 years agoimprove select text anchor tracking
Cary Clark [Wed, 17 Nov 2010 16:00:36 +0000 (11:00 -0500)]
improve select text anchor tracking

The initial point for the touch relative to the anchor
was erroneously calculated, causing the select anchor
to jump to the left or right each time a drag was
initiated. With this fix, the anchor no longer jumps.

bug:3089212
Change-Id: I995afa97ef9851fc5f15d642d7975797d8eb2022