summaryrefslogtreecommitdiffstats
path: root/webkit/port
Commit message (Collapse)AuthorAgeFilesLines
* Always disconnect event listeners when clearing for navigation, even if the ↵dglazkov@google.com2009-06-031-3/+3
| | | | | | | | | | | | script context is empty. R=mbelshe BUG=13266 TEST=gmail shouldn't crash anymore. Review URL: http://codereview.chromium.org/119109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17546 0039d316-1c4b-4281-b951-d872f2087c98
* Prepare V8NPObject.h/cpp for upstreaming.tim@chromium.org2009-06-034-215/+231
| | | | | | Review URL: http://codereview.chromium.org/115972 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17496 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit Update 44342:44372.dglazkov@google.com2009-06-021-1/+1
| | | | | | | | | | TBR=dimich BUG=none TEST=no compile or layout test failures. Review URL: http://codereview.chromium.org/118138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17441 0039d316-1c4b-4281-b951-d872f2087c98
* Add ifdef to make upstreaming of v8_utility.h easiler.ajwong@chromium.org2009-06-021-0/+10
| | | | | | Review URL: http://codereview.chromium.org/118101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17416 0039d316-1c4b-4281-b951-d872f2087c98
* Add some browser-level checks to prohibit access to extension bindings bympcomplete@google.com2009-06-021-1/+2
| | | | | | | | | | | | non-extension renderers. Also add a check so that bindings are only exposed if the top-level frame is the chrome-extension scheme. BUG=11545 BUG=11993 TEST=none Review URL: http://codereview.chromium.org/119014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17408 0039d316-1c4b-4281-b951-d872f2087c98
* Remove empty unused directories from src/webkit.dglazkov@chromium.org2009-05-272-1197/+0
| | | | | | | | | | R=darin BUG=3319 TEST=none Review URL: http://codereview.chromium.org/113903 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16990 0039d316-1c4b-4281-b951-d872f2087c98
* Added support for constructor calls in the NPAPI.sgjesse@chromium.org2009-05-274-12/+71
| | | | | | | | | | | | | | | | | The LiveConnect test cases at http://java.sun.com/javase/6/webnotes/6u10/plugin2/liveconnect/LiveConnectTests/ now pass for Chromium. Parts of this change is rather mechanical, and leaves room for some refactoring afterwards. Merged the implementation of testConstruct and the "objectPointer" property from WebKit\WebKitTools\DumpRenderTree\TestNetscapePlugIn.subproj\TestObject.cpp to the Chromium TestObject.cpp for the layout test LayoutTests\plugins\netscape-construct.html pass. BUG=http://crbug.com/3285 BUG=http://crbug.com/10354 TEST=http://java.sun.com/javase/6/webnotes/6u10/plugin2/liveconnect/LiveConnectTests/ TEST=LayoutTests\plugins\netscape-construct.html Review URL: http://codereview.chromium.org/113823 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16979 0039d316-1c4b-4281-b951-d872f2087c98
* Re-introduce check for empty handles after calling toString whenkasperl@google.com2009-05-261-0/+4
| | | | | | | | | | converting a JavaScript object to a WebCore string. BUG=none TEST=none Review URL: http://codereview.chromium.org/115771 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16870 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up Context::GetCalling() to V8Proxy.abarth@chromium.org2009-05-212-3/+23
| | | | | | | | | R=aa TEST=This will eventually be covered by layout tests once I change the upstream code to use this API. Review URL: http://codereview.chromium.org/113672 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16564 0039d316-1c4b-4281-b951-d872f2087c98
* Use upstreamed v8 bindings for V8DOMWindowCustomjaphet@chromium.org2009-05-201-291/+0
| | | | | | | | BUG=12274 Review URL: http://codereview.chromium.org/113607 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16549 0039d316-1c4b-4281-b951-d872f2087c98
* Remove JSDOMBinding, which is no longer used.dglazkov@chromium.org2009-05-203-94/+0
| | | | | | | | | | R=levin BUG=3319 TEST=no test regressions Review URL: http://codereview.chromium.org/113372 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16546 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash in SVG bindings. We attempted to update the SVGContext forager@chromium.org2009-05-201-0/+3
| | | | | | | | | a NULL SVGElement which makes no sense. BUG=12105 Review URL: http://codereview.chromium.org/113627 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16471 0039d316-1c4b-4281-b951-d872f2087c98
* Use the upstream version of ScriptController.levin@chromium.org2009-05-202-557/+0
| | | | | | | | | | TEST=Scripting in the browser. This should be pretty well covered by other testing. BUG=http://crbug.com/12063 Review URL: http://codereview.chromium.org/115542 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16443 0039d316-1c4b-4281-b951-d872f2087c98
* 3 Speedups for turning v8 strings into webcore stringsdavemoore@chromium.org2009-05-191-29/+31
| | | | | | | | | | | | | | | | | | | | | 1) Take advantage of new String::createUninitialized() call in webkit. This allows us to have one malloc node per string, without an extra copy of the characters 2) Take advantage of new V8 behavior, to return NULL from GetExternalStringResource() if it hasn't been externalized, speeding up our usage by not requiring us to call isExternal 3) Check if string type is an integer. If it is, don't call into V8 to get string...instead do it in C++, caching previous integer strings less than 100. Also removed unnecessary test for IsEmpty() as the called function also tests for it. Review URL: http://codereview.chromium.org/115517 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16427 0039d316-1c4b-4281-b951-d872f2087c98
* Use upstreamed v8 bindings for CanvasRenderingContext2Djaphet@chromium.org2009-05-191-416/+0
| | | | | | | | | BUG=12262 Review URL: http://codereview.chromium.org/113599 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16424 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed use of uninitialized variable problem in generated bindings. Itplesner@google.com2009-05-191-2/+1
| | | | | | | turns out that converting an object to an SVGNumber can't fail. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16363 0039d316-1c4b-4281-b951-d872f2087c98
* Remove local copy of V8MessagePortCustom.cpp now that it has been upstreamed.levin@chromium.org2009-05-191-167/+0
| | | | | | | | | | BUG=11782 TEST=none needed, just removing obsolete file Review URL: http://codereview.chromium.org/113566 Review URL: http://codereview.chromium.org/113569 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16354 0039d316-1c4b-4281-b951-d872f2087c98
* ScriptController.* needs to be reformatted into WebKit style.levin@chromium.org2009-05-182-355/+213
| | | | | | | | | | TEST=Scripting in the browser. This should be pretty well covered by other testing. BUG=http://crbug.com/12063 Review URL: http://codereview.chromium.org/115417 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16315 0039d316-1c4b-4281-b951-d872f2087c98
* Use the V8Bindings for HTMLSelectElementCollection and HTMLOptionsCollection ↵japhet@chromium.org2009-05-161-90/+0
| | | | | | | | in svn.webkit.org. Review URL: http://codereview.chromium.org/115422 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16214 0039d316-1c4b-4281-b951-d872f2087c98
* Complete upstreaming V8 DOM Wrapper Map.dglazkov@chromium.org2009-05-152-73/+1
| | | | | | | | | | R=levin BUG=3319 TEST=no additional regressions. Review URL: http://codereview.chromium.org/113476 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16186 0039d316-1c4b-4281-b951-d872f2087c98
* Unfork and remove generate-bindings.pl from our tree.dglazkov@chromium.org2009-05-141-69/+0
| | | | | | | | | | R=levin BUG=3319 TEST=0 Review URL: http://codereview.chromium.org/115375 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16109 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to upstream versions of V8DocumentLocationCustom.cpp and ↵levin@chromium.org2009-05-142-121/+0
| | | | | | | | | | | | | V8CanvasPixelArrayCustom.cpp TEST=Use the dom elements: document.location and the canvas pixels BUG=http://crbug.com/11917 Review URL: http://codereview.chromium.org/113364 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16022 0039d316-1c4b-4281-b951-d872f2087c98
* Prepare V8MessagePortCustom.cpp for upstreaming to WebKitlevin@chromium.org2009-05-131-135/+63
| | | | | | | | | | | Original review http://codereview.chromium.org/113241. BUG=http://crbug.com/11782 TEST=Run disabled message port layout tests (*message*-disabled) under LayoutTests/fast/events. Note that these are disabled by default git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15971 0039d316-1c4b-4281-b951-d872f2087c98
* Move Element, Attr, HTMLIFrameElement, HTMLFrameElement out of v8_custom.cpp ↵japhet@chromium.org2009-05-121-227/+0
| | | | | | | | | | and refer to the bindings in svn.webkit.org BUG=11558 Review URL: http://codereview.chromium.org/113301 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15916 0039d316-1c4b-4281-b951-d872f2087c98
* Added type check to SVG operation arguments.plesner@google.com2009-05-124-9/+51
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15847 0039d316-1c4b-4281-b951-d872f2087c98
* Split V8Proxy::retrieveActiveFrame() into two methods.aa@chromium.org2009-05-126-20/+52
| | | | | | | | | | | | | | | | | | We now have RetrieveFrameForCurrentContext() and RetrieveFrameForEnteredContext(). These terms means the same thing they do in V8::Context -- 'current' is the top of the js stack and 'entered' is the bottom. I needed 'entered' to fix a bug in extensions where if you call an extension API through the web inspector we get confused and think the web inspector's view is the one who called. Review URL: http://codereview.chromium.org/113085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15828 0039d316-1c4b-4281-b951-d872f2087c98
* Fix layout test worker-replace-global-constructor.jianli@chromium.org2009-05-081-1/+1
| | | | | | Review URL: http://codereview.chromium.org/115105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15658 0039d316-1c4b-4281-b951-d872f2087c98
* Fix code generator to enable Database support.dglazkov@google.com2009-05-071-1/+4
| | | | | | | | | | TBR=darin BUG=0 TEST=make build green. Review URL: http://codereview.chromium.org/113125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15590 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit Merge 43346:43361, Chromium side.dglazkov@google.com2009-05-073-1/+9
| | | | | | | | | | R=darin BUG=0 TEST=layout tests Review URL: http://codereview.chromium.org/113117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15585 0039d316-1c4b-4281-b951-d872f2087c98
* Fix up V8 bindings code generator to allow unforking window.top part of ↵dglazkov@google.com2009-05-071-2/+11
| | | | | | | | | | | | DOMWindow.idl R=mbelshe BUG=10898 TEST=no new layout failures after this change Review URL: http://codereview.chromium.org/114011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15566 0039d316-1c4b-4281-b951-d872f2087c98
* Forget V8Object before removing it from g_live_objects set can cause a crash ↵fqian@google.com2009-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | on Android: 0005fad6 _NPN_UnregisterObject external/webkit/V8Binding/v8/npruntime.cpp:401 0005fb6a _NPN_DeallocateObject external/webkit/V8Binding/v8/npruntime.cpp:296 0005fba2 NPN_ReleaseObject external/webkit/V8Binding/v8/npruntime.cpp:312 0005e1e6 ForgetV8ObjectForNPObject(NPObject*) external/webkit/V8Binding/v8/V8NPObject.cpp:367 0005fb1e _NPN_UnregisterObject external/webkit/V8Binding/v8/npruntime.cpp:428 Review URL: http://codereview.chromium.org/113107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15564 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome-side of WebKit merge 43321:43346darin@chromium.org2009-05-071-22/+0
| | | | | | | | | | | Only interesting change is in v8_custom.cpp to account for recently upstreamed V8 bindings. R=dglazkov,japhet Review URL: http://codereview.chromium.org/115090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15556 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash when attempting to construct XMLHttpRequest object in aager@chromium.org2009-05-071-1/+2
| | | | | | | | | | | | | | detached document. If there is no frame corresponding to the DOMWindow object from which we are retrieving the constructor function, return undefined. Attempts to construct the object will therefore throw an exception because an attempt is made to call undefined as a function. BUG=10861 Review URL: http://codereview.chromium.org/115079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15541 0039d316-1c4b-4281-b951-d872f2087c98
* Fix regression in security checks introduced by WebKit mergeager@chromium.org2009-05-071-6/+0
| | | | | | | | | | | | | | 42932:42994. Do not allow cross-frame access to a frame whose document is unavailable. See http://trac.webkit.org/changeset/42983 for details. The rest of the changes from that change set will follow as a separate changelist. BUG=11178 Review URL: http://codereview.chromium.org/113093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15536 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome-side of WebKit merge 43242:43321darin@chromium.org2009-05-061-2/+1
| | | | | | | | | | | The v8_proxy.h change was authored by asargent and already reviewed here: http://codereview.chromium.org/79059 R=dglazkov Review URL: http://codereview.chromium.org/113056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15460 0039d316-1c4b-4281-b951-d872f2087c98
* Changes for upstreaming V8DocumentLocationCustom.cpp.levin@chromium.org2009-05-062-23/+58
| | | | | | | | | BUG=http://bugs.chromium.org/11467 TEST=Verify that Document.location works from javascript. Review URL: http://codereview.chromium.org/108024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15411 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome changes for WebKit merge 43114:43242darin@chromium.org2009-05-053-2/+5
| | | | | | | | R=dglazkov Review URL: http://codereview.chromium.org/109042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15338 0039d316-1c4b-4281-b951-d872f2087c98
* Style fixes for webkit upstreaming.ajwong@chromium.org2009-05-051-57/+45
| | | | | | Review URL: http://codereview.chromium.org/99373 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15316 0039d316-1c4b-4281-b951-d872f2087c98
* Undo the reference counting experiment. The crashes are stillager@chromium.org2009-05-011-30/+2
| | | | | | | | | | happening, so it seems unlikely that this is a reference counting problem. BUG=9746 Review URL: http://codereview.chromium.org/100247 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15038 0039d316-1c4b-4281-b951-d872f2087c98
* Wrappers for inline style declarations disappeared on GC. Fix theager@chromium.org2009-05-011-1/+14
| | | | | | | | issue by adding the style declaration wrappers to the object groups of the elements they belong to. Review URL: http://codereview.chromium.org/100204 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15037 0039d316-1c4b-4281-b951-d872f2087c98
* Fix issue 11264fqian@google.com2009-05-011-16/+30
| | | | | | | | | | | http://code.google.com/p/chromium/issues/detail?id=11264 Integer 0 and -1 have special meaning in HashMap<int, ...>, both cannot be used as key. Specially filter out these two keys. Review URL: http://codereview.chromium.org/100242 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15031 0039d316-1c4b-4281-b951-d872f2087c98
* Second part of fix of issue ↵fqian@google.com2009-05-011-1/+12
| | | | | | | | | | | | http://code.google.com/p/chromium/issues/detail?id=3285. A NPObject can be called as a construct if it implements NPN_Construct, and NOT implements NPN_InvokeDefault. Otherwise, NPN_InvokeDefault is called even when the object is called as a constructor. Review URL: http://codereview.chromium.org/56167 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15029 0039d316-1c4b-4281-b951-d872f2087c98
* Replace std::map, std::set by WTF::HashMap and WTF::HashSet.fqian@google.com2009-04-301-40/+93
| | | | | | | | | WebKit gurus, please review the change carefully, WTF::HashMap interface is not well documented, so I have implement customized hash functions and HashTraits in order to use StringKey as the hash key. Review URL: http://codereview.chromium.org/100069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14995 0039d316-1c4b-4281-b951-d872f2087c98
* ClientRectList must provide indexed access method that acts like item() method.ukai@chromium.org2009-04-303-0/+8
| | | | | | | | | | | | | | | | | | | On translate.google.com, it fails to show balloon, because of JavaScript exception in following code: p=a.getClientRects(); ... p[0].top // p[0] is undefined! Current v8 binding misses indexed access method in ClientRectList. CSSOM View Module draft says http://dev.w3.org/csswg/cssom-view/#clientrectlist In ECMAScript implimentations, objects that implement the ClientRectList interface must also have a [[GET]] method that, when invoked with a number, acts like the item() method would when invoked with that argument. BUG=10697 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14925 0039d316-1c4b-4281-b951-d872f2087c98
* When doing the scheme check for applying V8 extensions, check against thempcomplete@google.com2009-04-291-3/+6
| | | | | | | | | activeDocumentLoader's url, not the document's current URL. BUG=10924 Review URL: http://codereview.chromium.org/92090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14871 0039d316-1c4b-4281-b951-d872f2087c98
* Artificially increase the ref count on WebCore strings that we use asager@chromium.org2009-04-291-2/+30
| | | | | | | | | | | | | | | | | | | external V8 strings. We seem to be occasionally losing the data for our external strings. The current hypothesis is that there is a reference counting bug in WebCore somewhere which is leading to premature deletion of the string data. This change is an attempt to verify that this is in fact the case. By artificially increasing the ref count on the strings, we should reduce the likelihood of accidental deletion because of ref counting being slightly off. If we can confirm that this removes most of the crashes, we know that the problem is WebCore ref counting related. BUG=9746 Review URL: http://codereview.chromium.org/99174 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14838 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit Merge 42805:42932, Chromium side.dglazkov@google.com2009-04-283-12/+5
| | | | | | | | | | | | | | | | | | | Gross offenders: * Unforking LazyEventListeners: http://trac.webkit.org/changeset/42843 * Removing ListMarkerBox: http://trac.webkit.org/changeset/42846 * SVG changes: http://trac.webkit.org/changeset/42840 * Window object is now an event target: http://trac.webkit.org/changeset/42882 R=jeremy BUG=0 TEST=trybots Review URL: http://codereview.chromium.org/99147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14776 0039d316-1c4b-4281-b951-d872f2087c98
* Merge: chromium side [42671:42725]levin@chromium.org2009-04-231-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Rebaselines: http://trac.webkit.org/changeset/42722 resulted in LayoutTests/editing/inserting/insert-3907422-fix.html LayoutTests/editing/pasteboard/paste-text-015.html LayoutTests/editing/style/font-family-with-space.html http://trac.webkit.org/changeset/42723 resulted in LayoutTests/editing/selection/select-all-iframe.html LayoutTests/svg/custom/pointer-events-path.svg http://trac.webkit.org/changeset/42716 resulted in LayoutTests/fast/dom/HTMLSelectElement/named-options.html http://trac.webkit.org/changeset/42725 Broke the close event behavior and resulted in disabling these ui tests: * BrowserCloseBeforeUnloadOK and * BrowserCloseBeforeUnloadCancel Review URL: http://codereview.chromium.org/92051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14291 0039d316-1c4b-4281-b951-d872f2087c98
* Use upstreamed V8WorkerCustom and V8WorkerContextCustom. Remove duplicate ↵jianli@chromium.org2009-04-232-519/+0
| | | | | | | | V8Utilities in project. Review URL: http://codereview.chromium.org/92044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14275 0039d316-1c4b-4281-b951-d872f2087c98
* Save ~150k on a Linux release build by not inlining DOMWrapperToNode.deanm@chromium.org2009-04-212-9/+17
| | | | | | | | | | | | | | Creates DOMWrapperToNodeHelper to preform the actual work (in the .cpp) and DOMWrapperToNode just does the cast. This function has a lot of callers from the generated bindings, and I am skeptical an extra call instruction will hurt. 25740168 /tmp/chrome.after 25902672 /tmp/chrome.before Review URL: http://codereview.chromium.org/88029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14105 0039d316-1c4b-4281-b951-d872f2087c98