Commit Graph

283 Commits

Author SHA1 Message Date
Steve Block
09b0ca1cee Sets default value of 'enableGeolocation' to true. This allows WebKit's DumpRenderTree to function correctly. Note that when Geolocation is used in the browser, this default value is overridden by the browser's default anyway. 2009-08-27 16:17:20 +01:00
Android (Google) Code Review
7537e3dc91 Merge change 22453 into eclair
* changes:
  Sets or clears Geolocation permissions for Google origins when the 'Location & privacy - Share with Google' sysetm setting is changed.
2009-08-27 07:43:36 -07:00
Steve Block
d875ce6dac Sets or clears Geolocation permissions for Google origins when the 'Location & privacy - Share with Google' sysetm setting is changed.
This fixes bug http://b/issue?id=1933893
2009-08-26 12:51:14 +01:00
Ben Murdoch
d497d87650 Pass the estimated size of new HTML 5 databases to the ChromeClient so it can use that amount to figure an initial default quota.
Change-Id:Ic9372b0c86472b42ba5d0b964aaff1e2bbfe3efa
2009-08-26 12:39:55 +01:00
Dianne Hackborn
4a51c20ce6 I am getting tired of the java doc warnings, so fix them.
Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
2009-08-24 17:37:32 -07:00
Leon Scroggins
b2359262b4 Implement new title bar hiding/showing behavior.
Remove the code that hides the title bar when the page finishes loading.
When the user double taps, if it did not result in changing the viewing
mode (i.e. on a mobile site), send a message to the client so we can
toggle the title bar's visibility.  Required for a change to
packages/apps/Browser

Change-Id: I0040fd183ce5673a4069e943f38eb31599c0ca7d
2009-08-24 16:55:42 -04:00
Android (Google) Code Review
840b856d2a Merge change 22452 into eclair
* changes:
  don't center zoom on size change if zoom is in progress
2009-08-24 11:47:53 -07:00
Cary Clark
a91874d1f9 don't center zoom on size change if zoom is in progress
The onSizeChange code is called when the device is rotated and
when the title bar is hidden. In the latter case, it is in response
to the zooming transition from overview mode to reading mode, and
the zoom center should not be recomputed.

http://b/issue?id=2060720
2009-08-24 14:08:43 -04:00
Android (Google) Code Review
d507ff2129 Merge change 22449 into eclair
* changes:
  Check for a null history item to avoid crashing.
2009-08-24 11:00:30 -07:00
Patrick Scott
af31c3a42d Check for a null history item to avoid crashing.
The history item may be null if this page is loaded through loadDataWithBaseURL
so we cannot count on the item being non-null.

Bug: 2073490
2009-08-24 13:59:55 -04:00
Android (Google) Code Review
ba9f5f3f6b Merge change 22440 into eclair
* changes:
  Java-side changes to persist Geolocation permissions between browser sessions.
2009-08-24 10:56:10 -07:00
Patrick Scott
4e9718d6ae Fix synchronous xml requests with ssl errors.
Use the in-memory ssl preference table before posting a message to the WebCore
thread. Since the WebCore thread is blocked waiting for the ssl resource, we
cannot query the user for their preference. If the table does not contain the
user's decision, bail on the request to avoid a deadlock.

Also mark a few of the ssl handler's method's as synchronized. This was reported
by findbugs.
2009-08-24 12:02:51 -04:00
Android (Google) Code Review
7fdab7f967 Merge change 22377 into eclair
* changes:
  The new webkit won't keep RAM cache if http header has "no-store". So remove it from StreamLoader. And fix the code where we only want to cache network  result.
2009-08-24 08:45:06 -07:00
Steve Block
9d3273f622 Java-side changes to persist Geolocation permissions between browser sessions.
This fixes bug http://b/issue?id=2054365.
2009-08-24 11:59:42 +01:00
Steve Block
06cd751b05 Adds Java-side of logic to make Geolocation obey Browser 'Enable Location' setting.
This fixes bug http://b/issue?id=2067559.
2009-08-24 10:59:57 +01:00
Grace Kloba
c3fa098ff6 The new webkit won't keep RAM cache if http header has "no-store". So remove
it from StreamLoader. And fix the code where we only want to cache network  result.
2009-08-21 17:31:11 -07:00
Derek Sollenberger
37eb3c3515 removing old gears code and correcting simple method typo 2009-08-18 14:22:26 -04:00
Android (Google) Code Review
db33d4bbae Merge change 21468 into eclair
* changes:
  Couple of fixes for viewport.
2009-08-18 10:51:49 -07:00
Grace Kloba
7a02d6e457 Couple of fixes for viewport.
http://b/issue?id=2053685. This is a tricky one. When Browser is restarted,
we may get first layout even before viewport tag is parsed. This is rare,
but it happens to Google Reader site. So we need to setup the viewport explicitly
if it happens after first layout. There is a pairing webkit change.

http://b/issue?id=2054131. When Google talk is loaded, it goes through an auth
redirect site which means first layout is called with standardLoad as false.
In this case, even the final site uses viewport tag to get mobile experience,
the intermediate one doesn't. To make sure most of the mobile sites, who
define their viewport width as device width, work correctly, we always update
the mRestoreState when we set viewport.

http://b/issue?id=2054121. When Browser is first started or restarted, the
mCurrentViewWidth is 0 as we don't know the WebView's width yet. As we can't
send VIEW_SIZE_CHANGED message directly, we reset WebView's mLastWidthSent
so that VIEW_SIZE_CHANGED will be sent from WebView when it's width is available.
2009-08-18 10:10:51 -07:00
Android (Google) Code Review
9befde04c3 Merge change 21648 into eclair
* changes:
  Remove the hack to include Gears as it is gone now.
2009-08-18 08:44:18 -07:00
Grace Kloba
325eabdc85 Remove the hack to include Gears as it is gone now. 2009-08-17 18:17:53 -07:00
Grace Kloba
d7660ccb7b Fix 2058938. As zoom control is uesd in overview mode to switch to reading
mode, we also want to hide it after double tap is done.
2009-08-17 17:13:01 -07:00
Android (Google) Code Review
86192c614c Merge change 21442 into eclair
* changes:
  Fix a cookie bug. If "secure" is in the end of the string, it was ignored.
2009-08-17 09:19:23 -07:00
Grace Kloba
dbdad99813 Fix a cookie bug. If "secure" is in the end of the string, it was ignored. 2009-08-16 00:05:01 -07:00
Leon Scroggins
f58ffac202 Hide the title bar when zoomed in. 2009-08-14 14:47:27 -04:00
Steve Block
a8dfe24da0 Adds the ability to configure the mock Geolocation service from DumpRenderTree. 2009-08-14 16:43:28 +01:00
Patrick Scott
68e5300477 The local loaders assume the url given to them is decoded.
Decode the url before passing down to the local loaders since they do not decode
the url themselves. This was creating a crash on youtube.com since the data url
was percent-encoded and failing to parse from base64.
2009-08-14 08:15:30 -04:00
Grace Kloba
455e3af1f8 Fix #2048199. Enable zoom control in the overview mode. When "+" is pressed,
treat it as double click in the middle of the page.
2009-08-13 15:27:52 -07:00
Cary Clark
543221fc4b handle false results in file.delete
found by findbugs
http://b/issue?id=1856614
2009-08-13 15:04:47 -04:00
Leon Scroggins
6679f2f708 Pass clicks to webkit's textfield to determine the new selection.
Requires a corresponding change to external/webkit.  We were previously
letting WebTextView handle clicks, determine the change in selection,
and pass that down to webkit.  This sometimes resulted in a different
placement of the caret if the WebTextView and the webkit-rendered
textfield did not line up exactly.  Now, we pass the click directly
to webkit, which determines the new selection and passes that info
back to the WebTextView.  This also has the benefit of letting
the WebTextView reflect changes in the selection that originated from
webkit. Also remove some unused parameters.
2009-08-13 14:21:24 -04:00
Andrei Popescu
385df699a6 remove Gears 2009-08-13 13:07:48 +01:00
Android (Google) Code Review
f2c9b2c0b4 Merge change 20706
* changes:
  Improve Browser performance by 1-2%. To address domain sanity bug, http://b/issue?id=1022797, we decoded/encoded the url for each request. As the url can be long, getBytes() and String.init are taking 1.5% in nytimes.com and 2.4% in cnn.com. By doing a simple URL encoding test, we can shave 1-2 secs thread time during loading.
2009-08-12 09:27:01 -07:00
Android (Google) Code Review
97732c41c3 Merge change 20744
* changes:
  Adds Java side of browser GeolocationService.
2009-08-12 07:26:48 -07:00
Steve Block
67e1eb6864 Adds Java side of browser GeolocationService. 2009-08-12 15:23:11 +01:00
Android (Google) Code Review
ce6182fa49 Merge change 20788
* changes:
  make private inner classes static
2009-08-11 14:04:32 -07:00
Cary Clark
7ec19876c9 make private inner classes static
bug found by findbugs
http://b/issue?id=1856695
2009-08-11 16:57:43 -04:00
Android (Google) Code Review
2b7d44ed84 Merge change 20781
* changes:
  replace 'new String()' with ""
2009-08-11 13:14:16 -07:00
Cary Clark
686cf75d5c replace 'new String()' with ""
bug reported by findbugs
http://b/issue?id=1856909
2009-08-11 16:08:52 -04:00
Cary Clark
0867e69176 make final constants static
found by findbugs
http://b/issue?id=1857033
2009-08-11 15:44:31 -04:00
Grace Kloba
758bf41084 Improve Browser performance by 1-2%. To address domain sanity bug,
http://b/issue?id=1022797, we decoded/encoded the url for each request. As
the url can be long, getBytes() and String.init are taking 1.5% in nytimes.com
and 2.4% in cnn.com. By doing a simple URL encoding test, we can shave 1-2
secs thread time during loading.
2009-08-11 11:47:24 -07:00
Android (Google) Code Review
f280a1b830 Merge change 20750
* changes:
  remove unused locals
2009-08-11 10:55:24 -07:00
Cary Clark
a589419c04 remove unused locals
found by findbugs
http://b/issue?id=1857022
2009-08-11 13:45:28 -04:00
Android (Google) Code Review
44224695de Merge change 20632
* changes:
  call super.finalize() from WebView
2009-08-11 08:17:43 -07:00
Cary Clark
9a4c063874 call super.finalize() from WebView
found by findbugs
http://b/issue?id=1857144
this fixes ViewDebug which otherwise will report the
incorrect number of views
2009-08-10 17:09:51 -04:00
Android (Google) Code Review
07cbacc117 Merge change 20622
* changes:
  Remove unused member mHeaderValueIndex
2009-08-10 11:28:39 -07:00
Cary Clark
3db35b48cc Remove unused member mHeaderValueIndex
found by findBugs
fixes http://b/issue?id=1857163
2009-08-10 14:03:54 -04:00
Derek Sollenberger
fa32db15a0 setting the pixel format for a given surface 2009-08-10 10:41:35 -04:00
Alex Gruenstein
89325078db unhide postUrl 2009-08-07 16:31:12 -07:00
Grace Kloba
bf951c5afd As createCacheFile is called from WebCore instead of http thread now, remove
the endCacheTransaction/startTransaction pairs.
2009-08-06 18:44:02 -07:00
Grace Kloba
e397a88e4f Couple of tuning for the Browser zoom.
1. Added a setting to control whether a page is loaded with overview mode;
2. If there is no viewport metag tag, a page will be loaded in the viewport
   at least 800px wide.
3. When we adjust zoom scale in the overview mode, don't use animation.
4. When zoom out to close to min zoom scale, switch to overview mode. So double
   tap will always have visual feedback unless it is mobile site.
2009-08-06 13:06:10 -07:00