summaryrefslogtreecommitdiffstats
path: root/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Remove quick controlsVivek Sekhar2014-10-2318-1675/+36
| | | | Change-Id: I0fa64f0fcd800db0c8d5c91dcbbcc265f4d8eb48
* Fix remaining createScreenshot referencesVivek Sekhar2014-10-223-63/+36
| | | | | | | | | | | | Fixed references to createScreenshot method which was returning a null bitmap. createScreenshot method was implemented using the older getViewportBitmap synchronous API which was deprecated. WebView exposes an asynchronous method getContentBitmapAsync to retrieve a bitmap of the current view. Modified calls to use the getContentBitmapAsync API. This also fixes the issue seen where an async task was fired in a loop to retrieve the bitmap resulting in wasted CPU cycles. Change-Id: Ic6d8385d41d90c58fdffcebcbca7ebd68381530f
* Save crash logs on a serverPankaj Garg2014-10-202-0/+254
| | | | | | If the browser crashes, save the crash logs on a remote server. Change-Id: I2758c11909d6d85d3472f5254e54dd9cbece728c
* Fix crash due to a false positive in sandboxed-process identification.Enrico Ros2014-10-161-19/+15
| | | | | | Fixes crash on HTC One M8 (and potentially other devices). Change-Id: Iee60c6b193b844bf1e075adb87b4be4d63e15d58
* Fix URL bar focus after exiting fullscreen videoPanos Thomas2014-10-161-0/+7
| | | | | | Prevent TitleBar focus when CustomView is shown. Change-Id: I58bd0d26fca9238a106fce92ab7da7798bff1edd
* Fix for ActionBarContextView not shown in landscape modePanos Thomas2014-10-143-104/+7
| | | | | | | | | - Revert commit 244dc4635f1a43673d3a5a716639db7b2ba6e6b3 "Fix Url text not getting deleted on pressing delete key." - Set UrlInputView text to full URL in HIGHLIGHTED state as opposed to NORMAL state to address issue with delete key. Change-Id: I0d92937413d6c7c33e96f2134930179a64421316
* Add user activity hint for bookmarks viewDany Rybnikov2014-10-051-0/+4
| | | | Change-Id: I0c1c38b0b76902570553630b57db8c9b2816b0e2
* Make web contents debugging always enabledAxesh R. Ajmera2014-10-031-0/+3
| | | | Change-Id: Ia67572799090d1e3fc81e5abe1f83b877798566c
* Remove double tap zoom from adavanced browser settings.Tarun Nainani2014-10-011-0/+2
|
* Fix for upload handlerAxesh R. Ajmera2014-09-292-33/+26
| | | | Change-Id: I04689ba507719f3cb55683acf1e8427b1e2c6e07
* Fixed rendering noreferrer linksPankaj Garg2014-09-261-6/+20
| | | | | | | Additional fix for rendering noreferrer links. This change prevents content layer from overriding newly created webcontent. Change-Id: Iafde5b63366593bb44420fff6e1b7f7b80721b84
* Auto reload page if render process crashesPankaj Garg2014-09-261-0/+5
| | | | | | | If render process for an inactive tab crashes, the tab will automatically get reloaded when the user switches to the tab. Change-Id: Ic132bc50264c92d40332d99ba1f17714e9de163b
* Fix crash on API level 16Sudheer Koganti2014-09-261-1/+1
| | | | | | | Thread.quitSafely is not a supported method on API 16. Fixed by using the alternate quit() method. Change-Id: I711ce90a61a45ece67309db24d96e012361e7513
* Fixed rendering of noreferrer links in new tabPankaj Garg2014-09-231-3/+12
| | | | | | | | | | | | | Rendering of a link that opens in a new tab and the link contains "rel=noreferrer" tag was failing. The noreferrer tag causes opener to be suppressed. Due to a race condition in the code when OpenURL is called the web content delegate is not yet configured. This fix informs browser that opener is suppressed. The browser calls explicit loadURL for this case. Change-Id: Id9f45a934a5fe7df1f06dc753f93053556943249
* Porting browser changes from 1599-qrd to 1847Tarun Nainani2014-09-2217-113/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----- Added WebsiteSettingsFragment in known fragments Missing fragment was causing 'Settings > Advanced > Website settings' to crash. Change-Id: Iaf99a292293e269a1f359acb52f3448ed90c2abc ----- Increase max sandboxed process services to 19 in SWE Browser manifest matching the content shell. ----- Hide title bar feature is enabled and required callbacks are implemented. - Add a new setting to allow media downloads - if audio and video mimetype based urls which do not have "Content-Dispostion: attachment" in response header should be allowed to download or not Change-Id: If5892db0bbfb81eaa6b0ae2a7e1ae81e98d08d33 - Add "modify audio settings" permission in AndroidManifest for browser Change-Id: I68bf299785839cf2b11b78d1d53f6ec03bd10b62 - Browser to allow adding extra HTTP headers. Change-Id: Ibd6b76a0001fd6e08cc0565231b09efe0f63bdf2 - Allow auto play without Gesture Change-Id: I666658ae6955a43ab346d01e733ef6480e615ce1 - Expose 'def_enable_media_downloads' for clients to override Media download option. Change-Id: I026d7982fa2507d5f461bdae04d2f6413f2eb822 - Hide LIVE_MENU items on non http/https pages - Hide the following menu items on non http/https URIs - Share page - Find on page - Request desktop site - Save for offline reading Change-Id: I54de428130a2aab27d1eb4b67b84d2911ae356b2 - Enable Save for offline option only after page is fully loaded. Change-Id: I876756f412f3c9462042bccf8a4a7f970e801185 - FetchUrlMimeType was not encoding URL before calling HttpHead. Change-Id: Ib389963af0f391a5a59bbbd83feeedcf8e3dfb8d - Chinese translation for "Allow Media Downloads" Change-Id: I5a8822383d79af33e771db4c9e8ead03ebefe333 - Show only the partial screenshot instead of the whole viewport when switching back to tab. Change-Id: I442b1256460ac4da1c40941ea7a1934b8675cb3a - Fix navigation screen animation issues Height of titlebar was incorrectly added twice to the calculation of animation parameters causing: (i) AnimScreen view to be drawed below the NavTabView when swithing to navigation screen, and (ii) screen flashing when selecting a tab from the navigation screen. Change-Id: Ifec1a4a8b5832802cad7658e202f0611fb8c3bfb - Fix saving state for tabs purged by memory monitor Fetching the incognito property from the Tab's webview was causing Tabs whose webview was set to null (e.g. by the memory monitor) to be skipped when saving state. The fix uses an existing Tab API that does not presume that a Tab has a webview attached. Change-Id: I15c8c77431548ea5818ee0572f77afe2e66edf90 - Fix a continously reloading web page Page has JavaScript logic to reload on size change. When titlebar is hidden, the content margin is readjusted which is not necessary. Fixed by removing the margin adjustment. Change-Id: Id26f7785c43dc7a46615dfa03f8fecd77c432dca - Fixed browser crash that happened while saving links The encodeURL function in FetchUrlMimetype was double encoding the URL. This was leading to a corrupted URL. HttpHead was throwing an exception due to this. The encodeURL was done to fix another problem, where URLs with ### characters were causing a crash. Replaced encodeURL with URI to check if URL is correct. Also, disabled "save link" option for incorrect URLs. Change-Id: I99d606c2c59251233fa0ffad9c81138c9baa6342 - Fix various issues with autohide, quickcontrols and fixed titlebar A whitebar is seen when quickcontrols is turned on. Configuring to use fixed titlebar doesn't work anymore. Both issues are fixed by repairing the corresponding logic in BaseUi and TitleBar classes. A new feature to reveal the titlebar on pageload is added. Fullscreen logic is modfied to take into consideration of the state of quickcontrols and the fullscreen browser setting. Without these changes, going to fullscreen shows unneeded titlebar. Change-Id: I2358f3b8aec5bf28a49870fb1a8c4f49aa168351 - Use regular tab for loading url in "go live" option - This use normal tab for loading live pages instead of snapshot tab. Change-Id: Iebe8278394d983f461892a91813a35f94fd8bde3 - Fix for saved pages thumbnails - Properly scale down screenshot bitmaps prior to saving as thumbnails. Addresses the issue of partially displaying saved pages thumbnails as well as UI crashes and slow scrolling when there is a large number of saved pages. Change-Id: Ib89722da767759740773f0ce3a6f018b5782a8a5 - Prune bitmap recycle calls Remove recycle() calls in preference to setting the bitmap to null to avoid accidental deletion of a bitmap when its still in use. Change-Id: I7c67eecafdcaf0795de3250fe10650bef7dd76d8 - Fixes back navigation when UserAgent is changed on new tab When clicking a link opens up a new tab, and the user agent is changed for this new tab, browser was creating a new navigation entry. When user clicked back button the browser was going back to the same page, instead of removing the tab. For example, the user agent can be change by enabling/disabling desktop site. Change-Id: Id52fb20e9f056ada7d98c665b3274d85a2252935 ----- Comment out geolocation changes. Change-Id: I001bf88e5cb716fcce4b066893631627d2aee76d
* Make SWEAB work with M38 branchTarun Nainani2014-09-139-92/+132
| | | | Change-Id: I01cee135afdcde2f7dab53a9f45c0413a6cb813b
* Browser Fixes.Vivek Sekhar2014-08-053-14/+27
| | | | | | | | | - Move the browser targeted verion to SDK 19. - Remove hack to create dummy webview to call into singleton classes and use Engine class. - Add missing methods to compile for API 19. Change-Id: Ie765921f1227eb5de314ed29c5ce909bee6aea93
* Fix incorrect setting of inPageLoadPanos Thomas2014-08-011-1/+0
| | | | | | | The inPageLoad flag in Tab.java should be set only when the page is loaded (onPageStarted) as opposed to when the renderer is created (loadUrl). Change-Id: I290199e8524d28e9afb75ee4d570afa60bd91b6b
* Titlebar auto hide fixes.Vivek Sekhar2014-07-303-50/+18
| | | | | | | | - Remove setTranslationY on webview during scroll. - Use WebView API setFullscreen when Tab goes to fullscreen mode. Change-Id: I33960cec02ade01ddacad719298ea53a4723145b
* Fixes crash on saved page link selection.Vivek Sekhar2014-07-301-1/+5
| | | | Change-Id: I8f54932644e04cbe7c329fbe3b8155b873ba0ea8
* Fixes saving bookmark URL.Vivek Sekhar2014-07-301-1/+7
| | | | | | | - Certain URL's have special character that needs URL to be encoded before validation. Change-Id: Ifc1bbcc77899eb8f6fc011e208c776ca24320a17
* Fix issues in Autohide TitleBarVivek Sekhar2014-07-303-12/+15
| | | | | | | | | | - Fixes issue when longpress of TitleBar shows copy/paste menu on top of titleBar. - Fixes issue in landscape mode where the setTranslationY value is reused from portrait mode. Change-Id: I521b4dd7a5385c621c941487f77894a3dcef42d3
* Dismiss IME when entering NavScreen.Vivek Sekhar2014-07-301-0/+1
| | | | Change-Id: Id2695cfed20d814385f29f7adda48b0e1b786d84
* Auto hide URL bar.Vivek Sekhar2014-07-306-24/+67
| | | | | | | | | | | - Implement URLbar hide on onOffsetsForFullscreenChanged notiication from the engine. -Reverted "Fix for disappearing title bar caused by copy/paste control" Change-Id: I19860bd9356b2dc392539aa1e16819545e32de6d" Change-Id: Ie8547e9a7ca7dfc892a94c5632a7fddddef58cc3
* Fix to ensure single instance of BrowserSettingsBijan Amirzada2014-07-241-2/+3
| | | | Change-Id: I696f3addecbac9674bfce9c1077257119fac9e02
* Fix filename bug associated with contentdisposition attributeAxesh R. Ajmera2014-07-241-1/+1
| | | | Change-Id: Ia72110d46fbe7b55f688068028661a23d853b602
* Fix bug for content dispositionAxesh R. Ajmera2014-07-241-4/+4
| | | | | | | - fixes the regex for parsing the content disposition header which helps in dowloading the appropiate filename Change-Id: Idaed529ba7092b31ca2f35b39a42d76bed36d774
* Upload Handler.Axesh R. Ajmera2014-07-222-25/+292
| | | | Change-Id: Ia6ed884ac558f4f5371c227bad992f3efc0feaee
* Fix 'createScreenshot' creating skewed thumbnailTarun Nainani2014-07-221-1/+1
| | | | | | | | | | | In potrait mode (height > width) logic to calculate source rect height was incorrect. Instead of using h = w * aspect ratio, the correct equation is h = w * (1/aspect ratio). Due to incorrect equation source aspect ratio was different than that of dest thumnail hence causing thumbnail image to be skewed. Fixed issue by inversing the aspect ratio when calculating height. Change-Id: Iff65d9c56f3c38119712b01cdd18ce77f52e7323
* Fixes stalling progress barVivek Sekhar2014-07-221-1/+0
| | | | | | | | - Removed notification to CMCC network notify feature on loadURL. This call was blocking creation of sandboxed process. Change-Id: Id74eb0db290411cbaabcf336997cf981c2f047b5
* Fix import to use SWE's WebViewDatabaseVivek Sekhar2014-07-221-2/+5
| | | | | | - Remove calls to clearUsernamePassword. Change-Id: I1a3aa64758b3fbdfa1ad62d315b3dd088cf1d125
* Remove thread when onDestroyView is called on BrowserBookmarksPageTarun Nainani2014-07-222-4/+14
| | | | Change-Id: Ied0293b7f1dbfe16c3517dbb9e2b19c8030d31a1
* Revert change recycling bitmap on Tab.destroy()Tarun Nainani2014-07-221-8/+9
| | | | | | Instead we recycle the bitmaps when tab is removed from the view. Change-Id: Ifa82d5b0311770c85ee7c66e369464c33dfb4126
* Fixes OOM bitmap crash.Vivek Sekhar2014-07-223-1/+20
| | | | Change-Id: Ied0293b7f1dbfe16c3517dbb9e2b19c8030d31a5
* Change LayoutAlgorithm to LayoutAlgorithm.TEXT_AUTOSIZINGTarun Nainani2014-07-221-1/+1
| | | | | | Fix auto sizing of text in websites having small fonts Change-Id: Ibcb6431039ac97fcf21aaab4ace0dfb27f422711
* Implementing "Share Page" using ListViewAxesh R. Ajmera2014-07-224-14/+249
| | | | | | -Implements custom version of "Share Page" Change-Id: I073a8adabcca03ea71fdfdf2a438d6820b902350
* Show title of webpage in URLbar.Vivek Sekhar2014-07-221-1/+5
| | | | Change-Id: I6a2d8782f928662c2749b254d096be8e8c8c7be2
* Fix crash with opening tabs in backgroundTarun Nainani2014-07-222-1/+3
| | | | | | | | Fixed issue where timestamp was not set for background tabs. This fixed issue where MemoryMonitor was getting null timestamp for tabs. Also avoid purging active tab in MemoryMonitor if its foreground. Change-Id: Ib79e8667ab8aa227881ca0f413ed51a8d6da8afa
* Remove Enable plug-ins from Advanced Settings menu.Tarun Nainani2014-07-023-12/+1
| | | | | | SWE WebView has depricated api for 'WebSettings.setPluginState'. Change-Id: Iff65d9c56f3c38119712b01cdd18ce77f52e7311
* Download to be backwards compatible with stock browserVivek Sekhar2014-07-022-0/+12
| | | | Change-Id: Ibaf4a28f5c66e09812f1a8fe6003aa0c21a7eb57
* Add user activity hint for bookmarks viewDany Rybnikov2014-07-011-0/+6
| | | | Change-Id: I0c1c38b0b76902570553630b57db8c9b2816b0e2
* Reset the default search engine to googleAxesh R. Ajmera2014-06-301-9/+0
| | | | - resets the default search engine
* Removed dependency on framework browser provider from browserBijan Amirzada2014-06-2616-126/+72
| | | | | | | | Brought in Browser Provider class locally into platformsupport and modified all calls into provider to call into this local class. Change-Id: I3c471dacf920fd30403590ba23384b7abbf7f3fd
* Copied Browser class from FrameworksBijan Amirzada2014-06-251-0/+659
| | | | Change-Id: I8422340567c90fb3c90348063e496205fd9542fc
* Replaced Webview with TextView in Accessbility SettingsBijan Amirzada2014-06-254-73/+32
| | | | | | | | Removed the webview used for the font preview and replaced it with a textview. Removes the overhead of using webview for just a small preview in settings. Change-Id: I6eb7f3dd67756b220e8f7ff33eab5cc7429d3f36
* Fix for null BrowserSettings in BrowserProvider2Bijan Amirzada2014-06-251-0/+3
| | | | | | | | | BrowserSettings was null on the first call from the homepage provider. BrowserProvider2.query was getting called before the full initialization of the browser (browser.java) could complete. Change-Id: I8b9b053148b7ee3f568596b0cba6cdabd9f13741
* Fix for "Do Not Track"Panos Thomas2014-06-231-0/+1
| | | | | | Added missing call to set the DoNotTrack flag based on browser settings. Change-Id: I2e93f6c5d674cb421157f9c7770b6a5da133bfc6
* Support Tab going into fullscreenVivek Sekhar2014-06-173-0/+48
| | | | Change-Id: Iff65d9c56f3c38119712b01cdd18ce77f52e7337
* Fix for about menuAxesh R. Ajmera2014-06-172-16/+17
| | | | | | - Fixes the non-functional "About" menu Change-Id: I0cbdde6e7740e52dddfb165d024966e09108587b
* Set correct permission for standalone browserAxesh R. Ajmera2014-06-171-2/+5
| | | | | | - The non standard permissions has to be app specific. Change-Id: I54bf98c8ff69c613695aa18f12d3615bf647fd56