summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreFrameBridge.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fixes XHR requests to use the username and password supplied from JavaScriptSteve Block2010-03-241-2/+10
| | | | | | | | | Currently, the browser does not use the credentials supplied from JavaScript. If a request returns a 401 Unauthorized, the browser always prompts the user. This violates http://www.w3.org/TR/XMLHttpRequest/#the-send-method Bug: 2533522 Change-Id: Ic232003a3f321167810fc7263d6ecb654eeeb5eb
* Fix comment from "WebView.LOAD_*" to "WebSettings.LOAD_*"Brian Carlstrom2010-03-181-4/+4
| | | | | | | | While improving the javadoc for android.webkit.BrowserFrame.startLoadingResource, I noticed that the Java class metioned in the C++ comments was wrong. Change-Id: Ibf6234735fc6b92b444f6cf3b4c6bb5c33675525
* Don't leak global weak references when running layout testsLeon Clarke2010-03-041-1/+1
|
* Fixes a crash in WeakJavaInstanceSteve Block2010-03-031-8/+16
| | | | | | | | | | | | | | | | | | | | | | | WeakJavaInstance is a wrapper around JavaInstance. Outside of calls to virtualBegin/virtualEnd, it replaces the strong reference to the Java instance held by JavaInstance with a weak reference. This is to break circular references and allow the Java instance to be garbage collected. The code does not handle correctly the case where multiple calls are made to virtualBegin before corresponding calls to virtualEnd. virtualBegin caches the current instance as _weakRef. However, if virtualBegin has already been called, the current instance is now a strong reference, and this overwrites _weakRef. When virtualEnd is called, the instance is not restored to the weak reference. In the WeakJavaInstance destructor, we try to restore the strong reference from the weak reference, but this has already been deleted, causing the VM to abort. This patch fixes the problem by returning early from virtualBegin and virtualEnd when unmatched calls to virtualBegin have already been made. Also fixes some style issues. Bug: 2485164 Change-Id: I2b22a849af10e377525a3da215ca91e611d892d0
* Prevent unsafe upper casting by checking Element's namespaceURI.Shimeng (Simon) Wang2010-02-251-4/+11
| | | | | | | | | For some website, when elements are created, somehow the tagName's namespaceURI is empty, so for "form" element, Element node is created instead of expected HTMLFormElement. Bug: 2461358 modified: WebKit/android/jni/WebCoreFrameBridge.cpp
* Use reference instead of vector copying when dealing formElements.Shimeng (Simon) Wang2010-02-241-3/+3
|
* Correctly guard V8Counters::initCounters() in WebCoreFrameBridgeSteve Block2010-02-051-0/+2
|
* Merge webkit.org at r54127 : mainWorldScriptState is now a global function.Steve Block2010-02-041-5/+1
| | | | | | See http://trac.webkit.org/changeset/54051 Change-Id: I1f904a812dab1acf3eafd4c287571df245d4fa0d
* Merge webkit.org at r54127 : Fix some WebKit includesSteve Block2010-02-041-29/+22
| | | | Change-Id: Ibcdef84d6e49c7e4a725ac1d22ae59a165418280
* Renames a variable in AddJavascriptInterface which shadows a parameter of ↵Steve Block2010-02-041-3/+3
| | | | | | the same name Change-Id: I9600c489090def7f4ec6e1e66f8db68ed6551c80
* Implement V8 counter supportAndrei Popescu2010-02-021-0/+2
|
* Add request header support for the Browser/WebView.Grace Kloba2010-01-271-2/+41
| | | | | | | | | | | | | | QSB can use this instead of POST to send the location data. After QSB makes the switch, we should also remove the POST_DATA intent which is hidden. Add loadUrl(String url, HashMap extraHeaders) to WebView so that the caller can send the extra http headers. Remove "inline:" as no one is using it and it is a hidden feature. Part 3 of 3-project checkin.
* Move V8 jni_npobject to bridge/jni/v8/JavaNPObjectV8 and fix styleSteve Block2010-01-211-1/+1
| | | | Change-Id: Icf99c709929ef14551de61e55780b97767575f01
* Move V8 jni_instance to bridge/jni/v8/JavaInstanceV8 and fix styleSteve Block2010-01-211-1/+1
| | | | | | | This is the V8 equivalent of http://trac.webkit.org/changeset/53412 It is being upstreamed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=33951 Change-Id: Id22d59b7a5e0be72d594d454bb41c58760d824ff
* Cherry-pick WebKit change 53497 to rename jni_utility and ↵Steve Block2010-01-201-2/+2
| | | | | | | | | | | jni_utility_private to JNIUtility and JNIUtilityPrivate See http://trac.webkit.org/changeset/53497 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. This change required updating headers in Android-specific files in WebCore and WebKit. Change-Id: I4b80eb3eadcff66cbd261aa6ccef0f37927250b1
* resolved conflicts for merge of acf4a21d to masterSteve Block2010-01-191-9/+9
|\ | | | | | | Change-Id: If8bb4335848f51919608d28a30ee610acb120ae7
| * Cherry-pick WebKit change 53436 to fix style in JavaInstanceJSCSteve Block2010-01-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | See http://trac.webkit.org/changeset/53436 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. Note that changes to the following were required as a result of this cherry-pick. - WebCoreFrameBridge.cpp - updated to use JavaInstance::m_instance - V8Binding/jni/jni_instance - Updated to rename the V8 version of JavaInstance::_instance to JavaInstance::m_instance to allow the same code path to be used in WebCoreFrameBridge. Change-Id: I6884f7424c8a0917095f828bda4ca62452e527b5
* | resolved conflicts for merge of df644d06 to masterSteve Block2010-01-191-1/+1
|\ \ | |/ | | | | Change-Id: I02d6b5e94724091decfe0c26317554c86dcfb2da
| * Cherry-pick WebKit change 53412 to move jni_instance to JavaInstanceJSCSteve Block2010-01-191-1/+1
| | | | | | | | | | | | | | | | See http://trac.webkit.org/changeset/53412 Note that changes to WebCoreFrameBridge.cpp cpp were required as a result of this cherry-pick. Change-Id: I0a6f6fafc5b0d5d9337ef4e339c6a0c5dd188eb9
* | Change LOGE to LOGV.Patrick Scott2010-01-191-1/+1
| |
* | Cherry-pick WebKit change 52103 - Add a client based Geolocation providerSteve Block2010-01-181-1/+7
| | | | | | | | | | | | | | | | This is required to ease the process of upstreaming the Geolocation maximumAge handling code. Note that changes to WebCoreFrameBridge.cpp and WebCoreJniOnLoad.cpp were required as a result of this. Change-Id: Icd8524da9050acda3b991051877c3b5cf262b2b3
* | am 43342a27: am ee0e4a35: Merge "Updates the use of weak references in the ↵Steve Block2010-01-081-11/+20
|\ \ | |/ | | | | | | | | | | | | | | script-to-Java bridge for V8." into eclair-mr2 Merge commit '43342a276dcdb9e1f8c677f5077d151cd5d6ad07' * commit '43342a276dcdb9e1f8c677f5077d151cd5d6ad07': Updates the use of weak references in the script-to-Java bridge for V8.
| * Updates the use of weak references in the script-to-Java bridge for V8.Steve Block2010-01-081-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, V8 uses weak references to the Java object owned by JObjectWrapper. This is in contrast to JSC, which uses strong references in JObjectWrapper. However, for the special-case where JObjectWrapper is used in JavaInstance in WebCoreFrameBridge, JSC uses WeakJavaInstance to swap the strong references for weak references. This change updates the V8 version of JObjectWrapper to use strong references to match the JSC version. To maintain the weak reference behavior where JObjectWrapper is used in JavaInstance in WebCoreFrameBridge, V8 now make use of WeakJavaInstance too. This requires changes to jni_npobject to call the necessary methods on JavaInstance to swap the references when the object is accessed. Change-Id: I3724d7e6437588feb0268a2670b02a93b52e54f0
* | resolved conflicts for merge of a0fb8e99 to masterSteve Block2009-12-181-42/+47
|\ \ | |/ | | | | Change-Id: I58d6bb71dc7c4f5962c73669555a217c1d94b690
| * Adds a 'using namespace JSC::Bindings;' declaration in WebCoreFrameBridge.Steve Block2009-12-181-40/+44
| | | | | | | | | | | | Also fixes some style issues. Change-Id: I21d39461b488a5f490ea3557b24fe1674903c286
* | am f0765cd6: am 02f7edff: Merge webkit.org at r51976 : ↵Steve Block2009-12-171-1/+6
|\ \ | |/ | | | | | | | | | | | | | | ScriptValue::getString now takes a ScriptState parameter. Merge commit 'f0765cd6cf9455ac0793d1a30287f4a57bc4871e' * commit 'f0765cd6cf9455ac0793d1a30287f4a57bc4871e': Merge webkit.org at r51976 : ScriptValue::getString now takes a ScriptState parameter.
| * Merge webkit.org at r51976 : ScriptValue::getString now takes a ScriptState ↵Steve Block2009-12-171-1/+6
| | | | | | | | | | | | | | | | parameter. See http://trac.webkit.org/changeset/51801 Change-Id: I819c17c8609dd65799bd8a2245cc454e27271969
* | am ba6d5d3a: am 2c3e1d02: Merge webkit.org at r51976 : ↵Steve Block2009-12-171-1/+1
|\ \ | |/ | | | | | | | | | | | | | | externalRepresentation now takes a Frame argument. Merge commit 'ba6d5d3abff2997e37db0d6ec70d9f2e7717ac2f' * commit 'ba6d5d3abff2997e37db0d6ec70d9f2e7717ac2f': Merge webkit.org at r51976 : externalRepresentation now takes a Frame argument.
| * Merge webkit.org at r51976 : externalRepresentation now takes a Frame argument.Steve Block2009-12-171-1/+1
| | | | | | | | | | | | See http://trac.webkit.org/changeset/50923 Change-Id: I8c7bb8af6e40fd449e27f28ff0d2e58fbb4d9eb3
* | resolved conflicts for merge of 33cbb138 to masterLeon Scroggins2009-12-161-2/+50
|\ \ | |/
| * Provide localized strings for <input> labels.Leon Scroggins2009-12-151-2/+50
| | | | | | | | | | | | | | | | | | Fix for http://b/issue?id=2178786 Call up to Java to get strings for <input> labels, and use them on inputs. Requires a change in frameworks/base.
* | am da8d42de: am 80e68b43: Break the WebCore -> WebKit dependency in ↵Andrei Popescu2009-12-111-3/+3
|\ \ | |/ | | | | | | | | | | | | | | ResourceHandleAndroid.cpp. Merge commit 'da8d42def98a28bfef84ce5809d13ae1710a342c' * commit 'da8d42def98a28bfef84ce5809d13ae1710a342c': Break the WebCore -> WebKit dependency in ResourceHandleAndroid.cpp.
| * Break the WebCore -> WebKit dependency in ResourceHandleAndroid.cpp.Andrei Popescu2009-12-111-3/+3
| |
* | am ae37cde5: am 4c603120: Merge change I85087ab0 into eclair-mr2Patrick Scott2009-12-101-1/+13
|\ \ | |/ | | | | | | | | | | Merge commit 'ae37cde5e54f2f2e051007f19f203f5efdcab34a' * commit 'ae37cde5e54f2f2e051007f19f203f5efdcab34a': Enable orientation events.
| * Enable orientation events.Patrick Scott2009-12-091-1/+13
| | | | | | | | | | | | | | Remove our old orientation hacks as webkit now supports the orientation event. Call down into webkit when the orientation changes to send the js event. The change to Frame.cpp has been submited to bugs.webkit.org as issue 32321.
* | resolved conflicts for merge of c8da3d7c to masterPatrick Scott2009-12-041-2/+5
|\ \ | |/
| * Pass up flags for the main resource and user gesture.Patrick Scott2009-12-041-2/+4
| | | | | | | | This requires a change to the framework.
* | am 2e36087f: am 4e95824e: Save form data for elements other than type "text".Leon Scroggins2009-12-021-20/+15
|\ \ | |/ | | | | | | | | | | Merge commit '2e36087fc1e77130a596ec30566928462570b162' * commit '2e36087fc1e77130a596ec30566928462570b162': Save form data for elements other than type "text".
| * Save form data for elements other than type "text".Leon Scroggins2009-12-021-20/+15
| | | | | | | | | | | | | | Partial fix for http://b/issue?id=2232001 When returning the form data for a page, check other types of textfields besides "text" input elements. Also consider "email", "number", etc.
* | am 1573e25e: am 8ec42170: Enable WebKit page cache through WebSettings.Grace Kloba2009-12-021-8/+8
|\ \ | |/ | | | | | | | | | | Merge commit '1573e25e3a50d588fb83b3e4be6fb8bf5dc7ec65' * commit '1573e25e3a50d588fb83b3e4be6fb8bf5dc7ec65': Enable WebKit page cache through WebSettings.
| * Enable WebKit page cache through WebSettings.Grace Kloba2009-12-021-8/+8
| | | | | | | | | | | | | | | | Add setXX() for the meta data in Settings. Add CachedFramePlatformDataAndroid to preserve the state for the cachedFrame. http://b/issue?id=2284168
* | resolved conflicts for merge of c3ebd21f to masterBen Murdoch2009-11-251-8/+8
|\ \ | |/ | | | | Change-Id: I7ca6ae7cb23e34765801782961bb052d6bb63fa4
| * Unfork WebCore/bridge/jni.Ben Murdoch2009-11-241-5/+5
| | | | | | | | Change-Id: I973e6b03286b1d8f6e6325a2b31d0cf9e99d19b3
* | am 7063c3ef: Merge change I67ad4b89 into eclair-mr2Steve Block2009-11-131-1/+1
|\ \ | |/ | | | | | | | | | | Merge commit '7063c3efe30d0ec965ac48439917030f62f50489' * commit '7063c3efe30d0ec965ac48439917030f62f50489': Fixes license headers for all files in WebKit/android, other than those in stl/.
| * Fixes license headers for all files in WebKit/android, other than those in stl/.Steve Block2009-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | These files have not yet been upstreamed to webkit.org. WebKit requires either a BSD-style or LGPL 2.1 license for all code. We use a BSD-style 2-clause license for Android-specific files that will be upstreamed to webkit.org. This change adds licenses where absent or simply fixes the names of copyright holders in the license text to 'THE COPYRIGHT OWNER' and cleans up formatting. Files in stl/ currently use licenses other than BSD-style and will require more careful treatment. Change-Id: I67ad4b8932e432d3eaaeecdfeb0d09418496228d
* | am 20626c19: Merge webkit.org at r50258 : toJSDOMWindow now takes a ↵Steve Block2009-11-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | DOMWrapperWorld parameter. Merge commit '20626c197f988d4bae39e99e4699173602b0aaaa' * commit '20626c197f988d4bae39e99e4699173602b0aaaa': Merge webkit.org at r50258 : toJSDOMWindow now takes a DOMWrapperWorld parameter.
| * Merge webkit.org at r50258 : toJSDOMWindow now takes a DOMWrapperWorld ↵Steve Block2009-11-101-1/+1
| | | | | | | | | | | | | | | | parameter. See http://trac.webkit.org/changeset/49963 and http://trac.webkit.org/changeset/49978 Change-Id: Ic788827d54ccf48a3eb54863d2708ebad1d67ae1
* | am c05f32f6: Merge webkit.org at r50258 : FrameLoader::loadFrameRequest now ↵Steve Block2009-11-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | takes a ReferrerPolicy parameter. Merge commit 'c05f32f6ac83a4d9467153745a217b636e8c8a60' * commit 'c05f32f6ac83a4d9467153745a217b636e8c8a60': Merge webkit.org at r50258 : FrameLoader::loadFrameRequest now takes a ReferrerPolicy parameter.
| * Merge webkit.org at r50258 : FrameLoader::loadFrameRequest now takes a ↵Steve Block2009-11-101-1/+1
| | | | | | | | | | | | | | | | ReferrerPolicy parameter. See http://trac.webkit.org/changeset/49809 Change-Id: I5db6d1d821cc6e7b57dfa665ea9018b4833864d5
* | am 5995cab4: Merge webkit.org at r50258 : FrameLoader::executeScript has ↵Steve Block2009-11-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | moved to ScriptController. Merge commit '5995cab44737fd5374956941260caf2e2e8290b3' * commit '5995cab44737fd5374956941260caf2e2e8290b3': Merge webkit.org at r50258 : FrameLoader::executeScript has moved to ScriptController.