[Qt][WK2] WebErrorsQt.cpp duplicates code from WKError.h and WebError.h
[WebKit.git] / Source / WebKit2 / ChangeLog
1 2011-10-13  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2
3         [Qt][WK2] WebErrorsQt.cpp duplicates code from WKError.h and WebError.h
4         https://bugs.webkit.org/show_bug.cgi?id=70053
5
6         Reviewed by Kenneth Rohde Christiansen.
7
8         Now we will be aligned with WKError.h and WebError.h by using the shared
9         and pre-defined enum for error codes and WebError::webkitErrorDomain().
10
11         * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp:
12         (WebKit::blockedError):
13         (WebKit::cannotShowURLError):
14         (WebKit::interruptedForPolicyChangeError):
15         (WebKit::cannotShowMIMETypeError):
16         (WebKit::pluginWillHandleLoadError):
17
18 2011-10-13  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
19
20         [Qt][WK2] WebViews are emitting loadFailed for "private" error codes
21         https://bugs.webkit.org/show_bug.cgi?id=70047
22
23         Reviewed by Kenneth Rohde Christiansen.
24
25         Both QDesktopWebView and QTouchWebView are emitting loadFailed for private errors
26         like the ones defined in Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp.
27
28         We now filter these by not emitting this signal for FrameLoadInterruptedByPolicyChange,
29         PlugInWillHandleLoad and Cancellation, following previous decisions from WebKit 1.
30
31         * UIProcess/qt/ClientImpl.cpp:
32         (dispatchLoadFailed):
33
34 2011-10-13  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
35
36         Implement TextChecker for WebKit2 GTK+
37         https://bugs.webkit.org/show_bug.cgi?id=68548
38
39         Reviewed by Anders Carlsson.
40
41         Added implementation for all functions in TextCheckerGtk.cpp removing earlier stubbed implementations.
42         Moved couple of API earlier specific to win port to common section and added stubbed implementation
43         of the same for remaining ports of Qt, Efl and Mac.
44
45         * GNUmakefile.am: Added TextChecker implementation files.
46         * UIProcess/TextChecker.h: Moved spellCheckingEnabled and grammarCheckingEnabled API outside of win port.
47         * UIProcess/efl/TextCheckerEfl.cpp: Stubbed implementation of API which was moved outside win port.
48         * UIProcess/gtk/TextCheckerGtk.cpp: Implementation of all TextChecker API.
49         (WebKit::TextChecker::state):
50         (WebKit::TextChecker::isContinuousSpellCheckingAllowed):
51         (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
52         (WebKit::TextChecker::setGrammarCheckingEnabled):
53         (WebKit::TextChecker::continuousSpellCheckingEnabledStateChanged):
54         (WebKit::TextChecker::grammarCheckingEnabledStateChanged):
55         (WebKit::TextChecker::uniqueSpellDocumentTag):
56         (WebKit::TextChecker::closeSpellDocumentWithTag):
57         (WebKit::TextChecker::checkSpellingOfString):
58         (WebKit::TextChecker::checkGrammarOfString):
59         (WebKit::TextChecker::spellingUIIsShowing):
60         (WebKit::TextChecker::toggleSpellingUIIsShowing):
61         (WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
62         (WebKit::TextChecker::updateSpellingUIWithGrammarString):
63         (WebKit::TextChecker::getGuessesForWord):
64         (WebKit::TextChecker::learnWord):
65         (WebKit::TextChecker::ignoreWord):
66         * UIProcess/mac/TextCheckerMac.mm: Implementation of API which was moved outside win port.
67         * UIProcess/qt/TextCheckerQt.cpp: Stubbed implementation of API which was moved outside win port.
68
69 2011-10-13  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
70
71         [Qt][WK2] Implement decidePolicyForResponse in our PolicyClient
72         https://bugs.webkit.org/show_bug.cgi?id=69832
73
74         Reviewed by Kenneth Rohde Christiansen.
75
76         We implement decidePolicyForResponse in our PolicyClient in order to
77         decide whether a given ResourceResponse should be downloaded or loaded.
78
79         * UIProcess/qt/ClientImpl.cpp:
80         (qt_wk_decidePolicyForResponse):
81         * UIProcess/qt/ClientImpl.h:
82         * UIProcess/qt/QtWebPageProxy.cpp:
83         (QtWebPageProxy::init):
84
85 2011-10-13  Carlos Garcia Campos  <cgarcia@igalia.com>
86
87         [GTK] Add WebKitTestServer class to WebKit2 GTK+ unit tests library
88         https://bugs.webkit.org/show_bug.cgi?id=70010
89
90         Reviewed by Martin Robinson.
91
92         With this class tests using a soup server only need to implement
93         the soup server callback.
94
95         * UIProcess/API/gtk/tests/GNUmakefile.am: Add new files to compilation.
96         * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp: Use WebKitTestServer.
97         (testLoadingStatus):
98         (testLoadingError):
99         (testLoadAlternateContent):
100         (testWebViewReload):
101         (testLoadProgress):
102         (beforeAll):
103         (afterAll):
104         * UIProcess/API/gtk/tests/WebKitTestServer.cpp: Added.
105         (WebKitTestServer::WebKitTestServer):
106         (WebKitTestServer::~WebKitTestServer):
107         (WebKitTestServer::run): Run the soup server and adds the given
108         soup server callback to handle requests.
109         (WebKitTestServer::getURIForPath): Returns the server absolute URI
110         for the given relative path.
111         * UIProcess/API/gtk/tests/WebKitTestServer.h: Added.
112         (WebKitTestServer::baseURI):
113
114 2011-10-13  Nayan Kumar K  <nayankk@motorola.com>
115
116         [WebKit2][gtk] Fix warnings while generating WebKit2-GTK+ documentation.
117         https://bugs.webkit.org/show_bug.cgi?id=69928
118
119         Reviewed by Philippe Normand.
120
121         Patch fixes the warnings reported by gtk-doc while generating
122         WebKit2-GTK+ documentation.
123
124         * UIProcess/API/gtk/WebKitWebContext.h: Correct the documentation comment.
125         * UIProcess/API/gtk/WebKitWebView.cpp: Parameter name correction.
126
127 2011-10-12  Joseph Pecoraro  <joepeck@webkit.org>
128
129         Pass Parsed Accept Attribute MIME Types to WebKit Clients
130         https://bugs.webkit.org/show_bug.cgi?id=69598
131
132         Reviewed by David Kilzer.
133
134         * Shared/WebCoreArgumentCoders.cpp:
135         (CoreIPC::::encode):
136         (CoreIPC::::decode):
137
138 2011-10-12  Joseph Pecoraro  <joepeck@webkit.org>
139
140         Pass Parsed Accept Attribute MIME Types to WebKit Clients
141         https://bugs.webkit.org/show_bug.cgi?id=69598
142
143         Reviewed by Anders Carlsson.
144
145         The WebOpenPanelParameters::Data struct was a mirror of
146         the already existing WebCore::FileChooserSettings struct.
147         So eliminate the excess struct and generate default
148         WebCore coders for the WebCore::FileChooserSettings struct.
149
150         * Scripts/webkit2/messages.py:
151         Switch to the new type. FileChooserSetting's header needs
152         to be special cased to FileChooser.h.
153
154         * Shared/WebCoreArgumentCoders.h:
155         * Shared/WebCoreArgumentCoders.cpp:
156         (CoreIPC::::encode):
157         (CoreIPC::::decode):
158         Encode and decode all, non-deprecated, values. So we
159         ignore deprecatedAcceptTypes. A follow-up patch will add it.
160
161         * Shared/WebOpenPanelParameters.cpp:
162         (WebKit::WebOpenPanelParameters::create):
163         (WebKit::WebOpenPanelParameters::WebOpenPanelParameters):
164         Switch to the new type.
165
166         * Shared/WebOpenPanelParameters.h:
167         (WebKit::WebOpenPanelParameters::allowMultipleFiles):
168         (WebKit::WebOpenPanelParameters::selectedFileNames):
169         FileChooserSettings had different property names.
170
171         * UIProcess/WebPageProxy.cpp:
172         (WebKit::WebPageProxy::runOpenPanel):
173         Generate the WebOpenPanelParameters object here, before
174         passing into the WebUIClient. This seems to be the convention
175         to not have WebCore types in WebUIClient.
176
177         * UIProcess/WebPageProxy.h:
178         * UIProcess/WebPageProxy.messages.in:
179         * UIProcess/WebUIClient.cpp:
180         (WebKit::WebUIClient::runOpenPanel):
181         * UIProcess/WebUIClient.h:
182         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
183         (WebKit::WebChromeClient::runOpenPanel):
184         Switch to the new type.
185
186 2011-10-12  Joseph Pecoraro  <joepeck@webkit.org>
187
188         Pass Parsed Accept Attribute MIME Types to WebKit Clients
189         https://bugs.webkit.org/show_bug.cgi?id=69598
190
191         Reviewed by Kent Tamura.
192
193         Switch to deprecated for now, but the next patches will
194         remove the deprecated version from the WebKit2 path.
195
196         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
197         (WebKit::WebChromeClient::runOpenPanel):
198
199 2011-10-12  Adam Barth  <abarth@webkit.org>
200
201         Remove ENABLE(XHTMLMP) and associated code
202         https://bugs.webkit.org/show_bug.cgi?id=69729
203
204         Reviewed by David Levin.
205
206         * Configurations/FeatureDefines.xcconfig:
207
208 2011-10-12  Dan Bernstein  <mitz@apple.com>
209
210         Hang beneath PluginProcessProxy::createPropertyListFile() when using a thin build
211         https://bugs.webkit.org/show_bug.cgi?id=69960
212
213         Reviewed by Adam Roben.
214
215         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
216         (WebKit::PluginProcessProxy::createPropertyListFile): Check for any non-zero return value
217         from posix_spawn() rather than for a negative return value. The old, incorrect check, caused
218         this function to hang in waitpid() after failing to spawn a plug-in process for a 32-bit plug-in
219         when WebKit2 was built for 64-bit only.
220
221 2011-10-12  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
222
223         [Qt][WK2] Move qweberror* out of API/qt
224         https://bugs.webkit.org/show_bug.cgi?id=69875
225
226         Reviewed by Andreas Kling.
227
228         Moving QWebError outside API/qt in order to keep our API folder (layer) aligned.
229
230         * UIProcess/qt/qweberror.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/qweberror.cpp.
231         (QWebError::QWebError):
232         (QWebErrorPrivate::createQWebError):
233         (QWebErrorPrivate::QWebErrorPrivate):
234         (QWebErrorPrivate::~QWebErrorPrivate):
235         (QWebError::type):
236         (QWebError::errorCode):
237         (QWebError::url):
238         * UIProcess/qt/qweberror.h: Renamed from Source/WebKit2/UIProcess/API/qt/qweberror.h.
239         (QWebError::errorCodeAsHttpStatusCode):
240         (QWebError::errorCodeAsNetworkError):
241         * UIProcess/qt/qweberror_p.h: Renamed from Source/WebKit2/UIProcess/API/qt/qweberror_p.h.
242         * WebKit2.pro:
243         * WebKit2API.pri:
244
245 2011-10-12  Nayan Kumar K  <nayankk@motorola.com>
246
247         [WebKit2][gtk] Add few more API's to gtk-doc section file.
248         https://bugs.webkit.org/show_bug.cgi?id=69921
249
250         Reviewed by Gustavo Noronha Silva.
251
252         Generate documentation for existing WebKit2-GTK+ API's,
253         which are not yet the part of gtk-doc documentation.
254
255         * UIProcess/API/gtk/docs/GNUmakefile.am: List ignore files.
256         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: API's addition.
257
258 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
259
260         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
261         https://bugs.webkit.org/show_bug.cgi?id=68134
262
263         Reviewed by Darin Adler.
264
265         Use ScrollbarThemeMock when the setting to use mock scrollbars is enabled.
266         
267         Make ScrollbarTheme::nativeTheme() private, and add a new static theme() method
268         that reads the setting, and returns the mock theme if set. All callers now use
269         theme() rther than nativeTheme(). Add the new ScrollbarTheme.cpp file to the build.
270
271         * UIProcess/win/WebPopupMenuProxyWin.cpp:
272         (WebKit::WebPopupMenuProxyWin::calculatePositionAndSize):
273         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
274         (WebKit::BuiltInPDFView::paintControls):
275         * WebProcess/WebPage/PageOverlay.cpp:
276         (WebKit::PageOverlay::bounds):
277
278 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
279
280         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
281         https://bugs.webkit.org/show_bug.cgi?id=68134
282
283         Reviewed by Darin Adler.
284
285         ScrollbarTheme::nativeTheme() renamed to theme().
286
287         * WebProcess/WebPage/PageOverlay.cpp:
288         (WebKit::PageOverlay::bounds):
289
290 2011-10-10  Martin Robinson  <mrobinson@igalia.com>
291
292         [GTK] [WebKit2] Make adding another unit test easier
293         https://bugs.webkit.org/show_bug.cgi?id=69409
294
295         Reviewed by Gustavo Noronha Silva.
296
297         * GNUmakefile.am: Add the new WebKit2 API tests.
298         * UIProcess/API/gtk/tests/GNUmakefile.am: Added.
299         * UIProcess/API/gtk/tests/LoadTrackingTest.cpp: Added. A fixture for creating load tracking tests.
300         * UIProcess/API/gtk/tests/LoadTrackingTest.h: Added.
301         * UIProcess/API/gtk/tests/TestMain.cpp: Copied from Source/WebKit2/UIProcess/API/gtk/tests/testwebview.c.
302         (main):
303         * UIProcess/API/gtk/tests/TestMain.h: Added.
304         * UIProcess/API/gtk/tests/TestWebKitWebContext.cpp: Copied from Source/WebKit2/UIProcess/API/gtk/tests/testwebview.c.
305         * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp: Added.
306         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp: Renamed from Source/WebKit2/UIProcess/API/gtk/tests/testwebview.c.
307         * UIProcess/API/gtk/tests/WebViewTest.cpp: Added. A fixture for generic WebView tests.
308         * UIProcess/API/gtk/tests/WebViewTest.h: Added.
309         * UIProcess/API/gtk/tests/testloading.c: Removed.
310         * UIProcess/API/gtk/tests/testwebcontext.c: Removed.
311
312 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
313
314         [Mac] Crash when opening an embedded PDF in a background tab
315         https://bugs.webkit.org/show_bug.cgi?id=69880
316
317         Reviewed by Darin Adler.
318
319         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
320         (WebKit::BuiltInPDFView::BuiltInPDFView):
321         (WebKit::BuiltInPDFView::~BuiltInPDFView):
322         (WebKit::BuiltInPDFView::initialize):
323         (WebKit::BuiltInPDFView::destroy):
324         Moved initialization and destruction code from C++ constructor and destructor to designated
325         functions. Not part of the fix, but seems related enough to fix.
326
327 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
328
329         [Mac] Crash when opening an embedded PDF in a background tab
330         https://bugs.webkit.org/show_bug.cgi?id=69880
331
332         Reviewed by Darin Adler.
333
334         * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::paint): Don't call plug-in that
335         doesn't even have a controller yet.
336
337 2011-10-11  Beth Dakin  <bdakin@apple.com>
338
339         https://bugs.webkit.org/show_bug.cgi?id=69874
340         WebKit2 snapshot APIs should take the device scale factor into account 
341         -and corresponding-
342         <rdar://problem/10269112>
343
344         Reviewed by Darin Adler.
345
346         Add the deviceScaleFactor as a scale on the snapshot's context to create a 
347         snapshot of the appropriate resolution. This matches the manner in which we scale 
348         the context in DrawingAreaImpl::display().
349         * WebProcess/WebPage/WebPage.cpp:
350         (WebKit::WebPage::snapshotInViewCoordinates):
351         (WebKit::WebPage::scaledSnapshotInDocumentCoordinates):
352
353 2011-10-11  W. James MacLean  <wjmaclean@chromium.org>
354
355         Loss of precision when converting from double to int and double to float in FrameView::zoomAnimatorTransformChanged()
356         https://bugs.webkit.org/show_bug.cgi?id=69739
357
358         Change 'double' parameters to 'float' to match changes in FrameView.
359
360         Reviewed by Simon Fraser.
361
362         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
363         (WebKit::BuiltInPDFView::zoomAnimatorTransformChanged):
364
365 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
366
367         [Mac] Small embedded PDFs are not fully repainted when scrolling
368         https://bugs.webkit.org/show_bug.cgi?id=69861
369
370         Reviewed by Anders Carlsson.
371
372         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: (WebKit::BuiltInPDFView::paintContent):
373         Account for vertical centering when deciding which pages to paint.
374
375 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
376
377         Embedding of PDF's with <object> or <embed> fails when there is no MIME type specified
378         https://bugs.webkit.org/show_bug.cgi?id=64934
379
380         Reviewed by Dan Bernstein.
381
382         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::createPlugin): Check URL extension, too,
383         like GetPluginPath does in UI process. One difference is that UI process additionally tries
384         platform specific extension to MIME type mapping, but that doesn't matter for PDF, which
385         does not have other standard extensions.
386
387 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
388
389         [Mac] Should be able to display multi-page PDFs in subframes
390         https://bugs.webkit.org/show_bug.cgi?id=69804
391
392         Reviewed by Anders Carlsson.
393
394         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
395         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
396         (WebKit::BuiltInPDFView::updateScrollbars): Page step should be exactly one page, so that
397         one could step over the document page by page. It certainly shouldn't be a portion of the
398         whole document.
399         (WebKit::BuiltInPDFView::pdfDocumentDidLoad): Moved duplicated code from load callbacks here.
400         (WebKit::BuiltInPDFView::calculateSizes): Calculate document size including gutters, and
401         remember page boxes.
402         (WebKit::BuiltInPDFView::paint): Split into separate functions.
403         (WebKit::BuiltInPDFView::paintBackground): Just paint gray background for the whole dirty rect.
404         (WebKit::BuiltInPDFView::paintContent): Paint pages and shadow under them. This code is still
405         fairly naive, as it doesn't understand annotations or page rotation.
406         Constants for shadows roughly match PDFView, but not quite, since it draws entirely custom
407         shadows.
408         (WebKit::BuiltInPDFView::paintControls): Moved scrollbar and scroll corner painting here.
409         (WebKit::BuiltInPDFView::streamDidFinishLoading): Moved common code into pdfDocumentDidLoad().
410         (WebKit::BuiltInPDFView::manualStreamDidFinishLoading): Ditto.
411
412 2011-10-11  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
413
414         [Qt] WebProcess using proxy settings for localhost as well
415         https://bugs.webkit.org/show_bug.cgi?id=69611
416
417         Reviewed by Chang Shu.
418
419         Implemented checks in queryProxy to return QNetworkProxy::NoProxy for localhost and 127.0.0.1
420
421         * WebProcess/qt/WebProcessMainQt.cpp:
422         (WebKit::EnvHttpProxyFactory::queryProxy):
423
424 2011-10-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
425
426         [Qt] Remove all references to QTDIR_build and standalone_package
427
428         Qt is now modularized, which means we no longer import WebKit into
429         the Qt source tree. Instead we use git submodules, and building
430         QtWebKit as "part of Qt" is really building QtWebKit as from trunk.
431
432         To decrease the number of buildsystem configurations we also remove
433         the standalone_package code-path used when we were providing tarballs
434         with the derived sources pre-generated.
435
436         Reviewed by Simon Hausmann.
437
438         * DerivedSources.pro:
439         * UIProcess/API/qt/qmlplugin/qmlplugin.pro:
440         * UIProcess/API/qt/tests/tests.pri:
441         * WebKit2.pri:
442         * WebProcess.pro:
443
444 2011-10-10  Nate Chapin  <japhet@chromium.org>
445
446         Use a CachedImageClient instead of CachedResourceClient
447         in WebDragClientMac.
448         https://bugs.webkit.org/show_bug.cgi?id=69790
449
450         Reviewed by Adam Barth.
451
452         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
453         (promisedDataClient):
454
455 2011-10-10  Mark Hahnenberg  <mhahnenberg@apple.com>
456
457         Remove getCallDataVirtual methods
458         https://bugs.webkit.org/show_bug.cgi?id=69186
459
460         Reviewed by Geoffrey Garen.
461
462         Removed all getCallDataVirtual methods and replaced their call sites 
463         with an explicit lookup in the MethodTable.
464
465         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
466         * WebProcess/Plugins/Netscape/JSNPMethod.h:
467         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
468         * WebProcess/Plugins/Netscape/JSNPObject.h:
469
470 2011-10-10  Simon Hausmann  <simon.hausmann@nokia.com>
471
472         [Qt] Fix build with qreal == float on MeeGo 1.2 Harmattan
473
474         Reviewed by Andreas Kling.
475
476         Explicitly choose the qreal variant of qMin, since QPointF is using qreal.
477
478         * UIProcess/qt/ViewportInteractionEngine.cpp:
479         (WebKit::ViewportInteractionEngine::animateContentPositionIntoBoundariesIfNeeded):
480
481 2011-10-10  Carlos Garcia Campos  <cgarcia@igalia.com>
482
483         [GTK] Add methods to reload the view to WebKit2 GTK+ API
484         https://bugs.webkit.org/show_bug.cgi?id=69613
485
486         Reviewed by Martin Robinson.
487
488         * UIProcess/API/gtk/WebKitWebView.cpp:
489         (webkit_web_view_reload):
490         (webkit_web_view_reload_bypass_cache):
491         * UIProcess/API/gtk/WebKitWebView.h:
492         * UIProcess/API/gtk/tests/testloading.c:
493         (loadReloadProvisionalLoadStarted):
494         (loadReloadLoadFinished):
495         (testLoadTimeoutFinishLoop):
496         (testLoadReload):
497         (main):
498
499 2011-10-09  Luke Macpherson   <macpherson@chromium.org>
500
501         Fix Lion, Leopard and Snow Leopard builds after changeset 97034 <http://trac.webkit.org/changeset/97034>
502         (https://bugs.webkit.org/show_bug.cgi?id=68035)
503         https://bugs.webkit.org/show_bug.cgi?id=69735
504
505         Reviewed by Daniel Bates.
506
507         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
508         Add symbols that are now required by ScrollableArea.
509         (WebKit::BuiltInPDFView::zoomAnimatorTransformChanged):
510
511 2011-10-08  Mark Hahnenberg  <mhahnenberg@apple.com>
512
513         Add static version of JSCell::getConstructData
514         https://bugs.webkit.org/show_bug.cgi?id=69673
515
516         Reviewed by Geoffrey Garen.
517
518         Added static version of getConstructData to all classes that 
519         override it and changed the virtual versions to call the static 
520         versions.  This is the first step in de-virtualizing JSCell::getConstructData.
521
522         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
523         (WebKit::JSNPObject::getConstructData):
524         * WebProcess/Plugins/Netscape/JSNPObject.h:
525
526 2011-10-08  Mark Hahnenberg  <mhahnenberg@apple.com>
527
528         Add static version of JSCell::getOwnPropertySlot
529         https://bugs.webkit.org/show_bug.cgi?id=69593
530
531         Reviewed by Geoffrey Garen.
532
533         Added static version of getOwnPropertySlot to every class that overrides
534         JSCell::getOwnPropertySlot.  The virtual versions now call the static versions.
535         This is the first step in de-virtualizing JSCell::getOwnPropertySlot.
536
537         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
538         (WebKit::JSNPObject::getOwnPropertySlot):
539         * WebProcess/Plugins/Netscape/JSNPObject.h:
540
541 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
542
543         [GTK] Implement drag and drop support in WebKit2
544         https://bugs.webkit.org/show_bug.cgi?id=63706
545
546         Reviewed by Philippe Normand.
547
548         * GNUmakefile.am: Add new files to compilation.
549         * Shared/gtk/ArgumentCodersGtk.cpp: Added.
550         (CoreIPC::encodeImage): Encode a GdkPixbuf.
551         (CoreIPC::decodeImage): Decode a GdkPixbuf.
552         (CoreIPC::encodeDataObject): Encode a DataObjectGtk.
553         (CoreIPC::decodeDataObject): Decode a DataObjectGtk.
554         (CoreIPC::::encode): Encode DragData.
555         (CoreIPC::::decode): Decode DragData.
556         * Shared/gtk/ArgumentCodersGtk.h:
557         * UIProcess/API/gtk/PageClientImpl.cpp:
558         (WebKit::PageClientImpl::startDrag):
559         * UIProcess/API/gtk/PageClientImpl.h:
560         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
561         (webkit_web_view_base_init): Set the view as a potential drop destination.
562         (webkitWebViewBaseDragDataGet): Added, delegate to GtkDragAndDropHelper.
563         (webkitWebViewBaseDragEnd): Ditto.
564         (webkitWebViewBaseDragDataReceived): Ditto.
565         (webkitWebViewBaseDragEnter): Ditto.
566         (webkitWebViewBaseDragMotion): Ditto.
567         (doDragLeaveLater): Ditto.
568         (webkitWebViewBaseDragLeave): Ditto.
569         (webkitWebViewBaseDragDrop): Ditto.
570         (webkit_web_view_base_class_init): Override GtkWidget drag and drop methods.
571         (webkitWebViewBaseStartDrag): Calls gtk_drag_begin() to start a drag operation.
572         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h: Add webkitWebViewBaseStartDrag().
573         * UIProcess/PageClient.h: Add startDrag().
574         * UIProcess/WebPageProxy.cpp:
575         (WebKit::WebPageProxy::performDragControllerAction): Share the Qt version.
576         * UIProcess/WebPageProxy.h:
577         * UIProcess/WebPageProxy.messages.in:
578         * WebProcess/WebCoreSupport/WebDragClient.cpp:
579         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp: Added.
580         * WebProcess/WebPage/WebPage.cpp: Add drag support for GTK+.
581         * WebProcess/WebPage/WebPage.h: Ditto.
582         * WebProcess/WebPage/WebPage.messages.in: Ditto.
583
584 2011-10-08  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
585
586         [Qt] [WK2] Wrong handling of visibility in QTouchWebPage
587         https://bugs.webkit.org/show_bug.cgi?id=69670
588
589         Reviewed by Andreas Kling.
590
591         Replace QTouchWebPage visibility handling by Show/Hide events with use of 
592         QSGItem::visibleChanged signal.
593
594         * UIProcess/API/qt/qtouchwebpage.cpp:
595         (QTouchWebPage::QTouchWebPage):
596         (QTouchWebPage::event):
597         (QTouchWebPage::onVisibleChanged):
598         * UIProcess/API/qt/qtouchwebpage.h:
599
600 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
601
602         Unreviewed, rolling out r96996.
603         http://trac.webkit.org/changeset/96996
604         https://bugs.webkit.org/show_bug.cgi?id=69697
605
606         It broke all tests on the Qt bot (Requested by Ossy_night on
607         #webkit).
608
609         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
610         (WebKit::JSNPMethod::getCallDataVirtual):
611         * WebProcess/Plugins/Netscape/JSNPMethod.h:
612         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
613         (WebKit::JSNPObject::getCallDataVirtual):
614         * WebProcess/Plugins/Netscape/JSNPObject.h:
615
616 2011-10-07  Jeff Miller  <jeffm@apple.com>
617
618         Add WKPageContextMenuClient callback when context menu is dismissed
619         https://bugs.webkit.org/show_bug.cgi?id=69553
620
621         Add contextMenuDismissed callback to WKPageContextMenuClient, and bump the API
622         version of this client to 1 so we continue to work with old clients.
623
624         * Shared/APIClientTraits.cpp: Added array of interface sizes for WKPageContextMenuClient.
625         * Shared/APIClientTraits.h: Added APIClientTraits for WKPageContextMenuClient.
626
627         * UIProcess/API/C/WKPage.h: Added contextMenuDismissed callback to WKPageContextMenuClient and bumped kWKPageContextMenuClientCurrentVersion.
628
629         * UIProcess/WebPageContextMenuClient.cpp:
630         (WebKit::WebPageContextMenuClient::contextMenuDismissed): Added.
631
632         * UIProcess/WebPageContextMenuClient.h: Added WebPageContextMenuClient::contextMenuDismissed().
633
634         * UIProcess/WebPageProxy.cpp:
635         (WebKit::WebPageProxy::internalShowContextMenu): Notify client when context menu is dismissed.
636
637 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
638
639         Remove getCallDataVirtual methods
640         https://bugs.webkit.org/show_bug.cgi?id=69186
641
642         Reviewed by Geoffrey Garen.
643
644         Removed all getCallDataVirtual methods and replaced their call sites 
645         with an explicit lookup in the MethodTable.
646
647         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
648         * WebProcess/Plugins/Netscape/JSNPMethod.h:
649         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
650         * WebProcess/Plugins/Netscape/JSNPObject.h:
651
652 2011-10-07  Alexey Proskuryakov  <ap@apple.com>
653
654         [Mac] Scrollbars in embedded PDFs should update when system preferences change
655         https://bugs.webkit.org/show_bug.cgi?id=69654
656
657         Reviewed by Simon Fraser.
658
659         * WebProcess/Plugins/PDF/BuiltInPDFView.h: Added an scrollbarStyleChanged() override.
660         ScrollAnimatorMac sets scrollbar frame to a bogus (0, 0, thickness, thickness) one when style
661         changes, and expects clients to move them back in place.
662
663         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
664         (WebKit::BuiltInPDFView::isOnActivePage): Fixed a typo that prevented ScrollAnimatorMac from
665         updating style of PDF view scrollbars.
666         (WebKit::BuiltInPDFView::scrollbarStyleChanged): Reposition scrollbars and content after
667         style change. The behavior is not perfect in edge cases, but roughly matches ScrollView.
668
669 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
670
671         Unreviewed, rolling out r96938.
672         http://trac.webkit.org/changeset/96938
673         https://bugs.webkit.org/show_bug.cgi?id=69653
674
675         It broke zillion tests and make testing so slow (Requested by
676         ossy_ on #webkit).
677
678         * UIProcess/WebContext.cpp:
679         * UIProcess/WebContext.h:
680         * UIProcess/efl/WebContextEfl.cpp:
681         (WebKit::WebContext::applicationCacheDirectory):
682         * UIProcess/gtk/WebContextGtk.cpp:
683         (WebKit::WebContext::applicationCacheDirectory):
684         * UIProcess/mac/WebContextMac.mm:
685         (WebKit::WebContext::applicationCacheDirectory):
686         * UIProcess/qt/WebContextQt.cpp:
687         (WebKit::WebContext::applicationCacheDirectory):
688         * UIProcess/win/WebContextWin.cpp:
689         (WebKit::WebContext::applicationCacheDirectory):
690
691 2011-10-07  Qi Zhang  <qi.2.zhang@nokia.com>
692
693         [Qt][WK2] ApplicationCache LayoutTests failed
694         https://bugs.webkit.org/show_bug.cgi?id=69541
695
696         Reviewed by Chang Shu.
697
698         1. Moved applicationCacheDirectory to common code.
699         2. Added interface setApplicationCacheDirectory to allow UI client overriding.
700         3. Renamed all platform-dependent implementations of applicationCacheDirectory to platformDefaultApplicationCacheDirectory.
701         4. On Qt, set the platformDefaultApplicationCacheDirectory to the default data location.
702
703
704         * UIProcess/WebContext.cpp:
705         (WebKit::WebContext::applicationCacheDirectory):
706         * UIProcess/WebContext.h:
707         (WebKit::WebContext::setApplicationCacheDirectory):
708         * UIProcess/efl/WebContextEfl.cpp:
709         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
710         * UIProcess/gtk/WebContextGtk.cpp:
711         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
712         * UIProcess/mac/WebContextMac.mm:
713         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
714         * UIProcess/qt/WebContextQt.cpp:
715         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
716         * UIProcess/win/WebContextWin.cpp:
717         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
718
719 2011-10-06  Brent Fulgham  <bfulgham@webkit.org>
720
721         [WinCairo] Correct improper identification of WKQC extensions.
722         https://bugs.webkit.org/show_bug.cgi?id=69600
723
724         * DerivedSources.make: Make sure we are not building the
725         WinCairo variant.
726
727 2011-10-06  Anders Carlsson  <andersca@apple.com>
728
729         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
730         https://bugs.webkit.org/show_bug.cgi?id=69586
731
732         Reviewed by Darin Adler.
733
734         * Configurations/Base.xcconfig:
735         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
736
737         * WebKit2.xcodeproj/project.pbxproj:
738         When building with clang, we don't need to run the check-for-global-initializers and
739         check-for-exit-time-destructors anymore.
740
741 2011-10-06  Anders Carlsson  <andersca@apple.com>
742
743         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
744         https://bugs.webkit.org/show_bug.cgi?id=69584
745
746         Reviewed by Darin Adler.
747
748         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
749
750         * UIProcess/WebContext.cpp:
751         * UIProcess/WebPageProxy.cpp:
752         * WebProcess/WebPage/WebFrame.cpp:
753         * WebProcess/WebPage/WebPage.cpp:
754
755 2011-10-06  Alexey Proskuryakov  <ap@apple.com>
756
757         [Mac] Should be able to scroll embedded PDFs using mouse
758         https://bugs.webkit.org/show_bug.cgi?id=69579
759
760         Reviewed by Darin Adler.
761
762         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
763         (WebKit::BuiltInPDFView::handleMouseEvent): No longer need to hardcode mouseDown handling,
764         ScrollableArea does everything now.
765         (WebKit::BuiltInPDFView::horizontalScrollbar): Added plumbing to access scrollbars from
766         WebCore hit testing code.
767         (WebKit::BuiltInPDFView::verticalScrollbar): Ditto.
768         (WebKit::BuiltInPDFView::visibleHeight): ScrollableArea now wants this.
769         (WebKit::BuiltInPDFView::visibleWidth): Ditto.
770
771         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
772         (WebKit::NetscapePlugin::horizontalScrollbar):
773         (WebKit::NetscapePlugin::verticalScrollbar):
774         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
775         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
776         * WebProcess/Plugins/Plugin.h:
777         * WebProcess/Plugins/PluginProxy.cpp:
778         (WebKit::PluginProxy::horizontalScrollbar):
779         (WebKit::PluginProxy::verticalScrollbar):
780         * WebProcess/Plugins/PluginProxy.h:
781         * WebProcess/Plugins/PluginView.cpp:
782         (WebKit::PluginView::horizontalScrollbar):
783         (WebKit::PluginView::verticalScrollbar):
784         * WebProcess/Plugins/PluginView.h:
785         Added plumbing to access scrollbars from WebCore hit testing code.
786
787 2011-10-06  Alexis Menard  <alexis.menard@openbossa.org>
788
789         [Qt][WK2] WebIconDatabase expects a file path not a directory.
790         https://bugs.webkit.org/show_bug.cgi?id=69557
791
792         Reviewed by Andreas Kling.
793
794         WebIconDatabase::setDatabasePath expects a file path not a directory.
795         I used the same name as the Mac port.
796
797         * UIProcess/qt/WebContextQt.cpp:
798         (WebKit::WebContext::platformDefaultIconDatabasePath):
799
800 2011-10-06  Anders Carlsson  <andersca@apple.com>
801
802         In background window, page flashes white if it enters and then immediately leaves compositing mode
803         https://bugs.webkit.org/show_bug.cgi?id=69566
804         <rdar://problem/9521192>
805
806         Reviewed by Dan Bernstein.
807
808         Don't update the backing store state if we're just about to exit accelerated compositing mode. Otherwise
809         the UI process will try to render an empty layer tree for a short period of time, leading to a white flash.
810
811         * WebProcess/WebPage/DrawingAreaImpl.cpp:
812         (WebKit::DrawingAreaImpl::layerHostDidFlushLayers):
813
814 2011-10-06  Fady Samuel  <fsamuel@chromium.org>
815
816         Code clean-up: Make RenderObject::absoluteBoundingBoxRect and associated methods const and make its parameter useTransforms no longer default to false
817         https://bugs.webkit.org/show_bug.cgi?id=69009
818
819         Reviewed by Simon Fraser.
820
821         * win/WebKit2.def:
822         * win/WebKit2CFLite.def:
823
824 2011-10-06  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
825
826         Move windows specific TextChecker implementation common to all ports.
827         https://bugs.webkit.org/show_bug.cgi?id=68532
828
829         Reviewed by Anders Carlsson.
830
831         All the TextChecker feature implementation files are moved outside of win port since they are
832         platform independent and can be moved across all ports. Only the implementation of TextChecker
833         class is platform dependent now and has been retained across all ports. Rest all files has been
834         moved for all ports usage.
835
836         * Shared/API/c/WKBase.h: Add WKGrammarDetailRef & WKTextCheckerRef types.
837         * Shared/API/c/win/WKBaseWin.h: Remove WKGrammarDetailRef & WKTextCheckerRef types.
838         * Shared/APIObject.h: Moved TypeGrammarDetail & TypeTextChecker from platform specific section to UIProcess types.
839         * UIProcess/API/C/WKAPICast.h: Added mapping for WKTextCheckerRef & WKGrammarDetailRef.
840         * UIProcess/API/C/WKGrammarDetail.cpp: Renamed from Source/WebKit2/UIProcess/API/C/win/WKGrammarDetail.cpp.
841         * UIProcess/API/C/WKGrammarDetail.h: Renamed from Source/WebKit2/UIProcess/API/C/win/WKGrammarDetail.h.
842         * UIProcess/API/C/WKTextChecker.cpp: Renamed from Source/WebKit2/UIProcess/API/C/win/WKTextChecker.cpp.
843         * UIProcess/API/C/WKTextChecker.h: Renamed from Source/WebKit2/UIProcess/API/C/win/WKTextChecker.h.
844         * UIProcess/API/C/win/WKAPICastWin.h: Removed mapping for WKTextCheckerRef & WKGrammarDetailRef.
845         * UIProcess/WebGrammarDetail.cpp: Renamed from Source/WebKit2/UIProcess/win/WebGrammarDetail.cpp.
846         * UIProcess/WebGrammarDetail.h: Renamed from Source/WebKit2/UIProcess/win/WebGrammarDetail.h.
847         * UIProcess/WebTextChecker.cpp: Renamed from Source/WebKit2/UIProcess/win/WebTextChecker.cpp.
848         * UIProcess/WebTextChecker.h: Renamed from Source/WebKit2/UIProcess/win/WebTextChecker.h.
849         * UIProcess/WebTextCheckerClient.cpp: Renamed from Source/WebKit2/UIProcess/win/WebTextCheckerClient.cpp.
850         * UIProcess/WebTextCheckerClient.h: Renamed from Source/WebKit2/UIProcess/win/WebTextCheckerClient.h.
851         * win/WebKit2.vcproj: Corrected paths for renamed files.
852         * win/WebKit2Generated.make: Corrected paths for renamed files.
853
854 2011-10-06  Anders Carlsson  <andersca@apple.com>
855
856         Crash when PluginProxy object is destroyed inside PluginProxy::pluginScriptableNPObject
857         https://bugs.webkit.org/show_bug.cgi?id=69559
858         <rdar://problem/9704066>
859
860         Reviewed by Maciej Stachowiak.
861
862         Protect the plug-in itself in the call to pluginScriptableNPObject. In some cases, sending
863         the synchronous message to the plug-in process can end up causing the web process to handle
864         an incoming message that will destroy t he plug-in.
865
866         Unfortunately, this is highly timing-dependent and can't be tested reliably.
867
868         * WebProcess/Plugins/PluginProxy.cpp:
869         (WebKit::PluginProxy::pluginScriptableNPObject):
870
871 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
872
873         [GTK] Add estimated-progress property to WebKitWebLoaderClient
874         https://bugs.webkit.org/show_bug.cgi?id=69509
875
876         Reviewed by Martin Robinson.
877
878         It allows to monitor the estimated progress of a lof operation by
879         connecting to the notify signal.
880
881         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
882         (didChangeProgress): Update estimated-progress property and notify when
883         it changes.
884         (webkitWebLoaderClientConstructed): Add implementations for
885         didStartProgress, didChangeProgress and didFinishProgress.
886         (webkitWebLoaderClientGetProperty):
887         (webkit_web_loader_client_class_init): Add estimated-progress property.
888         (webkit_web_loader_client_get_estimated_progress): Returns the
889         value of estimated-progress property.
890         * UIProcess/API/gtk/WebKitWebLoaderClient.h:
891         * UIProcess/API/gtk/tests/testloading.c:
892         (webLoadingFixtureSetup):
893         (loadProgressEstimatedProgressChanged):
894         (loadProgressLoadFinished):
895         (testLoadProgress):
896         (main):
897
898 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
899
900         [GTK] Implement cache model for WebKit2
901         https://bugs.webkit.org/show_bug.cgi?id=68434
902
903         Reviewed by Martin Robinson.
904
905         * UIProcess/API/gtk/WebKitWebContext.cpp:
906         (webkit_web_context_set_cache_model):
907         (webkit_web_context_get_cache_model):
908         * UIProcess/API/gtk/WebKitWebContext.h:
909         * UIProcess/API/gtk/tests/testwebcontext.c:
910         (testWebContextCacheModel):
911         (main):
912         * WebProcess/gtk/WebProcessGtk.cpp:
913         (WebKit::getCacheDiskFreeSize): Helper function to get free space
914         of the file system where the cache directory is on.
915         (WebKit::getMemorySize): Helper function to get the total memory
916         of the system in MB.
917         (WebKit::WebProcess::platformSetCacheModel): Implement
918         platformSetCacheModel for Gtk port using calculateCacheSizes().
919
920 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
921
922         https://bugs.webkit.org/show_bug.cgi?id=69492
923         [Mac] Should be able to scroll embedded PDFs from keyboard
924
925         Reviewed by Darin Adler.
926
927         * WebProcess/Plugins/Plugin.h:
928         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
929         (WebKit::NetscapePlugin::handleScroll):
930         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
931         * WebProcess/Plugins/PluginProxy.cpp:
932         (WebKit::PluginProxy::handleScroll):
933         * WebProcess/Plugins/PluginProxy.h:
934         Added a handleScroll method. A plug-in gets it if it doesn't handle a keyboard event, and
935         WebCore decides that this is an event for scrolling. A plug-in can decide whether it scrolls
936         main content, or some scrollable subview of its own.
937
938         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
939         (WebKit::BuiltInPDFView::handleMouseEvent): Added a comment explaining returned value.
940         (WebKit::BuiltInPDFView::handleScroll): Just call ScrollableArea, it will do everything.
941
942         * WebProcess/Plugins/PDF/BuiltInPDFView.h: Added a handleScroll override.
943
944         * WebProcess/Plugins/PluginView.cpp:
945         (WebKit::PluginView::scroll): Pass a PluginViewBase scroll to plug-in to handle.
946         (WebKit::PluginView::handleEvent): Added a FIXME.
947         * WebProcess/Plugins/PluginView.h:
948
949 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
950
951         [GTK] Do not use C API in GTK+ API public headers
952         https://bugs.webkit.org/show_bug.cgi?id=69506
953
954         Reviewed by Martin Robinson.
955
956         * GNUmakefile.am: Add new files to compilation.
957         * UIProcess/API/gtk/WebKitDefines.h: Added.
958         * UIProcess/API/gtk/WebKitError.h: Use WEBKIT_API instead of WK_EXPORT.
959         * UIProcess/API/gtk/WebKitWebContext.h: Ditto.
960         * UIProcess/API/gtk/WebKitWebLoaderClient.h: Ditto.
961         * UIProcess/API/gtk/WebKitWebView.h: Ditto.
962         * UIProcess/API/gtk/WebKitWebViewBase.h: Ditto.
963         * UIProcess/API/gtk/docs/GNUmakefile.am: Ignore WEBKIT_API
964         decorator in docs.
965         * UIProcess/API/gtk/webkit2.h: Include <webkit2/WebKitDefines.h>
966
967 2011-10-06  Alexis Menard  <alexis.menard@openbossa.org>
968
969         [Qt][WK2] Cursor should change when hovering links or input fields.
970         https://bugs.webkit.org/show_bug.cgi?id=69519
971
972         Reviewed by Simon Hausmann.
973
974         This is a temporary fix until Qt5 brings support for changing cursor
975         per item. This patch enforce the change of the cursor at application
976         level.
977
978         * UIProcess/API/qt/qdesktopwebview.cpp:
979         (QDesktopWebViewPrivate::didChangeCursor):
980
981 2011-10-06  Zeno Albisser  <zeno.albisser@nokia.com>
982
983         [Qt][WK2][Mac] QtWebProcess should not show up in the Dock.
984         https://bugs.webkit.org/show_bug.cgi?id=69432
985
986         We can set the environment variable QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM
987         in the WebProcess stub to disable the automatic foreground transformation.
988
989         Reviewed by Andreas Kling.
990
991         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
992         (WebKit::QtWebProcess::setupChildProcess):
993
994 2011-10-03  Andy Estes  <aestes@apple.com>
995
996         Add an option to suppress rendering until the document's load event fires.
997         https://bugs.webkit.org/show_bug.cgi?id=69298
998
999         Reviewed by Simon Fraser.
1000         
1001         Add a new WKPreference.
1002
1003         * Shared/WebPreferencesStore.h:
1004         * UIProcess/API/C/WKPreferences.cpp:
1005         (WKPreferencesSetSuppressRenderingWhileInitiallyLoading):
1006         (WKPreferencesGetSuppressRenderingWhileInitiallyLoading):
1007         * UIProcess/API/C/WKPreferences.h:
1008         * WebProcess/WebPage/WebPage.cpp:
1009         (WebKit::WebPage::updatePreferences):
1010
1011 2011-10-05  Simon Fraser  <simon.fraser@apple.com>
1012
1013         r96770 broke binary compatibility with Safari
1014         https://bugs.webkit.org/show_bug.cgi?id=69496
1015
1016         Reviewed by Dan Bernstein.
1017         
1018         Fix binary compatibility issue by declaring the deprecated methods inside a extern "C" block.
1019
1020         * UIProcess/API/C/WKContext.cpp:
1021
1022 2011-10-05  Jer Noble  <jer.noble@apple.com>
1023
1024         Enable WEB_AUDIO by default in the WebKit/mac port.
1025         https://bugs.webkit.org/show_bug.cgi?id=68587
1026
1027         Reviewed by Simon Fraser.
1028
1029         * Configurations/FeatureDefines.xcconfig:
1030
1031 2011-10-05  Simon Fraser  <simon.fraser@apple.com>
1032
1033         In WebKitTestRunner, text has font smoothing in pixel snapshots
1034         https://bugs.webkit.org/show_bug.cgi?id=69396
1035
1036         Reviewed by Darin Adler.
1037         
1038         Plumb through a method on WKContext that controls whether font smoothing
1039         is enabled. Since this is a global setting, such a method is more appropriate
1040         than a preference.
1041         
1042         Remove leading underscores on some WKContext functions, but keep
1043         exported versions of same for binary compatibility.
1044
1045         * Shared/WebProcessCreationParameters.cpp:
1046         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
1047         (WebKit::WebProcessCreationParameters::encode):
1048         (WebKit::WebProcessCreationParameters::decode):
1049         * Shared/WebProcessCreationParameters.h:
1050         * UIProcess/API/C/WKContext.cpp:
1051         (WKContextSetAlwaysUsesComplexTextCodePath):
1052         (WKContextSetShouldUseFontSmoothing):
1053         (WKContextSetAdditionalPluginsDirectory):
1054         (WKContextRegisterURLSchemeAsEmptyDocument):
1055         (WKContextSetHTTPPipeliningEnabled):
1056         (_WKContextSetAdditionalPluginsDirectory):
1057         (_WKContextRegisterURLSchemeAsEmptyDocument):
1058         (_WKContextSetAlwaysUsesComplexTextCodePath):
1059         (_WKContextSetHTTPPipeliningEnabled):
1060         * UIProcess/API/C/WKContextPrivate.h:
1061         * UIProcess/WebContext.cpp:
1062         (WebKit::WebContext::WebContext):
1063         (WebKit::WebContext::ensureWebProcess):
1064         (WebKit::WebContext::setShouldUseFontSmoothing):
1065         (WebKit::WebContext::httpPipeliningEnabled):
1066         * UIProcess/WebContext.h:
1067         * WebProcess/WebProcess.cpp:
1068         (WebKit::WebProcess::initializeWebProcess):
1069         (WebKit::WebProcess::setShouldUseFontSmoothing):
1070         * WebProcess/WebProcess.h:
1071         * WebProcess/WebProcess.messages.in:
1072
1073 2011-10-05  Anders Carlsson  <andersca@apple.com>
1074
1075         Flash of white when unminimizing windows
1076         https://bugs.webkit.org/show_bug.cgi?id=69476
1077         <rdar://problem/10202680>
1078
1079         Reviewed by Simon Fraser.
1080
1081         Whenever the UI process requests an immediate backing store update, make sure to resume
1082         painting if it's suspended.
1083
1084         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1085         (WebKit::DrawingAreaImpl::updateBackingStoreState):
1086
1087 2011-10-05  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1088
1089         [Qt] [WK2] Support JS alert/confirm/prompt in QDesktopWebView
1090         https://bugs.webkit.org/show_bug.cgi?id=69274
1091
1092         Reviewed by Andreas Kling.
1093
1094         Use currently existing QtWidgets to provide an implementation of
1095         window.alert(), window.confirm() and window.prompt().
1096
1097         * Shared/WebString.h:
1098         (WebKit::WebString::createNull):
1099         (WebKit::WebString::WebString):
1100         Add a way to create a Null WebString. RunJavaScriptPrompt will differentiate
1101         between empty and null strings.
1102
1103         * UIProcess/API/qt/qdesktopwebview.cpp:
1104         (QDesktopWebViewPrivate::enableMouseEvents):
1105         (QDesktopWebViewPrivate::disableMouseEvents):
1106         Create helper functions to enable and disable mouse events. This is useful for
1107         disabling mouse events in the WebView when we show QtWidget dialogs to avoid
1108         unwanted interaction with the page.
1109
1110         (QDesktopWebViewPrivate::runJavaScriptAlert):
1111         (QDesktopWebViewPrivate::runJavaScriptConfirm):
1112         (QDesktopWebViewPrivate::runJavaScriptPrompt):
1113         (QDesktopWebView::init):
1114         * UIProcess/API/qt/qdesktopwebview_p.h:
1115         * UIProcess/qt/ClientImpl.cpp:
1116         (qt_wk_runJavaScriptAlert):
1117         (qt_wk_runJavaScriptConfirm):
1118         (createNullWKString):
1119         (qt_wk_runJavaScriptPrompt):
1120         * UIProcess/qt/ClientImpl.h:
1121         * UIProcess/qt/QtWebPageProxy.cpp:
1122         (QtWebPageProxy::init):
1123         * UIProcess/qt/TouchViewInterface.cpp:
1124         (WebKit::TouchViewInterface::runJavaScriptAlert):
1125         (WebKit::TouchViewInterface::runJavaScriptConfirm):
1126         (WebKit::TouchViewInterface::runJavaScriptPrompt):
1127         * UIProcess/qt/TouchViewInterface.h:
1128         * UIProcess/qt/ViewInterface.h:
1129
1130 2011-10-05  Chang Shu  <cshu@webkit.org>
1131
1132         [WK2] Support setMarkedText/hasMarkedText/unmarkText/insertText for WTR TextInputController
1133         https://bugs.webkit.org/show_bug.cgi?id=68924
1134
1135         Implemented WKBundlePage private APIs to support the above functions.
1136
1137         Reviewed by Darin Adler.
1138
1139         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1140         (WKBundlePageSetComposition):
1141         (WKBundlePageHasComposition):
1142         (WKBundlePageConfirmComposition):
1143         (WKBundlePageConfirmCompositionWithText):
1144         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
1145         * WebProcess/WebPage/WebPage.cpp:
1146         (WebKit::WebPage::setCompositionForTesting):
1147         (WebKit::WebPage::hasCompositionForTesting):
1148         (WebKit::WebPage::confirmCompositionForTesting):
1149         * WebProcess/WebPage/WebPage.h:
1150
1151 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
1152
1153         [Mac] Make built-in PDF description localizable
1154         https://bugs.webkit.org/show_bug.cgi?id=69442
1155
1156         Reviewed by Dan Bernstein.
1157
1158         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: Use a localized string instead of a literal one.
1159
1160 2011-10-05  Chang Shu  <cshu@webkit.org>
1161
1162         [WK2] WebKitTestRunner needs LayoutTestController.dumpConfigurationForViewport
1163         https://bugs.webkit.org/show_bug.cgi?id=69365
1164
1165         Reviewed by Darin Adler.
1166
1167         Implement retrieving viewport configuration as text in WebProcess.
1168
1169         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1170         (WKBundlePageViewportConfigurationAsText):
1171         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
1172         * WebProcess/WebPage/WebPage.cpp:
1173         (WebKit::WebPage::viewportConfigurationAsText):
1174         * WebProcess/WebPage/WebPage.h:
1175
1176 2011-10-05  Alexis Menard  <alexis.menard@openbossa.org>
1177
1178         [Qt][WK2] Default directories and paths are missing for LocalStorage, Database and IconDatabase.
1179         https://bugs.webkit.org/show_bug.cgi?id=69111
1180
1181         Reviewed by Kenneth Rohde Christiansen.
1182
1183         Provide default path for LocalStorage, Database and IconDatabase using QDesktopServices.
1184
1185         * UIProcess/qt/WebContextQt.cpp:
1186         (WebKit::defaultDataLocation):
1187         (WebKit::WebContext::platformInitializeWebProcess):
1188         (WebKit::WebContext::platformDefaultDatabaseDirectory):
1189         (WebKit::WebContext::platformDefaultIconDatabasePath):
1190         (WebKit::WebContext::platformDefaultLocalStorageDirectory):
1191
1192 2011-10-05  Carlos Garcia Campos  <cgarcia@igalia.com>
1193
1194         [GTK] Use WKRetainPtr for WK types in WebKit2 GTK+
1195         https://bugs.webkit.org/show_bug.cgi?id=69404
1196
1197         Reviewed by Martin Robinson.
1198
1199         * UIProcess/API/gtk/WebKitWebContext.cpp:
1200         (webkitWebContextFinalize):
1201         (createDefaultWebContext):
1202         (webkitWebContextGetWKContext):
1203         * UIProcess/API/gtk/WebKitWebView.cpp:
1204         (webkit_web_view_load_uri):
1205         (webkit_web_view_load_alternate_html):
1206
1207 2011-10-04  Kent Tamura  <tkent@chromium.org>
1208
1209         Introduce feature flags for incomplete input types
1210         https://bugs.webkit.org/show_bug.cgi?id=68971
1211
1212         Reviewed by Hajime Morita.
1213
1214         * Configurations/FeatureDefines.xcconfig:
1215         Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
1216
1217 2011-10-04  Scott Graham  <scottmg@chromium.org>
1218
1219         Add GAMEPAD feature flag
1220         https://bugs.webkit.org/show_bug.cgi?id=66859
1221
1222         Reviewed by Darin Fisher.
1223
1224         * Configurations/FeatureDefines.xcconfig:
1225
1226 2011-10-04  Ada Chan  <adachan@apple.com>
1227
1228         toURLRef() in WKSharedAPICast.h should return null for a null string
1229         https://bugs.webkit.org/show_bug.cgi?id=69380
1230
1231         Reviewed by Jon Honeycutt.
1232
1233         * Shared/API/c/WKSharedAPICast.h:
1234         (WebKit::toURLRef): Add the missing "return" for the null string case.
1235
1236 2011-10-04  Alexey Proskuryakov  <ap@apple.com>
1237
1238         https://bugs.webkit.org/show_bug.cgi?id=67774
1239         PDF in a frameset is not displayed, always downloads
1240
1241         Reviewed by Darin Adler.
1242
1243         * WebKit2.xcodeproj/project.pbxproj:
1244         * WebProcess/Plugins/PDF: Added.
1245         Added BuiltInPDFView class. It implements ScrollableArea and Plugin, working with iframes,
1246         objects and embeds. The implementation targets Mac port only, fixing a WebKit2 regression.
1247
1248         * UIProcess/WebContext.cpp: (WebKit::WebContext::getPlugins): Tell WebCore that there is a
1249         plug-in for PDF, so that it instantiates it in a regular fashion.
1250
1251         * UIProcess/WebFrameProxy.cpp: (WebKit::WebFrameProxy::canShowMIMEType): We can now show
1252         PDF not only in main frame.
1253
1254         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: Added. This is largely an implementation of
1255         ScrollableArea now, which can render the first page of a PDF. Further improvements to come.
1256
1257         * WebProcess/Plugins/PDF/BuiltInPDFView.h: Added.
1258
1259         * WebProcess/Plugins/Plugin.cpp: (WebKit::Plugin::updateControlTints): Give Plugin a chance
1260         to invalidate its tintable controls - it's necessary for PDF because scrollbars are tintable. 
1261
1262         * WebProcess/Plugins/Plugin.h: (WebKit::Plugin::controller): Added a const version, since
1263         some ScrollableArea methods are const.
1264
1265         * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::paint): Call updateControlTints
1266         at updatingControlTints phase.
1267
1268         * WebProcess/Plugins/PluginView.h: PDF plug-in needs to tinker with embedding FrameView to
1269         use Scrollbar class, so it needs to cast its PluginController up to PluginView. It's unfortunate
1270         that PluginView has so much NPAPI specific code, but that's how it is now.
1271
1272         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::createPlugin): If there is no real plug-in
1273         installed for PDF, instantiate built-in one.
1274
1275 2011-10-04  Jon Lee  <jonlee@apple.com>
1276
1277         REGRESSION (WK2): (Shift-)option-tabbing skips over elements when transitioning from chrome to webview
1278         https://bugs.webkit.org/show_bug.cgi?id=68412
1279         <rdar://problem/9988252>
1280
1281         Reviewed by Darin Adler.
1282
1283         In WK1 setInitialFocus() is called on FocusController with the key event that
1284         caused the web view to become first responder. In WK2 no event is sent. So if
1285         the key stroke that caused the change in first responder status contains the
1286         option modifier key, FocusController did not know that it had to switch behavior.
1287
1288         Because there are multiple ways that the WKView can becomeFirstResponder, I changed
1289         the signature to setInitialFocus to express whether the key event parameter is an
1290         actual key event.
1291
1292         * UIProcess/API/C/win/WKView.cpp:
1293         (WKViewSetInitialFocus):
1294         * UIProcess/API/mac/WKView.mm:
1295         (-[WKView becomeFirstResponder]): Take the NSApp currentEvent and pass it along if
1296         the event is a keyboard event, otherwise pass an empty event.
1297         * UIProcess/WebPageProxy.cpp:
1298         (WebKit::WebPageProxy::setInitialFocus): Change in function signature to confirm that
1299         the event that caused the initial focus was a keyboard event, and provide the keyboard
1300         event itself.
1301         * UIProcess/WebPageProxy.h:
1302         * UIProcess/win/WebView.cpp:
1303         (WebKit::WebView::setInitialFocus):
1304         * UIProcess/win/WebView.h:
1305         * WebProcess/WebPage/WebPage.cpp:
1306         (WebKit::WebPage::setInitialFocus): If we know that the cause of this was a keyboard
1307         event, we pass that event to the FocusController. Otherwise we fall back to the original
1308         behavior, which is to pass no event at all.
1309         * WebProcess/WebPage/WebPage.h:
1310         * WebProcess/WebPage/WebPage.messages.in:
1311
1312 2011-10-04  Jeff Miller  <jeffm@apple.com>
1313
1314         WKPreferences should allow control of application chrome mode
1315         https://bugs.webkit.org/show_bug.cgi?id=69344
1316
1317         Reviewed by Dan Bernstein.
1318
1319         * Shared/WebPreferencesStore.h: Add application chrome mode setting to FOR_EACH_WEBKIT_BOOL_PREFERENCE().
1320
1321         * UIProcess/API/C/WKPreferences.cpp:
1322         (WKPreferencesSetApplicationChromeModeEnabled): Added.
1323         (WKPreferencesGetApplicationChromeModeEnabled): Added.
1324
1325         * UIProcess/API/C/WKPreferencesPrivate.h: Added WKPreferencesSetApplicationChromeModeEnabled() and WKPreferencesGetApplicationChromeModeEnabled().
1326
1327         * WebProcess/WebPage/WebPage.cpp:
1328         (WebKit::WebPage::updatePreferences): Set application chrome mode setting.
1329
1330 2011-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
1331
1332         [GTK] Implement default error pages in WebKit2 GTK+ API
1333         https://bugs.webkit.org/show_bug.cgi?id=69255
1334
1335         Reviewed by Martin Robinson.
1336
1337         * UIProcess/API/gtk/WebKitError.cpp:
1338         (webkit_policy_error_quark): Add quark for policy errors.
1339         (webkit_plugin_error_quark): Add quark for plugin errors.
1340         * UIProcess/API/gtk/WebKitError.h: Add policy and plugin errors.
1341         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
1342         (webkitWebLoaderClientLoadFailed): Load a custom error page when
1343         load failed and signal has not been handled.
1344         (webkit_web_loader_client_class_init): Add default implementation
1345         for provisional_load_failed and load_failed virtual methods.
1346
1347 2011-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
1348
1349         [GTK] Add webkit_web_view_load_alternate_html() to WebKit2 GTK+ API
1350         https://bugs.webkit.org/show_bug.cgi?id=69254
1351
1352         Reviewed by Martin Robinson.
1353
1354         * UIProcess/API/gtk/WebKitWebView.cpp:
1355         (webkit_web_view_load_alternate_html):
1356         * UIProcess/API/gtk/WebKitWebView.h:
1357         * UIProcess/API/gtk/tests/testloading.c:
1358         (loadAlternateContentLoadFinished):
1359         (loadAlternateContentLoadFailed):
1360         (testLoadAlternateContent):
1361         (main):
1362
1363 2011-10-03  Jon Lee  <jonlee@apple.com>
1364
1365         Extend DOM WheelEvent to differentiate between physical and logical scroll directions
1366         https://bugs.webkit.org/show_bug.cgi?id=68959
1367         <rdar://problem/10036688>
1368
1369         Reviewed by Sam Weinig.
1370
1371         * Shared/WebEvent.h:
1372         (WebKit::WebWheelEvent::directionInvertedFromDevice):
1373         * Shared/WebEventConversion.cpp:
1374         (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent):
1375         * Shared/WebWheelEvent.cpp:
1376         (WebKit::WebWheelEvent::WebWheelEvent):
1377         (WebKit::WebWheelEvent::encode):
1378         (WebKit::WebWheelEvent::decode):
1379         * Shared/mac/WebEventFactory.mm:
1380         (WebKit::WebEventFactory::createWebWheelEvent): get the flag from the NSEvent.
1381         * UIProcess/WebPageProxy.cpp:
1382         (WebKit::coalesce):
1383
1384 2011-10-04  Nayan Kumar K  <nayankk@motorola.com>
1385
1386         [WebKit2][gtk] Generate gtk-doc for WebKit2-GTK.
1387         https://bugs.webkit.org/show_bug.cgi?id=69325
1388
1389         Reviewed by Gustavo Noronha Silva.
1390
1391         Documentation generation for WebKit2-GTK+ APIs
1392         using gtk-doc.
1393
1394         * GNUmakefile.am: Added doc generation files to EXTRA_DIST.
1395         * UIProcess/API/gtk/docs/GNUmakefile.am: Makefile for doc generation.
1396         * UIProcess/API/gtk/docs/version.xml.in: Version information.
1397         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Document template.
1398         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Document sections added.
1399         * UIProcess/API/gtk/docs/webkit2gtk.types: Added GObjects types.
1400
1401 2011-10-04  Nayan Kumar K  <nayankk@motorola.com>
1402
1403         [WebKit2][gtk] Fix warnings while generating documentation using gtk-doc.
1404         https://bugs.webkit.org/show_bug.cgi?id=69329
1405
1406         Reviewed by Martin Robinson.
1407
1408         Added documentation for WebKitNetworkError enum and corrected few other
1409         minor issues in WebKit2-GTK+ API documentation.
1410
1411         * UIProcess/API/gtk/WebKitError.h: Added documentation for WebKitNetworkError.
1412         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
1413         (webkit_web_loader_client_class_init): Corrected parameter name.
1414         * UIProcess/API/gtk/WebKitWebView.cpp: Corrected annotation.
1415
1416 2011-10-04  Vsevolod Vlasov  <vsevik@chromium.org>
1417
1418         Web Inspector: Remove http/tests/inspector/network/disabled-cache-crash.html.
1419         https://bugs.webkit.org/show_bug.cgi?id=69332
1420
1421         Reviewed by Pavel Feldman.
1422
1423         * win/WebKit2.def:
1424         * win/WebKit2CFLite.def:
1425
1426 2011-10-03  Anders Carlsson  <andersca@apple.com>
1427
1428         Content area does not return to the correct position after rubberbanding
1429         https://bugs.webkit.org/show_bug.cgi?id=69302
1430         <rdar://problem/10102886>
1431
1432         Reviewed by Sam Weinig.
1433
1434         Make sure to schedule a display after adding to the dirty region.
1435
1436         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1437         (WebKit::DrawingAreaImpl::scroll):
1438
1439 2011-10-03  Anders Carlsson  <andersca@apple.com>
1440
1441         Remove custom scrollbar painting hooks
1442         https://bugs.webkit.org/show_bug.cgi?id=69163
1443
1444         Remove overridden ChromeClient member functions.
1445
1446         Reviewed by Alexey Proskuryakov.
1447
1448         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1449         * WebProcess/WebCoreSupport/WebChromeClient.h:
1450
1451 2011-10-03  Jer Noble  <jer.noble@apple.com>
1452
1453         Unreviewed, rolling out r96526.
1454         http://trac.webkit.org/changeset/96526
1455         https://bugs.webkit.org/show_bug.cgi?id=68587
1456
1457         WEB_AUDIO has numerous 64->32 bit casting warnings, causing
1458         build breakages where -Wall is enabled.
1459
1460         * Configurations/FeatureDefines.xcconfig:
1461
1462 2011-10-03  Jer Noble  <jer.noble@apple.com>
1463
1464         Enable WEB_AUDIO by default in the WebKit/mac port.
1465         https://bugs.webkit.org/show_bug.cgi?id=68587
1466
1467         Reviewed by Simon Fraser.
1468
1469         * Configurations/FeatureDefines.xcconfig:
1470
1471 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1472
1473         [GTK] Add failing uri parameter to provisional-load-failed and load-failed signals
1474         https://bugs.webkit.org/show_bug.cgi?id=69252
1475
1476         Reviewed by Martin Robinson.
1477
1478         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
1479         (didFailProvisionalLoadWithErrorForFrame): Pass failing URL to
1480         signal handler.
1481         (didFailLoadWithErrorForFrame): Ditto.
1482         (webkit_web_loader_client_class_init): Add failing URL parameter
1483         to provisional-load-failed and load-failed signals.
1484         * UIProcess/API/gtk/WebKitWebLoaderClient.h:
1485         * UIProcess/API/gtk/tests/testloading.c:
1486         (loadStatusProvisionalLoadFailed): Update to API changes.
1487         (loadStatusLoadFailed): Ditto.
1488         (loadErrorProvisionalLoadFailed): Ditto.
1489         * UIProcess/API/gtk/webkit2marshal.list:
1490
1491 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1492
1493         [GTK] Fix memory leak when loading url
1494         https://bugs.webkit.org/show_bug.cgi?id=69247
1495
1496         Reviewed by Martin Robinson.
1497
1498         Release URL created with WKURLCreateWithUTF8CString().
1499
1500         * UIProcess/API/gtk/WebKitWebView.cpp:
1501         (webkit_web_view_load_uri):
1502
1503 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1504
1505         [UNIX] Rename NetscapePluginModule::pluginInfo to NetscapePluginModule::getPluginInfoForLoadedPlugin()
1506         https://bugs.webkit.org/show_bug.cgi?id=69147
1507
1508         Reviewed by Martin Robinson.
1509
1510         * Shared/Plugins/Netscape/NetscapePluginModule.h:
1511         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
1512         (WebKit::NetscapePluginModule::getPluginInfoForLoadedPlugin):
1513         (WebKit::NetscapePluginModule::getPluginInfo):
1514
1515 2011-10-03  Zeno Albisser  <zeno.albisser@nokia.com>
1516
1517         [Qt][WebKit2][Mac] WebProcess should exit automatically when UIProcess dies.
1518         https://bugs.webkit.org/show_bug.cgi?id=68439
1519
1520         We use a dispatch queue and a dispatch source in the WebProcess
1521         to receive a notification when the UI Process dies.
1522         The WebProcess then commits suicide.
1523
1524         Reviewed by Andreas Kling.
1525
1526         * WebProcess/qt/WebProcessQt.cpp:
1527         (WebKit::parentProcessDiedCallback):
1528         (WebKit::WebProcess::platformInitializeWebProcess):
1529
1530 2011-10-02  Zeno Albisser  <zeno.albisser@nokia.com>
1531
1532         [Qt][WK2][Mac] WebKit2 does not build on mac after merge of Qt5 refactor branch.
1533         https://bugs.webkit.org/show_bug.cgi?id=69223
1534
1535         After the merge of the Qt5 refactor branch, networking stuff has been
1536         extracted into a separate library. The qmlplugin needs to link to that
1537         library to get QNetworkReply defined.
1538
1539         Reviewed by Noam Rosenthal.
1540
1541         * UIProcess/API/qt/qmlplugin/qmlplugin.pro:
1542
1543 2011-10-01  Geoffrey Garen  <ggaren@apple.com>
1544
1545         Removed redundant helper functions for allocating Strong handles
1546         https://bugs.webkit.org/show_bug.cgi?id=69218
1547
1548         Reviewed by Sam Weinig.
1549
1550         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
1551         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
1552
1553 2011-09-30  Sam Weinig  <sam@webkit.org>
1554
1555         Add support for eventSender.mouseScrollBy in WTR
1556         https://bugs.webkit.org/show_bug.cgi?id=69189
1557
1558         Reviewed by Simon Fraser.
1559
1560         * UIProcess/WebPageProxy.cpp:
1561         (WebKit::WebPageProxy::handleWheelEvent):
1562         * WebProcess/WebPage/WebPage.cpp:
1563         (WebKit::WebPage::wheelEventSyncForTesting):
1564         * WebProcess/WebPage/WebPage.h:
1565         * WebProcess/WebPage/WebPage.messages.in:
1566         Add sync version of wheel event handling for use in testing.
1567
1568 2011-09-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1569
1570         [Qt] Add missing include for QMimeData
1571         https://bugs.webkit.org/show_bug.cgi?id=69178
1572
1573         Reviewed by Tor Arne Vestbø.
1574
1575         This was implicitly included by other headers, but due to changes in
1576         Qt5 we need to include explicitly.
1577
1578         * UIProcess/qt/QtWebPageProxy.cpp:
1579         * WebProcess/WebPage/WebPage.cpp:
1580
1581 2011-09-30  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1582
1583         [Qt] Prevent qDebug() output from DRT and WTR unless --verbose
1584
1585         For DRT we didn't install the message handler early enough to
1586         catch output while constructing the QApplication. For WTR we
1587         didn't even install a message handler.
1588
1589         Since the UI process will forward any output from the web process
1590         we set an environment variable QT_WEBKIT_SUPPRESS_WEB_PROCESS_OUTPUT
1591         in WTR before the web process is started. This is picked up by the
1592         web process which installs its own message handler.
1593
1594         The environment variable can be overriden on the command line if you
1595         want to see output from the web process, or you can pass --verbose to
1596         WTR to see output from both processes.
1597
1598         https://bugs.webkit.org/show_bug.cgi?id=69132
1599
1600         Reviewed by Andreas Kling.
1601
1602         * WebProcess/qt/WebProcessMainQt.cpp:
1603
1604 2011-09-30  Anders Carlsson  <andersca@apple.com>
1605
1606         Remove didCompleteRubberBandForMainFrame UIClient callback
1607         https://bugs.webkit.org/show_bug.cgi?id=69161
1608
1609         Reviewed by Adam Roben.
1610
1611         * UIProcess/API/C/WKPage.h:
1612         * UIProcess/WebPageProxy.cpp:
1613         * UIProcess/WebPageProxy.h:
1614         * UIProcess/WebPageProxy.messages.in:
1615         * UIProcess/WebUIClient.cpp:
1616         * UIProcess/WebUIClient.h:
1617         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1618         (WebKit::WebChromeClient::didCompleteRubberBandForFrame):
1619
1620 2011-09-30  Qi Zhang  <qi.2.zhang@nokia.com>
1621
1622         WebKitTestRunner needs layoutTestController.setAppCacheMaximumSize
1623         https://bugs.webkit.org/show_bug.cgi?id=42698
1624
1625         Reviewed by Andreas Kling.
1626
1627         Implemented layoutTestController.setAppCacheMaximumSize and layoutTestController.clearApplicationCache,
1628         and call clearApplicationCache when layoutTest start up.
1629
1630         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1631         (WebKit::WebApplicationCacheManager::setAppCacheMaximumSize):
1632         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1633         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1634         (WKBundleClearApplicationCache):
1635         (WKBundleSetAppCacheMaximumSize):
1636         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
1637         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1638         (WebKit::InjectedBundle::clearApplicationCache):
1639         (WebKit::InjectedBundle::setAppCacheMaximumSize):
1640         * WebProcess/InjectedBundle/InjectedBundle.h:
1641
1642 2011-09-30  Carlos Garcia Campos  <cgarcia@igalia.com>
1643
1644         [UNIX] Add a method to get information for an already loaded plugin module
1645         https://bugs.webkit.org/show_bug.cgi?id=69139
1646
1647         Reviewed by Martin Robinson.
1648
1649         * Shared/Plugins/Netscape/NetscapePluginModule.h: Add pluginInfo().
1650         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
1651         (WebKit::NetscapePluginModule::pluginInfo): Private method to get
1652         the plugin information from the module, it must be called when the
1653         module has been already initialized.
1654         (WebKit::NetscapePluginModule::getPluginInfo): Use pluginInfo() to
1655         get information of the plugin module for the given path.
1656
1657 2011-09-30  Zeno Albisser  <zeno.albisser@nokia.com>
1658
1659         [Qt][WK2] Event delivery in QDesktopWebView is broken after merge of Qt5 refactor
1660         https://bugs.webkit.org/show_bug.cgi?id=69105
1661
1662         This changes QDesktopWebView and QDesktopWebPageProxy to use QMouseEvent instead
1663         of QGraphicsSceneMouseEvent.
1664         Further it removes an endless loop introduced by the QSGItem::event() function
1665         delivering inputMethodEvents but no other events.
1666
1667         Reviewed by Andreas Kling.
1668
1669         * Shared/NativeWebMouseEvent.h:
1670         (WebKit::NativeWebMouseEvent::nativeEvent):
1671         * Shared/NativeWebWheelEvent.h:
1672         (WebKit::NativeWebWheelEvent::nativeEvent):
1673         * Shared/qt/NativeWebMouseEventQt.cpp:
1674         (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
1675         * Shared/qt/NativeWebWheelEventQt.cpp:
1676         (WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
1677         * Shared/qt/WebEventFactoryQt.cpp:
1678         (WebKit::mouseButtonForEvent):
1679         (WebKit::webEventTypeForEvent):
1680         (WebKit::WebEventFactory::createWebMouseEvent):
1681         (WebKit::WebEventFactory::createWebWheelEvent):
1682         * Shared/qt/WebEventFactoryQt.h:
1683         * UIProcess/API/qt/qdesktopwebview.cpp:
1684         (QDesktopWebView::mousePressEvent):
1685         (QDesktopWebView::mouseMoveEvent):
1686         (QDesktopWebView::mouseReleaseEvent):
1687         (QDesktopWebView::mouseDoubleClickEvent):
1688         (QDesktopWebView::wheelEvent):
1689         (QDesktopWebView::event):
1690         * UIProcess/API/qt/qdesktopwebview.h:
1691         * UIProcess/qt/qdesktopwebpageproxy.cpp:
1692         (QDesktopWebPageProxy::handleEvent):
1693         (QDesktopWebPageProxy::handleMouseMoveEvent):
1694         (QDesktopWebPageProxy::handleMousePressEvent):
1695         (QDesktopWebPageProxy::handleMouseReleaseEvent):
1696         (QDesktopWebPageProxy::handleMouseDoubleClickEvent):
1697         (QDesktopWebPageProxy::handleWheelEvent):
1698         (QDesktopWebPageProxy::handleHoverMoveEvent):
1699         * UIProcess/qt/qdesktopwebpageproxy.h:
1700
1701 2011-09-29  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
1702
1703         Initial implementation of WebInspector for WebKit2 GTK port.
1704         https://bugs.webkit.org/show_bug.cgi?id=68235
1705
1706         Reviewed by Martin Robinson.
1707
1708         * UIProcess/WebInspectorProxy.cpp:
1709         (WebKit::WebInspectorProxy::WebInspectorProxy): Initialize the native window handles of GTK.
1710         * UIProcess/WebInspectorProxy.h: Add native window handle for inspector window.
1711         * UIProcess/gtk/WebInspectorGtk.cpp:
1712         (WebKit::inspectorFilesBasePath): Base folder for inspector resources.
1713         (WebKit::inspectorWindowDestroyed): Invoked when inspector window is closed by user.
1714         (WebKit::WebInspectorProxy::windowDestroyed): Resets the native handles to 0 when user closes the window.
1715         (WebKit::WebInspectorProxy::platformCreateInspectorPage): Create the WebView for inspector.
1716         (WebKit::WebInspectorProxy::platformOpen): Create the window for inspector.
1717         (WebKit::WebInspectorProxy::platformDidClose): Close both WebView & window of inspector.
1718         (WebKit::WebInspectorProxy::platformInspectedURLChanged): Update the title of inspector window.
1719         (WebKit::WebInspectorProxy::inspectorPageURL): Return the absolute URL of inspector.html.
1720         (WebKit::WebInspectorProxy::inspectorBaseURL): Return the location where inspector resources are present.
1721         WebProcess is given read access to this folder only for loading file URLs by sandboxed extension.
1722
1723 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1724
1725         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
1726
1727         QWidget and friends now live in the QtWidgets library. We update
1728         includes in implementation files and private headers to us the
1729         non-module-prefixed path, and leave the lookup for the include
1730         path. For public headers we have to ifdef the includes as the
1731         user might now have the modules we need in his QT config.
1732
1733         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
1734         have to update our code and use windowHandle() for setting the
1735         parent relationships.
1736
1737         https://bugs.webkit.org/show_bug.cgi?id=68687
1738
1739         Reviewed by Andreas Kling.
1740
1741         * UIProcess/API/qt/qdesktopwebview.cpp:
1742         * UIProcess/API/qt/qdesktopwebview.h:
1743         * UIProcess/API/qt/tests/tests.pro:
1744         * UIProcess/qt/ViewInterface.h:
1745         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
1746
1747 2011-09-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1748
1749         [GTK] Force single header include in WebKit2 GTK+ API
1750         https://bugs.webkit.org/show_bug.cgi?id=69084
1751
1752         Reviewed by Martin Robinson.
1753
1754         Only <webkit2/webkit2.h> will be allowed for API users.
1755
1756         * GNUmakefile.am:
1757         * UIProcess/API/gtk/WebKitError.h:
1758         * UIProcess/API/gtk/WebKitWebContext.h:
1759         * UIProcess/API/gtk/WebKitWebLoaderClient.h:
1760         * UIProcess/API/gtk/WebKitWebView.h:
1761         * UIProcess/API/gtk/WebKitWebViewBase.h:
1762         * UIProcess/API/gtk/webkit2.h:
1763
1764 2011-09-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1765
1766         [GTK] Explicitly call destructors for objects initialized with placement new syntax
1767         https://bugs.webkit.org/show_bug.cgi?id=69079
1768
1769         Reviewed by Xan Lopez.
1770
1771         * UIProcess/API/gtk/WebKitWebContext.cpp:
1772         (webkitWebContextFinalize): Call ~WebKitWebContextPrivate().
1773         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
1774         (webkitWebLoaderClientFinalize): Call ~WebKitWebLoaderClient().
1775         (webkit_web_loader_client_class_init):
1776         * UIProcess/API/gtk/WebKitWebView.cpp:
1777         (webkitWebViewFinalize): Call ~WebKitWebViewPrivate().
1778         (webkit_web_view_class_init):
1779
1780 2011-09-28  Martin Robinson  <mrobinson@igalia.com>
1781
1782         Fix the WebGL build on WebKit2 GTK+.
1783
1784         * GNUmakefile.am: Add OPENGL_LIBS to WebKit2 targets.
1785
1786 2011-09-28  Brent Fulgham  <bfulgham@webkit.org>
1787
1788         WinCairo build fix.
1789
1790         * WebProcess/WebPage/WebFrame.h: Add include of <wtc/RetainPtr.h>
1791
1792 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
1793
1794         One more shot at fixing GTK+, this seems to make the dependencies
1795         work.
1796
1797         * GNUmakefile.am:
1798
1799 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
1800
1801         GTK+ build fix 3 - the return of the marshal.
1802
1803         * GNUmakefile.am:
1804
1805 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
1806
1807         Second try at fixing the GTK+ build.
1808
1809         * GNUmakefile.am:
1810
1811 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
1812
1813         Try to fix GTK+ build.
1814
1815         * GNUmakefile.am:
1816
1817 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
1818
1819         [GTK] Fix webkit2 unit tests in debug builds
1820         https://bugs.webkit.org/show_bug.cgi?id=69006
1821
1822         Reviewed by Martin Robinson.
1823
1824         We are currently using the WorQueue name as thread name which in
1825         this moment can be com.apple.WebKit.ProcessLauncher or
1826         com.apple.CoreIPC.ReceiveQueue. Both names are longer than 31
1827         characters which is the limit of Visual Studio for thread
1828         names. When log is enabled createThread() will assert instead of
1829         truncate the name, so we need to make sure we don't use a name
1830         longer than 31 characters.
1831
1832         * Platform/gtk/WorkQueueGtk.cpp:
1833         (WorkQueue::platformInitialize):
1834
1835 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
1836
1837         [GTK] Loader client implementation for WebKit2 GTK+ API
1838         https://bugs.webkit.org/show_bug.cgi?id=68085
1839
1840         Reviewed by Martin Robinson.
1841
1842         Adds a new object, WebKitWebLoaderClient, that emits signals for
1843         every page loader callback.
1844
1845         * GNUmakefile.am: Add new files to compilation.
1846         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp: Added.
1847         (didStartProvisionalLoadForFrame):
1848         (didReceiveServerRedirectForProvisionalLoadForFrame):
1849         (didFailProvisionalLoadWithErrorForFrame):
1850         (didCommitLoadForFrame):
1851         (didFinishLoadForFrame):
1852         (didFailLoadWithErrorForFrame):
1853         (webkitWebLoaderClientConstructed):
1854         (webkitWebLoaderClientSetProperty):
1855         (webkitWebLoaderClientGetProperty):
1856         (webkit_web_loader_client_init):
1857         (webkit_web_loader_client_class_init):
1858         * UIProcess/API/gtk/WebKitWebLoaderClient.h: Added.
1859         * UIProcess/API/gtk/WebKitWebView.cpp:
1860         (webkitWebViewConstructed): Create the loader client for the view.
1861         (webkit_web_view_init):
1862         (webkit_web_view_get_loader_client): Get the current loader client.
1863         (webkit_web_view_set_loader_client): Set a new loader client.
1864         * UIProcess/API/gtk/WebKitWebView.h:
1865         * UIProcess/API/gtk/tests/testloading.c: Added.
1866         (serverCallback):
1867         (webLoadingFixtureSetup):
1868         (webLoadingFixtureTeardown):
1869         (getURIForPath):
1870         (loadStatusProvisionalLoadStarted):
1871         (loadStatusProvisionalLoadReceivedServerRedirect):
1872         (loadStatusProvisionalLoadFailed):
1873         (loadStatusLoadCommitted):
1874         (loadStatusLoadFinished):
1875         (loadStatusLoadFailed):
1876         (testLoadingStatus):
1877         (loadErrorProvisionalLoadStarted):
1878         (loadErrorProvisionalLoadFailed):
1879         (loadErrorLoadFinished):
1880         (testLoadingError):
1881         (main):
1882         * UIProcess/API/gtk/webkit2marshal.list: Added.
1883
1884 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
1885
1886         [GTK] Add WebKitError to GTK+ WebKit2 API
1887         https://bugs.webkit.org/show_bug.cgi?id=68508
1888
1889         Reviewed by Martin Robinson.
1890
1891         Add WebKitNetworkError enum to define network errors.
1892
1893         * GNUmakefile.am: Add new files to compilation.
1894         * UIProcess/API/gtk/WebKitError.cpp: Added.
1895         (webkit_network_error_quark):
1896         * UIProcess/API/gtk/WebKitError.h:
1897         * UIProcess/API/gtk/WebKitPrivate.h: Add
1898         COMPILE_ASSERT_MATCHING_ENUM macro.
1899         * UIProcess/API/gtk/webkit2.h: Add WebKitError.h and
1900         WebKitEnumTypes.h
1901
1902 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
1903
1904         [GTK] Fix Programs/unittests/webkit2/testwebview
1905         https://bugs.webkit.org/show_bug.cgi?id=68993
1906
1907         Reviewed by Philippe Normand.
1908
1909         * GNUmakefile.am: Add -DWEBKIT_EXEC_PATH.
1910         * UIProcess/API/gtk/tests/testwebview.c:
1911         (main): Get WebProcess path from WEBKIT_EXEC_PATH environment
1912         variable.
1913
1914 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1915
1916         Add static version of JSCell::getCallData
1917         https://bugs.webkit.org/show_bug.cgi?id=68741
1918
1919         Reviewed by Darin Adler.
1920
1921         In this patch we just extract the bodies of the virtual getCallData methods
1922         throughout the JSCell inheritance hierarchy out into static methods, which are 
1923         now called from the virtual methods.  This is an intermediate step in trying to 
1924         move the virtual-ness of getCallData into our own method table stored in 
1925         ClassInfo.  We need to convert the methods to static methods because static methods 
1926         can be represented as function pointers rather than pointers to member functions, and
1927         function pointers are smaller and faster to call than pointers to member functions.
1928
1929         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
1930         (WebKit::JSNPMethod::getCallDataVirtual):
1931         (WebKit::JSNPMethod::getCallData):
1932         * WebProcess/Plugins/Netscape/JSNPMethod.h:
1933         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1934         (WebKit::JSNPObject::getCallDataVirtual):
1935         (WebKit::JSNPObject::getCallData):
1936         * WebProcess/Plugins/Netscape/JSNPObject.h:
1937
1938 2011-09-27  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
1939
1940         [Qt] QDesktopWebView load zero size view test missing
1941         https://bugs.webkit.org/show_bug.cgi?id=68655
1942
1943         Reviewed by Chang Shu.
1944
1945         Added test case to check load behavior with zero size view.
1946
1947         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadZeroSizeView.qml: Added.
1948         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
1949
1950 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
1951
1952         [GTK] Use WebKitWebContext in WebKitWebView
1953         https://bugs.webkit.org/show_bug.cgi?id=67990
1954
1955         Reviewed by Martin Robinson.
1956
1957         Use webkit_web_context_get_default() instead of
1958         WKContextGetSharedProcessContext() and add API to create a view
1959         with a given web context and to return the current context
1960         associated to the view.
1961
1962         * GNUmakefile.am: Add new files to compilation.
1963         * UIProcess/API/gtk/WebKitPrivate.h: Added.
1964         * UIProcess/API/gtk/WebKitWebContext.cpp:
1965         (webkitWebContextGetWKContext): Private API to get the WKContext
1966         wrapped by the WebKitWebContext.
1967         * UIProcess/API/gtk/WebKitWebContextPrivate.h: Added.
1968         * UIProcess/API/gtk/WebKitWebView.cpp:
1969         (webkitWebViewConstructed): Create the webpage using the web
1970         context of the view.
1971         (webkitWebViewSetProperty):
1972         (webkitWebViewGetProperty):
1973         (webkit_web_view_init):
1974         (webkit_web_view_class_init):
1975         (webkit_web_view_new): Create a new view with the default context.
1976         (webkit_web_view_new_with_context): Create a new view with the
1977         given context.
1978         (webkit_web_view_get_context): Return the context.
1979         * UIProcess/API/gtk/WebKitWebView.h:
1980         * UIProcess/API/gtk/tests/testwebview.c: Added.
1981         (testWebViewDefaultContext):
1982         (main):
1983
1984 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
1985
1986
1987         [GTK] Add WebKitWebContext to GTK API
1988         https://bugs.webkit.org/show_bug.cgi?id=67931
1989
1990         Reviewed by Philippe Normand.
1991
1992         Initial implementation of WebKitWebContext for WebKit2 GTK API.
1993
1994         * GNUmakefile.am: Add new files to compilation.
1995         * UIProcess/API/gtk/WebKitWebContext.cpp: Added.
1996         (webkitWebContextFinalize):
1997         (webkit_web_context_init):
1998         (webkit_web_context_class_init):
1999         (createDefaultWebContext):
2000         (webkit_web_context_get_default):
2001         * UIProcess/API/gtk/WebKitWebContext.h: Added.
2002         * UIProcess/API/gtk/tests/testwebcontext.c:
2003         (testWebContextDefault):
2004         (main):
2005         * UIProcess/API/gtk/webkit2.h: Add <webkit2/WebKitWebContext.h>.
2006
2007 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
2008
2009         Unreviewed, rolling out r96108, r96111, r96113, and r96116.
2010         http://trac.webkit.org/changeset/96108
2011         http://trac.webkit.org/changeset/96111
2012         http://trac.webkit.org/changeset/96113
2013         http://trac.webkit.org/changeset/96116
2014         https://bugs.webkit.org/show_bug.cgi?id=68913
2015
2016         Wait for working Qt5 (Requested by ossy on #webkit).
2017
2018         * UIProcess/API/qt/qdesktopwebview.cpp:
2019         (QDesktopWebViewPrivate::startDrag):
2020         (QDesktopWebViewPrivate::didChangeToolTip):
2021         (QDesktopWebViewPrivate::didChangeCursor):
2022         (QDesktopWebViewPrivate::showContextMenu):
2023         (QDesktopWebViewPrivate::chooseFiles):
2024         * UIProcess/API/qt/qdesktopwebview.h:
2025         * UIProcess/API/qt/tests/tests.pri:
2026         * UIProcess/API/qt/tests/tests.pro:
2027         * UIProcess/qt/ViewInterface.h:
2028         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
2029         (WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
2030
2031 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2032
2033         [GTK] Rename WebKit2 GTK+ API main header as webkit2.h
2034         https://bugs.webkit.org/show_bug.cgi?id=65178
2035
2036         Reviewed by Martin Robinson.
2037
2038         * GNUmakefile.am: Add webkit2.h.
2039         * UIProcess/API/gtk/WebKitWebView.h:
2040         * UIProcess/API/gtk/webkit2.h: Renamed from Source/WebKit2/UIProcess/API/gtk/webkit/webkit.h.
2041         * webkit2gtk.pc.in: Use webkitgtk-<api-version> as include dir.
2042
2043 2011-09-27  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2044
2045         [Qt] Fix build of WebKit2 unit-tests after r96108
2046
2047         Reviewed by Andreas Kling.
2048
2049         * UIProcess/API/qt/tests/tests.pri:
2050
2051 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2052
2053         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
2054
2055         QWidget and friends now live in the QtWidgets library. We update
2056         includes in implementation files and private headers to us the
2057         non-module-prefixed path, and leave the lookup for the include
2058         path. For public headers we have to ifdef the includes as the
2059         user might now have the modules we need in his QT config.
2060
2061         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
2062         have to update our code and use windowHandle() for setting the
2063         parent relationships.
2064
2065         https://bugs.webkit.org/show_bug.cgi?id=68687
2066
2067         Reviewed by Andreas Kling.
2068
2069         * UIProcess/API/qt/qdesktopwebview.cpp:
2070         * UIProcess/API/qt/qdesktopwebview.h:
2071         * UIProcess/API/qt/tests/tests.pro:
2072         * UIProcess/qt/ViewInterface.h:
2073         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
2074
2075 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2076
2077         [Qt][WK2] Add support for hover API in Qt WebKit2
2078         https://bugs.webkit.org/show_bug.cgi?id=68369
2079
2080         Reviewed by Andreas Kling.
2081
2082         Based on the patch from Igor Oliveira in the same bug.
2083
2084         Expose a linkHovered() signal in QDesktopWebView, that passes the QUrl and the
2085         QString corresponding to the link title. I left textContent out because was
2086         unsure of its use case.
2087
2088         In QDesktopWebView we store the last URL and title emitted to make sure we send
2089         the signal only if either value changes. Tests were added to the QML element to
2090         check: if values are correctly emitted and if we don't emit more signals than
2091         necessary.
2092
2093         * UIProcess/API/qt/qdesktopwebview.cpp:
2094         (QDesktopWebViewPrivate::didMouseMoveOverElement):
2095         * UIProcess/API/qt/qdesktopwebview.h:
2096         * UIProcess/API/qt/qdesktopwebview_p.h:
2097         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_linkHovered.qml: Added.
2098         * UIProcess/API/qt/tests/qmltests/common/test2.html:
2099         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
2100         * UIProcess/qt/ClientImpl.cpp:
2101         (qt_wk_mouseDidMoveOverElement):
2102         * UIProcess/qt/ClientImpl.h:
2103         * UIProcess/qt/QtWebPageProxy.cpp:
2104         (QtWebPageProxy::init):
2105         * UIProcess/qt/TouchViewInterface.h:
2106         (WebKit::TouchViewInterface::didMouseMoveOverElement):
2107         * UIProcess/qt/ViewInterface.h:
2108
2109 2011-09-27  Alexis Menard  <alexis.menard@openbossa.org>
2110
2111         [Qt][WK2] API fixes for QML, the signal parameters needs to be named.
2112         https://bugs.webkit.org/show_bug.cgi?id=68889
2113
2114         Reviewed by Andreas Kling.
2115
2116         Signal parameters needs to be explicitly named in QML to be accessible.
2117         This patch fix this problem.
2118
2119         * UIProcess/API/qt/qdesktopwebview.h:
2120         * UIProcess/API/qt/qtouchwebpage.h:
2121
2122 2011-09-27  Alexis Menard  <alexis.menard@openbossa.org>
2123
2124         [Qt][WK2] Mark FINAL properties which can't be overridden by a subclass.
2125         https://bugs.webkit.org/show_bug.cgi?id=68848
2126
2127         Reviewed by Andreas Kling.
2128
2129         The presence of the FINAL attribute indicates that the property will not be 
2130         overridden by a derived class. This can be used for performance optimizations
2131         by QML.
2132
2133         * UIProcess/API/qt/qdesktopwebview.h:
2134         * UIProcess/API/qt/qtouchwebpage.h:
2135         * UIProcess/API/qt/qtouchwebview.h:
2136         * UIProcess/API/qt/qwebnavigationcontroller.h:
2137
2138 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2139
2140         [Qt] Fix WK2 build after r96014
2141         https://bugs.webkit.org/show_bug.cgi?id=68856
2142
2143         Reviewed by Gustavo Noronha Silva.
2144
2145         Commit r96014 added inspectorBaseURL for Qt but removed
2146         inspectorPageURL, adding it back.
2147
2148         * UIProcess/qt/WebInspectorProxyQt.cpp:
2149         (WebKit::WebInspectorProxy::inspectorPageURL):
2150
2151 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2152
2153         [Qt] [WK2] Fix build after r95982
2154         https://bugs.webkit.org/show_bug.cgi?id=68842
2155
2156         Reviewed by Anders Carlsson.
2157
2158         The patch in r95982 removed the paint() function, because it was doing
2159         nothing (in both implementations). This patch remove the call we had
2160         for it to fix the build.
2161
2162         * UIProcess/qt/qtouchwebpageproxy.cpp:
2163         (QTouchWebPageProxy::paintContent):
2164
2165 2011-09-26  Alexey Proskuryakov  <ap@apple.com>
2166
2167         REGRESSION (r95747): Activating the web inspector causes the web process to be killed
2168         https://bugs.webkit.org/show_bug.cgi?id=68762
2169
2170         Reviewed by Anders Carlsson.
2171
2172         * UIProcess/WebInspectorProxy.cpp: (WebKit::WebInspectorProxy::createInspectorPage):
2173         Tell Web process that loading resources from WebCore resources directory is OK.
2174
2175         * UIProcess/WebPageProxy.cpp:
2176         (WebKit::WebPageProxy::loadHTMLString):
2177         (WebKit::WebPageProxy::loadAlternateHTMLString):
2178         * UIProcess/WebProcessProxy.cpp:
2179         (WebKit::WebProcessProxy::assumeReadAccessToBaseURL):
2180         * UIProcess/WebProcessProxy.h:
2181         Renamed willLoadHTMLStringWithBaseURL to more generic assumeReadAccessToBaseURL.
2182
2183         * UIProcess/WebInspectorProxy.h:
2184         * UIProcess/efl/WebInspectorEfl.cpp:
2185         (WebKit::WebInspectorProxy::inspectorBaseURL):
2186         * UIProcess/gtk/WebInspectorGtk.cpp:
2187         (WebKit::WebInspectorProxy::inspectorBaseURL):
2188         * UIProcess/mac/WebInspectorProxyMac.mm:
2189         (WebKit::WebInspectorProxy::inspectorBaseURL):
2190         * UIProcess/qt/WebInspectorProxyQt.cpp:
2191         (WebKit::WebInspectorProxy::inspectorBaseURL):
2192         * UIProcess/win/WebInspectorProxyWin.cpp:
2193         (WebKit::WebInspectorProxy::inspectorBaseURL):
2194         Report what base directory Inspector has access to.
2195
2196 2011-09-26  Nayan Kumar K  <nayankk@motorola.com>
2197
2198         Added WKHitTestResult API's.
2199
2200         WKHitTestResult API's are added. These API's can be used to
2201         get the hover'ed link/image/media URL as well as link lable and
2202         title.
2203         https://bugs.webkit.org/show_bug.cgi?id=68426
2204
2205         Reviewed by Anders Carlsson.
2206
2207         * CMakeLists.txt:
2208         * GNUmakefile.am:
2209         * UIProcess/API/C/WKHitTestResult.cpp: Added.
2210         (WKHitTestResultGetTypeID):
2211         (WKHitTestResultCopyAbsoluteImageURL):
2212         (WKHitTestResultCopyAbsoluteLinkURL):
2213         (WKHitTestResultCopyAbsoluteMediaURL):
2214         (WKHitTestResultCopyLinkLabel):
2215         (WKHitTestResultCopyLinkTitle):
2216         * UIProcess/API/C/WKHitTestResult.h: Added.
2217         * UIProcess/API/C/WebKit2.h:
2218         * WebKit2.xcodeproj/project.pbxproj:
2219         * WebKit2API.pri:
2220         * win/WebKit2.vcproj:
2221         * win/WebKit2Generated.make:
2222
2223 2011-09-26  Csaba Osztrogonác  <ossy@webkit.org>
2224
2225         [Qt][WK2]Unreviewed speculative buildfix after r95968.
2226
2227         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2228         (WebKit::WebChromeClient::contentsSizeChanged):
2229
2230 2011-09-26  Anders Carlsson  <andersca@apple.com>
2231
2232         Remove an old DrawingAreaProxy::paint member function
2233         https://bugs.webkit.org/show_bug.cgi?id=68825
2234
2235         Reviewed by Dan Bernstein.
2236
2237         * UIProcess/DrawingAreaProxy.h:
2238         * UIProcess/DrawingAreaProxyImpl.cpp:
2239         * UIProcess/DrawingAreaProxyImpl.h:
2240         * UIProcess/TiledDrawingAreaProxy.cpp:
2241         * UIProcess/TiledDrawingAreaProxy.h:
2242
2243 2011-09-26  Jer Noble  <jer.noble@apple.com>
2244
2245         White flash when entering full-screen using element.webkitRequestFullScreen()
2246         https://bugs.webkit.org/show_bug.cgi?id=68481
2247
2248         Reviewed by Simon Fraser.
2249
2250         Do not re-enable screen updates after exiting compositing mode until a repaint has completed.
2251
2252         * UIProcess/mac/WKFullScreenWindowController.mm:
2253         (-[WKFullScreenWindowController exitAcceleratedCompositingMode]):
2254         (continueExitCompositingModeAfterRepaintCallback):
2255         (-[WKFullScreenWindowController _continueExitCompositingModeAfterRepaint]):
2256
2257 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
2258
2259         Repaint tests don't work in WebKit2
2260         https://bugs.webkit.org/show_bug.cgi?id=68453
2261
2262         Reviewed by Sam Weinig.
2263         
2264         Expose WKBundlePage methods to turn on repaint rect tracking
2265         in WebKit2, for WebKitTestRunner.
2266         
2267         As part of the change, expose utility methods on WebPage
2268         to get the main Frame and FrameView, which required renaming
2269         the exisiting method that returns a WebFrame. Fix callers
2270         of that method to handle null when necessary.
2271
2272         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2273         (WKBundlePageGetMainFrame):
2274         (WKBundlePageSetTracksRepaints):
2275         (WKBundlePageIsTrackingRepaints):
2276         (WKBundlePageResetTrackedRepaints):
2277         (WKBundlePageCopyTrackedRepaintRects):
2278         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
2279         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2280         (WebKit::findLargestFrameInFrameSet):
2281         (WebKit::WebChromeClient::closeWindowSoon):
2282         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2283         (WebKit::WebFrameLoaderClient::dispatchDidFirstLayout):
2284         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
2285         (WebKit::WebFrameLoaderClient::frameLoadCompleted):
2286         (WebKit::WebFrameLoaderClient::restoreViewState):
2287         (WebKit::WebFrameLoaderClient::provisionalLoadStarted):
2288         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
2289         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
2290         (WebKit::WebFrameLoaderClient::createPlugin):
2291         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
2292         (WebKit::WebEditorClient::documentFragmentFromAttributedString):
2293         * WebProcess/WebPage/WebFrame.cpp:
2294         (WebKit::WebFrame::isMainFrame):
2295         * WebProcess/WebPage/WebPage.cpp:
2296         (WebKit::WebPage::setTracksRepaints):
2297         (WebKit::WebPage::isTrackingRepaints):
2298         (WebKit::WebPage::resetTrackedRepaints):
2299         (WebKit::WebPage::trackedRepaintRects):
2300         (WebKit::WebPage::clearMainFrameName):
2301         (WebKit::WebPage::layoutIfNeeded):
2302         (WebKit::WebPage::mainFrameHasCustomRepresentation):
2303         (WebKit::WebPage::mainFrame):
2304         (WebKit::WebPage::mainFrameView):
2305         * WebProcess/WebPage/WebPage.h:
2306         (WebKit::WebPage::mainWebFrame):
2307         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
2308         (-[WKAccessibilityWebPageObject accessibilityHitTest:]):
2309
2310 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
2311
2312         Add custom vtable struct to ClassInfo struct
2313         https://bugs.webkit.org/show_bug.cgi?id=68567
2314
2315         Reviewed by Oliver Hunt.
2316
2317         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
2318         specified class in its ClassInfo.  Also added to it the first function to use 
2319         this macro, visitChildren.  This is part of the process of getting rid of all 
2320         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
2321         that can't easily be converted to non-virtual functions will be put into 
2322         this custom vtable structure.
2323
2324         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2325         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2326
2327 2011-09-25  Adam Barth  <abarth@webkit.org>
2328
2329         Finish removing PLATFORM(BREWMP) by removing associated code
2330         https://bugs.webkit.org/show_bug.cgi?id=68779
2331
2332         Reviewed by Sam Weinig.
2333
2334         * Scripts/generate-forwarding-headers.pl:
2335
2336 2011-09-25  Adam Barth  <abarth@webkit.org>
2337
2338         Remove PLATFORM(HAIKU) and associated code
2339         https://bugs.webkit.org/show_bug.cgi?id=68774
2340
2341         Reviewed by Sam Weinig.
2342
2343         * Scripts/generate-forwarding-headers.pl:
2344
2345 2011-09-24  Adam Barth  <abarth@webkit.org>
2346
2347         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
2348         https://bugs.webkit.org/show_bug.cgi?id=68767
2349
2350         Reviewed by Eric Seidel.
2351
2352         * Configurations/FeatureDefines.xcconfig:
2353         * UIProcess/qt/WebContextQt.cpp:
2354         (WebKit::WebContext::applicationCacheDirectory):
2355         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
2356         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
2357         (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
2358         (WebKit::WebApplicationCacheManager::deleteAllEntries):
2359         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2360         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota):
2361         * WebProcess/WebCoreSupport/WebChromeClient.h:
2362         * WebProcess/WebProcess.cpp:
2363         (WebKit::WebProcess::initializeWebProcess):
2364         (WebKit::WebProcess::clearApplicationCache):
2365         * WebProcess/WebProcess.h:
2366
2367 2011-09-23  Adam Klein  <adamk@chromium.org>
2368
2369         Add ENABLE_MUTATION_OBSERVERS feature flag
2370         https://bugs.webkit.org/show_bug.cgi?id=68732
2371
2372         Reviewed by Ojan Vafai.
2373
2374         This flag will guard an implementation of the "Mutation Observers" proposed in
2375         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
2376
2377         * Configurations/FeatureDefines.xcconfig:
2378
2379 2011-09-23  Varun Jain  <varunjain@google.com>
2380
2381         Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests 
2382         https://bugs.webkit.org/show_bug.cgi?id=68198
2383
2384         Reviewed by Dimitri Glazkov.
2385
2386         * win/WebKit2.def:
2387         * win/WebKit2CFLite.def:
2388
2389 2011-09-23  Chang Shu  <cshu@webkit.org>
2390
2391         [WK2] [Qt] Implement MouseDown/MouseUp/MouseMoveTo functions for WebKit2 EventSender
2392         https://bugs.webkit.org/show_bug.cgi?id=68556
2393
2394         Implement the MouseDown/MouseUp/MouseMoveTo functions on Qt platform.
2395
2396         Reviewed by Darin Adler.
2397
2398         * Shared/API/c/WKGeometry.h:
2399         (operator==):
2400         * WebProcess/WebPage/WebPage.cpp:
2401         (WebKit::WebPage::mouseEventSyncForTesting): initialize "handled"
2402
2403 2011-09-23  Anders Carlsson  <andersca@apple.com>
2404
2405         Move WebHitTestResult files to Shared/ in the Xcode project
2406         https://bugs.webkit.org/show_bug.cgi?id=68718
2407
2408         Reviewed by Sam Weinig.
2409
2410         * WebKit2.xcodeproj/project.pbxproj:
2411
2412 2011-09-23  Anders Carlsson  <andersca@apple.com>
2413
2414         Add OVERRIDE to overrides of virtual member functions in client classes
2415         https://bugs.webkit.org/show_bug.cgi?id=68702
2416
2417         Reviewed by Darin Adler.
2418
2419         Disable the warning in Xcode and VS2005 for using override and final when compiling as C++98,
2420         and remove WebEditorClient::isEditable, WebChromeClient::formDidFocus,
2421         WebChromeClient::formDidBlur and WebFrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest since
2422         they have been removed from their respective base classes.
2423         
2424         * Configurations/Base.xcconfig:
2425         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2426         * WebProcess/WebCoreSupport/WebChromeClient.h:
2427         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
2428         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
2429         * WebProcess/WebCoreSupport/WebDragClient.h:
2430         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2431         * WebProcess/WebCoreSupport/WebEditorClient.h:
2432         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2433         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2434         * WebProcess/WebCoreSupport/WebGeolocationClient.h:
2435         * WebProcess/WebCoreSupport/WebInspectorClient.h:
2436         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
2437         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2438         * WebProcess/WebCoreSupport/WebPopupMenu.h:
2439         * WebProcess/WebCoreSupport/WebSearchPopupMenu.h:
2440         * win/WebKit2Common.vsprops:
2441
2442 2011-09-23  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2443
2444         [Qt][WK2] QtFileDownloader ctor shouldn't call QtFileDownloader::onReadyRead()
2445         https://bugs.webkit.org/show_bug.cgi?id=68696
2446
2447         Reviewed by Andreas Kling.
2448
2449         Instead of connecting signals and calling QtFileDownloader::onReadyRead()
2450         on its constructor, QtFileDownloader will now handle this in start().
2451
2452         * WebProcess/Downloads/qt/DownloadQt.cpp:
2453         (WebKit::Download::start):
2454         * WebProcess/Downloads/qt/QtFileDownloader.cpp:
2455         (WebKit::QtFileDownloader::QtFileDownloader):
2456         (WebKit::QtFileDownloader::start):
2457         * WebProcess/Downloads/qt/QtFileDownloader.h:
2458
2459 2011-09-22  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
2460
2461         [Qt] TouchWebView load test not running
2462         https://bugs.webkit.org/show_bug.cgi?id=68620
2463
2464         Reviewed by Chang Shu.
2465
2466         Load test was not executed since it was missing in pro file. Added tst_load.qml to qmltests.pro
2467
2468         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
2469
2470 2011-09-22  Dean Jackson  <dino@apple.com>
2471
2472         Add ENABLE_CSS_FILTERS
2473         https://bugs.webkit.org/show_bug.cgi?id=68652
2474
2475         Reviewed by Simon Fraser.
2476
2477         * Configurations/FeatureDefines.xcconfig:
2478
2479 2011-09-22  Simon Fraser  <simon.fraser@apple.com>
2480
2481         Add APIObjects for Size, Point, Rect
2482         https://bugs.webkit.org/show_bug.cgi?id=68644
2483
2484         Reviewed by Sam Weinig.
2485         
2486         Make APIObjects for size, point and rect so that they can be
2487         used in WKArrayRefs.
2488         
2489         Make some inline helper methods to create WKSize, WKPoint and WKRect
2490         types.
2491
2492         * GNUmakefile.am:
2493         * Shared/API/c/WKBase.h:
2494         * Shared/API/c/WKGeometry.cpp: Copied from Source/WebKit2/Shared/API/c/WKGeometry.h.
2495         (WKSizeGetTypeID):
2496         (WKPointGetTypeID):
2497         (WKRectGetTypeID):
2498         (WKPointCreate):
2499         (WKSizeCreate):
2500         (WKRectCreate):
2501         (WKSizeGetValue):
2502         (WKPointGetValue):
2503         (WKRectGetValue):
2504         * Shared/API/c/WKGeometry.h:
2505         (WKPoint::WKPointMake):
2506         (WKPoint::WKSizeMake):
2507         (WKPoint::WKRectMake):
2508         * Shared/API/c/WKSharedAPICast.h:
2509         * Shared/APIObject.h:
2510         * Shared/UserMessageCoders.h:
2511         (WebKit::UserMessageEncoder::baseEncode):
2512         (WebKit::UserMessageDecoder::baseDecode):
2513         * Shared/WebGeometry.h: Added.
2514         (WebKit::WebSize::create):
2515         (WebKit::WebSize::size):
2516         (WebKit::WebSize::WebSize):
2517         (WebKit::WebSize::type):
2518         (WebKit::WebPoint::create):
2519         (WebKit::WebPoint::point):
2520         (WebKit::WebPoint::WebPoint):
2521         (WebKit::WebPoint::type):
2522         (WebKit::WebRect::create):
2523         (WebKit::WebRect::rect):
2524         (WebKit::WebRect::WebRect):
2525         (WebKit::WebRect::type):
2526         * WebKit2.pro:
2527         * WebKit2.xcodeproj/project.pbxproj:
2528         * WebKit2API.pri:
2529         * win/WebKit2.vcproj:
2530
2531 2011-09-22  Alexey Proskuryakov  <ap@apple.com>
2532
2533         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
2534         https://bugs.webkit.org/show_bug.cgi?id=68573
2535
2536         Reviewed by Anders Carlsson.
2537
2538         Re-landing with a slightly less aggressive check.
2539
2540         * UIProcess/API/mac/WKView.mm:
2541         (maybeCreateSandboxExtensionFromPasteboard): Return a boolean, telling the caller whether
2542         an extension actually needed to be created
2543         (-[WKView performDragOperation:]): Tell process proxy when the process is going to get
2544         universal file read sandbox extension.
2545
2546         * UIProcess/WebContext.cpp:
2547         (WebKit::WebContext::didPerformClientRedirect): Check the URLs.
2548         (WebKit::WebContext::didPerformServerRedirect): Ditto.
2549         (WebKit::WebContext::didUpdateHistoryTitle): Ditto.
2550         (WebKit::WebContext::getPluginPath): Ditto. Also, properly parse the URL - we can never
2551         assume that a string coming from WebProcess is a ParsedURLString.
2552
2553         * UIProcess/WebPageProxy.cpp:
2554         (WebKit::WebPageProxy::reattachToWebProcessWithItem): Tell process proxy when the process
2555         is going to get universal file read sandbox extension.
2556         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle): Changed to return a boolean,
2557         telling the caller whether an extension actually needed to be created.
2558         (WebKit::WebPageProxy::loadURL): Tell process proxy about extension.
2559         (WebKit::WebPageProxy::loadURLRequest): Ditto.
2560         (WebKit::WebPageProxy::loadHTMLString): Tell process proxy if a file URL was used as a base
2561         one for a string. In this case, WebKit2 assumes that WebProcess has access to a subdirectory,
2562         (typically, one where error page resources live), and can load from it.
2563         (WebKit::WebPageProxy::loadAlternateHTMLString): Ditto.
2564         (WebKit::WebPageProxy::goForward): Tell process proxy about extension.
2565         (WebKit::WebPageProxy::goBack): Tell process proxy about extension.
2566         (WebKit::WebPageProxy::goToBackForwardItem): Tell process proxy about extension.
2567         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): Check the URL.
2568         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame): Ditto.
2569         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): Ditto.
2570         (WebKit::WebPageProxy::decidePolicyForNavigationAction): Ditto.
2571         (WebKit::WebPageProxy::decidePolicyForNewWindowAction): Ditto.
2572         (WebKit::WebPageProxy::decidePolicyForResponse): Ditto.
2573         (WebKit::WebPageProxy::didInitiateLoadForResource): Ditto.
2574         (WebKit::WebPageProxy::didSendRequestForResource): Ditto.
2575         (WebKit::WebPageProxy::didReceiveResponseForResource): Ditto.
2576         (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
2577
2578         * UIProcess/WebPageProxy.h: Changed initializeSandboxExtensionHandle() to return a bool,
2579         and renamed to maybeInitializeSandboxExtensionHandle (matching WKView counterpart).
2580
2581         * UIProcess/WebProcessProxy.cpp:
2582         (WebKit::WebProcessProxy::WebProcessProxy): Initialize m_mayHaveUniversalFileReadSandboxExtension.
2583         It's going to be true if we ever granted an extension for "/".
2584         (WebKit::WebProcessProxy::willLoadHTMLStringWithBaseURL): Remember the path, we should expect
2585         that WebProcess will load subresources from it.
2586         (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess): Check that it's reasonable to expect
2587         WebProcess send us a URL like this.
2588         (WebKit::WebProcessProxy::addBackForwardItem): Check the URLs.
2589
2590         * UIProcess/WebProcessProxy.h: Added data members remembering what to expect from this process.
2591
2592         * UIProcess/cf/WebPageProxyCF.cpp: (WebKit::WebPageProxy::restoreFromSessionStateData):
2593         Tell process proxy when the process is going to get universal file read sandbox extension.
2594
2595 2011-09-22  Alpha Lam  <hclam@chromium.org>
2596
2597         https://bugs.webkit.org/show_bug.cgi?id=68081
2598         Fix scroll in page scaling mode.
2599
2600         Reviewed by Simon Fraser.
2601
2602         * WebProcess/Plugins/PluginView.cpp: Rename pageScaleFactor to frameScaleFactor.
2603         (WebKit::PluginView::handleEvent):
2604         (WebKit::PluginView::viewGeometryDidChange):
2605         (WebKit::PluginView::clipRectInWindowCoordinates):
2606
2607 2011-09-22  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2608
2609         [Qt] Redirection overflow errors have wrong error domain
2610         https://bugs.webkit.org/show_bug.cgi?id=68612
2611
2612         Reviewed by Andreas Kling.
2613
2614         Redirection overflow currently puts the URL hostname in the errorDomain field
2615         and therefore are treated as a QWebError::EngineError. From now on they
2616         will be treated as QWebError::HttpError, since their error domain was modified
2617         to "HTTP" in QNetworkReplyHandler::redirect().
2618
2619         * UIProcess/API/qt/qweberror.cpp:
2620         (QWebError::type):
2621
2622 2011-09-22  Csaba Osztrogonác  <ossy@webkit.org>
2623
2624         REGRESSION(r95679): It broke everything.
2625         https://bugs.webkit.org/show_bug.cgi?id=68611
2626
2627         Unreviewed rolling out r95679 and r95690, because it broke everything.
2628
2629         * UIProcess/API/mac/WKView.mm:
2630         (maybeCreateSandboxExtensionFromPasteboard):
2631         (-[WKView performDragOperation:]):
2632         * UIProcess/WebContext.cpp:
2633         (WebKit::WebContext::didPerformClientRedirect):
2634         (WebKit::WebContext::didPerformServerRedirect):
2635         (WebKit::WebContext::didUpdateHistoryTitle):
2636         (WebKit::WebContext::getPluginPath):
2637         * UIProcess/WebPageProxy.cpp:
2638         (WebKit::WebPageProxy::reattachToWebProcessWithItem):
2639         (WebKit::WebPageProxy::initializeSandboxExtensionHandle):
2640         (WebKit::WebPageProxy::loadURL):
2641         (WebKit::WebPageProxy::loadURLRequest):
2642         (WebKit::WebPageProxy::loadHTMLString):
2643         (WebKit::WebPageProxy::loadAlternateHTMLString):
2644         (WebKit::WebPageProxy::goForward):
2645         (WebKit::WebPageProxy::goBack):
2646         (WebKit::WebPageProxy::goToBackForwardItem):
2647         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
2648         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
2649         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
2650         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
2651         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
2652         (WebKit::WebPageProxy::decidePolicyForResponse):
2653         (WebKit::WebPageProxy::didInitiateLoadForResource):
2654         (WebKit::WebPageProxy::didSendRequestForResource):
2655         (WebKit::WebPageProxy::didReceiveResponseForResource):
2656         (WebKit::WebPageProxy::missingPluginButtonClicked):
2657         * UIProcess/WebPageProxy.h:
2658         * UIProcess/WebProcessProxy.cpp:
2659         (WebKit::WebProcessProxy::WebProcessProxy):
2660         (WebKit::WebProcessProxy::addBackForwardItem):
2661         * UIProcess/WebProcessProxy.h:
2662         * UIProcess/cf/WebPageProxyCF.cpp:
2663         (WebKit::WebPageProxy::restoreFromSessionStateData):
2664
2665 2011-09-21  Alexey Proskuryakov  <ap@apple.com>
2666
2667         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
2668         https://bugs.webkit.org/show_bug.cgi?id=68573
2669
2670         Unreviewed follow-up fix.
2671
2672         * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
2673         Just like we allow null URLs, also allow empty strings.
2674
2675 2011-09-21  Julien Chaffraix  <jchaffraix@webkit.org>
2676
2677         Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled
2678         https://bugs.webkit.org/show_bug.cgi?id=68133
2679
2680         Reviewed by Darin Adler.
2681
2682         * win/WebKit2.def:
2683         * win/WebKit2CFLite.def:
2684         Exported the new FrameView::paintControlTints function.
2685
2686 2011-09-21  Alexey Proskuryakov  <ap@apple.com>
2687
2688         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
2689         https://bugs.webkit.org/show_bug.cgi?id=68573
2690
2691         Reviewed by Anders Carlsson.
2692
2693         * UIProcess/API/mac/WKView.mm:
2694         (maybeCreateSandboxExtensionFromPasteboard): Return a boolean, telling the caller whether
2695         an extension actually needed to be created
2696         (-[WKView performDragOperation:]): Tell process proxy when the process is going to get
2697         universal file read sandbox extension.
2698
2699         * UIProcess/WebContext.cpp:
2700         (WebKit::WebContext::didPerformClientRedirect): Check the URLs.
2701         (WebKit::WebContext::didPerformServerRedirect): Ditto.
2702         (WebKit::WebContext::didUpdateHistoryTitle): Ditto.
2703         (WebKit::WebContext::getPluginPath): Ditto. Also, properly parse the URL - we can never
2704         assume that a string coming from WebProcess is a ParsedURLString.
2705
2706         * UIProcess/WebPageProxy.cpp:
2707         (WebKit::WebPageProxy::reattachToWebProcessWithItem): Tell process proxy when the process
2708         is going to get universal file read sandbox extension.
2709         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle): Changed to return a boolean,
2710         telling the caller whether an extension actually needed to be created.
2711         (WebKit::WebPageProxy::loadURL): Tell process proxy about extension.
2712         (WebKit::WebPageProxy::loadURLRequest): Ditto.
2713         (WebKit::WebPageProxy::loadHTMLString): Tell process proxy if a file URL was used as a base
2714         one for a string. In this case, WebKit2 assumes that WebProcess has access to a subdirectory,
2715         (typically, one where error page resources live), and can load from it.
2716         (WebKit::WebPageProxy::loadAlternateHTMLString): Ditto.
2717         (WebKit::WebPageProxy::goForward): Tell process proxy about extension.
2718         (WebKit::WebPageProxy::goBack): Tell process proxy about extension.
2719         (WebKit::WebPageProxy::goToBackForwardItem): Tell process proxy about extension.
2720         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): Check the URL.
2721         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame): Ditto.
2722         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): Ditto.
2723         (WebKit::WebPageProxy::decidePolicyForNavigationAction): Ditto.
2724         (WebKit::WebPageProxy::decidePolicyForNewWindowAction): Ditto.
2725         (WebKit::WebPageProxy::decidePolicyForResponse): Ditto.
2726         (WebKit::WebPageProxy::didInitiateLoadForResource): Ditto.
2727         (WebKit::WebPageProxy::didSendRequestForResource): Ditto.
2728         (WebKit::WebPageProxy::didReceiveResponseForResource): Ditto.
2729         (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
2730
2731         * UIProcess/WebPageProxy.h: Changed initializeSandboxExtensionHandle() to return a bool,
2732         and renamed to maybeInitializeSandboxExtensionHandle (matching WKView counterpart).
2733
2734         * UIProcess/WebProcessProxy.cpp:
2735         (WebKit::WebProcessProxy::WebProcessProxy): Initialize m_mayHaveUniversalFileReadSandboxExtension.
2736         It's going to be true if we ever granted an extension for "/".
2737         (WebKit::WebProcessProxy::willLoadHTMLStringWithBaseURL): Remember the path, we should expect
2738         that WebProcess will load subresources from it.
2739         (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess): Check that it's reasonable to expect
2740         WebProcess send us a URL like this.
2741         (WebKit::WebProcessProxy::addBackForwardItem): Check the URLs.
2742
2743         * UIProcess/WebProcessProxy.h: Added data members remembering what to expect from this process.
2744
2745         * UIProcess/cf/WebPageProxyCF.cpp: (WebKit::WebPageProxy::restoreFromSessionStateData):
2746         Tell process proxy when the process is going to get universal file read sandbox extension.
2747
2748 2011-09-19  Jer Noble  <jer.noble@apple.com>
2749
2750         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
2751         https://bugs.webkit.org/show_bug.cgi?id=68382
2752
2753         Add support for the webAudioEnabled preference in WebKit2.
2754
2755         Reviewed by Darin Adler.
2756
2757         * Shared/WebPreferencesStore.h: Add WebAudioEnabled getter and setter macro.
2758         * UIProcess/API/C/WKPreferences.cpp:
2759         (WKPreferencesSetWebAudioEnabled): Added.
2760         (WKPreferencesGetWebAudioEnabled): Added.
2761         * UIProcess/API/C/WKPreferences.h:
2762         * WebProcess/WebPage/WebPage.cpp:
2763         (WebKit::WebPage::updatePreferences): Update the webAudioEnabled preference.
2764
2765 2011-09-21  Dan Bernstein  <mitz@apple.com>
2766
2767         Use the prefix "WK" instead of "Web" for Objective-C classes defined in WebKit2.
2768
2769         Reviewed by Anders Carlsson.
2770
2771         Renamed WebInspectorProxyObjCAdapter to WKWebInspectorProxyObjCAdapter.
2772         Renamed WebInspectorWKView to WKWebInspectorWKView.
2773         Renamed WebFindIndicatorWindowAnimation to WKFindIndicatorWindowAnimation.
2774         Renamed WebFindIndicatorView to WKFindIndicatorView.
2775         Renamed WebUserDataWrapper to WKUserDataWrapper.
2776
2777         Updated the build phase checking for inappropriate Objective-C class names to disallow the prefix
2778         "Web" and only allow "WK".
2779
2780         * UIProcess/API/mac/FindIndicatorWindow.h:
2781         * UIProcess/API/mac/FindIndicatorWindow.mm:
2782         (WebKit::FindIndicatorWindow::setFindIndicator):
2783         (WebKit::FindIndicatorWindow::startFadeOutTimerFired):
2784         * UIProcess/WebInspectorProxy.h:
2785         * UIProcess/mac/WebContextMenuProxyMac.mm:
2786         (-[WKMenuTarget forwardContextMenuAction:]):
2787         (WebKit::nsMenuItemVector):
2788         * UIProcess/mac/WebInspectorProxyMac.mm:
2789         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2790         (WebKit::WebInspectorProxy::platformOpen):
2791         * WebKit2.xcodeproj/project.pbxproj:
2792         * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
2793         (WebKit::WebFullScreenManagerMac::WebFullScreenManagerMac):
2794
2795 2011-09-21  Chang Shu  <cshu@webkit.org>
2796
2797         [WK2] [Mac] Implement a more-complete MouseDown/MouseUp/MouseMoveTo functions for WebKit2 EventSender
2798         https://bugs.webkit.org/show_bug.cgi?id=68108
2799
2800         This patch implements the event sender mouse events through WebKit2 UIProcess which is
2801         closer to the real simulation than a WebProcess-only approach. The patch only supports Mac
2802         platform as the first step so the existing code is still kept for other platforms.
2803
2804         Reviewed by Darin Adler.
2805
2806         * UIProcess/API/C/WKPage.cpp:
2807         (WKPageSetShouldSendEventsSynchronously):
2808         * UIProcess/API/C/WKPagePrivate.h:
2809         * UIProcess/WebPageProxy.cpp:
2810         (WebKit::WebPageProxy::WebPageProxy):
2811         (WebKit::WebPageProxy::handleMouseEvent):
2812         (WebKit::WebPageProxy::handleKeyboardEvent):
2813         * UIProcess/WebPageProxy.h:
2814         (WebKit::WebPageProxy::setShouldSendEventsSynchronously):
2815         * WebProcess/WebPage/WebPage.cpp:
2816         (WebKit::WebPage::mouseEventSyncForTesting):
2817         * WebProcess/WebPage/WebPage.h:
2818         * WebProcess/WebPage/WebPage.messages.in:
2819
2820 2011-09-21  Dan Bernstein  <mitz@apple.com>
2821
2822         WebKit2 part of: Prevent the WebKit frameworks from defining inappropriately-named Objective-C classes
2823         https://bugs.webkit.org/show_bug.cgi?id=68451
2824
2825         Reviewed by Darin Adler.
2826
2827         * WebKit2.xcodeproj/project.pbxproj: Added a script build phase that invokes
2828         check-for-inappropriate-objc-class-names, allowing only class names prefixed with "WK" or "Web".
2829
2830 2011-09-21  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2831
2832         [Qt][WK2] Implement Download support in WebProcess
2833         https://bugs.webkit.org/show_bug.cgi?id=68153
2834
2835         Reviewed by Andreas Kling.
2836
2837         We implement the necessary functions of Download.h, and our QtFileDownloader
2838         to handle all network communication and call the necessary functions of Download.
2839
2840         We use the download policy for any MIME type not supported by WebKit. This
2841         behaves like Qt non-WebKit2 except that we don't force download when
2842         we encounter Content-Disposition: attachment. We still use the "filename="
2843         field for file name suggestion though.
2844
2845         Based on original patches by: Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>,
2846         Jocelyn Turcotte <jocelyn.turcotte@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
2847         and Zalan Bujtas <zalan.bujtas@nokia.com>.
2848
2849         * UIProcess/API/qt/qweberror.cpp: Adding DownloadError
2850         (QWebError::type):
2851         * UIProcess/API/qt/qweberror.h: Adding DownloadError
2852         * WebKit2.pro:
2853         * WebProcess/Downloads/Download.cpp: Adding QtFileDownloader, Qt platform specific
2854         (WebKit::Download::Download):
2855         * WebProcess/Downloads/Download.h: Adding QtFileDownloader, Qt platform specific
2856         * WebProcess/Downloads/qt/DownloadQt.cpp:
2857         (WebKit::Download::start):
2858         (WebKit::Download::startWithHandle):
2859         (WebKit::Download::cancel):
2860         (WebKit::Download::platformInvalidate):
2861         (WebKit::Download::didDecideDestination):
2862         * WebProcess/Downloads/qt/QtFileDownloader.cpp: Added.
2863         (WebKit::QtFileDownloader::QtFileDownloader):
2864         (WebKit::QtFileDownloader::~QtFileDownloader):
2865         (WebKit::QtFileDownloader::determineFilename):
2866         (WebKit::QtFileDownloader::decidedDestination):
2867         (WebKit::QtFileDownloader::abortDownloadWritingAndEmitError):
2868         (WebKit::QtFileDownloader::onReadyRead):
2869         (WebKit::QtFileDownloader::onFinished):
2870         (WebKit::QtFileDownloader::onError):
2871         (WebKit::QtFileDownloader::cancel):
2872         * WebProcess/Downloads/qt/QtFileDownloader.h: Added.
2873
2874 2011-09-21  Mark Rowe  <mrowe@apple.com>
2875
2876         <rdar://problem/9890932> "Open PDF in Preview" on two PDFs of the same name does nothing the second time
2877
2878         The logic in PDFViewController::pathToPDFOnDisk that deals with constructing a unique
2879         file name if a file of the suggested name already exists was incorrect. It was appending
2880         the template used by mkstemps to the directory name component of the path rather than
2881         using it as a prefix on the filename portion of the path. This resulted in a template path
2882         like WebKitPDFs-ABCDEFXXXXXX-/foo.pdf where WebKitPDFs-ABCDEF/XXXXXX-foo.pdf was expected.
2883
2884         Reviewed by Jon Honeycutt.
2885
2886         * UIProcess/API/mac/PDFViewController.mm:
2887         (WebKit::PDFViewController::pathToPDFOnDisk): Append the template as a new path component,
2888         then append the suggested file name to that component.
2889
2890 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
2891
2892         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
2893         https://bugs.webkit.org/show_bug.cgi?id=67702
2894
2895         Reviewed by Csaba Osztrogonác.
2896
2897         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Modify to match new prototype.
2898         (WebKit::WebPlatformStrategies::isLinkVisited):
2899         (WebKit::WebPlatformStrategies::addVisitedLink):
2900         * WebProcess/WebCoreSupport/WebPlatformStrategies.h: Ditto.
2901
2902 2011-09-20  Anders Carlsson  <andersca@apple.com>
2903
2904         Get rid of PluginView::setBoundsSize from WebKit2
2905         https://bugs.webkit.org/show_bug.cgi?id=68489
2906
2907         Reviewed by Dan Bernstein.
2908
2909         Remove m_boundsSize and the setter since they aren't used anywhere.
2910
2911         * WebProcess/Plugins/PluginView.cpp:
2912         * WebProcess/Plugins/PluginView.h:
2913
2914 2011-09-20  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
2915
2916         [Qt] QTouchWebView missing signal tests for loadProgress
2917         https://bugs.webkit.org/show_bug.cgi?id=68442
2918
2919         Reviewed by Chang Shu.
2920
2921         Added test case to check load progress signal for QTouchWebView
2922
2923         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgressSignal.qml: Added.
2924         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
2925
2926 2011-09-20  Sheriff Bot  <webkit.review.bot@gmail.com>
2927
2928         Unreviewed, rolling out r95565.
2929         http://trac.webkit.org/changeset/95565
2930         https://bugs.webkit.org/show_bug.cgi?id=68470
2931
2932         Broke builds (Requested by andersca on #webkit).
2933
2934         * GNUmakefile.am:
2935         * Shared/API/c/WKHitTestResult.cpp: Removed.
2936         * Shared/API/c/WKHitTestResult.h: Removed.
2937         * UIProcess/API/C/WebKit2.h:
2938
2939 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
2940
2941         [Qt] [WK2] Implement a persistent cookie storage.
2942         https://bugs.webkit.org/show_bug.cgi?id=65309
2943
2944         Reviewed by Chang Shu.
2945
2946         Add parameter to the WebProcess creation to specify where cookies should be saved.
2947         It also use the new cookie storage implementation and set it to our network stack
2948         so cookies are used when using it.
2949
2950         * Shared/WebProcessCreationParameters.cpp:
2951         (WebKit::WebProcessCreationParameters::encode):
2952         (WebKit::WebProcessCreationParameters::decode):
2953         * Shared/WebProcessCreationParameters.h:
2954         * UIProcess/qt/WebContextQt.cpp:
2955         (WebKit::WebContext::platformInitializeWebProcess):
2956         * WebProcess/qt/WebProcessQt.cpp:
2957         (WebKit::WebProcess::platformInitializeWebProcess):
2958         (WebKit::WebProcess::platformTerminate):
2959
2960 2011-09-20  Nayan Kumar K  <nayankk@motorola.com>
2961
2962         Added WKHitTestResult API's.
2963
2964         WKHitTestResult API's are added. These API's can be used to
2965         get the hover'ed link/image/media URL as well as link lable and
2966         title.
2967         https://bugs.webkit.org/show_bug.cgi?id=68426
2968
2969         Reviewed by Anders Carlsson.
2970
2971         * GNUmakefile.am:
2972         * Shared/API/c/WKHitTestResult.cpp: Copied from Source/WebKit2/UIProcess/API/C/WebKit2.h.
2973         (WKHitTestResultGetTypeID):
2974         (WKHitTestResultCopyAbsoluteImageURL):
2975         (WKHitTestResultCopyAbsoluteLinkURL):
2976         (WKHitTestResultCopyAbsoluteMediaURL):
2977         (WKHitTestResultCopyLinkLabel):
2978         (WKHitTestResultCopyLinkTitle):
2979         * Shared/API/c/WKHitTestResult.h: Copied from Source/WebKit2/UIProcess/API/C/WebKit2.h.
2980         * UIProcess/API/C/WebKit2.h:
2981
2982 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
2983
2984         [Qt][WK2] Add stubs for FULLSCREEN_API on Qt.
2985         https://bugs.webkit.org/show_bug.cgi?id=68444
2986
2987         Reviewed by Andreas Kling.
2988
2989         Create all the stubs necessary for enabling FULLSCREEN_API on the Qt port.
2990
2991         * UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Added.
2992         (WebKit::WebFullScreenManagerProxy::invalidate):
2993         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
2994         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
2995         (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation):
2996         (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation):
2997         (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation):
2998         (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation):
2999         (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode):
3000         (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode):
3001         (WebKit::WebFullScreenManagerProxy::getFullScreenRect):
3002         * WebKit2.pro:
3003         * WebProcess/FullScreen/qt: Added.
3004         * WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp: Added.
3005         (WebKit::WebFullScreenManagerQt::WebFullScreenManagerQt):
3006         (WebKit::WebFullScreenManager::create):
3007         (WebKit::WebFullScreenManagerQt::setRootFullScreenLayer):
3008         (WebKit::WebFullScreenManagerQt::beginEnterFullScreenAnimation):
3009         (WebKit::WebFullScreenManagerQt::beginExitFullScreenAnimation):
3010         * WebProcess/FullScreen/qt/WebFullScreenManagerQt.h: Added.
3011
3012 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
3013
3014         [Qt][WK2] Export QNetworkReply in the QtWebKit QML module.
3015         https://bugs.webkit.org/show_bug.cgi?id=68401
3016
3017         Reviewed by Simon Hausmann.
3018
3019         Add QNetworkReply in the QtWebKit module. We use the enum QNetworkReply::NetworkError
3020         as the error code when the load fails. It is not used in the QtQuick module therefore
3021         the QML team thinks it should belong here. Also added some auto-tests to cover the
3022         loading errors.
3023
3024         * UIProcess/API/qt/qmlplugin/plugin.cpp:
3025         (WebKit2QmlPlugin::registerTypes):
3026         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadFail.qml: Added.
3027         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml: Added.
3028
3029 2011-09-20  Csaba Osztrogonác  <ossy@webkit.org>
3030
3031         [Qt][Mac] Buildfix after r95513.
3032
3033         Rubber-stamped by Andras Becsi.
3034
3035         * Scripts/generate-forwarding-headers.pl: Add mm file supporting.
3036
3037 2011-09-20  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
3038
3039         [Qt] QDesktopWebView missing loadProgress tests
3040         https://bugs.webkit.org/show_bug.cgi?id=68280
3041
3042         Reviewed by Andreas Kling.
3043
3044         Added test case to check load progress property and signal for QDesktopWebView
3045
3046         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgress.qml: Added.
3047         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgressSignal.qml: Added.
3048         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
3049
3050 2011-09-20  Carlos Garcia Campos  <cgarcia@igalia.com>
3051
3052         [GTK] WebProcess shouldn't use the GTK+ API
3053         https://bugs.webkit.org/show_bug.cgi?id=68062
3054
3055         Reviewed by Martin Robinson.
3056
3057         Use WebCore API to create errors in WebProcess.
3058
3059         * GNUmakefile.am: Don't use webkit/webkierror.h.
3060         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
3061         (WebKit::cancelledError):
3062         (WebKit::blockedError):
3063         (WebKit::cannotShowURLError):
3064         (WebKit::interruptedForPolicyChangeError):
3065         (WebKit::cannotShowMIMETypeError):
3066         (WebKit::fileDoesNotExistError):
3067         (WebKit::pluginWillHandleLoadError):
3068
3069 2011-09-19  Mark Rowe  <mrowe@apple.com>
3070
3071         <http://webkit.org/b/68421> Stop calling UpdateSystemActivity in places where we hold power assertions that achieve the same effect
3072
3073         On SnowLeopard and newer it's not necessary to call UpdateSystemActivity to prevent the screensaver from kicking
3074         in as the NoDisplaySleep assertion now has that effect. It's also not necessary to hold both a NoDisplaySleep and
3075         a NoIdleSleep assertion as the latter is implied by the former.
3076
3077         Adopt the DisplaySleepDisabler class that was added to WebCore and remove all of duplicated logic from WKFullScreenWindowController.
3078
3079         Reviewed by Dan Bernstein.
3080
3081         * UIProcess/mac/WKFullScreenWindowController.h:
3082         * UIProcess/mac/WKFullScreenWindowController.mm:
3083         (-[WKFullScreenWindowController _updatePowerAssertions]): Create a DisplaySleepDisabler instance when transitioning from permitting
3084         display sleep to disabling display sleep. Clear out our reference when sleep should be permitted, destroying any
3085         disabler that we own. Also adds a FIXME about an error that was noticed while working in this code.
3086
3087 2011-09-19  Adam Barth  <abarth@webkit.org>
3088
3089         Always enable ENABLE(EVENTSOURCE)
3090         https://bugs.webkit.org/show_bug.cgi?id=68414
3091
3092         Reviewed by Eric Seidel.
3093
3094         * Configurations/FeatureDefines.xcconfig:
3095
3096 2011-09-19  Alexis Menard  <alexis.menard@openbossa.org>
3097
3098         [Qt] Unreviewed coding style fix.
3099
3100         * UIProcess/API/qt/qdesktopwebview.h:
3101         * UIProcess/API/qt/qtouchwebpage.h:
3102         * UIProcess/API/qt/qweberror.h:
3103
3104 2011-09-19  Alexis Menard  <alexis.menard@openbossa.org>
3105
3106         [Qt][WK2] Make loading errors API easier to use.
3107         https://bugs.webkit.org/show_bug.cgi?id=68357
3108
3109         Reviewed by Tor Arne Vestbø.
3110
3111         Make the API to get loading errors easier to use. 95197 introduced
3112         a QJSValue API that is a bit opaque for the client code. Rather than
3113         using a dedicated object, we can just pass the needed information as
3114         parameters of the slot.
3115
3116         * UIProcess/API/qt/qdesktopwebview.cpp:
3117         (QDesktopWebViewPrivate::loadDidFail):
3118         * UIProcess/API/qt/qdesktopwebview.h:
3119         * UIProcess/API/qt/qdesktopwebview_p.h:
3120         * UIProcess/API/qt/qtouchwebpage.h:
3121         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
3122         (tst_CommonViewTests::loadNonexistentFileUrl):
3123         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
3124         (WebViewAbstraction::WebViewAbstraction):
3125         (WebViewAbstraction::touchViewLoadFailed):
3126         (WebViewAbstraction::desktopViewLoadFailed):
3127         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
3128         * UIProcess/qt/QtWebPageProxy.cpp:
3129         (QtWebPageProxy::loadDidFail):
3130         * UIProcess/qt/TouchViewInterface.cpp:
3131         (WebKit::TouchViewInterface::loadDidFail):
3132         * UIProcess/qt/TouchViewInterface.h:
3133         * UIProcess/qt/ViewInterface.h:
3134
3135 2011-09-19  Dan Bernstein  <mitz@apple.com>
3136
3137         WebKit2 part of [mac] WebKit contains Objective-C classes that are not prefixed with its standard prefixes
3138         https://bugs.webkit.org/show_bug.cgi?id=68323
3139
3140         Reviewed by Sam Weinig.
3141
3142         Renamed FullKeyboardAccessWatcher to WKFullKeyboardAccessWatcher.
3143         Renamed AccessibilityWebPageObject to WKAccessibilityWebPageObject.
3144
3145         * WebKit2.xcodeproj/project.pbxproj:
3146         * WebProcess/WebPage/WebPage.h:
3147         * WebProcess/WebPage/mac/AccessibilityWebPageObject.h: Removed.
3148         * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm: Removed.
3149         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.h: Copied from Source/WebKit2/WebProcess/WebPage/mac/AccessibilityWebPageObject.h.
3150         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm: Copied from Source/WebKit2/WebProcess/WebPage/mac/AccessibilityWebPageObject.mm.
3151         * WebProcess/WebPage/mac/WebPageMac.mm:
3152         (WebKit::WebPage::platformInitialize):
3153         (WebKit::WebPage::accessibilityRemoteObject):
3154         * WebProcess/mac/FullKeyboardAccessWatcher.h: Removed.
3155         * WebProcess/mac/FullKeyboardAccessWatcher.mm: Removed.
3156         * WebProcess/mac/WKFullKeyboardAccessWatcher.h: Copied from Source/WebKit2/WebProcess/mac/FullKeyboardAccessWatcher.h.
3157         * WebProcess/mac/WKFullKeyboardAccessWatcher.mm: Copied from Source/WebKit2/WebProcess/mac/FullKeyboardAccessWatcher.mm.
3158         (+[WKFullKeyboardAccessWatcher fullKeyboardAccessEnabled]):
3159         * WebProcess/mac/WebProcessMac.mm:
3160         (WebKit::WebProcess::fullKeyboardAccessEnabled):
3161
3162 2011-09-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3163
3164         [Qt] [WK2] Implement popup menus in QDesktopWebView using QComboBox
3165         https://bugs.webkit.org/show_bug.cgi?id=67938
3166
3167         Reviewed by Andreas Kling.
3168
3169         Implement a WebPopupMenuProxy that uses QtWebComboBox (a QComboBox subclass we
3170         have for WK1). Then use this WebPopupMenuProxy in QDesktopWebView. The implementation
3171         explicitly avoids running a nested mainloop.
3172
3173         * UIProcess/WebPageProxy.cpp:
3174         (WebKit::WebPageProxy::showPopupMenu):
3175         Since we don't run a nested mainloop, we need to keep the client pointer to call
3176         valueChangedForPopupMenu().
3177
3178         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp: Added.
3179         (WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
3180         (WebKit::WebPopupMenuProxyQtDesktop::~WebPopupMenuProxyQtDesktop):
3181         (WebKit::WebPopupMenuProxyQtDesktop::showPopupMenu):
3182         (WebKit::WebPopupMenuProxyQtDesktop::hidePopupMenu):
3183         (WebKit::WebPopupMenuProxyQtDesktop::setSelectedIndex):
3184         (WebKit::WebPopupMenuProxyQtDesktop::onPopupMenuHidden):
3185         (WebKit::WebPopupMenuProxyQtDesktop::populate):
3186         * UIProcess/qt/WebPopupMenuProxyQtDesktop.h: Added.
3187         (WebKit::WebPopupMenuProxyQtDesktop::create):
3188         * UIProcess/qt/qdesktopwebpageproxy.cpp:
3189         (QDesktopWebPageProxy::createPopupMenuProxy):
3190         * UIProcess/qt/qdesktopwebpageproxy.h:
3191         * WebKit2.pro:
3192
3193 2011-09-19  Carlos Garcia Campos  <cgarcia@igalia.com>
3194
3195         [GTK] Fix distcheck build
3196         https://bugs.webkit.org/show_bug.cgi?id=68241
3197
3198         Reviewed by Martin Robinson.
3199
3200         * GNUmakefile.am:
3201
3202 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
3203
3204         FrameLoaderClient BackForwardList-related methods are unsued
3205         https://bugs.webkit.org/show_bug.cgi?id=68293
3206
3207         Reviewed by Darin Adler.
3208
3209         Remove FrameLoaderClient methods that were added by r51629, since only        
3210         the old (since-deleted) Android port needed them.
3211
3212         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3213         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
3214
3215 2011-09-16  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
3216         [Qt] QTouchWebView missing loadProgress tests
3217         https://bugs.webkit.org/show_bug.cgi?id=68183
3218
3219         Reviewed by Chang Shu.
3220
3221         Added test case to check load progress for QTouchWebView
3222
3223         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgress.qml: Added.
3224         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
3225
3226 2011-09-16  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
3227
3228         Removed unwanted NotImplemented.h inclusion in WebKit2 GTK port & platform independent files
3229         https://bugs.webkit.org/show_bug.cgi?id=68249
3230
3231         Reviewed by Martin Robinson.
3232
3233         * Shared/Plugins/NPIdentifierData.cpp: Removed NotImplemented.h inclusion.
3234         * Shared/Plugins/NPRemoteObjectMap.cpp: Removed NotImplemented.h inclusion.
3235         * Shared/Plugins/NPVariantData.cpp: Removed NotImplemented.h inclusion.
3236         * UIProcess/gtk/WebContextGtk.cpp: Removed NotImplemented.h inclusion.
3237         * WebProcess/Cookies/WebCookieManager.cpp: Removed NotImplemented.h inclusion.
3238         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp: Removed NotImplemented.h inclusion.
3239         * WebProcess/Plugins/Netscape/JSNPMethod.cpp: Removed NotImplemented.h inclusion.
3240         * WebProcess/Plugins/Netscape/NPJSObject.cpp: Removed NotImplemented.h inclusion.
3241         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp: Removed NotImplemented.h inclusion.
3242         * WebProcess/WebCoreSupport/WebInspectorClient.cpp: Removed NotImplemented.h inclusion.
3243
3244 2011-09-16  Simon Fraser  <simon.fraser@apple.com>
3245
3246         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
3247         https://bugs.webkit.org/show_bug.cgi?id=68134
3248
3249         Reviewed by Sam Weinig.
3250
3251         Hook up a private preference that enables the mock scrollbar theme.
3252
3253         * Shared/WebPreferencesStore.h:
3254         * UIProcess/API/C/WKPreferences.cpp:
3255         (WKPreferencesSetMockScrollbarsEnabled):
3256         (WKPreferencesGetMockScrollbarsEnabled):
3257         * UIProcess/API/C/WKPreferencesPrivate.h:
3258         * WebProcess/WebPage/WebPage.cpp:
3259         (WebKit::WebPage::updatePreferences):
3260
3261 2011-09-16  Mark Rowe  <mrowe@apple.com>
3262
3263         Stop installing source and header files in to WebKit2.framework after r95303.
3264
3265         * WebKit2.xcodeproj/project.pbxproj:
3266
3267 2011-09-16  Anders Carlsson  <andersca@apple.com>
3268
3269         Add back the WKHitTestResultRef parameter to mouseDidMoveOverElement in an ABI preserving way
3270         https://bugs.webkit.org/show_bug.cgi?id=68269
3271
3272         Reviewed by Geoffrey Garen.
3273
3274         Add back WKPageMouseDidMoveOverElementCallback last and deprecate the current callback.
3275
3276         * UIProcess/API/C/WKPage.h:
3277         * UIProcess/WebUIClient.cpp:
3278         (WebKit::WebUIClient::mouseDidMoveOverElement):
3279
3280 2011-09-16  Alexey Proskuryakov  <ap@apple.com>
3281
3282         Give local builds of WebProcess different icon to distinguish them from built-in Safari’s WebProcess
3283         https://bugs.webkit.org/show_bug.cgi?id=68268
3284
3285         Reviewed by Darin Adler.
3286
3287         * Configurations/WebProcess.xcconfig: Add an icon in Debug and Release builds.  The empty
3288         value for production resulted in WebKit not adding the key to plist at all, which is what
3289         we want (but I don't know if it's a supported feature).
3290         Also, don't copy the icon file to built framework in production builds.
3291
3292         * WebKit2.xcodeproj/project.pbxproj: Added WebKit.icns.
3293
3294         * WebProcess/Info.plist: Added a key for the icon.
3295
3296         * WebProcess/mac/WebKit.icns: Copied from Websites/webkit.org/images/surfin-safari.icns.
3297
3298 2011-09-16  Anders Carlsson  <andersca@apple.com>
3299
3300         Temporarily remove the WKHitTestResultRef parameter to avoid breaking the WK2 ABI/API
3301         https://bugs.webkit.org/show_bug.cgi?id=68266
3302
3303         Reviewed by John Sullivan.
3304
3305         * UIProcess/API/C/WKPage.h:
3306         * UIProcess/WebUIClient.cpp:
3307         (WebKit::WebUIClient::mouseDidMoveOverElement):
3308
3309 2011-09-16  Filip Pizlo  <fpizlo@apple.com>
3310
3311         DFG JIT should inline Math.abs
3312         https://bugs.webkit.org/show_bug.cgi?id=68227
3313
3314         Reviewed by Oliver Hunt.
3315
3316         Added JavaScriptCore/dfg to include path path.
3317
3318         * CMakeLists.txt:
3319
3320 2011-09-16  Igor Oliveira  <igor.oliveira@openbossa.org>
3321
3322         [WK2] mouseDidMoveOverElement needs to send more information about hovered element to UiProcess.
3323         https://bugs.webkit.org/show_bug.cgi?id=68125
3324
3325         This patch implements support for the UiProcess to know what is the link url of a hovered element.
3326
3327         Reviewed by Anders Carlsson.
3328
3329         * CMakeLists.txt:
3330         * GNUmakefile.am:
3331         * Shared/API/c/WKBase.h:
3332         * Shared/APIObject.h:
3333         * Shared/WebHitTestResult.cpp: Added.
3334
3335         WebHitTestResult has hovered element information.
3336
3337         (WebKit::WebHitTestResult::create):
3338         (WebKit::WebHitTestResult::Data::encode):
3339         (WebKit::WebHitTestResult::Data::decode):
3340         * Shared/WebHitTestResult.h: Added.
3341         (WebKit::WebHitTestResult::absoluteImageURL):
3342         (WebKit::WebHitTestResult::absoluteLinkURL):
3343         (WebKit::WebHitTestResult::absoluteMediaURL):
3344         (WebKit::WebHitTestResult::linkLabel):
3345         (WebKit::WebHitTestResult::linkTitle):
3346         (WebKit::WebHitTestResult::WebHitTestResult):
3347         (WebKit::WebHitTestResult::type):
3348         * UIProcess/API/C/WKAPICast.h:
3349         * UIProcess/API/C/WKPage.h:
3350         * UIProcess/WebPageProxy.cpp:
3351         (WebKit::WebPageProxy::mouseDidMoveOverElement):
3352         * UIProcess/WebPageProxy.h:
3353         * UIProcess/WebPageProxy.messages.in:
3354         * UIProcess/WebUIClient.cpp:
3355         (WebKit::WebUIClient::mouseDidMoveOverElement):
3356         * UIProcess/WebUIClient.h:
3357         * WebKit2.pro:
3358         * WebKit2.xcodeproj/project.pbxproj:
3359         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3360         (WebKit::WebChromeClient::mouseDidMoveOverElement):
3361         * win/WebKit2.vcproj:
3362
3363 2011-09-15  Adam Roben  <aroben@apple.com>
3364
3365         Add support for attributes on message parameters
3366
3367         Parameter attributes are specified as a space-separated list inside square brackets before
3368         the parameter's type. WebKit2 doesn't use this, but other projects that use these scripts
3369         would like to.
3370
3371         Fixes <http://webkit.org/b/68219> Would like a way to specify attributes on message
3372         parameters
3373
3374         Reviewed by Sam Weinig.
3375
3376         * Scripts/webkit2/messages_unittest.py: Added tests for parameter attributes.
3377
3378         * Scripts/webkit2/model.py:
3379         (Parameter.__init__): Added a new attributes parameter, which is stored in the self.attributes
3380         property.
3381         (Parameter.has_attribute): Added. Returns true if this parameter has the given attribute.
3382
3383         * Scripts/webkit2/parser.py:
3384         (parse): Moved attributes-parsing code from here...
3385         (parse_attributes_string): ...to here.
3386         (parse_parameters_string): Renamed from parse_parameter_string. Now also parses parameter
3387         attributes.
3388
3389 2011-09-15  Adam Roben  <aroben@apple.com>
3390
3391         Make WebKit2's message-generation model and parser scripts accessible to other projects
3392
3393         We copy them into the build products directory so other projects can find them.
3394
3395         Fixes <http://webkit.org/b/68169> Would like to be able to use WebKit2's message-generation
3396         scripts in other projects
3397
3398         Reviewed by Darin Adler.
3399
3400         * WebKit2.xcodeproj/project.pbxproj: Copy the scripts to PrivateHeaders.
3401
3402         * win/WebKit2.make: Copy the scripts from obj/WebKit2/scripts to
3403         tools/scripts, like WebCore does.
3404
3405         * win/WebKit2Generated.make: Copy the scripts to obj/WebKit2/scripts, which is similar to what
3406         WebCore does for its bindings scripts.
3407
3408 2011-09-15  Adam Roben  <aroben@apple.com>
3409
3410         Split some of the message-generation code into separate modules
3411
3412         This is in preparation for making these modules scripts usable by other projects.
3413
3414         Fixes <http://webkit.org/b/68217> Model and parsing functionality for WebKit2's
3415         message-generation scripts is trapped inside a much larger module
3416
3417         Reviewed by Darin Adler.
3418
3419         * DerivedSources.make:
3420         * DerivedSources.pro:
3421         * GNUmakefile.am:
3422         * WebKit2.xcodeproj/project.pbxproj:
3423         * win/WebKit2.vcproj:
3424         * win/WebKit2Generated.vcproj:
3425         Added new files.
3426
3427         * Scripts/webkit2/messages.py: Moved some code from here...
3428
3429         * Scripts/webkit2/model.py: Added.
3430         * Scripts/webkit2/parser.py: Added.
3431         ...to here. MessageReceiver.parse was split out into a function in the new parser module.
3432
3433         * Scripts/webkit2/messages_unittest.py: Updated for renames.
3434
3435 2011-09-16  Martin Robinson  <mrobinson@igalia.com>
3436
3437         [GTK] Disable WebKit2 by default in configure.ac, but enable it with build-webkit
3438         https://bugs.webkit.org/show_bug.cgi?id=68178
3439
3440         Reviewed by Xan Lopez.
3441
3442         * GNUmakefile.am: Do not build WebKit2 by default. Re-add pkgconfig support
3443         for WebKit2.
3444
3445 2011-09-15  Adam Barth  <abarth@webkit.org>
3446
3447         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
3448         https://bugs.webkit.org/show_bug.cgi?id=68205
3449
3450         Reviewed by Eric Seidel.
3451
3452         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3453         * WebProcess/WebCoreSupport/WebChromeClient.h:
3454         * WebProcess/WebPage/WebPage.cpp:
3455         (WebKit::WebPage::updatePreferences):
3456         * WebProcess/WebProcess.cpp:
3457         (WebKit::WebProcess::initializeWebProcess):
3458
3459 2011-09-15  Eric Seidel  <eric@webkit.org>
3460
3461         Remove ENABLE(SVG_AS_IMAGE) since all major ports have it on by default
3462         https://bugs.webkit.org/show_bug.cgi?id=68182
3463
3464         Reviewed by Adam Barth.
3465
3466         * Configurations/FeatureDefines.xcconfig:
3467
3468 2011-09-15  Eric Seidel  <eric@webkit.org>
3469
3470         Remove ENABLE_SVG_ANIMATION as all major ports have it on by default
3471         https://bugs.webkit.org/show_bug.cgi?id=68022
3472
3473         Reviewed by Ryosuke Niwa.
3474
3475         * Configurations/FeatureDefines.xcconfig:
3476
3477 2011-09-15  Alexis Menard  <alexis.menard@openbossa.org>
3478
3479         [Qt][WK2] Make QWebError more friendly to QML.
3480         https://bugs.webkit.org/show_bug.cgi?id=67785
3481
3482         Reviewed by Simon Hausmann.
3483
3484         Make sure that we can use the loading errors in QML. We send it via a QJSValue which
3485         has the properties needed to get the error code, the url and the type of error.
3486
3487         * UIProcess/API/qt/qdesktopwebview.cpp:
3488         (QDesktopWebViewPrivate::loadDidFail):
3489         (QDesktopWebViewPrivate::engine):
3490         * UIProcess/API/qt/qdesktopwebview.h:
3491         * UIProcess/API/qt/qdesktopwebview_p.h:
3492         * UIProcess/API/qt/qtouchwebpage.h:
3493         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
3494         (tst_CommonViewTests::loadNonexistentFileUrl):
3495         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
3496         (WebViewAbstraction::WebViewAbstraction):
3497         (WebViewAbstraction::touchViewLoadFailed):
3498         (WebViewAbstraction::desktopViewLoadFailed):
3499         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
3500         * UIProcess/API/qt/tests/testwindow.h:
3501         * UIProcess/qt/QtWebPageProxy.cpp:
3502         (QtWebPageProxy::loadDidFail):
3503         * UIProcess/qt/QtWebPageProxy.h:
3504         * UIProcess/qt/TouchViewInterface.cpp:
3505         (WebKit::TouchViewInterface::loadDidFail):
3506         (WebKit::TouchViewInterface::engine):
3507         * UIProcess/qt/TouchViewInterface.h:
3508         * UIProcess/qt/ViewInterface.h:
3509
3510 2011-09-15  Adam Roben  <aroben@apple.com>
3511
3512         Remove WebKit2-specific knowledge from the Message class
3513
3514         This is in preparation for making some of our message-generations scripts usable by other
3515         projects.
3516
3517         Fixes <http://webkit.org/b/68170> Model classes in WebKit2's message-generation scripts know
3518         too much about WebKit2 details
3519
3520         Reviewed by Anders Carlsson.
3521
3522         * Scripts/webkit2/messages.py: Added constants for the message attributes we support.
3523         (MessageReceiver.parse): Instead of recognizing individual attributes, just stick the
3524         attributes into a set and pass it to the Message constructor.
3525         (Message.__init__): Changed to take a generic set of attributes instead of individual
3526         attributes.
3527         (Message.has_attribute): Added. Returns true if the message has an attribute.
3528         (message_is_variadic): Renamed from parameter_type_is_variadic. Code came from
3529         Message.__init__, which set the old message.is_variadic property.
3530
3531         (decode_type):
3532         (message_to_struct_declaration):
3533         (forward_declarations_and_headers):
3534         (async_case_statement):
3535         (sync_case_statement):
3536         (generate_message_handler):
3537         Updated to use Message.has_attribute and message_is_variadic.
3538
3539 2011-09-14  Wajahat Siddiqui  <mdwajahatali.siddiqui@motorola.com>
3540
3541         Eliminate WebKit2 compilation warnings.
3542         https://bugs.webkit.org/show_bug.cgi?id=65025
3543
3544         Warnings found with gcc on linux.
3545
3546         Reviewed by Sam Weinig.
3547
3548         * Platform/CoreIPC/ArgumentEncoder.cpp:
3549         (CoreIPC::ArgumentEncoder::~ArgumentEncoder):
3550         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3551         (WebKit::WebFrameLoaderClient::createPlugin):
3552
3553 2011-09-14  Ada Chan  <adachan@apple.com>
3554
3555         Implement WKBundleFrameCopyWebArchive().
3556         http://bugs.webkit.org/show_bug.cgi?id=67857
3557
3558         Reviewed by Anders Carlsson.
3559
3560         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
3561         (WKBundleFrameCopyWebArchive): Call WebFrame::webArchiveData() and create a WKDataRef from the returned CFDataRef.
3562         * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
3563         * WebProcess/WebPage/WebFrame.cpp:
3564         (WebKit::WebFrame::webArchiveData): Add WebFrame::webArchiveData().
3565         * WebProcess/WebPage/WebFrame.h:
3566         * WebProcess/WebPage/WebPage.cpp:
3567         (WebKit::WebPage::getWebArchiveOfFrame): Move the logic to WebFrame::webArchiveData() and call that method here.
3568
3569 2011-09-14  Alexey Proskuryakov  <ap@apple.com>
3570
3571         Web Process doesn't need a permission to look up WebProcess service any more
3572         https://bugs.webkit.org/show_bug.cgi?id=68101
3573
3574         Reviewed by Anders Carlsson.
3575
3576         * WebProcess/com.apple.WebProcess.sb:
3577
3578 2011-09-14  Mark Hahnenberg  <mhahnenberg@apple.com>
3579
3580         Unzip initialization lists and constructors in JSCell hierarchy (6/7)
3581         https://bugs.webkit.org/show_bug.cgi?id=67692