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