summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreFrameBridge.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Turns out args should not be decoded twice.Patrick Scott2011-03-171-3/+0
| | | | | | | This should help out in some cases with redirect/login loops. Bug: 4110115 Change-Id: I42fff7e9227423b9b5ce94234ad6d606234fe252
* Merge "remove restriction on CSS Mimetype" into honeycomb-mr1Cary Clark2011-03-091-3/+0
|\
| * remove restriction on CSS MimetypeCary Clark2011-03-091-3/+0
| | | | | | | | | | | | | | | | This code is two years old and no longer relevant with the Chromium http stack. bug:4075135 Change-Id: I4f0616d1992167aacdc6f8f0ef1ed1a6fc52bff8
* | Merge "Parse x-auto-login and send it up to Java." into honeycomb-mr1Patrick Scott2011-03-091-0/+52
|\ \ | |/ |/|
| * Parse x-auto-login and send it up to Java.Patrick Scott2011-03-081-0/+52
| | | | | | | | | | Bug: 3367381 Change-Id: Ia50dcf39c9045642037e684ecd1e2bee90a69f72
* | cherry-pick this change from master (should be in honeycomb-mr1) (please ↵Ed Heyl2011-03-081-2/+2
|/ | | | | | | | | | | | | | | | don't merge) Avoid Android modifications to JavaNPObjectV8.cpp/h https://android-git.corp.google.com/g/40387 fixed a long-standing bug to avoid leaking references to injected Java objects. However, it did so by making changes to JavaNPObjectV8.cpp/h which were never upstreamed. This change avoids the need for these changes. This change also avoids the use of a local PassRefPtr, which was incorrectly introduced in https://android-git.corp.google.com/g/36204. Change-Id: Ia1e3245a953826bbfd8e085f7ed1b1341228255d
* Only support saveWebArchive for (X)HTMLJohn Reck2011-02-281-0/+3
| | | | | | | | Bug: 3492152 If the mimetype is not text/html or application/xhtml+xml, don't try to save the page as a web archive and instead return NULL Change-Id: Ieb9d65efd72392bedec41ba33ae2aeb1a0954bb4
* b/3416864 Pass the certificate info from native to JAVA.Huahui Wu2011-02-101-9/+9
| | | | Change-Id: I797ab2d6ce6a07561c710d8b3262e548770eb477
* Store form data when it is submitted.Leon Scroggins2011-02-041-44/+41
| | | | | | | | | | | Bug:3280725 Store form data when submitted rather than when a page loads. Requires a change in frameworks/base. Change-Id: Ib2328270a91d8d618a40a1353bf50337bbf608aa
* b/3347670 Support installing online certs to the system keystore.Huahui Wu2011-01-271-0/+35
| | | | | | | Requires another CL in framework. https://android-git.corp.google.com/g/#change,93329 Change-Id: Ie623b55b6580d9761cc7de6b1b1708fbb2f0c633
* Call back loadstarted when the URL is loaded again in URL bar.Shimeng (Simon) Wang2011-01-251-1/+0
| | | | | | | | | | Today when user hit enter in the url bar, the same URl will reloaded again without progress bar, since no callback is sent back. This change removed that restriction. issue: 3388311 Change-Id: I86bed1d5c3e72bc4a0fdb18c1b67508b7110df6e
* Report SSL certificates to WebView.Iain Merrick2011-01-201-0/+23
| | | | | | | | | In the Apache HTTP stack, this is done by LoadListener. This CL plumbs in the same logic for the Chrome HTTP stack. This fixes the WebViewTest#testAccessCertificate CTS test. Bug:3242048 Change-Id: I69a4de46ded59bfdebdd391c4731c7c1a79744fb
* Add a stdStringToJstring() helper functionSteve Block2011-01-061-6/+10
| | | | Change-Id: I323c753d7ce22e0e23928a126cfb99c781a074f1
* Fix naming of wtfStringToJstring()Steve Block2011-01-061-27/+27
| | | | Change-Id: I3e1a4fb110fc9d312cc608c86fcaf7cb27431685
* b/2864818 Prompt SSL cert error dialog to user and proceed or cancel the ↵Huahui Wu2010-12-151-0/+49
| | | | | | request. Java side CL: https://android-git.corp.google.com/g/#change,84530 Change-Id: I2a16be691ba3846f3ecb1fd533905d7b6ac374fc
* Refactor AutoFill so it runs lazily.Ben Murdoch2010-12-061-7/+0
| | | | | | | | | | | | | | | This CL refactors the AutoFill code so that we only search for forms when we need to, i.e. the user has focused a form field. This helps page load times. We also re-search the document for forms if the dom version number has changed. These changes fix a bug where a crash occurs if the form is focused before the page has finished loading. We also move the callsite of formFieldFocused so that it only occurs when the IME is requested which is a more appropriate place called less frequently than it's current callsite in EditorClientAndroid. Bug: 3243567 Change-Id: I04fe13944d3f8248197d71a0e58c21f01c4abdd0
* Enable SPDY, and renames initChromiumLoggingKristian Monsen2010-12-021-3/+3
| | | | | | | initChromiumLogging is now renamed to the more generic initChromium, the files are renamed to ChromiumInit.* Change-Id: Ic9639d637f25e664b51d076b9b0ee58c2867c1b5
* Factor out WebCache from WebRequestContextSteve Block2010-11-291-1/+1
| | | | | | | | | 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
* Add maybeSavePassword() method to WebFrame.Iain Merrick2010-11-221-88/+130
| | | | | | | | | | 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
* Merge Webkit at r71558: Cache.h relocated as MemoryCache.hTeng-Hui Zhu2010-11-171-1/+1
| | | | | | | http://trac.webkit.org/changeset/71492 http://trac.webkit.org/changeset/71499 Change-Id: Iacd8a22d0c1caece7bec2273f1d4e69dd3e4eb2c
* Merge autofill files after last Chromium mergeBen Murdoch2010-11-161-1/+1
| | | | | | | | | | | | | Merge by hand the files that have been gotked implementing AutoFill on Android. This classes use WebCore types rather than the Chrome WebKit API types that the code would normally use. This brings the files up to date with the last external/chromium merge to r63472 and updates their usages in line with that so that the feature continues to work as intended. Change-Id: Ic110873dc48c59555f0db76e7ad0c138c2fe96f2
* Allow applications to intercept requests.Patrick Scott2010-11-151-15/+23
| | | | | | | | | | | The api returns a response containing the mime type, encoding, and an optional InputStream for reading data. Move the asset and content url logic into the new api to consolidate some code. Requires a change in frameworks/base. Bug: 2905943 Change-Id: Ic7af410308872042c412aedf62e589f6d2095782
* Encode email addresses that are not mailto: links.Patrick Scott2010-11-081-5/+5
| | | | | | | | Fix a few extra copies of KURL and String. Added more characters to the list of allowable mailbox characters. Bug: 3038103 Change-Id: I49bd3ba9c628a70e7e1633d16fc329d64613dbf1
* Hook chromium logging up in WebKitKristian Monsen2010-11-041-0/+6
| | | | Change-Id: Ide08371e0bc8f74ef80fe25d416623bd03ac6038
* Add support for file uploads in WebKitKristian Monsen2010-11-041-3/+3
| | | | | | | | | | This also moves some of the android file handling to Java so it is not duplicated in both places. This CL needs https://android-git.corp.google.com/g/#change,77400 in frameworks/base Change-Id: I90c1726e6c323a9de3fd64f2e6feef4b64171053
* Fix WebCoreStringToJString() to not delete the local reference to the new ↵Steve Block2010-11-011-40/+26
| | | | | | | | | | | | | jstring The JNI spec allows for local objects to be GC'ed before the JNI frame returns, so this is dangerous. Also rename the method to WtfStringToJstring() to match the existing jstringToWtfString() and update call sites to JNIEnv::NewString() to make use of it. Change-Id: I84aa25ba1aca2aee346bf6e3d83a58afc3a95219
* Make sure we delete local references to jclass objectsSteve Block2010-10-281-0/+3
| | | | Change-Id: I1b398bd0a84ce366eb2e686e5f14335d7aa5ed31
* Fix some problems in WebCoreFrameBridge when using JNIEnv::NewString()Steve Block2010-10-271-21/+18
| | | | | | | - Remove superfluous casts to unsigned short* - Avoid converting from Unicode to UTF8 and back Change-Id: Ib7cbc610f1b27ecd52082bf412afa7c7b3fec4b2
* Merge Webkit at r70209: StringBuilder.h moved to WTF.Ben Murdoch2010-10-261-1/+1
| | | | | | See http://trac.webkit.org/changeset/69594 Change-Id: I17d01eae838c03ac198dd8b0df3717d058806aca
* Fix naming for JNI registration methodsSteve Block2010-10-221-1/+1
| | | | Change-Id: I1aba39bdcf217bff751e42d2a335cd230b8193f7
* Move jstringToStdString into WebCoreJni.hIain Merrick2010-10-211-9/+0
| | | | | | | Also tweaked the implementation slightly to match jstringToString16, which is more robust. Change-Id: I614576615a6f429ea1632c395d5bc4e068c32cfb
* Implement file downloads for Chrome HTTP stack (C++ side)Iain Merrick2010-10-201-0/+27
| | | | | | | | | | | | | | | Due to the way the WebView API works, downloads are handled by the Java client code via the DownloadListener interface, so we need to toss them over the JNI wall. I had to refactor WebResourceRequest slightly to save the user-agent header before it gets stripped out. I have also made it const-correct. Test: manually checked that we can download a file, with both stacks. See matching change in frameworks/base (I87e71deb) Change-Id: I8130040099d02c399d42b223444b333398628235
* Rename to_string() to jstringToWtfString() for greater claritySteve Block2010-10-151-10/+10
| | | | Change-Id: I8516c4f39a38e236d0bff38a91fe8657cfcf8ad4
* Hook up WebView.clearCache() for the Chromium HTTP stackSteve Block2010-10-061-14/+30
| | | | | Bug: 2999397 Change-Id: If104a32fa2fd56cf60fdd37a4193a0ec4e0065e2
* Block network loads based on the setting.Patrick Scott2010-10-051-0/+1
| | | | | Bug: 3053149 Change-Id: Idb6850b2aac5de2ab19850779a65496ef356961d
* Merge WebKit at r67908: HTMLInputElement::InputType renamedSteve Block2010-09-291-6/+5
| | | | | | | | InputType renamed to DeprecatedInputType See http://trac.webkit.org/changeset/67903 Change-Id: I9efb9889588523dd2b9489809fb2c44bd799d2ba
* Integrate AutoFill with WebTextView in Java.Ben Murdoch2010-09-231-0/+4
| | | | | | | | | | | | | | | Adds the necessary JNI hooks so that when the user focuses a form field that AutoFill has identified as "autofillable", the Java side WebTextView will show an option in the auto complete drop down box that when selected will call back to AutoFill in native code and actually fill out the form. AutoFill is still disabled at compile time by default. To test the feature set ENABLE_AUTOFILL=true and rebuild WebKit. Needs a corresponding frameworks/base change. Change-Id: Ie76ff9cbf0b44f3f3644079ed64ce71bfbc9859a
* HTTP auth for Chromium HTTP stack (C++ side)Iain Merrick2010-09-201-1/+67
| | | | | | | | | | | | | | | On receiving an auth request: - WebRequest (on the IO thread) sends a message to WebUrlLoaderClient - WebUrlLoaderClient (webkit thread) calls WebCoreFrameBridge. - WebCoreFrameBridge makes a JNI call to BrowserFrame.java. Each JNI call has a WebUrlLoaderClient pointer, cast to an int. We use this to recover the context when we're called back, and dispatch a message back to WebRequest. Corresponding Java change: https://android-git.corp.google.com/g/63762 Change-Id: Ieb72f2eaa996a55916c987859f47f6dacf92e06c
* Initial autofill changes in libwebcore.Ben Murdoch2010-09-131-0/+11
| | | | | | | | | | | | | | | | | | Initial checkin of WebKit source for enabling AutoFill on Android. This code calls into the chromium library to perform the autofill magic. There's still lots to do, but this and a corresponding change in external/chromium enable the feature (basically) end to end. The feature is disabled by default until we implement it more fully with some proper UI. To turn it on, set the ENABLE_AUTOFILL environment variable to "true" and rebuild. This is only useful for preliminary testing though as for now we use a precanned profile, which won't be relevant unless your name happens to be John Smith. Change-Id: I4a3e0e840617f7cf8f522af33ae1be560768a6c5
* Merge Webkit at r66666 : Renamed function in Settings.hKristian Monsen2010-09-111-1/+1
| | | | | | | Webkit CL: http://trac.webkit.org/changeset/66247/trunk/WebCore/page/Settings.h Change-Id: Ied8f51db04683ddc51e6c2f5179928be2285f7fc
* Allow WebKit to scroll selection on screen.Leon Scroggins2010-09-101-2/+2
| | | | | | | | | Requires a change to frameworks/base Bug 2679411 Bug 2659028 Change-Id: I482cefadc24c620c6d07cbce44acc216bdb9b8df
* Use the correct types in SaveWebArchive.Elliott Slaughter2010-09-011-3/+3
| | | | Change-Id: I0a963a0e6b29be73aaede56bb58400ce1e81edb7
* Special file uris have to be handled in Java.Kristian Monsen2010-08-241-0/+15
| | | | | | | | This depends on: https://android-git.corp.google.com/g/#change,62112 Request an java.io.InputStream from java and queries this for that until all is read. Change-Id: Ia3e7ad973700bd49be9cae9b432661d61a5470b8
* Merge WebKit at r65615 : Fix include paths for string headers.Iain Merrick2010-08-231-1/+1
| | | | | | These moved to <wtf/text> in http://trac.webkit.org/changeset/65077 Change-Id: Ie234f1a09013e48a5241d9e240c5b2e85ca75125
* Remove calls to change the state of the focus controller.Leon Scroggins2010-08-181-0/+2
| | | | | | | | | | | Bug: 2582455 Never modify the focused state of the focus controller. A corresponding java change make the active state get changed only when the webview gains/loses focus. Change-Id: I6f17f82c772ea4410c0209bf57d251c9bd384e6c
* am 3c54ece0: am 5dc34a85: activeDocumentLoader() causes crash in ↵Henrik Baard2010-08-171-2/+13
|\ | | | | | | | | | | | | | | | | WebCoreFrameBridge.cpp Merge commit '3c54ece08a0ea9e5dc5d5788a4c49c8dc94b501f' * commit '3c54ece08a0ea9e5dc5d5788a4c49c8dc94b501f': activeDocumentLoader() causes crash in WebCoreFrameBridge.cpp
| * activeDocumentLoader() causes crash in WebCoreFrameBridge.cppHenrik Baard2010-08-161-2/+13
| | | | | | | | | | | | | | | | This is a fix for a crash found in real phones, there is cases when activeDocumentLoader() can return null, probably related to closing of a frame or canceling of a request. Change-Id: Id340ab006b6e40e396645a4e668dcb58824a63e7
* | Merge WebKit at r65072 : Implement DeviceMotionClientAndroidSteve Block2010-08-131-0/+4
| | | | | | | | | | | | | | | | | | This class acts simply as a proxy to the real or mock client, which is owned by the WebView. DEVICE_ORIENTATION is enabled on Android, so we must implement this client before we pull in http://trac.webkit.org/changeset/64845, which calls DeviceMotionClient::setController() from the Page constructor. Change-Id: I8cf448f26103df3e55098e70eec80d845725761f
* | Merge WebKit at r65072 : Build fix for JSC, update ambiguous usage of JSLock.Ben Murdoch2010-08-131-1/+1
| | | | | | | | | | | | | | | | | | Need to update the parameter passed to JSLock ctor as new ctor added in r64585 creates an ambiguity. See http://trac.webkit.org/changeset/64585 Change-Id: Ibb4b089d66aa984038b66eef03d4d788575bfaaf
* | Merge WebKit at r65072: String class has moved to the WTF namespace.Ben Murdoch2010-08-131-25/+25
| | | | | | | | | | | | See http://trac.webkit.org/changeset/65021 Change-Id: I779a8ec0c3e1e0aed8f8d1894cfc1e5ca33ee549