summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings
Commit message (Collapse)AuthorAgeFilesLines
* Merge webkit.org at r58033 : Initial merge by gitSteve Block2010-05-11301-4469/+9432
| | | | Change-Id: If006c38561af287c50cd578d251629b51e4d8cd1
* Merge webkit.org at r55033 : Fix merge conflictsSteve Block2010-04-272-25/+1
| | | | | | | | | | - Android.v8bindings.mk - Keep ours, conflict due to upstreaming of using DerivedSourcesAllInOne.cpp - V8Index.h - Keep ours, conflict due to upstreaming of touch events - GeolocationService.h - Take both, conflict due to Android-specific change for pausing service - PluginView.cpp - Take both, conflict due to Android-specific change to guard JSC headers - V8DOMWrapper.cpp - Keep ours, conflict due to addition of WORKERS guards Change-Id: Ib640e64caecbb8cb31272dbfbc18d95f32f9d126
* Merge webkit.org at r55033 : Initial merge by gitSteve Block2010-04-2725-124/+676
| | | | Change-Id: I98a4af828067cc243ec3dc5e5826154dd88074b5
* Cherry pick http://src.chromium.org/viewvc/chrome?view=rev&revision=43874Andrei Popescu2010-04-121-0/+4
| | | | | | Fix bug: 2588887 Change-Id: I06d64e58a95d9dd8d7e4308e1601c55d6d33663f
* Cherry-pick https://bugs.webkit.org/show_bug.cgi?id=37150Andrei Popescu2010-04-061-1/+8
| | | | | | | | Check the frame's context at PageCache save and restore time to avoid crashing when it's null. Fix bug: 2564844 Change-Id: Ifef3fcf271b1366d4f63c42da1a9ac08bb8b78ed
* If "widget" is already existed in the HashMap whenGrace Kloba2010-04-011-0/+13
| | | | | | | | | | | | | | createScriptInstanceForWidget(widget) is called, we need to release the reference of the matching npObject to avoid leak. HTMLPlugInElement::getInstance() only calls createScriptInstanceForWidget(widget) once. But HTMLEmbedElement is using its closest ancestor who has objectTag to get the widget. So the same widget can exist in the HashMap if both <object> and its child <embed>'s getInstance() are called. Fix http://b/issue?id=2553266
* Cherry pick patch in https://bugs.webkit.org/show_bug.cgi?id=36665Andrei Popescu2010-03-294-14/+131
| | | | | | | | which adds V8 bindings for page cache. Fix b: 2533219 Change-Id: I57f067adbbef76b4f8ec6c50b9e85fb2b7fc619a
* compile fix for V8 with debug buildsKristian Monsen2010-03-241-0/+2
| | | | Change-Id: Icffc7b0d5f9a9b2da66dca37c0c8d084c11491b7
* Add missing WORKERS guards to V8 bindingsSteve Block2010-03-171-0/+8
| | | | | | | | | | | | The motivation for this change is to allow us to disable workers on Android, because V8 on Android does not have the required locking. This change will not be upstreamed because the code has been refactored in tip-of-tree WebKit. See http://trac.webkit.org/changeset/55096 Change-Id: I23ce1e5aecc2897da240b5229585b8e6617d8ebf
* Cherry-pick WebKit change 56112 to add WORKERS guards to V8 bindingsSteve Block2010-03-172-0/+6
| | | | | | | | | The motivation for this change is to allow us to disable workers on Android, because V8 on Android does not have the required locking. See http://trac.webkit.org/changeset/56112 Change-Id: Ieee214f4765af3188bbdc51c56f14883f6a6779c
* Cherry-pick WebKit change 55084 to add SHARED_WORKERS guard in V8 ↵Steve Block2010-03-171-0/+2
| | | | | | | | | | | globalObjectPrototypeIsDOMWindow The motivation for this change is to allow us to disable workers on Android, because V8 on Android does not have the required locking. See http://trac.webkit.org/changeset/55084 Change-Id: If72cb478fb7dad6be44eaa2c1ca19e9790a9dda0
* Cherry-pick WebKit change 54972 to merge DOMWindow and WorkerContext object ↵Steve Block2010-03-173-55/+29
| | | | | | | | | | | | | | | | | | | | wrapping in V8 bindings The motivation for this change is to disable workers on Android, because V8 on Android does not have the required locking. The current version of WebKit in Android (54731) uses workers features without ENABLE(WORKERS) guards in the V8 bindings. In particular, V8DOMWrapper::instantiateV8ObjectInWorkerContext is used from generated code without guards. Fixing the code generator would be difficult and would be wasted effort as V8DOMWrapper::instantiateV8ObjectInWorkerContext no longer exists in tip-of-tree WebKit. Instead, we cherry-pick the WebKit change which removes this method. See http://trac.webkit.org/changeset/54972 Change-Id: Ie6365073d7a4d92aa7c1553d87a7e1c1ed514118
* Revert "Fix V8 crashes with plugins. The extra call to _NPN_ReleaseObject ↵Ben Murdoch2010-03-161-0/+1
| | | | | | | | inside forgetV8ObjectForNPObject is causing a double deletion." Right problem, wrong fix. This reverts commit 9e0d526d0170e26b1dc2d0da8347cca28b5f3507.
* Fix V8 crashes with plugins. The extra call to _NPN_ReleaseObject inside ↵Ben Murdoch2010-03-161-1/+0
| | | | | | | | | | | | | | | | | forgetV8ObjectForNPObject is causing a double deletion. In ScriptController::clearScriptObjects, we call Unregister (which without this change causes Release to get called in forgetV8ObjectForNpObject). If the ref count gets to 0, we free the object in Release. Then when Unregister returns, we call Release again in the ScriptController with the same just-free'd pointer. If we're unlucky, then the Deallocate and free gets called again. We're also trying to access members such as the reference count and deallocation function through a dead pointer. Also, in the case where the Flash does not clear it's window object, we call Deallocate directly inside ScriptController::clearScriptObjects. This causes Unregister to get called (as the object is still alive) which calls Release through forgetV8ObjectForNPObject, which results in a recursive call to Deallocate, which frees the memory. Then the stack unwinds and we happily try to free again from the first call to Deallocate. Fix these issues by removing the extra call to NPN_ReleaseObject in forgetV8ObjectForNpObject. Change-Id: I7f6d21cd4ff38e29bd1a178e4816d023560b6b16
* fix buildAndrei Popescu2010-03-031-1/+1
|
* Fix V8 build when instrumentation is onAndrei Popescu2010-03-031-0/+4
|
* Don't crash when throwing javascript exceptions from plugins withoutLeon Clarke2010-02-261-1/+5
| | | | javascript having been initialised.
* Update Android to reflect recent upstreaming of V8 runtime feature default ↵Steve Block2010-02-191-3/+0
| | | | | | | | values See http://trac.webkit.org/changeset/55020 Change-Id: I4d6c067dcafc43d2798c55e042e446d4964b326f
* Android doesn't need to build V8VoidCallback.cppSteve Block2010-02-183-20/+4
| | | | | | This matches Chromium Change-Id: I386e4e307e16d8b06eaf258a73d78dfdd9645bf8
* Merge "Cherry-pick WebKit change 54957 to use V8 DerivedSourcesAllInOne.cpp"Steve Block2010-02-181-0/+13
|\
| * Cherry-pick WebKit change 54957 to use V8 DerivedSourcesAllInOne.cppSteve Block2010-02-181-0/+13
| | | | | | | | | | | | | | This updates Android to match Chromium See http://trac.webkit.org/changeset/54957 Change-Id: I41c082460f00e1c0ec32bf180205ca40fd2f190a
* | Merge "Update touch event bindings for V8 in V8Index.cpp to match what ↵Ben Murdoch2010-02-181-7/+3
|\ \ | |/ |/| | | landed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=35094"
| * Update touch event bindings for V8 in V8Index.cpp to match what landed to ↵Ben Murdoch2010-02-181-7/+3
| | | | | | | | | | | | webkit.org in https://bugs.webkit.org/show_bug.cgi?id=35094 Change-Id: Id8bfd38800bf38de704efbad3afe9b8e53367d13
* | Fix the V8 build.Ben Murdoch2010-02-181-2/+2
|/ | | | Change-Id: I28ccbf06e6490f6be5e024218ec823dd156d79b2
* Update V8 Bindings for touch to match what's upstream, landed in ↵Ben Murdoch2010-02-184-15/+15
| | | | | | http://trac.webkit.org.changeset/54950 Change-Id: I7da830fcd1d996a23e3f9ca61fa668a99ad80431
* Merge "Updates Android to reflect upstreaming of CHROMIUM and XPATH guards ↵Steve Block2010-02-173-20/+9
|\ | | | | | | in V8 bindings"
| * Updates Android to reflect upstreaming of CHROMIUM and XPATH guards in V8 ↵Steve Block2010-02-173-20/+9
| | | | | | | | | | | | | | | | bindings See http://trac.webkit.org/changeset/54881 Change-Id: I7bf987cbdc8e88e39317551c098475d8f92cd582
* | Updates Android to reflect upstreaming of guards on npruntime.h includesSteve Block2010-02-176-19/+19
|/ | | | | | See http://trac.webkit.org/changeset/54880 Change-Id: I5665991bb4f7d3680c00b42194a9208d1daa90f0
* Merge "Adds an XPath generated header to the Android build to avoid a guard ↵Steve Block2010-02-165-8/+9
|\ | | | | | | on an include in V8DocumentCustom.cpp"
| * Adds an XPath generated header to the Android build to avoid a guard on an ↵Steve Block2010-02-165-8/+9
| | | | | | | | | | | | | | | | | | | | | | include in V8DocumentCustom.cpp Adding generated headers to the build, even when for disabled features, is preferred to using guards around includes. See https://bugs.webkit.org/show_bug.cgi?id=34812 Also cleans up some other Android-specific changes in WebCore/bindings/v8. Change-Id: I37a174bfaef0d659fc3cef08d084af8861b65ac9
* | Merge "Add toV8 conversion for touch event type."Ben Murdoch2010-02-161-0/+8
|\ \ | |/ |/|
| * Add toV8 conversion for touch event type.Ben Murdoch2010-02-161-0/+8
| | | | | | | | Change-Id: I91cd4224ee4df8de105dca179b42ee1428ab288d
* | Merge webkit.org at r54731 : Update Android to reflect refactoring of ↵Steve Block2010-02-161-2/+5
| | | | | | | | | | | | | | | | RuntimeEnabledFeatures.cpp see http://trac.webkit.org/changeset/54593 Change-Id: Iab1af86c65db24849fbdb07cc4b1692133d7ae87
* | Merge webkit.org at r54731 : Fix remaining merge conflictsSteve Block2010-02-161-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | - AutoFillPopupMenuClient.h - Take theirs, git got confused - PluginView.h - Conflict due to new OS macro - Gradient.cpp - Conflict due to new argument due to setPlatformGradientSpaceTransform - Android.derived.v8bindings.mk - Keep ours - DragImage.h - Take both - V8DocumentCustom.cpp - Take theirs - XCode project - Take both to keep Android-addition of GeolocationPositionCache Change-Id: I3f294a71af93fb4e02b57e0169bd25143132df15
* | Merge webkit.org at r54731 : Initial merge by gitSteve Block2010-02-16131-904/+1023
|/ | | | Change-Id: Ia79977b6cf3b0b00c06ef39419989b28e57e4f4a
* Merge webkit.org at r54340 : Cherry-pick WebKit change 54658 to add required ↵Steve Block2010-02-151-0/+2
| | | | | | | | headers to V8 generated code. See http://trac.webkit.org/changeset/54658 Change-Id: If52c6dc9b2c09d4ae028d913da653c2373eb151b
* Merge webkit.org at r54340 : Cherry-pick WebKit change 54650 to add SVG ↵Steve Block2010-02-153-0/+6
| | | | | | | | guards for V8 See http://trac.webkit.org/changeset/54650 Change-Id: Ieda3be45b1979c0f9d776cf6b7639f0e67f1466f
* Merge webkit.org at r54340 : Fix merge conflictsSteve Block2010-02-153-390/+19
| | | | | | | | | | | | - Take both for Android makefiles, other than typo for JavaNPObjectV8 upstream - Take theirs for XCode project file and ChangeLog - Fix trivial header conflict in V8DocumentCustom - Keep ours for fix in JNIUtilityPrivate.cpp - Take theirs for V8DOMWrapper.cpp. Conflict is due to Android addition of TouchEvents, which conflicts with http://trac.webkit.org/changeset/54259 - Take both for Android addition of applicationInstalledCallback - Take both for Android JSC JIT changes in Platform.h Change-Id: Ib1a748f204a07a7e736feeee6a0f30f7453754a7
* Merge webkit.org at r54340 : Initial merge by gitSteve Block2010-02-1589-1170/+2108
| | | | Change-Id: Ib489d2ff91186ea3652522e1d586e54416a2cf44
* Fix the build by including the right header for INVALID_STATE_ERRAndrei Popescu2010-02-121-0/+1
|
* Implement navigator.isApplicationInstalled() APIAndrei Popescu2010-02-122-2/+5
| | | | | | This CL contains the wiring between the API and the Java side. Fix b: 2371005
* Implement navigator.isApplicationInstalled() APIAndrei Popescu2010-02-093-0/+149
| | | | | | This CL contains the JSC DOM bindings. Fix b: 2371005
* Fix the V8 build by adding files missing from ↵Andrei Popescu2010-02-092-0/+131
| | | | ece0a38a9778edd2ae7a550df7dcd38d1e11e7d0
* Merge "Implement navigator.isApplicationInstalled() API"Andrei Popescu2010-02-091-0/+48
|\
| * Implement navigator.isApplicationInstalled() APIAndrei Popescu2010-02-091-0/+48
| | | | | | | | | | | | This CL contains the V8 DOM bindings and IDL changes. Fix b:2371005
* | Remove Android code that skipped functions for retrieving the source name ↵Ben Murdoch2010-02-081-10/+0
|/ | | | | | | | and line number in V8Proxy, as we now support that. This requires an external/v8 change, see 39929. Change-Id: Ie4cab862ebef7ad569b070b11a8bae67e89f2c38
* Merge webkit.org at r54127 : Fix missing virtual destructors in V8DOMMapSteve Block2010-02-041-0/+3
| | | | | | This is achieved by cherry-picking WebKit patch http://trac.webkit.org/changeset/54218 Change-Id: I953939c9ee0a478c26f0481d923595325b67f718
* Merge webkit.org at r54127 : Fix conflicts due to V8 feature runtime enabler ↵Steve Block2010-02-041-13/+2
| | | | | | | | | | | | flags These have been modified to default to true on Android. We also set the new flags to default to true. Note that the enabler flag for database has changed. See http://trac.webkit.org/changeset/53595 Change-Id: I2832c4bcb316f481a33a8c00e7fe90dffa8dcdcf
* Merge webkit.org at r54127 : Fix conflict with addition of virtual ↵Steve Block2010-02-041-9/+0
| | | | | | | | | | | | | | | | | destructor to Visitor class Android had added a virtual destructor to DOMWrapperMap::Vistor See https://android-git.corp.google.com/g/#change,21263 DOMWrapperMap::Vistor was removed and WeakReferenceMap::Visitor was added in http://trac.webkit.org/changeset/51998 DOMWrapperMap inherits from WeakReferenceMap. The virtual desctructor was upstreamed to webkit.org for WeakReferenceMap::Visitor in http://trac.webkit.org/changeset/53401 Note that the message in the ChangeLog is incorrect. Change-Id: Ia801155d0b42100e91b891b0568486fc76d037e1
* Merge webkit.org at r54127 : Fix final trivial mergesSteve Block2010-02-042-6/+0
| | | | Change-Id: Ib24c66a3c609fd1c8ae9697f471a8abc85e5aa33