.: Adding feature for XHR_TIMEOUT
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
2
3         Conditionalize XHR timeout support
4         https://bugs.webkit.org/show_bug.cgi?id=100356
5
6         Reviewed by Adam Barth.
7
8         Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
9         Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
10
11         * Configurations/FeatureDefines.xcconfig:
12
13 2012-10-24  Timothy Hatcher  <timothy@apple.com>
14
15         Fix a crash seen during the Inspector tests on the WebKit1 bots.
16
17         Reviewed by Filip Pizlo.
18
19         * WebCoreSupport/WebInspectorClient.mm:
20         (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
21         is not the same when the Inspector is docked.
22
23 2012-10-24  Brady Eidson  <beidson@apple.com>
24
25         Add a strategy for loader customization.
26         https://bugs.webkit.org/show_bug.cgi?id=100278
27
28         Reviewed by Alexey Proskuryakov.
29
30         * WebCoreSupport/WebPlatformStrategies.h:
31         (WebPlatformStrategies):
32         * WebCoreSupport/WebPlatformStrategies.mm:
33         (WebPlatformStrategies::createLoaderStrategy):
34
35 2012-10-24  Timothy Hatcher  <timothy@apple.com>
36
37         Make the Inspector WKView/WebView become the first responder when bringToFront is called.
38
39         https://bugs.webkit.org/show_bug.cgi?id=100209
40
41         Reviewed by Joseph Pecoraro.
42
43         * WebCoreSupport/WebInspectorClient.mm:
44         (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
45
46 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
47
48         Add a strategy for shared workers
49         https://bugs.webkit.org/show_bug.cgi?id=100165
50
51         Reviewed by Brady Eidson.
52
53         * WebCoreSupport/WebPlatformStrategies.h:
54         * WebCoreSupport/WebPlatformStrategies.mm:
55         (WebPlatformStrategies::createPasteboardStrategy):
56         (WebPlatformStrategies::createSharedWorkerStrategy):
57         (WebPlatformStrategies::createVisitedLinkStrategy):
58
59 2012-10-24  Eric Carlson  <eric.carlson@apple.com>
60
61         Allow ports to override text track rendering style
62         https://bugs.webkit.org/show_bug.cgi?id=97800
63         <rdar://problem/12044964>
64
65         Reviewed by Maciej Stachowiak.
66
67         * WebCoreSupport/WebSystemInterface.mm:
68         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
69
70 2012-10-23  Dan Bernstein  <mitz@apple.com>
71
72         WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
73         https://bugs.webkit.org/show_bug.cgi?id=100188
74
75         Reviewed by Sam Weinig.
76
77         * WebView/WebView.mm:
78         (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
79         code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
80         default. Changed to refer to that default key by name.
81
82 2012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
83
84         Add support for resolution media query
85         https://bugs.webkit.org/show_bug.cgi?id=99077
86
87         Reviewed by Antti Koivisto.
88
89         Add support for the RESOLUTION_MEDIA_QUERY feature flag.
90
91         * Configurations/FeatureDefines.xcconfig:
92
93 2012-10-21  Andreas Kling  <kling@webkit.org>
94
95         Remove Page::javaScriptURLsAreAllowed setting.
96         <http://webkit.org/b/99944>
97
98         Reviewed by Anders Carlsson.
99
100         * WebKit.order:
101         * WebView/WebView.mm:
102         * WebView/WebViewPrivate.h:
103
104 2012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
105
106         Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
107         https://bugs.webkit.org/show_bug.cgi?id=99804
108
109         Reviewed by Julien Chaffraix.
110
111         CSS3 text related properties will be implemented under this flag,
112         including text decoration, text-align-last, and text-justify.
113
114         * Configurations/FeatureDefines.xcconfig:
115
116 2012-10-18  Pablo Flouret  <pablof@motorola.com>
117
118         Implement css3-conditional's @supports rule
119         https://bugs.webkit.org/show_bug.cgi?id=86146
120
121         Reviewed by Antti Koivisto.
122
123         * Configurations/FeatureDefines.xcconfig:
124             Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
125
126 2012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
127
128         [Mac] Uninitialized Members in WebDataSourcePrivate
129         https://bugs.webkit.org/show_bug.cgi?id=99617
130
131         Reviewed by David Kilzer.
132
133         Initialize BOOL member variables.
134
135         * WebView/WebDataSource.mm:
136         (WebDataSourcePrivate::WebDataSourcePrivate):
137
138 2012-10-17  Mark Rowe  <mrowe@apple.com>
139
140         Fix the build with a newer version of clang.
141
142         Reviewed by Dan Bernstein.
143
144         Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
145         While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
146         with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
147         therefore generates a warning in newer versions of the compiler.
148
149         Fixes <rdar://problem/12503709>.
150
151         * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
152         * Misc/WebCoreStatistics.mm: Ditto.
153         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
154         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
155
156 2012-10-16  Jian Li  <jianli@chromium.org>
157
158         Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
159         https://bugs.webkit.org/show_bug.cgi?id=98975
160
161         Reviewed by Adam Barth.
162
163         Renaming is needed to better match with the draggable region code.
164
165         * Configurations/FeatureDefines.xcconfig:
166
167 2012-10-15  Dan Bernstein  <mitz@apple.com>
168
169         WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
170         https://bugs.webkit.org/show_bug.cgi?id=99113
171
172         Reviewed by Tim Horton.
173
174         * WebCoreSupport/WebSystemInterface.mm:
175         (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
176
177 2012-10-15  David Kilzer  <ddkilzer@apple.com>
178
179         Move framework and library linking into WebKit.xcconfig
180         <http://webkit.org/b/99284>
181
182         Reviewed by Mark Rowe.
183
184         * Configurations/WebKit.xcconfig: Move frameworks and libraries
185         link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
186
187 2012-10-14  Jon Lee  <jonlee@apple.com>
188
189         Allow notification origin permission request when no js callback is provided
190         https://bugs.webkit.org/show_bug.cgi?id=63615
191         <rdar://problem/11059590>
192
193         Reviewed by Sam Weinig.
194
195         Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
196         we do not fall through to calling the standard API's callback if the legacy API's callback is null.
197
198         * WebCoreSupport/WebNotificationClient.mm:
199         (WebCore):
200         (-[WebNotificationPolicyListener initWithVoidCallback:]):
201         (-[WebNotificationPolicyListener allow]):
202         (-[WebNotificationPolicyListener deny]):
203
204 2012-10-14  Sam Weinig  <sam@webkit.org>
205
206         Make UserScript and UserStyleSheet value objects that are copyable
207         https://bugs.webkit.org/show_bug.cgi?id=99275
208
209         Reviewed by Tim Horton.
210
211         * WebView/WebView.mm:
212         (-[WebView _injectMailQuirksScript]):
213         (-[WebView _injectOutlookQuirksScript]):
214         Update for new PageGroup function signatures.
215
216 2012-10-10  Brady Eidson  <beidson@apple.com>
217
218         Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
219         https://bugs.webkit.org/show_bug.cgi?id=98976
220
221         Reviewed by Anders Carlsson.
222
223         * WebView/WebDataSource.mm:
224         (-[WebDataSource data]):
225
226 2012-10-10  Jer Noble  <jer.noble@apple.com>
227
228         Disallow full screen mode keyboard access by default.
229         https://bugs.webkit.org/show_bug.cgi?id=98971
230         <rdar://problem/12474226>
231
232         Reviewed by Sam Weinig.
233
234         Only support full screen if keyboard access is not requested.
235
236         * WebView/WebView.mm:
237         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
238
239 2012-10-10  Jon Lee  <jonlee@apple.com>
240
241         [WK2] Activate plugins when user clicks on snapshot
242         https://bugs.webkit.org/show_bug.cgi?id=98328
243         <rdar://problem/12426681>
244
245         Reviewed by Brady Eidson.
246
247         * WebCoreSupport/WebFrameLoaderClient.h:
248         * WebCoreSupport/WebFrameLoaderClient.mm:
249         (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
250
251 2012-10-10  Brady Eidson  <beidson@apple.com>
252
253         Switch CachedResource over from SharedBuffer to a new ResourceBuffer
254         https://bugs.webkit.org/show_bug.cgi?id=98541
255
256         Reviewed by Anders Carlsson.
257
258         * WebView/WebHTMLView.mm:
259         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
260
261 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
262
263         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
264         https://bugs.webkit.org/show_bug.cgi?id=98839
265
266         Reviewed by Sam Weinig.
267
268         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
269         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
270         but store the computed rect in m_visibleRect.
271         
272         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
273         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
274
275         * WebView/WebFrame.mm:
276         (-[WebFrame _layerTreeAsText]):
277
278 2012-10-09  Jian Li  <jianli@chromium.org>
279
280         Update the CSS property used to support draggable regions.
281         https://bugs.webkit.org/show_bug.cgi?id=97156
282
283         Reviewed by Adam Barth.
284
285         The CSS property to support draggable regions, guarded under
286         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
287         confusion with DASHBOARD_SUPPORT feature.
288
289         Also update the code to use the new name annotatedRegions to work for
290         both features.
291
292         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
293         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
294         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
295         (WebChromeClient::annotatedRegionsChanged):
296         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
297         (-[WebView _dashboardRegions]):
298
299 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
300
301         Unreviewed, rolling out r130811 and r130821.
302         http://trac.webkit.org/changeset/130811
303         http://trac.webkit.org/changeset/130821
304         https://bugs.webkit.org/show_bug.cgi?id=98831
305
306         Broke date-suggestion-picker-appearance-with-scroll-bar.html
307         (Requested by abarth|gardening on #webkit).
308
309         * WebView/WebFullScreenController.mm:
310         (screenRectOfContents):
311         * WebView/WebRenderNode.mm:
312         (copyRenderNode):
313
314 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
315
316         Throttle DOM timers on hidden pages.
317         https://bugs.webkit.org/show_bug.cgi?id=98474
318
319         Reviewed by Maciej Stachowiak.
320
321         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
322         DumpRenderTree to modify the visibility state of a page.  The latter
323         is needed to test throttling of timers on hidden pages through DumpRenderTree.
324
325         * Configurations/FeatureDefines.xcconfig:
326         * WebView/WebView.mm:
327         (-[WebView _setVisibilityState:isInitialState:]):
328         * WebView/WebViewPrivate.h:
329
330 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
331
332         Rename first/second to key/value in HashMap iterators
333         https://bugs.webkit.org/show_bug.cgi?id=82784
334
335         Reviewed by Eric Seidel.
336
337         * History/WebHistory.mm:
338         (-[WebHistoryPrivate removeItemFromDateCaches:]):
339         (-[WebHistoryPrivate orderedLastVisitedDays]):
340         (WebHistoryWriter::WebHistoryWriter):
341         * Misc/WebCoreStatistics.mm:
342         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
343         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
344         * Plugins/Hosted/NetscapePluginHostManager.mm:
345         (WebKit::NetscapePluginHostManager::hostForPlugin):
346         (WebKit::NetscapePluginHostManager::pluginHostDied):
347         (WebKit::NetscapePluginHostManager::didCreateWindow):
348         * Plugins/Hosted/NetscapePluginHostProxy.mm:
349         (WebKit::NetscapePluginHostProxy::pluginHostDied):
350         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
351         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
352         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
353         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
354         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
355         (WebKit::NetscapePluginInstanceProxy::destroy):
356         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
357         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
358         * Plugins/Hosted/ProxyInstance.mm:
359         (WebKit::ProxyInstance::methodNamed):
360         (WebKit::ProxyInstance::fieldNamed):
361         * Plugins/WebNetscapePluginView.mm:
362         (-[WebNetscapePluginView stopTimers]):
363         (-[WebNetscapePluginView startTimers]):
364         * WebCoreSupport/WebNotificationClient.mm:
365         (WebNotificationClient::show):
366         (WebNotificationClient::clearNotifications):
367         (WebNotificationClient::notificationObjectDestroyed):
368         * WebView/WebHTMLView.mm:
369         (commandNameForSelector):
370
371 2012-10-06  Dan Bernstein  <mitz@apple.com>
372
373         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
374         https://bugs.webkit.org/show_bug.cgi?id=98601
375
376         Reviewed by Darin Adler.
377
378         * WebView/WebView.mm:
379         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
380         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
381         the value YES.
382
383 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
384
385         Unreviewed, rolling out r130556 and r130564.
386         http://trac.webkit.org/changeset/130556
387         http://trac.webkit.org/changeset/130564
388         https://bugs.webkit.org/show_bug.cgi?id=98572
389
390         The patch wasn't reviewed by a reviewer and it is breaking
391         Chromium Windows (Requested by jchaffraix on #webkit).
392
393         * WebCoreSupport/WebSystemInterface.mm:
394         (InitWebCoreSystemInterface):
395
396 2012-10-05  Tim Horton  <timothy_horton@apple.com>
397
398         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
399         https://bugs.webkit.org/show_bug.cgi?id=98565
400         <rdar://problem/12436468>
401
402         Reviewed by Simon Fraser.
403
404         Add wkCGContextDrawsWithCorrectShadowOffsets.
405
406         * WebCoreSupport/WebSystemInterface.mm:
407         (InitWebCoreSystemInterface):
408
409 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
410
411         Allow ports to override text track rendering style
412         https://bugs.webkit.org/show_bug.cgi?id=97800
413         <rdar://problem/12044964>
414
415         Reviewed by Silvia Pfeiffer.
416
417         Add WCSI support for new WKSI caption functions.
418
419         * WebCoreSupport/WebSystemInterface.mm:
420         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
421
422 2012-10-04  Jon Lee  <jonlee@apple.com>
423
424         Add a setting to enable plugin snapshotting
425         https://bugs.webkit.org/show_bug.cgi?id=98319
426         <rdar://problem/12426480>
427
428         Reviewed by Brady Eidson.
429
430         Expose plugInSnapshottingEnabled preference to WebKit clients.
431
432         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
433         * WebView/WebPreferences.mm:
434         (+[WebPreferences initialize]): Setting is turned off by default.
435         (-[WebPreferences plugInSnapshottingEnabled]):
436         (-[WebPreferences setPlugInSnapshottingEnabled:]):
437         * WebView/WebPreferencesPrivate.h:
438         * WebView/WebView.mm:
439         (-[WebView _preferencesChanged:]): Update settings based on preference.
440
441 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
442
443         Turn Compositing on by default in WebKit build
444         https://bugs.webkit.org/show_bug.cgi?id=98315
445
446         Reviewed by Simon Fraser.
447
448         enable -webkit-blend-mode on trunk.
449
450         * Configurations/FeatureDefines.xcconfig:
451
452 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
453
454         Final part of "sync" to "flush" renaming
455         https://bugs.webkit.org/show_bug.cgi?id=98430
456
457         Reviewed by Tim Horton.
458
459         Change method names on GraphicsLayer and GraphicsLayerClient that
460         refer to "sync" to use the term "flush" instead, to be consistent
461         with the rest of the code.
462
463         * WebView/WebView.mm:
464
465 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
466
467         [WK2] Support all attributes of GeolocationPosition
468         https://bugs.webkit.org/show_bug.cgi?id=98212
469
470         Reviewed by Sam Weinig.
471
472         Add an internal constructor for the sake of testing.
473         A similar API is used on iOS.
474
475         * WebView/WebGeolocationPosition.mm:
476         (-[WebGeolocationPosition initWithGeolocationPosition:]):
477
478 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
479
480         Standardize on "flush" terminology for compositing layer flushing/syncing
481         https://bugs.webkit.org/show_bug.cgi?id=98321
482
483         Reviewed by Simon Fraser.
484
485         Rename compositing-related methods that refer to "syncing" to instead
486         refer to "flushing".
487
488         * WebCoreSupport/WebChromeClient.h:
489         * WebCoreSupport/WebChromeClient.mm:
490         (WebChromeClient::scheduleCompositingLayerFlush):
491         * WebView/WebView.mm:
492         (-[WebView _flushCompositingChanges]):
493         (LayerFlushController::flushLayers):
494         (-[WebView _scheduleCompositingLayerFlush]):
495         * WebView/WebViewInternal.h:
496
497 == Rolled over to ChangeLog-2012-10-02 ==