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