[WK2] Forward cookie jar calls to NetworkProcess
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-11-29  Alexey Proskuryakov  <ap@apple.com>
2
3         [WK2] Forward cookie jar calls to NetworkProcess
4         https://bugs.webkit.org/show_bug.cgi?id=103457
5
6         Reviewed by Darin Adler.
7
8         * WebCoreSupport/WebPlatformStrategies.h:
9         (WebPlatformStrategies):
10         * WebCoreSupport/WebPlatformStrategies.mm:
11         (WebPlatformStrategies::cookiesForDOM):
12         (WebPlatformStrategies::setCookiesFromDOM):
13         (WebPlatformStrategies::cookiesEnabled):
14         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
15         (WebPlatformStrategies::getRawCookies):
16         (WebPlatformStrategies::deleteCookie):
17         (WebPlatformStrategies::getHostnamesWithCookies):
18         (WebPlatformStrategies::deleteCookiesForHostname):
19         (WebPlatformStrategies::deleteAllCookies):
20         (WebPlatformStrategies::getPluginInfo):
21         (WebPlatformStrategies::bufferForType):
22         WebKit1 strategy just uses PlatformCookieJar.
23
24 2012-11-28  Beth Dakin  <bdakin@apple.com>
25
26         https://bugs.webkit.org/show_bug.cgi?id=102970
27         [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless 
28         WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame:
29
30         Reviewed by Sam Weinig.
31
32         We should always register for DidFirstLayout in WK1 since we do work 
33         at that time besides just calling the delegate function.
34         * WebView/WebView.mm:
35         (-[WebView _cacheFrameLoadDelegateImplementations]):
36
37 2012-11-27  Michael Saboff  <msaboff@apple.com>
38
39         TextIterator unnecessarily converts 8 bit strings to 16 bits
40         https://bugs.webkit.org/show_bug.cgi?id=103295
41
42         Reviewed by Brent Fulgham.
43
44         Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer().
45
46         * WebView/WebFrame.mm:
47         (-[WebFrame _stringForRange:]):
48
49 2012-11-27  James Simonsen  <simonjam@chromium.org>
50
51         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
52         https://bugs.webkit.org/show_bug.cgi?id=102151
53
54         Reviewed by Adam Barth.
55
56         * Plugins/WebPluginController.mm:
57         * WebView/WebFrame.mm:
58         (-[WebFrame loadRequest:]):
59         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
60
61 2012-11-27  Pratik Solanki  <psolanki@apple.com>
62
63         objc/objc-runtime.h does not exist on all PLATFORM(MAC)
64         https://bugs.webkit.org/show_bug.cgi?id=101780
65
66         Reviewed by Brent Fulgham.
67
68         Clean up header includes so we don't include objc/objc-runtime.h.
69
70         * Carbon/HIWebView.mm:
71         (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
72         * Plugins/WebNetscapePluginView.mm:
73         * Plugins/WebPluginContainerCheck.mm:
74         (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
75         * Plugins/WebPluginController.mm:
76         * WebCoreSupport/WebCachedFramePlatformData.h:
77         * WebCoreSupport/WebDeviceOrientationClient.mm:
78         * WebView/WebDelegateImplementationCaching.mm:
79         * WebView/WebHTMLView.mm:
80         * WebView/WebPDFDocumentExtras.mm:
81         * WebView/WebPolicyDelegate.mm:
82         (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
83         * WebView/WebView.mm:
84
85 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
86
87         Unreviewed, rolling out r135786.
88         http://trac.webkit.org/changeset/135786
89         https://bugs.webkit.org/show_bug.cgi?id=103379
90
91         It made 3 plugin tests timeout on several platforms (Requested
92         by Ossy on #webkit).
93
94         * Plugins/WebPluginController.mm:
95         * WebView/WebFrame.mm:
96         (-[WebFrame loadRequest:]):
97         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
98
99 2012-11-26  James Simonsen  <simonjam@chromium.org>
100
101         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
102         https://bugs.webkit.org/show_bug.cgi?id=102151
103
104         Reviewed by Adam Barth.
105
106         * Plugins/WebPluginController.mm:
107         * WebView/WebFrame.mm:
108         (-[WebFrame loadRequest:]):
109         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
110
111 2012-11-23  Alexis Menard  <alexis@webkit.org>
112
113         [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
114         https://bugs.webkit.org/show_bug.cgi?id=102104
115
116         Reviewed by Julien Chaffraix.
117
118         Protect the new feature behind a feature flag.
119
120         * Configurations/FeatureDefines.xcconfig:
121
122 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
123
124         Disambiguate innerNodeFramePoint and mainFramePoint
125         https://bugs.webkit.org/show_bug.cgi?id=98139
126
127         Reviewed by Julien Chaffraix.
128
129         Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
130
131         * WebCoreSupport/WebContextMenuClient.mm:
132         (WebContextMenuClient::showContextMenu):
133
134 2012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
135
136         Unreviewed, rolling out r135295.
137         http://trac.webkit.org/changeset/135295
138         https://bugs.webkit.org/show_bug.cgi?id=102834
139
140         This patch causes assertion to some layout tests on chromium
141         (Requested by jianli on #webkit).
142
143         * Plugins/WebPluginController.mm:
144         * WebView/WebFrame.mm:
145         (-[WebFrame loadRequest:]):
146         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
147
148 2012-11-20  James Simonsen  <simonjam@chromium.org>
149
150         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
151         https://bugs.webkit.org/show_bug.cgi?id=102151
152
153         Reviewed by Adam Barth.
154
155         * Plugins/WebPluginController.mm:
156         * WebView/WebFrame.mm:
157         (-[WebFrame loadRequest:]):
158         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
159
160 2012-11-19  Kihong Kwon  <kihong.kwon@samsung.com>
161
162         Add PROXIMITY_EVENTS feature
163         https://bugs.webkit.org/show_bug.cgi?id=102658
164
165         Reviewed by Kentaro Hara.
166
167         Add PROXIMITY_EVENTS feature to xcode project for WebKit.
168
169         * Configurations/FeatureDefines.xcconfig:
170
171 2012-11-16  Tony Chang  <tony@chromium.org>
172
173         Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
174         https://bugs.webkit.org/show_bug.cgi?id=102554
175
176         Reviewed by Andreas Kling.
177
178         As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
179         we're going to revist this feature once additional vendor support is
180         achieved.
181
182         * Configurations/FeatureDefines.xcconfig:
183
184 2012-11-15  Alexey Proskuryakov  <ap@apple.com>
185
186         Private Browsing is a per-page setting that sets a global value
187         https://bugs.webkit.org/show_bug.cgi?id=67870
188
189         Reviewed by Sam Weinig.
190
191         * WebCoreSupport/WebFrameNetworkingContext.h:
192         * WebCoreSupport/WebFrameNetworkingContext.mm:
193         Moved functions for managing global sessions from WebCore.
194
195         * WebCoreSupport/WebPlatformStrategies.h:
196         * WebCoreSupport/WebPlatformStrategies.mm:
197         (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext
198         to reach the storage.
199
200         * WebView/WebPreferences.mm:
201         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto.
202         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto.
203
204         * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions
205         are not generic enough for use outside DRT (one of them had "testing" in name,
206         but another did not).
207
208         * WebView/WebView.mm:
209         (-[WebView _preferencesChanged:]): Create a global private browsing session when
210         the first view with private browsing is created, delete it when any window with
211         it disabled is created (since this comes from preferences, it applies to all
212         views equally, even though we are dealing with a single one here).
213         (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of
214         a global one.
215
216 2012-11-13  Timothy Hatcher  <timothy@apple.com>
217
218         Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button.
219
220         https://bugs.webkit.org/show_bug.cgi?id=102073
221
222         Reviewed by Joseph Pecoraro.
223
224         * WebCoreSupport/WebInspectorClient.mm:
225         (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame.
226
227 2012-11-12  Simon Fraser  <simon.fraser@apple.com>
228
229         Build fix after r134346 and 134347.
230         
231         Use frameView.isFlipped, not frameView.flipped in the assertion.
232
233         * WebCoreSupport/WebInspectorClient.mm:
234         (-[WebInspectorWindowController window]):
235
236 2012-11-12  Timothy Hatcher  <timothy@apple.com>
237
238         Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
239
240         https://bugs.webkit.org/show_bug.cgi?id=102025
241
242         Reviewed by Joseph Pecoraro.
243
244         * Resources/Dock.pdf: Added.
245         * WebCoreSupport/WebInspectorClient.h:
246         * WebCoreSupport/WebInspectorClient.mm:
247         (-[WebInspectorWindow _cursorForResizeDirection:]): Added.
248         (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead.
249         (WebInspectorFrontendClient::attachAvailabilityChanged): Added.
250         (-[WebInspectorWindowController window]): Create the dock button and add it.
251         (-[WebInspectorWindowController attachWindow:]): Added.
252         (-[WebInspectorWindowController attach]): Call setAttachedWindow.
253         (-[WebInspectorWindowController detach]): Ditto.
254         (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button.
255
256 2012-11-08  Timothy Hatcher  <timothy@apple.com>
257
258         Always use a textured window for the Web Inspector.
259
260         https://bugs.webkit.org/show_bug.cgi?id=101693
261
262         Reviewed by Joseph Pecoraro.
263
264         * WebCoreSupport/WebInspectorClient.mm:
265         (-[WebInspectorWindowController window]): Removed the conditional for a textured window.
266
267 2012-11-08  Roger Fong  <roger_fong@apple.com>
268
269         Null check URL key entries into WebHistory hash table. 
270         https://bugs.webkit.org/show_bug.cgi?id=101664
271         <rdar://problem/12440852>
272
273         Reviewed by Brady Eidson.
274         
275         Sometimes the _entriesByURL hash table used to keep track of web history is erroneously passed in null key entries, which causes an exception to fire.
276         This prevents the desired page navigation from taking effect. This is a workaround for the problem.
277         Ideally we would figure out where the null values for the key are coming from but for now we'll just set it to "" to prevent the exception from being thrown
278         so that navigation can continue as expected.
279
280         * History/WebHistory.mm:
281         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]):
282
283 2012-11-07  Andreas Kling  <akling@apple.com>
284
285         Remove build-webkit dependency on Java SDK for Apple Mac WebKit.
286         <http://webkit.org/b/101492>
287
288         Reviewed by Anders Carlsson.
289
290         * Plugins/WebJavaPlugIn.h: Removed.
291
292 2012-11-06  Adam Barth  <abarth@webkit.org>
293
294         Unreviewed attempt to fix the chromium-mac build.
295
296         * WebCoreSupport/WebSystemInterface.mm:
297         (InitWebCoreSystemInterface):
298
299 2012-11-06  Anders Carlsson  <andersca@apple.com>
300
301         Update Java related WKSI function names
302         https://bugs.webkit.org/show_bug.cgi?id=101414
303
304         Reviewed by Sam Weinig.
305
306         * WebCoreSupport/WebChromeClient.mm:
307         (WebChromeClient::unavailablePluginButtonClicked):
308         * WebCoreSupport/WebFrameLoaderClient.mm:
309         (isPlugInInactive):
310
311 2012-11-06  Alexey Proskuryakov  <ap@apple.com>
312
313         Clean up which storage cookie jar functions use
314         https://bugs.webkit.org/show_bug.cgi?id=101395
315
316         Reviewed by Brady Eidson.
317
318         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for
319         two new functions.
320
321 2012-11-06  Andrey Lushnikov  <lushnikov@google.com>
322
323         Added console.clear() method
324
325         Web Inspector: add console.clear()
326         https://bugs.webkit.org/show_bug.cgi?id=101021
327
328         Reviewed by Vsevolod Vlasov.
329
330         * WebCoreSupport/WebChromeClient.mm:
331         (stringForMessageType): Added ClearMessageType case to switch
332
333 2012-11-05  Alexey Proskuryakov  <ap@apple.com>
334
335         Get rid of setCookieStoragePrivateBrowsingEnabled.
336         https://bugs.webkit.org/show_bug.cgi?id=101247
337
338         Reviewed by Brady Eidson.
339
340         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer
341         have this function.
342
343 2012-11-03  Alexey Proskuryakov  <ap@apple.com>
344
345         Get rid of USE(CFURLSTORAGESESSIONS)
346         https://bugs.webkit.org/show_bug.cgi?id=101131
347
348         Reviewed by Sam Weinig.
349
350         * WebView/WebPreferences.mm:
351         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
352         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
353         * WebView/WebView.mm:
354         (-[WebView _cachedResponseForURL:]):
355
356 2012-11-02  Anders Carlsson  <andersca@apple.com>
357
358         Don't instantiate the Java plug-in if it's inactive
359         https://bugs.webkit.org/show_bug.cgi?id=101102
360         <rdar://problem/12595679>
361
362         Reviewed by Andreas Kling.
363
364         * WebCoreSupport/WebChromeClient.mm:
365         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
366         The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown.
367
368         (WebChromeClient::unavailablePluginButtonClicked):
369         If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and
370         then reload the page.
371
372         * WebCoreSupport/WebFrameLoaderClient.mm:
373         (isOracleJavaPlugIn):
374         (isPlugInInactive):
375         Helper functions.
376
377         (WebFrameLoaderClient::createPlugin):
378         If the plug-in is inactive, set the appropriate unavailability reason on the renderer.
379
380 2012-11-02  Simon Fraser  <simon.fraser@apple.com>
381
382         Enable SUBPIXEL_LAYOUT on Mac
383         https://bugs.webkit.org/show_bug.cgi?id=101076
384
385         Reviewed by Dave Hyatt.
386
387         Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES.
388
389         * Configurations/FeatureDefines.xcconfig:
390
391 2012-11-02  Adam Barth  <abarth@webkit.org>
392
393         ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development
394         https://bugs.webkit.org/show_bug.cgi?id=100711
395
396         Reviewed by Eric Seidel.
397
398         * Configurations/FeatureDefines.xcconfig:
399
400 2012-11-01  Adam Roben  <aroben@webkit.org>
401
402         [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display
403         https://bugs.webkit.org/show_bug.cgi?id=100957
404
405         Reviewed by Simon Fraser.
406
407         WebCore doesn't yet support subpixel scrolling. WebKit2 forces
408         scrolling to always be integral. Now WebKit1 forces this as well.
409
410         I'm not sure how to write a test for this.
411
412         * WebView/WebDynamicScrollBarsView.mm:
413         (shouldRoundScrollOrigin): Returns YES if there are any position:fixed
414         or position:sticky elements in the page.
415         (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the
416         scroll origin to the nearest pixel if needed.
417
418 2012-10-31  Anders Carlsson  <andersca@apple.com>
419
420         Fix build.
421         <rdar://problem/12612207>.
422
423         Reviewed by Sam Weinig.
424
425         * Panels/WebAuthenticationPanel.m:
426         (-[WebAuthenticationPanel loadNib]):
427
428 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
429
430         [Mac] Sync up FeatureDefine Configuration Files
431         https://bugs.webkit.org/show_bug.cgi?id=100171
432
433         Reviewed by David Kilzer.
434
435         Follow up to better coordinate with iOS feature defines. Make:
436
437           - ENABLE_FILTERS always on
438           - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values
439
440         * Configurations/FeatureDefines.xcconfig:
441
442 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
443
444         [Mac] Sync up FeatureDefine Configuration Files
445         https://bugs.webkit.org/show_bug.cgi?id=100171
446
447         Reviewed by David Kilzer.
448
449         Ensure an identical FeatureDefine files across all projects. Changes:
450
451           - ENABLE_CSS_BOX_DECORATION_BREAK should be in all
452           - ENABLE_PDFKIT_PLUGIN should be in all
453           - ENABLE_RESOLUTION_MEDIA_QUERY should be in all
454           - ENABLE_ENCRYPTED_MEDIA should be in all
455           - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value
456           - Some alphabetical ordering cleanup
457
458         * Configurations/FeatureDefines.xcconfig:
459
460 2012-10-29  Anders Carlsson  <andersca@apple.com>
461
462         Build WebKit as C++11 on Mac
463         https://bugs.webkit.org/show_bug.cgi?id=100720
464
465         Reviewed by Daniel Bates.
466
467         * Configurations/Base.xcconfig:
468         Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
469
470         * History/WebBackForwardList.mm:
471         (-[WebBackForwardList description]):
472         * History/WebHistoryItem.mm:
473         (-[WebHistoryItem description]):
474         Add static_casts to prevent implicit type conversions in non-constant initializer lists.
475
476 2012-10-28  Mark Rowe  <mrowe@apple.com>
477
478         Simplify Xcode configuration settings that used to vary between OS versions.
479
480         Reviewed by Dan Bernstein.
481
482         * Configurations/Base.xcconfig:
483         * Configurations/DebugRelease.xcconfig:
484         * Configurations/WebKit.xcconfig:
485
486 2012-10-28  Mark Rowe  <mrowe@apple.com>
487
488         Remove references to unsupported OS and Xcode versions.
489
490         Reviewed by Anders Carlsson.
491
492         * Configurations/Base.xcconfig:
493         * Configurations/CompilerVersion.xcconfig: Removed.
494         * Configurations/DebugRelease.xcconfig:
495         * Configurations/Version.xcconfig:
496
497 2012-10-29  Enrica Casucci  <enrica@apple.com>
498
499         Add ENABLE_USERSELECT_ALL feature flag.
500         https://bugs.webkit.org/show_bug.cgi?id=100559
501
502         Reviewed by Eric Seidel.
503
504         * Configurations/FeatureDefines.xcconfig:
505
506 2012-10-27  Alexey Proskuryakov  <ap@apple.com>
507
508         All tests crash in WebKit1 mode
509         https://bugs.webkit.org/show_bug.cgi?id=100602
510
511         Reviewed by Sam Weinig.
512
513         * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load
514         scheduler is created via a strategy, so strategies need to be initialized before
515         using it.
516
517 2012-10-27  Dan Bernstein  <mitz@apple.com>
518
519         REAL_PLATFORM_NAME build setting is no longer needed
520         https://bugs.webkit.org/show_bug.cgi?id=100587
521
522         Reviewed by Mark Rowe.
523
524         Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
525         to PLATFORM_NAME.
526
527         * Configurations/Base.xcconfig:
528         * Configurations/CompilerVersion.xcconfig:
529         * Configurations/DebugRelease.xcconfig:
530         * Configurations/FeatureDefines.xcconfig:
531         * Configurations/Version.xcconfig:
532         * Configurations/WebKit.xcconfig:
533
534 2012-10-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
535
536         Add feature flags for CSS Device Adaptation
537         https://bugs.webkit.org/show_bug.cgi?id=95960
538
539         Reviewed by Kenneth Rohde Christiansen.
540
541         * Configurations/FeatureDefines.xcconfig:
542
543 2012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
544
545         Conditionalize XHR timeout support
546         https://bugs.webkit.org/show_bug.cgi?id=100356
547
548         Reviewed by Adam Barth.
549
550         Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
551         Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
552
553         * Configurations/FeatureDefines.xcconfig:
554
555 2012-10-24  Timothy Hatcher  <timothy@apple.com>
556
557         Fix a crash seen during the Inspector tests on the WebKit1 bots.
558
559         Reviewed by Filip Pizlo.
560
561         * WebCoreSupport/WebInspectorClient.mm:
562         (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
563         is not the same when the Inspector is docked.
564
565 2012-10-24  Brady Eidson  <beidson@apple.com>
566
567         Add a strategy for loader customization.
568         https://bugs.webkit.org/show_bug.cgi?id=100278
569
570         Reviewed by Alexey Proskuryakov.
571
572         * WebCoreSupport/WebPlatformStrategies.h:
573         (WebPlatformStrategies):
574         * WebCoreSupport/WebPlatformStrategies.mm:
575         (WebPlatformStrategies::createLoaderStrategy):
576
577 2012-10-24  Timothy Hatcher  <timothy@apple.com>
578
579         Make the Inspector WKView/WebView become the first responder when bringToFront is called.
580
581         https://bugs.webkit.org/show_bug.cgi?id=100209
582
583         Reviewed by Joseph Pecoraro.
584
585         * WebCoreSupport/WebInspectorClient.mm:
586         (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
587
588 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
589
590         Add a strategy for shared workers
591         https://bugs.webkit.org/show_bug.cgi?id=100165
592
593         Reviewed by Brady Eidson.
594
595         * WebCoreSupport/WebPlatformStrategies.h:
596         * WebCoreSupport/WebPlatformStrategies.mm:
597         (WebPlatformStrategies::createPasteboardStrategy):
598         (WebPlatformStrategies::createSharedWorkerStrategy):
599         (WebPlatformStrategies::createVisitedLinkStrategy):
600
601 2012-10-24  Eric Carlson  <eric.carlson@apple.com>
602
603         Allow ports to override text track rendering style
604         https://bugs.webkit.org/show_bug.cgi?id=97800
605         <rdar://problem/12044964>
606
607         Reviewed by Maciej Stachowiak.
608
609         * WebCoreSupport/WebSystemInterface.mm:
610         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
611
612 2012-10-23  Dan Bernstein  <mitz@apple.com>
613
614         WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
615         https://bugs.webkit.org/show_bug.cgi?id=100188
616
617         Reviewed by Sam Weinig.
618
619         * WebView/WebView.mm:
620         (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
621         code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
622         default. Changed to refer to that default key by name.
623
624 2012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
625
626         Add support for resolution media query
627         https://bugs.webkit.org/show_bug.cgi?id=99077
628
629         Reviewed by Antti Koivisto.
630
631         Add support for the RESOLUTION_MEDIA_QUERY feature flag.
632
633         * Configurations/FeatureDefines.xcconfig:
634
635 2012-10-21  Andreas Kling  <kling@webkit.org>
636
637         Remove Page::javaScriptURLsAreAllowed setting.
638         <http://webkit.org/b/99944>
639
640         Reviewed by Anders Carlsson.
641
642         * WebKit.order:
643         * WebView/WebView.mm:
644         * WebView/WebViewPrivate.h:
645
646 2012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
647
648         Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
649         https://bugs.webkit.org/show_bug.cgi?id=99804
650
651         Reviewed by Julien Chaffraix.
652
653         CSS3 text related properties will be implemented under this flag,
654         including text decoration, text-align-last, and text-justify.
655
656         * Configurations/FeatureDefines.xcconfig:
657
658 2012-10-18  Pablo Flouret  <pablof@motorola.com>
659
660         Implement css3-conditional's @supports rule
661         https://bugs.webkit.org/show_bug.cgi?id=86146
662
663         Reviewed by Antti Koivisto.
664
665         * Configurations/FeatureDefines.xcconfig:
666             Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
667
668 2012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
669
670         [Mac] Uninitialized Members in WebDataSourcePrivate
671         https://bugs.webkit.org/show_bug.cgi?id=99617
672
673         Reviewed by David Kilzer.
674
675         Initialize BOOL member variables.
676
677         * WebView/WebDataSource.mm:
678         (WebDataSourcePrivate::WebDataSourcePrivate):
679
680 2012-10-17  Mark Rowe  <mrowe@apple.com>
681
682         Fix the build with a newer version of clang.
683
684         Reviewed by Dan Bernstein.
685
686         Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
687         While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
688         with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
689         therefore generates a warning in newer versions of the compiler.
690
691         Fixes <rdar://problem/12503709>.
692
693         * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
694         * Misc/WebCoreStatistics.mm: Ditto.
695         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
696         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
697
698 2012-10-16  Jian Li  <jianli@chromium.org>
699
700         Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
701         https://bugs.webkit.org/show_bug.cgi?id=98975
702
703         Reviewed by Adam Barth.
704
705         Renaming is needed to better match with the draggable region code.
706
707         * Configurations/FeatureDefines.xcconfig:
708
709 2012-10-15  Dan Bernstein  <mitz@apple.com>
710
711         WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
712         https://bugs.webkit.org/show_bug.cgi?id=99113
713
714         Reviewed by Tim Horton.
715
716         * WebCoreSupport/WebSystemInterface.mm:
717         (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
718
719 2012-10-15  David Kilzer  <ddkilzer@apple.com>
720
721         Move framework and library linking into WebKit.xcconfig
722         <http://webkit.org/b/99284>
723
724         Reviewed by Mark Rowe.
725
726         * Configurations/WebKit.xcconfig: Move frameworks and libraries
727         link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
728
729 2012-10-14  Jon Lee  <jonlee@apple.com>
730
731         Allow notification origin permission request when no js callback is provided
732         https://bugs.webkit.org/show_bug.cgi?id=63615
733         <rdar://problem/11059590>
734
735         Reviewed by Sam Weinig.
736
737         Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
738         we do not fall through to calling the standard API's callback if the legacy API's callback is null.
739
740         * WebCoreSupport/WebNotificationClient.mm:
741         (WebCore):
742         (-[WebNotificationPolicyListener initWithVoidCallback:]):
743         (-[WebNotificationPolicyListener allow]):
744         (-[WebNotificationPolicyListener deny]):
745
746 2012-10-14  Sam Weinig  <sam@webkit.org>
747
748         Make UserScript and UserStyleSheet value objects that are copyable
749         https://bugs.webkit.org/show_bug.cgi?id=99275
750
751         Reviewed by Tim Horton.
752
753         * WebView/WebView.mm:
754         (-[WebView _injectMailQuirksScript]):
755         (-[WebView _injectOutlookQuirksScript]):
756         Update for new PageGroup function signatures.
757
758 2012-10-10  Brady Eidson  <beidson@apple.com>
759
760         Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
761         https://bugs.webkit.org/show_bug.cgi?id=98976
762
763         Reviewed by Anders Carlsson.
764
765         * WebView/WebDataSource.mm:
766         (-[WebDataSource data]):
767
768 2012-10-10  Jer Noble  <jer.noble@apple.com>
769
770         Disallow full screen mode keyboard access by default.
771         https://bugs.webkit.org/show_bug.cgi?id=98971
772         <rdar://problem/12474226>
773
774         Reviewed by Sam Weinig.
775
776         Only support full screen if keyboard access is not requested.
777
778         * WebView/WebView.mm:
779         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
780
781 2012-10-10  Jon Lee  <jonlee@apple.com>
782
783         [WK2] Activate plugins when user clicks on snapshot
784         https://bugs.webkit.org/show_bug.cgi?id=98328
785         <rdar://problem/12426681>
786
787         Reviewed by Brady Eidson.
788
789         * WebCoreSupport/WebFrameLoaderClient.h:
790         * WebCoreSupport/WebFrameLoaderClient.mm:
791         (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
792
793 2012-10-10  Brady Eidson  <beidson@apple.com>
794
795         Switch CachedResource over from SharedBuffer to a new ResourceBuffer
796         https://bugs.webkit.org/show_bug.cgi?id=98541
797
798         Reviewed by Anders Carlsson.
799
800         * WebView/WebHTMLView.mm:
801         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
802
803 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
804
805         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
806         https://bugs.webkit.org/show_bug.cgi?id=98839
807
808         Reviewed by Sam Weinig.
809
810         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
811         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
812         but store the computed rect in m_visibleRect.
813         
814         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
815         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
816
817         * WebView/WebFrame.mm:
818         (-[WebFrame _layerTreeAsText]):
819
820 2012-10-09  Jian Li  <jianli@chromium.org>
821
822         Update the CSS property used to support draggable regions.
823         https://bugs.webkit.org/show_bug.cgi?id=97156
824
825         Reviewed by Adam Barth.
826
827         The CSS property to support draggable regions, guarded under
828         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
829         confusion with DASHBOARD_SUPPORT feature.
830
831         Also update the code to use the new name annotatedRegions to work for
832         both features.
833
834         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
835         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
836         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
837         (WebChromeClient::annotatedRegionsChanged):
838         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
839         (-[WebView _dashboardRegions]):
840
841 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
842
843         Unreviewed, rolling out r130811 and r130821.
844         http://trac.webkit.org/changeset/130811
845         http://trac.webkit.org/changeset/130821
846         https://bugs.webkit.org/show_bug.cgi?id=98831
847
848         Broke date-suggestion-picker-appearance-with-scroll-bar.html
849         (Requested by abarth|gardening on #webkit).
850
851         * WebView/WebFullScreenController.mm:
852         (screenRectOfContents):
853         * WebView/WebRenderNode.mm:
854         (copyRenderNode):
855
856 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
857
858         Throttle DOM timers on hidden pages.
859         https://bugs.webkit.org/show_bug.cgi?id=98474
860
861         Reviewed by Maciej Stachowiak.
862
863         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
864         DumpRenderTree to modify the visibility state of a page.  The latter
865         is needed to test throttling of timers on hidden pages through DumpRenderTree.
866
867         * Configurations/FeatureDefines.xcconfig:
868         * WebView/WebView.mm:
869         (-[WebView _setVisibilityState:isInitialState:]):
870         * WebView/WebViewPrivate.h:
871
872 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
873
874         Rename first/second to key/value in HashMap iterators
875         https://bugs.webkit.org/show_bug.cgi?id=82784
876
877         Reviewed by Eric Seidel.
878
879         * History/WebHistory.mm:
880         (-[WebHistoryPrivate removeItemFromDateCaches:]):
881         (-[WebHistoryPrivate orderedLastVisitedDays]):
882         (WebHistoryWriter::WebHistoryWriter):
883         * Misc/WebCoreStatistics.mm:
884         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
885         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
886         * Plugins/Hosted/NetscapePluginHostManager.mm:
887         (WebKit::NetscapePluginHostManager::hostForPlugin):
888         (WebKit::NetscapePluginHostManager::pluginHostDied):
889         (WebKit::NetscapePluginHostManager::didCreateWindow):
890         * Plugins/Hosted/NetscapePluginHostProxy.mm:
891         (WebKit::NetscapePluginHostProxy::pluginHostDied):
892         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
893         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
894         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
895         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
896         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
897         (WebKit::NetscapePluginInstanceProxy::destroy):
898         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
899         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
900         * Plugins/Hosted/ProxyInstance.mm:
901         (WebKit::ProxyInstance::methodNamed):
902         (WebKit::ProxyInstance::fieldNamed):
903         * Plugins/WebNetscapePluginView.mm:
904         (-[WebNetscapePluginView stopTimers]):
905         (-[WebNetscapePluginView startTimers]):
906         * WebCoreSupport/WebNotificationClient.mm:
907         (WebNotificationClient::show):
908         (WebNotificationClient::clearNotifications):
909         (WebNotificationClient::notificationObjectDestroyed):
910         * WebView/WebHTMLView.mm:
911         (commandNameForSelector):
912
913 2012-10-06  Dan Bernstein  <mitz@apple.com>
914
915         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
916         https://bugs.webkit.org/show_bug.cgi?id=98601
917
918         Reviewed by Darin Adler.
919
920         * WebView/WebView.mm:
921         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
922         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
923         the value YES.
924
925 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
926
927         Unreviewed, rolling out r130556 and r130564.
928         http://trac.webkit.org/changeset/130556
929         http://trac.webkit.org/changeset/130564
930         https://bugs.webkit.org/show_bug.cgi?id=98572
931
932         The patch wasn't reviewed by a reviewer and it is breaking
933         Chromium Windows (Requested by jchaffraix on #webkit).
934
935         * WebCoreSupport/WebSystemInterface.mm:
936         (InitWebCoreSystemInterface):
937
938 2012-10-05  Tim Horton  <timothy_horton@apple.com>
939
940         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
941         https://bugs.webkit.org/show_bug.cgi?id=98565
942         <rdar://problem/12436468>
943
944         Reviewed by Simon Fraser.
945
946         Add wkCGContextDrawsWithCorrectShadowOffsets.
947
948         * WebCoreSupport/WebSystemInterface.mm:
949         (InitWebCoreSystemInterface):
950
951 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
952
953         Allow ports to override text track rendering style
954         https://bugs.webkit.org/show_bug.cgi?id=97800
955         <rdar://problem/12044964>
956
957         Reviewed by Silvia Pfeiffer.
958
959         Add WCSI support for new WKSI caption functions.
960
961         * WebCoreSupport/WebSystemInterface.mm:
962         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
963
964 2012-10-04  Jon Lee  <jonlee@apple.com>
965
966         Add a setting to enable plugin snapshotting
967         https://bugs.webkit.org/show_bug.cgi?id=98319
968         <rdar://problem/12426480>
969
970         Reviewed by Brady Eidson.
971
972         Expose plugInSnapshottingEnabled preference to WebKit clients.
973
974         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
975         * WebView/WebPreferences.mm:
976         (+[WebPreferences initialize]): Setting is turned off by default.
977         (-[WebPreferences plugInSnapshottingEnabled]):
978         (-[WebPreferences setPlugInSnapshottingEnabled:]):
979         * WebView/WebPreferencesPrivate.h:
980         * WebView/WebView.mm:
981         (-[WebView _preferencesChanged:]): Update settings based on preference.
982
983 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
984
985         Turn Compositing on by default in WebKit build
986         https://bugs.webkit.org/show_bug.cgi?id=98315
987
988         Reviewed by Simon Fraser.
989
990         enable -webkit-blend-mode on trunk.
991
992         * Configurations/FeatureDefines.xcconfig:
993
994 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
995
996         Final part of "sync" to "flush" renaming
997         https://bugs.webkit.org/show_bug.cgi?id=98430
998
999         Reviewed by Tim Horton.
1000
1001         Change method names on GraphicsLayer and GraphicsLayerClient that
1002         refer to "sync" to use the term "flush" instead, to be consistent
1003         with the rest of the code.
1004
1005         * WebView/WebView.mm:
1006
1007 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
1008
1009         [WK2] Support all attributes of GeolocationPosition
1010         https://bugs.webkit.org/show_bug.cgi?id=98212
1011
1012         Reviewed by Sam Weinig.
1013
1014         Add an internal constructor for the sake of testing.
1015         A similar API is used on iOS.
1016
1017         * WebView/WebGeolocationPosition.mm:
1018         (-[WebGeolocationPosition initWithGeolocationPosition:]):
1019
1020 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
1021
1022         Standardize on "flush" terminology for compositing layer flushing/syncing
1023         https://bugs.webkit.org/show_bug.cgi?id=98321
1024
1025         Reviewed by Simon Fraser.
1026
1027         Rename compositing-related methods that refer to "syncing" to instead
1028         refer to "flushing".
1029
1030         * WebCoreSupport/WebChromeClient.h:
1031         * WebCoreSupport/WebChromeClient.mm:
1032         (WebChromeClient::scheduleCompositingLayerFlush):
1033         * WebView/WebView.mm:
1034         (-[WebView _flushCompositingChanges]):
1035         (LayerFlushController::flushLayers):
1036         (-[WebView _scheduleCompositingLayerFlush]):
1037         * WebView/WebViewInternal.h:
1038
1039 == Rolled over to ChangeLog-2012-10-02 ==