Source/WebCore: Use a platform strategy for local storage
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2013-01-22  Anders Carlsson  <andersca@apple.com>
2
3         Use a platforom strategy for local storage
4         https://bugs.webkit.org/show_bug.cgi?id=107600
5
6         Reviewed by Andreas Kling.
7
8         Update for new storage strategy.
9
10         * WebCoreSupport/WebPlatformStrategies.h:
11         (WebPlatformStrategies):
12         * WebCoreSupport/WebPlatformStrategies.mm:
13         (WebPlatformStrategies::createStorageStrategy):
14
15 2013-01-21  Kentaro Hara  <haraken@chromium.org>
16
17         Implement UIEvent constructor
18         https://bugs.webkit.org/show_bug.cgi?id=107430
19
20         Reviewed by Adam Barth.
21
22         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
23
24         UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
25         which is enabled on Safari and Chromium for now.
26
27         * Configurations/FeatureDefines.xcconfig:
28
29 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
30
31         [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
32         https://bugs.webkit.org/show_bug.cgi?id=107230
33
34         Reviewed by David Kilzer.
35
36         * Configurations/FeatureDefines.xcconfig:
37
38 2013-01-22  Tim Horton  <timothy_horton@apple.com>
39
40         PDFPlugin: Build PDFPlugin everywhere, enable at runtime
41         https://bugs.webkit.org/show_bug.cgi?id=107117
42
43         Reviewed by Alexey Proskuryakov.
44
45         Since PDFLayerController SPI is all forward-declared, the plugin should build
46         on all Mac platforms, and can be enabled at runtime.
47
48         * Configurations/FeatureDefines.xcconfig:
49
50 2013-01-21  Dirk Schulze  <dschulze@adobe.com>
51
52         Add build flag for Canvas's Path object (disabled by default)
53         https://bugs.webkit.org/show_bug.cgi?id=107473
54
55         Reviewed by Dean Jackson.
56
57         * Configurations/FeatureDefines.xcconfig:
58
59 2013-01-17  Andy Estes  <aestes@apple.com>
60
61         Add a USE() macro for content filtering code
62         https://bugs.webkit.org/show_bug.cgi?id=107098
63
64         Reviewed by Mark Rowe.
65
66         * WebCoreSupport/WebSystemInterface.mm:
67         (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
68
69 2013-01-19  Philip Rogers  <pdr@google.com>
70
71         Merge SVGStylable into SVGStyledElement
72         https://bugs.webkit.org/show_bug.cgi?id=106877
73
74         SVG2 changes element inheritance so all SVGElements are stylable. As a first-step towards a
75         cleaner class hierarchy, this patch moves SVGStylable into SVGStyledElement.
76
77         Reviewed by Dirk Schulze.
78
79         * MigrateHeaders.make:
80
81 2013-01-18  Seokju Kwon  <seokju.kwon@gmail.com>
82
83         Add explicit keyword to constructors in platform-specific InspectorClient
84         https://bugs.webkit.org/show_bug.cgi?id=107255
85
86         Reviewed by Kentaro Hara.
87
88         Add explicit keyword to constructors that take one argument
89         in platform-specific implementation of InspectorClient.
90
91         * WebCoreSupport/WebInspectorClient.h:
92         (WebInspectorClient):
93
94 2013-01-15  Jer Noble  <jer.noble@apple.com>
95
96         Add a Setting to disable QTKit media engine.
97         https://bugs.webkit.org/show_bug.cgi?id=106972
98
99         Reviewed by Eric Carlson.
100
101         Add WebKit API to set QTKit enabled setting from user defaults.
102
103         * WebView/WebPreferenceKeysPrivate.h:
104         * WebView/WebPreferences.mm:
105         (+[WebPreferences initialize]): Set WebCore settings based on user defaults.
106         (-[WebPreferences setQTKitEnabled:]): Pass through to WebCore.
107         (-[WebPreferences isQTKitEnabled]): Ditto.
108         * WebView/WebPreferencesPrivate.h:
109         * WebView/WebView.mm:
110         (-[WebView _preferencesChanged:]): Synchronize WebKit/WebCore settings.
111
112 2013-01-15  Enrica Casucci  <enrica@apple.com>
113
114         Add a new set of WebKit2 APIs for text search and
115         search results management.
116         https://bugs.webkit.org/show_bug.cgi?id=106834.
117         <rdar://problem/12597159>
118
119         Reviewed by Simon Fraser.
120         
121         Adding new API to perform text search in WebKit2 without using
122         the stock UI. The new interface provides all the information
123         necessary to write a custom UI for search.
124
125         Added new TextWebKitAPI test.
126
127         * WebView/WebHTMLView.mm:
128         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
129         Modified to reflect the changes to Editor::countMatchesForText interface.
130
131 2013-01-10  Zan Dobersek  <zandobersek@gmail.com>
132
133         Remove the ENABLE_ANIMATION_API feature define occurences
134         https://bugs.webkit.org/show_bug.cgi?id=106544
135
136         Reviewed by Simon Fraser.
137
138         The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
139         feature define handling still lingers in various build systems and configurations
140         but is of no use, so it should be removed.
141
142         * Configurations/FeatureDefines.xcconfig:
143
144 2013-01-08  Mark Lam  <mark.lam@apple.com>
145
146         Removed the need for the ProposedDatabase mechanism.
147         https://bugs.webkit.org/show_bug.cgi?id=106292.
148
149         Reviewed by Sam Weinig.
150
151         * WebCoreSupport/WebChromeClient.h:
152         * WebCoreSupport/WebChromeClient.mm:
153         (WebChromeClient::exceededDatabaseQuota):
154
155 2013-01-07  Dan Bernstein  <mitz@apple.com>
156
157         [mac] WebKit1 clients can’t tell when a frame has been removed from the hierarchy
158         https://bugs.webkit.org/show_bug.cgi?id=106261
159
160         Reviewed by Simon Fraser.
161
162         Test: TestWebKitAPI/Tests/mac/WebViewDidRemoveFrameFromHierarchy.mm.
163
164         Added -[WebFrameLoadDelegate webView:didRemoveFrameFromHierarchy:].
165
166         * WebCoreSupport/WebFrameLoaderClient.mm:
167         (WebFrameLoaderClient::detachedFromParent2): Added a call to the new frame load delegate
168         method.
169         * WebView/WebDelegateImplementationCaching.h:
170         (WebFrameLoadDelegateImplementationCache): Added the new method to the cache.
171         * WebView/WebFrameLoadDelegatePrivate.h: Declared the new delegate method.
172         * WebView/WebView.mm:
173         (-[WebView _cacheFrameLoadDelegateImplementations]): Added the new method to the cache.
174
175 2013-01-07  Mike West  <mkwst@chromium.org>
176
177         Make the IFRAME_SEAMLESS flag runtime-enabled.
178         https://bugs.webkit.org/show_bug.cgi?id=106213
179
180         Reviewed by Ojan Vafai.
181
182         * WebView/WebPreferenceKeysPrivate.h:
183         * WebView/WebPreferences.mm:
184         (-[WebPreferences seamlessIFramesEnabled]):
185         (-[WebPreferences setSeamlessIFramesEnabled:]):
186         * WebView/WebPreferencesPrivate.h:
187         * WebView/WebView.mm:
188         (-[WebView _preferencesChanged:]):
189             Add a seamless IFrame preference to WebPreferences, and use it to
190             toggle the runtime state of the feature as appropriate.
191
192 2013-01-04  Adam Klein  <adamk@chromium.org>
193
194         Remove ENABLE_MUTATION_OBSERVERS #define
195         https://bugs.webkit.org/show_bug.cgi?id=105459
196
197         Reviewed by Ryosuke Niwa.
198
199         * Configurations/FeatureDefines.xcconfig:
200
201 2013-01-01  Dan Bernstein  <mitz@apple.com>
202
203         <rdar://problem/12942239> Update copyright strings
204
205         Reviewed by Sam Weinig.
206
207         * Info.plist:
208
209 2012-12-29  Adam Roben  <aroben@webkit.org>
210
211         Web Inspector: Mac WK1 Inspector can't save/load timeline data
212         https://bugs.webkit.org/show_bug.cgi?id=105547
213
214         Reviewed by Pavel Feldman.
215
216         * WebCoreSupport/WebInspectorClient.h: Declared new overrides and
217         member variables necessary for save support.
218
219         * WebCoreSupport/WebInspectorClient.mm:
220         (WebInspectorFrontendClient::save):
221         (WebInspectorFrontendClient::append):
222         Implemented these to make saving timeline data work. (It seems to me
223         the InspectorFrontendClient API could be cleaned up a bit. I had to
224         look at Chromium source code to determine that I needed to call back
225         into the InspectorFrontendAPI JS object after saving/appending, and
226         that I needed to keep a map of passed URLs -> chosen URLs.)
227
228         (-[WebInspectorWindowController window:willPositionSheet:usingRect:]):
229         Tweaked the position of the sheet so that open/save sheets look a
230         little bette.r
231
232         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
233         Implemented to make loading timeline data work.
234
235 2012-12-28  Mark Rowe  <mrowe@apple.com>
236
237         Move logic for extracting the OS X marketing version in to WebCore
238         <http://webkit.org/b/105841> / <rdar://problem/10736041>
239
240         Reviewed by Dan Bernstein.
241
242         * WebCoreSupport/WebSystemInterface.mm:
243         (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
244         * WebView/WebView.mm:
245         (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function.
246         (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't
247         do that for us.
248
249 2012-12-27  Sam Weinig  <sam@webkit.org>
250
251         Attempt to fix the tests.
252
253         * WebView/WebPreferences.mm:
254         (+[WebPreferences initialize]):
255
256 2012-12-23  Alexey Proskuryakov  <ap@apple.com>
257
258         <rdar://problem/12808377> Network process should respect cookie accept policy
259         https://bugs.webkit.org/show_bug.cgi?id=105684
260
261         Reviewed by Sam Weinig.
262
263         * WebCoreSupport/WebPlatformStrategies.h:
264         * WebCoreSupport/WebPlatformStrategies.mm:
265         CookiesStrategy no longer has notifyCookiesChanged().
266
267 2012-12-22  Alexey Proskuryakov  <ap@apple.com>
268
269         Add a separate class for networking related storage
270         https://bugs.webkit.org/show_bug.cgi?id=105676
271
272         Reviewed by Sam Weinig.
273
274         * WebCoreSupport/WebFrameLoaderClient.mm:
275         Updated for ResourceHandle include changes.
276
277         * WebCoreSupport/WebFrameNetworkingContext.h:
278         * WebCoreSupport/WebFrameNetworkingContext.mm:
279         This class is now simpler, with more session tracking being in WebCore now.
280
281         * WebCoreSupport/WebPlatformStrategies.h:
282         * WebCoreSupport/WebPlatformStrategies.mm:
283         (WebPlatformStrategies::cookiesForDOM):
284         (WebPlatformStrategies::setCookiesFromDOM):
285         (WebPlatformStrategies::cookiesEnabled):
286         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
287         (WebPlatformStrategies::getRawCookies):
288         (WebPlatformStrategies::deleteCookie):
289         We no longer need a function for default cookie storage! Other cookie functions
290         now take a session.
291
292         * WebView/WebPreferences.mm:
293         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Initialize WCSI before
294         calling a WebCore that uses it.
295         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Use
296         NetworkStorageSession for session tracking.
297
298         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated for networking
299         context now returning a class for session.
300
301 2012-12-20  Ilya Tikhonovsky  <loislo@chromium.org>
302
303         Unreviewed build fix for chromium mac after r138206.
304
305         * WebCoreSupport/WebSystemInterface.mm:
306         (InitWebCoreSystemInterface):
307
308 2012-12-19  Alexey Proskuryakov  <ap@apple.com>
309
310         <rdar://problem/12890242> [WK2 NetworkProcess] Client doesn't receive SSL certificates
311         https://bugs.webkit.org/show_bug.cgi?id=105467
312
313         Reviewed by Brady Eidson.
314
315         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize
316         a WKSI function we've been missing.
317
318 2012-12-19  Alexis Menard  <alexis@webkit.org>
319
320         Implement CSS parsing for CSS transitions unprefixed.
321         https://bugs.webkit.org/show_bug.cgi?id=104804
322
323         Reviewed by Dean Jackson.
324
325         Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
326         to cover the work of unprefixing Transforms, Animations and 
327         Transitions. It will let the possibility of each ports to turn it off 
328         in their release branches until we're confident that these CSS 
329         properties are ready to be unprefixed.
330
331         * Configurations/FeatureDefines.xcconfig:
332
333 2012-12-18  Alexey Proskuryakov  <ap@apple.com>
334
335         Remove unnecessary functions from CookiesStrategy
336         https://bugs.webkit.org/show_bug.cgi?id=105369
337
338         Reviewed by Brady Eidson.
339
340         * WebCoreSupport/WebPlatformStrategies.h:
341         * WebCoreSupport/WebPlatformStrategies.mm:
342
343 2012-12-18  Alice Liu  <alice.liu@apple.com>
344
345         Add SPI to WebKit1 WebFrame for hit testing
346         https://bugs.webkit.org/show_bug.cgi?id=105106
347
348         Reviewed by Dan Bernstein.
349
350         * WebView/WebFrame.mm:
351         (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing.
352         Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary. 
353         * WebView/WebFramePrivate.h:
354
355 2012-12-18  Alice Liu  <alice.liu@apple.com>
356
357         Add SPI to WebKit1 WebFrame for node conversion to JSValueRef
358         https://bugs.webkit.org/show_bug.cgi?id=105262
359
360         Reviewed by Anders Carlsson.
361
362         * WebView/WebFrame.mm:
363         (-[WebFrame jsWrapper:forWorld:]): Added. Takes a DOMNode and WebScriptWorld and provides a JSValueRef
364         for the WebCore::Node in that particular WebScriptWorld.
365         * WebView/WebFramePrivate.h:
366
367 2012-12-18  Beth Dakin  <bdakin@apple.com>
368
369         https://bugs.webkit.org/show_bug.cgi?id=102579
370         [mac] Enable scaled cursors
371
372         Reviewed by Dean Jackson.
373
374         * Configurations/FeatureDefines.xcconfig:
375
376 2012-12-16  Levi Weintraub  <leviw@chromium.org>
377
378         Push pixel snapping logic into TransformState
379         https://bugs.webkit.org/show_bug.cgi?id=101779
380
381         Reviewed by Simon Fraser.
382
383         * WebView/WebFullScreenController.mm:
384         (screenRectOfContents): Removed SnapOffsetForTransforms as it's no longer needed.
385
386 2012-12-15  Anders Carlsson  <andersca@apple.com>
387
388         Rename FrameLoaderClient::download to convertMainResourceLoadToDownload
389         https://bugs.webkit.org/show_bug.cgi?id=105122
390
391         Reviewed by Andreas Kling.
392
393         Update for WebCore changes.
394
395         * WebCoreSupport/WebFrameLoaderClient.h:
396         (WebFrameLoaderClient):
397         * WebCoreSupport/WebFrameLoaderClient.mm:
398         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
399
400 2012-12-15  Mark Lam  <mark.lam@apple.com>
401
402         Re-landing patch for "Introducing the DatabaseStrategy and database servers".
403         https://bugs.webkit.org/show_bug.cgi?id=104934.
404
405         Not reviewed.
406
407         Merged from r137767. Previously reviewed by Sam Weinig.
408
409         * WebCoreSupport/WebPlatformStrategies.h:
410         (WebPlatformStrategies):
411         * WebCoreSupport/WebPlatformStrategies.mm:
412         (WebPlatformStrategies::createDatabaseStrategy):
413
414 2012-12-14  Mark Lam  <mark.lam@apple.com>
415
416         The WebView should initialize the platform strategies before initializing other sub-systems.
417         https://bugs.webkit.org/show_bug.cgi?id=105083.
418
419         Reviewed by Alexey Proskuryakov.
420
421         * WebView/WebView.mm:
422         (-[WebView _commonInitializationWithFrameName:groupName:]):
423
424 2012-12-14  Sheriff Bot  <webkit.review.bot@gmail.com>
425
426         Unreviewed, rolling out r137767.
427         http://trac.webkit.org/changeset/137767
428         https://bugs.webkit.org/show_bug.cgi?id=105062
429
430         Broke Mac builds. (Requested by mlam on #webkit).
431
432         * WebCoreSupport/WebPlatformStrategies.h:
433         (WebPlatformStrategies):
434         * WebCoreSupport/WebPlatformStrategies.mm:
435
436 2012-12-14  Mark Lam  <mark.lam@apple.com>
437
438         Introducing the DatabaseStrategy and database servers.
439         https://bugs.webkit.org/show_bug.cgi?id=104934.
440
441         Reviewed by Sam Weinig.
442
443         The database server is currently a placeholder that does nothing.
444
445         * WebCoreSupport/WebPlatformStrategies.h:
446         (WebPlatformStrategies):
447         * WebCoreSupport/WebPlatformStrategies.mm:
448         (WebPlatformStrategies::createDatabaseStrategy):
449
450 2012-12-13  Alexey Proskuryakov  <ap@apple.com>
451
452         <rdar://problem/12838354> Per-Tab WebProcess: DOM cookie access functions should respect private browsing
453         https://bugs.webkit.org/show_bug.cgi?id=104691
454
455         Reviewed by Sam Weinig.
456
457         * WebCoreSupport/WebFrameNetworkingContext.h:
458         * WebCoreSupport/WebFrameNetworkingContext.mm:
459         (WebFrameNetworkingContext::inPrivateBrowsingMode):
460         (WebFrameNetworkingContext::storageSession):
461         Implemented inPrivateBrowsingMode().
462
463 2012-12-12  Mark Lam  <mark.lam@apple.com>
464
465         Encapsulate externally used webdatabase APIs in DatabaseManager.
466         https://bugs.webkit.org/show_bug.cgi?id=104741.
467
468         Reviewed by Sam Weinig.
469
470         Use DatabaseManager instead of accessing DatabaseTracker, AbstractDatabase,
471         and DatabaseContext directly. This is to prepare for upcoming webkit2
472         refactoring.
473
474         * Storage/WebDatabaseManager.mm:
475         (-[WebDatabaseManager origins]):
476         (-[WebDatabaseManager databasesWithOrigin:]):
477         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
478         (-[WebDatabaseManager deleteAllDatabases]):
479         (-[WebDatabaseManager deleteOrigin:]):
480         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
481         (WebKitInitializeDatabasesIfNecessary):
482         * Storage/WebDatabaseManagerClient.h: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.h.
483         (WebDatabaseManagerClient):
484         * Storage/WebDatabaseManagerClient.mm: Copied from Source/WebKit/mac/Storage/WebDatabaseTrackerClient.mm.
485         (WebDatabaseManagerClient::sharedWebDatabaseManagerClient):
486         (WebDatabaseManagerClient::WebDatabaseManagerClient):
487         (WebDatabaseManagerClient::~WebDatabaseManagerClient):
488         (DidModifyOriginData::dispatchToMainThread):
489         (DidModifyOriginData::DidModifyOriginData):
490         (DidModifyOriginData):
491         (WebDatabaseManagerClient::dispatchDidModifyOrigin):
492         (WebDatabaseManagerClient::dispatchDidModifyDatabase):
493         * Storage/WebDatabaseQuotaManager.mm:
494         (-[WebDatabaseQuotaManager usage]):
495         (-[WebDatabaseQuotaManager quota]):
496         (-[WebDatabaseQuotaManager setQuota:]):
497         * Storage/WebDatabaseTrackerClient.h: Removed.
498         * Storage/WebDatabaseTrackerClient.mm: Removed.
499         * WebCoreSupport/WebSecurityOrigin.mm:
500         (-[WebSecurityOrigin usage]):
501         (-[WebSecurityOrigin quota]):
502         (-[WebSecurityOrigin setQuota:]):
503         * WebKit.order:
504         * WebView/WebFrame.mm:
505         (-[WebFrame _cacheabilityDictionary]):
506         * WebView/WebView.mm:
507         (-[WebView _preferencesChanged:]):
508
509 2012-12-12  Alexey Proskuryakov  <ap@apple.com>
510
511         Make LOG() work in WebProcess and NetworkProcess
512         https://bugs.webkit.org/show_bug.cgi?id=104718
513
514         Reviewed by Tim Horton.
515
516         * WebView/WebView.mm: Use WebCore/InitializeLogging.h to avoid conflicts between
517         WebCore and WebKit versions of this file.
518
519 2012-12-11  Mike West  <mkwst@chromium.org>
520
521         Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector.
522         https://bugs.webkit.org/show_bug.cgi?id=66371
523
524         Reviewed by Pavel Feldman.
525
526         Drops WebCore::MessageType from the addMessageToConsole method.
527
528         * WebCoreSupport/WebChromeClient.h:
529         (WebChromeClient):
530         * WebCoreSupport/WebChromeClient.mm:
531         (WebChromeClient::addMessageToConsole):
532
533 2012-12-09  Antti Koivisto  <antti@apple.com>
534
535         Factor node traversal into standalone functions
536         https://bugs.webkit.org/show_bug.cgi?id=104507
537
538         Reviewed by Eric Seidel.
539     
540         * WebView/WebHTMLRepresentation.mm:
541         (searchForLabelsBeforeElement):
542
543 2012-12-10  Alexis Menard  <alexis@webkit.org>
544
545         [CSS3 Backgrounds and Borders] Remove CSS3_BACKGROUND feature flag.
546         https://bugs.webkit.org/show_bug.cgi?id=104539
547
548         Reviewed by Antonio Gomes.
549
550         As discussed on webkit-dev it is not needed to keep this feature flag 
551         as support for <position> type is a small feature that is already 
552         implemented by three other UAs. It was useful while landing this 
553         feature as partial bits were landed one after one.
554
555         * Configurations/FeatureDefines.xcconfig:
556
557 2012-12-06  Rick Byers  <rbyers@chromium.org>
558
559         CSS cursor property should support webkit-image-set
560         https://bugs.webkit.org/show_bug.cgi?id=99493
561
562         Reviewed by Beth Dakin.
563
564         Add ENABLE_MOUSE_CURSOR_SCALE - disabled by default.
565
566         * Configurations/FeatureDefines.xcconfig:
567
568 2012-12-03  Yury Semikhatsky  <yurys@chromium.org>
569
570         Unreviewed. Fix Mac compilation after r136448.
571
572         * WebCoreSupport/WebChromeClient.mm:
573         (stringForMessageType):
574
575 2012-12-03  Alexis Menard  <alexis@webkit.org>
576
577         [Mac] Enable CSS3 background-position offset by default.
578         https://bugs.webkit.org/show_bug.cgi?id=103905
579
580         Reviewed by Simon Fraser.
581
582         Turn the flag on by default.
583
584         * Configurations/FeatureDefines.xcconfig:
585
586 2012-12-02  Yongjun Zhang  <yongjun_zhang@apple.com>
587
588         Need a method to close all idle localstorage databases immediately.
589         https://bugs.webkit.org/show_bug.cgi?id=103469
590
591         Reviewed by David Kilzer.
592
593         Add a new method to WebStorageManager that we can call to close all
594         idle local storage databases.
595
596         * Storage/WebStorageManager.mm:
597         (+[WebStorageManager closeIdleLocalStorageDatabases]):
598         * Storage/WebStorageManagerPrivate.h:
599
600 2012-11-30  Mihai Maerean  <mmaerean@adobe.com>
601
602         [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled
603         https://bugs.webkit.org/show_bug.cgi?id=101192
604
605         Reviewed by Hajime Morita.
606
607         Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures.
608
609         Tests: No new tests because there is no functional change.
610
611         * WebView/WebView.mm:
612         (-[WebView _preferencesChanged:]):
613
614 2012-11-29  Rafael Weinstein  <rafaelw@chromium.org>
615
616         [HTMLTemplateElement] Add feature flag
617         https://bugs.webkit.org/show_bug.cgi?id=103694
618
619         Reviewed by Adam Barth.
620
621         This flag will guard the implementation of the HTMLTemplateElement.
622         http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
623
624         * Configurations/FeatureDefines.xcconfig:
625
626 2012-11-29  Alexey Proskuryakov  <ap@apple.com>
627
628         [WK2] Forward cookie jar calls to NetworkProcess
629         https://bugs.webkit.org/show_bug.cgi?id=103457
630
631         Reviewed by Darin Adler.
632
633         * WebCoreSupport/WebPlatformStrategies.h:
634         (WebPlatformStrategies):
635         * WebCoreSupport/WebPlatformStrategies.mm:
636         (WebPlatformStrategies::cookiesForDOM):
637         (WebPlatformStrategies::setCookiesFromDOM):
638         (WebPlatformStrategies::cookiesEnabled):
639         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
640         (WebPlatformStrategies::getRawCookies):
641         (WebPlatformStrategies::deleteCookie):
642         (WebPlatformStrategies::getHostnamesWithCookies):
643         (WebPlatformStrategies::deleteCookiesForHostname):
644         (WebPlatformStrategies::deleteAllCookies):
645         (WebPlatformStrategies::getPluginInfo):
646         (WebPlatformStrategies::bufferForType):
647         WebKit1 strategy just uses PlatformCookieJar.
648
649 2012-11-28  Beth Dakin  <bdakin@apple.com>
650
651         https://bugs.webkit.org/show_bug.cgi?id=102970
652         [WK1] REGRESSION (r129545): Main frame doesn't rubberband unless 
653         WebFrameLoadDelegate implements -webView:didFirstLayoutInFrame:
654
655         Reviewed by Sam Weinig.
656
657         We should always register for DidFirstLayout in WK1 since we do work 
658         at that time besides just calling the delegate function.
659         * WebView/WebView.mm:
660         (-[WebView _cacheFrameLoadDelegateImplementations]):
661
662 2012-11-27  Michael Saboff  <msaboff@apple.com>
663
664         TextIterator unnecessarily converts 8 bit strings to 16 bits
665         https://bugs.webkit.org/show_bug.cgi?id=103295
666
667         Reviewed by Brent Fulgham.
668
669         Updated _stringForRange to use plainText() instead of removed plainTextToMallocAllocatedBuffer().
670
671         * WebView/WebFrame.mm:
672         (-[WebFrame _stringForRange:]):
673
674 2012-11-27  James Simonsen  <simonjam@chromium.org>
675
676         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
677         https://bugs.webkit.org/show_bug.cgi?id=102151
678
679         Reviewed by Adam Barth.
680
681         * Plugins/WebPluginController.mm:
682         * WebView/WebFrame.mm:
683         (-[WebFrame loadRequest:]):
684         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
685
686 2012-11-27  Pratik Solanki  <psolanki@apple.com>
687
688         objc/objc-runtime.h does not exist on all PLATFORM(MAC)
689         https://bugs.webkit.org/show_bug.cgi?id=101780
690
691         Reviewed by Brent Fulgham.
692
693         Clean up header includes so we don't include objc/objc-runtime.h.
694
695         * Carbon/HIWebView.mm:
696         (UpdateCommandStatus): Use wtfObjcMsgSend template instead of objc_msgSend.
697         * Plugins/WebNetscapePluginView.mm:
698         * Plugins/WebPluginContainerCheck.mm:
699         (-[WebPluginContainerCheck _continueWithPolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
700         * Plugins/WebPluginController.mm:
701         * WebCoreSupport/WebCachedFramePlatformData.h:
702         * WebCoreSupport/WebDeviceOrientationClient.mm:
703         * WebView/WebDelegateImplementationCaching.mm:
704         * WebView/WebHTMLView.mm:
705         * WebView/WebPDFDocumentExtras.mm:
706         * WebView/WebPolicyDelegate.mm:
707         (-[WebPolicyDecisionListener _usePolicy:]): Use wtfObjcMsgSend template instead of objc_msgSend.
708         * WebView/WebView.mm:
709
710 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
711
712         Unreviewed, rolling out r135786.
713         http://trac.webkit.org/changeset/135786
714         https://bugs.webkit.org/show_bug.cgi?id=103379
715
716         It made 3 plugin tests timeout on several platforms (Requested
717         by Ossy on #webkit).
718
719         * Plugins/WebPluginController.mm:
720         * WebView/WebFrame.mm:
721         (-[WebFrame loadRequest:]):
722         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
723
724 2012-11-26  James Simonsen  <simonjam@chromium.org>
725
726         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
727         https://bugs.webkit.org/show_bug.cgi?id=102151
728
729         Reviewed by Adam Barth.
730
731         * Plugins/WebPluginController.mm:
732         * WebView/WebFrame.mm:
733         (-[WebFrame loadRequest:]):
734         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
735
736 2012-11-23  Alexis Menard  <alexis@webkit.org>
737
738         [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
739         https://bugs.webkit.org/show_bug.cgi?id=102104
740
741         Reviewed by Julien Chaffraix.
742
743         Protect the new feature behind a feature flag.
744
745         * Configurations/FeatureDefines.xcconfig:
746
747 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
748
749         Disambiguate innerNodeFramePoint and mainFramePoint
750         https://bugs.webkit.org/show_bug.cgi?id=98139
751
752         Reviewed by Julien Chaffraix.
753
754         Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
755
756         * WebCoreSupport/WebContextMenuClient.mm:
757         (WebContextMenuClient::showContextMenu):
758
759 2012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
760
761         Unreviewed, rolling out r135295.
762         http://trac.webkit.org/changeset/135295
763         https://bugs.webkit.org/show_bug.cgi?id=102834
764
765         This patch causes assertion to some layout tests on chromium
766         (Requested by jianli on #webkit).
767
768         * Plugins/WebPluginController.mm:
769         * WebView/WebFrame.mm:
770         (-[WebFrame loadRequest:]):
771         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
772
773 2012-11-20  James Simonsen  <simonjam@chromium.org>
774
775         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
776         https://bugs.webkit.org/show_bug.cgi?id=102151
777
778         Reviewed by Adam Barth.
779
780         * Plugins/WebPluginController.mm:
781         * WebView/WebFrame.mm:
782         (-[WebFrame loadRequest:]):
783         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
784
785 2012-11-19  Kihong Kwon  <kihong.kwon@samsung.com>
786
787         Add PROXIMITY_EVENTS feature
788         https://bugs.webkit.org/show_bug.cgi?id=102658
789
790         Reviewed by Kentaro Hara.
791
792         Add PROXIMITY_EVENTS feature to xcode project for WebKit.
793
794         * Configurations/FeatureDefines.xcconfig:
795
796 2012-11-16  Tony Chang  <tony@chromium.org>
797
798         Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
799         https://bugs.webkit.org/show_bug.cgi?id=102554
800
801         Reviewed by Andreas Kling.
802
803         As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
804         we're going to revist this feature once additional vendor support is
805         achieved.
806
807         * Configurations/FeatureDefines.xcconfig:
808
809 2012-11-15  Alexey Proskuryakov  <ap@apple.com>
810
811         Private Browsing is a per-page setting that sets a global value
812         https://bugs.webkit.org/show_bug.cgi?id=67870
813
814         Reviewed by Sam Weinig.
815
816         * WebCoreSupport/WebFrameNetworkingContext.h:
817         * WebCoreSupport/WebFrameNetworkingContext.mm:
818         Moved functions for managing global sessions from WebCore.
819
820         * WebCoreSupport/WebPlatformStrategies.h:
821         * WebCoreSupport/WebPlatformStrategies.mm:
822         (WebPlatformStrategies::defaultCookieStorage): Added. Uses WebFrameNetworkingContext
823         to reach the storage.
824
825         * WebView/WebPreferences.mm:
826         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Ditto.
827         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Ditto.
828
829         * WebView/WebPreferencesPrivate.h: Added a comment explaining that two functions
830         are not generic enough for use outside DRT (one of them had "testing" in name,
831         but another did not).
832
833         * WebView/WebView.mm:
834         (-[WebView _preferencesChanged:]): Create a global private browsing session when
835         the first view with private browsing is created, delete it when any window with
836         it disabled is created (since this comes from preferences, it applies to all
837         views equally, even though we are dealing with a single one here).
838         (-[WebView _cachedResponseForURL:]): Use main frame's networking context instead of
839         a global one.
840
841 2012-11-13  Timothy Hatcher  <timothy@apple.com>
842
843         Adjust the Web Inspector window title frame if needed to prevent it from intersecting the dock button.
844
845         https://bugs.webkit.org/show_bug.cgi?id=102073
846
847         Reviewed by Joseph Pecoraro.
848
849         * WebCoreSupport/WebInspectorClient.mm:
850         (-[WebInspectorWindow _customTitleFrame]): Added. Adjust the title frame.
851
852 2012-11-12  Simon Fraser  <simon.fraser@apple.com>
853
854         Build fix after r134346 and 134347.
855         
856         Use frameView.isFlipped, not frameView.flipped in the assertion.
857
858         * WebCoreSupport/WebInspectorClient.mm:
859         (-[WebInspectorWindowController window]):
860
861 2012-11-12  Timothy Hatcher  <timothy@apple.com>
862
863         Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
864
865         https://bugs.webkit.org/show_bug.cgi?id=102025
866
867         Reviewed by Joseph Pecoraro.
868
869         * Resources/Dock.pdf: Added.
870         * WebCoreSupport/WebInspectorClient.h:
871         * WebCoreSupport/WebInspectorClient.mm:
872         (-[WebInspectorWindow _cursorForResizeDirection:]): Added.
873         (WebInspectorClient::didResizeMainFrame): Call attachAvailabilityChanged instead.
874         (WebInspectorFrontendClient::attachAvailabilityChanged): Added.
875         (-[WebInspectorWindowController window]): Create the dock button and add it.
876         (-[WebInspectorWindowController attachWindow:]): Added.
877         (-[WebInspectorWindowController attach]): Call setAttachedWindow.
878         (-[WebInspectorWindowController detach]): Ditto.
879         (-[WebInspectorWindowController setDockingUnavailable:]): Added. Update hidden state of the dock button.
880
881 2012-11-08  Timothy Hatcher  <timothy@apple.com>
882
883         Always use a textured window for the Web Inspector.
884
885         https://bugs.webkit.org/show_bug.cgi?id=101693
886
887         Reviewed by Joseph Pecoraro.
888
889         * WebCoreSupport/WebInspectorClient.mm:
890         (-[WebInspectorWindowController window]): Removed the conditional for a textured window.
891
892 2012-11-08  Roger Fong  <roger_fong@apple.com>
893
894         Null check URL key entries into WebHistory hash table. 
895         https://bugs.webkit.org/show_bug.cgi?id=101664
896         <rdar://problem/12440852>
897
898         Reviewed by Brady Eidson.
899         
900         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.
901         This prevents the desired page navigation from taking effect. This is a workaround for the problem.
902         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
903         so that navigation can continue as expected.
904
905         * History/WebHistory.mm:
906         (-[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:]):
907
908 2012-11-07  Andreas Kling  <akling@apple.com>
909
910         Remove build-webkit dependency on Java SDK for Apple Mac WebKit.
911         <http://webkit.org/b/101492>
912
913         Reviewed by Anders Carlsson.
914
915         * Plugins/WebJavaPlugIn.h: Removed.
916
917 2012-11-06  Adam Barth  <abarth@webkit.org>
918
919         Unreviewed attempt to fix the chromium-mac build.
920
921         * WebCoreSupport/WebSystemInterface.mm:
922         (InitWebCoreSystemInterface):
923
924 2012-11-06  Anders Carlsson  <andersca@apple.com>
925
926         Update Java related WKSI function names
927         https://bugs.webkit.org/show_bug.cgi?id=101414
928
929         Reviewed by Sam Weinig.
930
931         * WebCoreSupport/WebChromeClient.mm:
932         (WebChromeClient::unavailablePluginButtonClicked):
933         * WebCoreSupport/WebFrameLoaderClient.mm:
934         (isPlugInInactive):
935
936 2012-11-06  Alexey Proskuryakov  <ap@apple.com>
937
938         Clean up which storage cookie jar functions use
939         https://bugs.webkit.org/show_bug.cgi?id=101395
940
941         Reviewed by Brady Eidson.
942
943         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated for
944         two new functions.
945
946 2012-11-06  Andrey Lushnikov  <lushnikov@google.com>
947
948         Added console.clear() method
949
950         Web Inspector: add console.clear()
951         https://bugs.webkit.org/show_bug.cgi?id=101021
952
953         Reviewed by Vsevolod Vlasov.
954
955         * WebCoreSupport/WebChromeClient.mm:
956         (stringForMessageType): Added ClearMessageType case to switch
957
958 2012-11-05  Alexey Proskuryakov  <ap@apple.com>
959
960         Get rid of setCookieStoragePrivateBrowsingEnabled.
961         https://bugs.webkit.org/show_bug.cgi?id=101247
962
963         Reviewed by Brady Eidson.
964
965         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): We no longer
966         have this function.
967
968 2012-11-03  Alexey Proskuryakov  <ap@apple.com>
969
970         Get rid of USE(CFURLSTORAGESESSIONS)
971         https://bugs.webkit.org/show_bug.cgi?id=101131
972
973         Reviewed by Sam Weinig.
974
975         * WebView/WebPreferences.mm:
976         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
977         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
978         * WebView/WebView.mm:
979         (-[WebView _cachedResponseForURL:]):
980
981 2012-11-02  Anders Carlsson  <andersca@apple.com>
982
983         Don't instantiate the Java plug-in if it's inactive
984         https://bugs.webkit.org/show_bug.cgi?id=101102
985         <rdar://problem/12595679>
986
987         Reviewed by Andreas Kling.
988
989         * WebCoreSupport/WebChromeClient.mm:
990         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
991         The RenderEmbeddedObject::PluginInactive reason should always result in a button being shown.
992
993         (WebChromeClient::unavailablePluginButtonClicked):
994         If the Java plug-in is inactive, call WKJLReportWebComponentsUsed() to reactivate the plug-in and
995         then reload the page.
996
997         * WebCoreSupport/WebFrameLoaderClient.mm:
998         (isOracleJavaPlugIn):
999         (isPlugInInactive):
1000         Helper functions.
1001
1002         (WebFrameLoaderClient::createPlugin):
1003         If the plug-in is inactive, set the appropriate unavailability reason on the renderer.
1004
1005 2012-11-02  Simon Fraser  <simon.fraser@apple.com>
1006
1007         Enable SUBPIXEL_LAYOUT on Mac
1008         https://bugs.webkit.org/show_bug.cgi?id=101076
1009
1010         Reviewed by Dave Hyatt.
1011
1012         Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES.
1013
1014         * Configurations/FeatureDefines.xcconfig:
1015
1016 2012-11-02  Adam Barth  <abarth@webkit.org>
1017
1018         ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development
1019         https://bugs.webkit.org/show_bug.cgi?id=100711
1020
1021         Reviewed by Eric Seidel.
1022
1023         * Configurations/FeatureDefines.xcconfig:
1024
1025 2012-11-01  Adam Roben  <aroben@webkit.org>
1026
1027         [WK1] Fixed-position elements jiggle up and down slightly during scrolling on a Retina display
1028         https://bugs.webkit.org/show_bug.cgi?id=100957
1029
1030         Reviewed by Simon Fraser.
1031
1032         WebCore doesn't yet support subpixel scrolling. WebKit2 forces
1033         scrolling to always be integral. Now WebKit1 forces this as well.
1034
1035         I'm not sure how to write a test for this.
1036
1037         * WebView/WebDynamicScrollBarsView.mm:
1038         (shouldRoundScrollOrigin): Returns YES if there are any position:fixed
1039         or position:sticky elements in the page.
1040         (-[WebDynamicScrollBarsView scrollClipView:toPoint:]): Round the
1041         scroll origin to the nearest pixel if needed.
1042
1043 2012-10-31  Anders Carlsson  <andersca@apple.com>
1044
1045         Fix build.
1046         <rdar://problem/12612207>.
1047
1048         Reviewed by Sam Weinig.
1049
1050         * Panels/WebAuthenticationPanel.m:
1051         (-[WebAuthenticationPanel loadNib]):
1052
1053 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
1054
1055         [Mac] Sync up FeatureDefine Configuration Files
1056         https://bugs.webkit.org/show_bug.cgi?id=100171
1057
1058         Reviewed by David Kilzer.
1059
1060         Follow up to better coordinate with iOS feature defines. Make:
1061
1062           - ENABLE_FILTERS always on
1063           - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values
1064
1065         * Configurations/FeatureDefines.xcconfig:
1066
1067 2012-10-30  Joseph Pecoraro  <pecoraro@apple.com>
1068
1069         [Mac] Sync up FeatureDefine Configuration Files
1070         https://bugs.webkit.org/show_bug.cgi?id=100171
1071
1072         Reviewed by David Kilzer.
1073
1074         Ensure an identical FeatureDefine files across all projects. Changes:
1075
1076           - ENABLE_CSS_BOX_DECORATION_BREAK should be in all
1077           - ENABLE_PDFKIT_PLUGIN should be in all
1078           - ENABLE_RESOLUTION_MEDIA_QUERY should be in all
1079           - ENABLE_ENCRYPTED_MEDIA should be in all
1080           - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value
1081           - Some alphabetical ordering cleanup
1082
1083         * Configurations/FeatureDefines.xcconfig:
1084
1085 2012-10-29  Anders Carlsson  <andersca@apple.com>
1086
1087         Build WebKit as C++11 on Mac
1088         https://bugs.webkit.org/show_bug.cgi?id=100720
1089
1090         Reviewed by Daniel Bates.
1091
1092         * Configurations/Base.xcconfig:
1093         Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
1094
1095         * History/WebBackForwardList.mm:
1096         (-[WebBackForwardList description]):
1097         * History/WebHistoryItem.mm:
1098         (-[WebHistoryItem description]):
1099         Add static_casts to prevent implicit type conversions in non-constant initializer lists.
1100
1101 2012-10-28  Mark Rowe  <mrowe@apple.com>
1102
1103         Simplify Xcode configuration settings that used to vary between OS versions.
1104
1105         Reviewed by Dan Bernstein.
1106
1107         * Configurations/Base.xcconfig:
1108         * Configurations/DebugRelease.xcconfig:
1109         * Configurations/WebKit.xcconfig:
1110
1111 2012-10-28  Mark Rowe  <mrowe@apple.com>
1112
1113         Remove references to unsupported OS and Xcode versions.
1114
1115         Reviewed by Anders Carlsson.
1116
1117         * Configurations/Base.xcconfig:
1118         * Configurations/CompilerVersion.xcconfig: Removed.
1119         * Configurations/DebugRelease.xcconfig:
1120         * Configurations/Version.xcconfig:
1121
1122 2012-10-29  Enrica Casucci  <enrica@apple.com>
1123
1124         Add ENABLE_USERSELECT_ALL feature flag.
1125         https://bugs.webkit.org/show_bug.cgi?id=100559
1126
1127         Reviewed by Eric Seidel.
1128
1129         * Configurations/FeatureDefines.xcconfig:
1130
1131 2012-10-27  Alexey Proskuryakov  <ap@apple.com>
1132
1133         All tests crash in WebKit1 mode
1134         https://bugs.webkit.org/show_bug.cgi?id=100602
1135
1136         Reviewed by Sam Weinig.
1137
1138         * WebView/WebView.mm: (+[WebView _setLoadResourcesSerially:]): Resource load
1139         scheduler is created via a strategy, so strategies need to be initialized before
1140         using it.
1141
1142 2012-10-27  Dan Bernstein  <mitz@apple.com>
1143
1144         REAL_PLATFORM_NAME build setting is no longer needed
1145         https://bugs.webkit.org/show_bug.cgi?id=100587
1146
1147         Reviewed by Mark Rowe.
1148
1149         Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
1150         to PLATFORM_NAME.
1151
1152         * Configurations/Base.xcconfig:
1153         * Configurations/CompilerVersion.xcconfig:
1154         * Configurations/DebugRelease.xcconfig:
1155         * Configurations/FeatureDefines.xcconfig:
1156         * Configurations/Version.xcconfig:
1157         * Configurations/WebKit.xcconfig:
1158
1159 2012-10-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
1160
1161         Add feature flags for CSS Device Adaptation
1162         https://bugs.webkit.org/show_bug.cgi?id=95960
1163
1164         Reviewed by Kenneth Rohde Christiansen.
1165
1166         * Configurations/FeatureDefines.xcconfig:
1167
1168 2012-10-25  Dominik Röttsches  <dominik.rottsches@intel.com>
1169
1170         Conditionalize XHR timeout support
1171         https://bugs.webkit.org/show_bug.cgi?id=100356
1172
1173         Reviewed by Adam Barth.
1174
1175         Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support.
1176         Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support.
1177
1178         * Configurations/FeatureDefines.xcconfig:
1179
1180 2012-10-24  Timothy Hatcher  <timothy@apple.com>
1181
1182         Fix a crash seen during the Inspector tests on the WebKit1 bots.
1183
1184         Reviewed by Filip Pizlo.
1185
1186         * WebCoreSupport/WebInspectorClient.mm:
1187         (WebInspectorFrontendClient::bringToFront): Use the window from the WebView since m_windowController's window
1188         is not the same when the Inspector is docked.
1189
1190 2012-10-24  Brady Eidson  <beidson@apple.com>
1191
1192         Add a strategy for loader customization.
1193         https://bugs.webkit.org/show_bug.cgi?id=100278
1194
1195         Reviewed by Alexey Proskuryakov.
1196
1197         * WebCoreSupport/WebPlatformStrategies.h:
1198         (WebPlatformStrategies):
1199         * WebCoreSupport/WebPlatformStrategies.mm:
1200         (WebPlatformStrategies::createLoaderStrategy):
1201
1202 2012-10-24  Timothy Hatcher  <timothy@apple.com>
1203
1204         Make the Inspector WKView/WebView become the first responder when bringToFront is called.
1205
1206         https://bugs.webkit.org/show_bug.cgi?id=100209
1207
1208         Reviewed by Joseph Pecoraro.
1209
1210         * WebCoreSupport/WebInspectorClient.mm:
1211         (WebInspectorFrontendClient::bringToFront): Make the Inspector WebView become the first responder.
1212
1213 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
1214
1215         Add a strategy for shared workers
1216         https://bugs.webkit.org/show_bug.cgi?id=100165
1217
1218         Reviewed by Brady Eidson.
1219
1220         * WebCoreSupport/WebPlatformStrategies.h:
1221         * WebCoreSupport/WebPlatformStrategies.mm:
1222         (WebPlatformStrategies::createPasteboardStrategy):
1223         (WebPlatformStrategies::createSharedWorkerStrategy):
1224         (WebPlatformStrategies::createVisitedLinkStrategy):
1225
1226 2012-10-24  Eric Carlson  <eric.carlson@apple.com>
1227
1228         Allow ports to override text track rendering style
1229         https://bugs.webkit.org/show_bug.cgi?id=97800
1230         <rdar://problem/12044964>
1231
1232         Reviewed by Maciej Stachowiak.
1233
1234         * WebCoreSupport/WebSystemInterface.mm:
1235         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
1236
1237 2012-10-23  Dan Bernstein  <mitz@apple.com>
1238
1239         WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default
1240         https://bugs.webkit.org/show_bug.cgi?id=100188
1241
1242         Reviewed by Sam Weinig.
1243
1244         * WebView/WebView.mm:
1245         (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added
1246         code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user
1247         default. Changed to refer to that default key by name.
1248
1249 2012-10-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1250
1251         Add support for resolution media query
1252         https://bugs.webkit.org/show_bug.cgi?id=99077
1253
1254         Reviewed by Antti Koivisto.
1255
1256         Add support for the RESOLUTION_MEDIA_QUERY feature flag.
1257
1258         * Configurations/FeatureDefines.xcconfig:
1259
1260 2012-10-21  Andreas Kling  <kling@webkit.org>
1261
1262         Remove Page::javaScriptURLsAreAllowed setting.
1263         <http://webkit.org/b/99944>
1264
1265         Reviewed by Anders Carlsson.
1266
1267         * WebKit.order:
1268         * WebView/WebView.mm:
1269         * WebView/WebViewPrivate.h:
1270
1271 2012-10-19  Dongwoo Joshua Im  <dw.im@samsung.com>
1272
1273         Rename ENABLE_CSS3_TEXT_DECORATION to ENABLE_CSS3_TEXT
1274         https://bugs.webkit.org/show_bug.cgi?id=99804
1275
1276         Reviewed by Julien Chaffraix.
1277
1278         CSS3 text related properties will be implemented under this flag,
1279         including text decoration, text-align-last, and text-justify.
1280
1281         * Configurations/FeatureDefines.xcconfig:
1282
1283 2012-10-18  Pablo Flouret  <pablof@motorola.com>
1284
1285         Implement css3-conditional's @supports rule
1286         https://bugs.webkit.org/show_bug.cgi?id=86146
1287
1288         Reviewed by Antti Koivisto.
1289
1290         * Configurations/FeatureDefines.xcconfig:
1291             Add an ENABLE_CSS3_CONDITIONAL_RULES flag.
1292
1293 2012-10-17  Joseph Pecoraro  <pecoraro@apple.com>
1294
1295         [Mac] Uninitialized Members in WebDataSourcePrivate
1296         https://bugs.webkit.org/show_bug.cgi?id=99617
1297
1298         Reviewed by David Kilzer.
1299
1300         Initialize BOOL member variables.
1301
1302         * WebView/WebDataSource.mm:
1303         (WebDataSourcePrivate::WebDataSourcePrivate):
1304
1305 2012-10-17  Mark Rowe  <mrowe@apple.com>
1306
1307         Fix the build with a newer version of clang.
1308
1309         Reviewed by Dan Bernstein.
1310
1311         Some of the methods in WebCoreStatistics appear to have been added by someone not familiar with Objective-C.
1312         While it's technically valid to have empty components in a selector, it's rarely done and is not consistent
1313         with our style guidelines. In this particular case it's also done in such a manner that it's ambiguous and
1314         therefore generates a warning in newer versions of the compiler.
1315
1316         Fixes <rdar://problem/12503709>.
1317
1318         * Misc/WebCoreStatistics.h: Remove unused methods and rename the two poorly-named methods that remain.
1319         * Misc/WebCoreStatistics.mm: Ditto.
1320         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
1321         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
1322
1323 2012-10-16  Jian Li  <jianli@chromium.org>
1324
1325         Rename feature define ENABLE_WIDGET_REGION to ENABLE_DRAGGBALE_REGION
1326         https://bugs.webkit.org/show_bug.cgi?id=98975
1327
1328         Reviewed by Adam Barth.
1329
1330         Renaming is needed to better match with the draggable region code.
1331
1332         * Configurations/FeatureDefines.xcconfig:
1333
1334 2012-10-15  Dan Bernstein  <mitz@apple.com>
1335
1336         WebKit/mac part of <rdar://problem/12470680> Font’s fast code path doesn’t support kerning and ligatures
1337         https://bugs.webkit.org/show_bug.cgi?id=99113
1338
1339         Reviewed by Tim Horton.
1340
1341         * WebCoreSupport/WebSystemInterface.mm:
1342         (InitWebCoreSystemInterface): Added wkCTFontTransformGlyphs.
1343
1344 2012-10-15  David Kilzer  <ddkilzer@apple.com>
1345
1346         Move framework and library linking into WebKit.xcconfig
1347         <http://webkit.org/b/99284>
1348
1349         Reviewed by Mark Rowe.
1350
1351         * Configurations/WebKit.xcconfig: Move frameworks and libraries
1352         link flags to OTHER_LDFLAGS so that they work for iOS and OS X.
1353
1354 2012-10-14  Jon Lee  <jonlee@apple.com>
1355
1356         Allow notification origin permission request when no js callback is provided
1357         https://bugs.webkit.org/show_bug.cgi?id=63615
1358         <rdar://problem/11059590>
1359
1360         Reviewed by Sam Weinig.
1361
1362         Introduce a boolean to determine whether the request was using the legacy or standard API. This way,
1363         we do not fall through to calling the standard API's callback if the legacy API's callback is null.
1364
1365         * WebCoreSupport/WebNotificationClient.mm:
1366         (WebCore):
1367         (-[WebNotificationPolicyListener initWithVoidCallback:]):
1368         (-[WebNotificationPolicyListener allow]):
1369         (-[WebNotificationPolicyListener deny]):
1370
1371 2012-10-14  Sam Weinig  <sam@webkit.org>
1372
1373         Make UserScript and UserStyleSheet value objects that are copyable
1374         https://bugs.webkit.org/show_bug.cgi?id=99275
1375
1376         Reviewed by Tim Horton.
1377
1378         * WebView/WebView.mm:
1379         (-[WebView _injectMailQuirksScript]):
1380         (-[WebView _injectOutlookQuirksScript]):
1381         Update for new PageGroup function signatures.
1382
1383 2012-10-10  Brady Eidson  <beidson@apple.com>
1384
1385         Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
1386         https://bugs.webkit.org/show_bug.cgi?id=98976
1387
1388         Reviewed by Anders Carlsson.
1389
1390         * WebView/WebDataSource.mm:
1391         (-[WebDataSource data]):
1392
1393 2012-10-10  Jer Noble  <jer.noble@apple.com>
1394
1395         Disallow full screen mode keyboard access by default.
1396         https://bugs.webkit.org/show_bug.cgi?id=98971
1397         <rdar://problem/12474226>
1398
1399         Reviewed by Sam Weinig.
1400
1401         Only support full screen if keyboard access is not requested.
1402
1403         * WebView/WebView.mm:
1404         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
1405
1406 2012-10-10  Jon Lee  <jonlee@apple.com>
1407
1408         [WK2] Activate plugins when user clicks on snapshot
1409         https://bugs.webkit.org/show_bug.cgi?id=98328
1410         <rdar://problem/12426681>
1411
1412         Reviewed by Brady Eidson.
1413
1414         * WebCoreSupport/WebFrameLoaderClient.h:
1415         * WebCoreSupport/WebFrameLoaderClient.mm:
1416         (WebFrameLoaderClient::recreatePlugin): Stub implementation of recreatePlugin().
1417
1418 2012-10-10  Brady Eidson  <beidson@apple.com>
1419
1420         Switch CachedResource over from SharedBuffer to a new ResourceBuffer
1421         https://bugs.webkit.org/show_bug.cgi?id=98541
1422
1423         Reviewed by Anders Carlsson.
1424
1425         * WebView/WebHTMLView.mm:
1426         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
1427
1428 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
1429
1430         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
1431         https://bugs.webkit.org/show_bug.cgi?id=98839
1432
1433         Reviewed by Sam Weinig.
1434
1435         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
1436         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
1437         but store the computed rect in m_visibleRect.
1438         
1439         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
1440         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
1441
1442         * WebView/WebFrame.mm:
1443         (-[WebFrame _layerTreeAsText]):
1444
1445 2012-10-09  Jian Li  <jianli@chromium.org>
1446
1447         Update the CSS property used to support draggable regions.
1448         https://bugs.webkit.org/show_bug.cgi?id=97156
1449
1450         Reviewed by Adam Barth.
1451
1452         The CSS property to support draggable regions, guarded under
1453         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
1454         confusion with DASHBOARD_SUPPORT feature.
1455
1456         Also update the code to use the new name annotatedRegions to work for
1457         both features.
1458
1459         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
1460         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
1461         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
1462         (WebChromeClient::annotatedRegionsChanged):
1463         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
1464         (-[WebView _dashboardRegions]):
1465
1466 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1467
1468         Unreviewed, rolling out r130811 and r130821.
1469         http://trac.webkit.org/changeset/130811
1470         http://trac.webkit.org/changeset/130821
1471         https://bugs.webkit.org/show_bug.cgi?id=98831
1472
1473         Broke date-suggestion-picker-appearance-with-scroll-bar.html
1474         (Requested by abarth|gardening on #webkit).
1475
1476         * WebView/WebFullScreenController.mm:
1477         (screenRectOfContents):
1478         * WebView/WebRenderNode.mm:
1479         (copyRenderNode):
1480
1481 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
1482
1483         Throttle DOM timers on hidden pages.
1484         https://bugs.webkit.org/show_bug.cgi?id=98474
1485
1486         Reviewed by Maciej Stachowiak.
1487
1488         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
1489         DumpRenderTree to modify the visibility state of a page.  The latter
1490         is needed to test throttling of timers on hidden pages through DumpRenderTree.
1491
1492         * Configurations/FeatureDefines.xcconfig:
1493         * WebView/WebView.mm:
1494         (-[WebView _setVisibilityState:isInitialState:]):
1495         * WebView/WebViewPrivate.h:
1496
1497 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1498
1499         Rename first/second to key/value in HashMap iterators
1500         https://bugs.webkit.org/show_bug.cgi?id=82784
1501
1502         Reviewed by Eric Seidel.
1503
1504         * History/WebHistory.mm:
1505         (-[WebHistoryPrivate removeItemFromDateCaches:]):
1506         (-[WebHistoryPrivate orderedLastVisitedDays]):
1507         (WebHistoryWriter::WebHistoryWriter):
1508         * Misc/WebCoreStatistics.mm:
1509         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
1510         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
1511         * Plugins/Hosted/NetscapePluginHostManager.mm:
1512         (WebKit::NetscapePluginHostManager::hostForPlugin):
1513         (WebKit::NetscapePluginHostManager::pluginHostDied):
1514         (WebKit::NetscapePluginHostManager::didCreateWindow):
1515         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1516         (WebKit::NetscapePluginHostProxy::pluginHostDied):
1517         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1518         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1519         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
1520         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
1521         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1522         (WebKit::NetscapePluginInstanceProxy::destroy):
1523         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
1524         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
1525         * Plugins/Hosted/ProxyInstance.mm:
1526         (WebKit::ProxyInstance::methodNamed):
1527         (WebKit::ProxyInstance::fieldNamed):
1528         * Plugins/WebNetscapePluginView.mm:
1529         (-[WebNetscapePluginView stopTimers]):
1530         (-[WebNetscapePluginView startTimers]):
1531         * WebCoreSupport/WebNotificationClient.mm:
1532         (WebNotificationClient::show):
1533         (WebNotificationClient::clearNotifications):
1534         (WebNotificationClient::notificationObjectDestroyed):
1535         * WebView/WebHTMLView.mm:
1536         (commandNameForSelector):
1537
1538 2012-10-06  Dan Bernstein  <mitz@apple.com>
1539
1540         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
1541         https://bugs.webkit.org/show_bug.cgi?id=98601
1542
1543         Reviewed by Darin Adler.
1544
1545         * WebView/WebView.mm:
1546         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
1547         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
1548         the value YES.
1549
1550 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
1551
1552         Unreviewed, rolling out r130556 and r130564.
1553         http://trac.webkit.org/changeset/130556
1554         http://trac.webkit.org/changeset/130564
1555         https://bugs.webkit.org/show_bug.cgi?id=98572
1556
1557         The patch wasn't reviewed by a reviewer and it is breaking
1558         Chromium Windows (Requested by jchaffraix on #webkit).
1559
1560         * WebCoreSupport/WebSystemInterface.mm:
1561         (InitWebCoreSystemInterface):
1562
1563 2012-10-05  Tim Horton  <timothy_horton@apple.com>
1564
1565         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
1566         https://bugs.webkit.org/show_bug.cgi?id=98565
1567         <rdar://problem/12436468>
1568
1569         Reviewed by Simon Fraser.
1570
1571         Add wkCGContextDrawsWithCorrectShadowOffsets.
1572
1573         * WebCoreSupport/WebSystemInterface.mm:
1574         (InitWebCoreSystemInterface):
1575
1576 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
1577
1578         Allow ports to override text track rendering style
1579         https://bugs.webkit.org/show_bug.cgi?id=97800
1580         <rdar://problem/12044964>
1581
1582         Reviewed by Silvia Pfeiffer.
1583
1584         Add WCSI support for new WKSI caption functions.
1585
1586         * WebCoreSupport/WebSystemInterface.mm:
1587         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
1588
1589 2012-10-04  Jon Lee  <jonlee@apple.com>
1590
1591         Add a setting to enable plugin snapshotting
1592         https://bugs.webkit.org/show_bug.cgi?id=98319
1593         <rdar://problem/12426480>
1594
1595         Reviewed by Brady Eidson.
1596
1597         Expose plugInSnapshottingEnabled preference to WebKit clients.
1598
1599         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
1600         * WebView/WebPreferences.mm:
1601         (+[WebPreferences initialize]): Setting is turned off by default.
1602         (-[WebPreferences plugInSnapshottingEnabled]):
1603         (-[WebPreferences setPlugInSnapshottingEnabled:]):
1604         * WebView/WebPreferencesPrivate.h:
1605         * WebView/WebView.mm:
1606         (-[WebView _preferencesChanged:]): Update settings based on preference.
1607
1608 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
1609
1610         Turn Compositing on by default in WebKit build
1611         https://bugs.webkit.org/show_bug.cgi?id=98315
1612
1613         Reviewed by Simon Fraser.
1614
1615         enable -webkit-blend-mode on trunk.
1616
1617         * Configurations/FeatureDefines.xcconfig:
1618
1619 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
1620
1621         Final part of "sync" to "flush" renaming
1622         https://bugs.webkit.org/show_bug.cgi?id=98430
1623
1624         Reviewed by Tim Horton.
1625
1626         Change method names on GraphicsLayer and GraphicsLayerClient that
1627         refer to "sync" to use the term "flush" instead, to be consistent
1628         with the rest of the code.
1629
1630         * WebView/WebView.mm:
1631
1632 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
1633
1634         [WK2] Support all attributes of GeolocationPosition
1635         https://bugs.webkit.org/show_bug.cgi?id=98212
1636
1637         Reviewed by Sam Weinig.
1638
1639         Add an internal constructor for the sake of testing.
1640         A similar API is used on iOS.
1641
1642         * WebView/WebGeolocationPosition.mm:
1643         (-[WebGeolocationPosition initWithGeolocationPosition:]):
1644
1645 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
1646
1647         Standardize on "flush" terminology for compositing layer flushing/syncing
1648         https://bugs.webkit.org/show_bug.cgi?id=98321
1649
1650         Reviewed by Simon Fraser.
1651
1652         Rename compositing-related methods that refer to "syncing" to instead
1653         refer to "flushing".
1654
1655         * WebCoreSupport/WebChromeClient.h:
1656         * WebCoreSupport/WebChromeClient.mm:
1657         (WebChromeClient::scheduleCompositingLayerFlush):
1658         * WebView/WebView.mm:
1659         (-[WebView _flushCompositingChanges]):
1660         (LayerFlushController::flushLayers):
1661         (-[WebView _scheduleCompositingLayerFlush]):
1662         * WebView/WebViewInternal.h:
1663
1664 == Rolled over to ChangeLog-2012-10-02 ==