Add magnify and rotate gesture event support for Mac
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2015-10-19  Tim Horton  <timothy_horton@apple.com>
2
3         Add magnify and rotate gesture event support for Mac
4         https://bugs.webkit.org/show_bug.cgi?id=150179
5         <rdar://problem/8036240>
6
7         Reviewed by Darin Adler.
8
9         * Configurations/FeatureDefines.xcconfig:
10         New feature flag.
11
12 2015-10-17  Myles C. Maxfield  <mmaxfield@apple.com>
13
14         Build fix after r191260
15
16         Unreviewed.
17
18         * WebView/WebView.mm:
19         (+[WebView initialize]):
20
21 2015-10-18  Myles C. Maxfield  <mmaxfield@apple.com>
22
23         Stop honoring the user default "WebKitKerningAndLigaturesEnabledByDefault"
24         https://bugs.webkit.org/show_bug.cgi?id=150287
25
26         Reviewed by Simon Fraser.
27
28         * WebView/WebView.mm:
29         (+[WebView initialize]): Deleted.
30
31 2015-10-18  Commit Queue  <commit-queue@webkit.org>
32
33         Unreviewed, rolling out r191250 and r191253.
34         https://bugs.webkit.org/show_bug.cgi?id=150296
35
36         Broke all the tests on Windows (Requested by ap on #webkit).
37
38         Reverted changesets:
39
40         "Stop honoring the user default
41         "WebKitKerningAndLigaturesEnabledByDefault""
42         https://bugs.webkit.org/show_bug.cgi?id=150287
43         http://trac.webkit.org/changeset/191250
44
45         "Build fix after r191250"
46         http://trac.webkit.org/changeset/191253
47
48 2015-10-17  Myles C. Maxfield  <mmaxfield@apple.com>
49
50         Build fix after r191250
51
52         Unreviewed.
53
54         * WebView/WebView.mm:
55         (+[WebView initialize]):
56
57 2015-10-17  Myles C. Maxfield  <mmaxfield@apple.com>
58
59         Stop honoring the user default "WebKitKerningAndLigaturesEnabledByDefault"
60         https://bugs.webkit.org/show_bug.cgi?id=150287
61
62         Reviewed by Simon Fraser.
63
64         * WebView/WebView.mm:
65         (+[WebView initialize]): Deleted.
66
67 2015-10-16  Anders Carlsson  <andersca@apple.com>
68
69         WebEditingDelegate should be a formal protocol
70         https://bugs.webkit.org/show_bug.cgi?id=150254
71         <rdar://problem/23149847>
72
73         Reviewed by Dan Bernstein.
74
75         * WebView/WebEditingDelegate.h:
76         Move all the delegate methods inside the protocol declaration. Also make the header self-contained.
77
78         * WebView/WebView.h:
79         Change the type of the editing delegate and make it assign.
80
81 2015-10-15  Myles C. Maxfield  <mmaxfield@apple.com>
82
83         Migrate to CGContextSetBaseCTM() and CGContextResetClip() from WKSI
84         https://bugs.webkit.org/show_bug.cgi?id=150155
85
86         Reviewed by Tim Horton.
87
88         * WebCoreSupport/WebSystemInterface.mm:
89         (InitWebCoreSystemInterface): Deleted.
90         * WebView/WebView.mm:
91         (-[WebView _setBaseCTM:forContext:]):
92
93 2015-10-15  Dan Bernstein  <mitz@apple.com>
94
95         [Cocoa] Stop using WKSetNSURLConnectionDefersCallbacks
96         https://bugs.webkit.org/show_bug.cgi?id=150189
97
98         Reviewed by Anders Carlsson.
99
100         * WebCoreSupport/WebSystemInterface.mm:
101         (InitWebCoreSystemInterface): Removed initialization.
102
103 2015-10-14  Zhuo Li  <zachli@apple.com>
104
105         Augment <input type=search>’s recent search history with the time each entry was added,
106         in order to allow time-based clearing of search history.
107         https://bugs.webkit.org/show_bug.cgi?id=148388.
108
109         Reviewed by Darin Adler.
110
111         Replace Vector<String> with Vector<RecentSearch>, where RecentSearch is a struct
112         that consists search string and time, for recent searches in order to store additional time information.
113
114         All these new RecentSearches are stored in a plist in which the structure looks like:
115         Root {
116             "items": {
117                 autosave name: {
118                     "searches": [
119                         { "searchString": searchString, "date": date },
120                         ...
121                     ]
122                 }
123             }
124         }
125
126         * WebCoreSupport/SearchPopupMenuMac.h:
127         * WebCoreSupport/SearchPopupMenuMac.mm:
128         (SearchPopupMenuMac::saveRecentSearches): Call saveRecentSearches in WebCore::SearchPopupMenuCocoa.
129         (SearchPopupMenuMac::loadRecentSearches): Call loadRecentSearches in WebCore::SearchPopupMenuCocoa.
130         (autosaveKey): Deleted.
131
132 2015-10-13  Myles C. Maxfield  <mmaxfield@apple.com>
133
134         Split TypesettingFeatures into kerning and ligatures bools
135         https://bugs.webkit.org/show_bug.cgi?id=150074
136
137         Reviewed by Simon Fraser.
138
139         * WebView/WebView.mm:
140         (+[WebView initialize]):
141
142 2015-10-13  Chris Dumez  <cdumez@apple.com>
143
144         Avoid useless copies in range-loops that are using 'auto'
145         https://bugs.webkit.org/show_bug.cgi?id=150091
146
147         Reviewed by Sam Weinig.
148
149         Avoid useless copies in range-loops that are using 'auto'. Also use
150         'auto*' instead of 'auto' when range values are pointers for clarity.
151
152         * WebView/WebFrame.mm:
153         (-[WebFrame getDictationResultRanges:andMetadatas:]):
154
155 2015-10-09  Anders Carlsson  <andersca@apple.com>
156
157         Don't allow plug-ins to override image types for <embed> elements
158         https://bugs.webkit.org/show_bug.cgi?id=149979
159
160         Reviewed by Tim Horton.
161
162         * WebCoreSupport/WebFrameLoaderClient.h:
163         * WebCoreSupport/WebFrameLoaderClient.mm:
164         (WebFrameLoaderClient::objectContentType):
165
166 2015-10-10  Dan Bernstein  <mitz@apple.com>
167
168         [iOS] Remove unnecessary iOS version checks
169         https://bugs.webkit.org/show_bug.cgi?id=150002
170
171         Reviewed by Alexey Proskuryakov.
172
173         * Plugins/WebPluginController.h:
174         * Plugins/WebPluginController.mm:
175         (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
176         (+[WebPluginController addPlugInView:]):
177         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): Deleted.
178         * WebCoreSupport/WebFrameLoaderClient.mm:
179         (pluginView):
180         * WebView/WebPreferences.mm:
181         (-[WebPreferences isDNSPrefetchingEnabled]):
182         (-[WebPreferences setWebInspectorServerEnabled:]): Deleted.
183         (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]): Deleted.
184         * WebView/WebPreferencesPrivate.h:
185         * WebView/WebView.mm:
186         (shouldAllowPictureInPictureMediaPlayback):
187
188 2015-10-10  Dan Bernstein  <mitz@apple.com>
189
190         [iOS] Remove project support for iOS 8
191         https://bugs.webkit.org/show_bug.cgi?id=149993
192
193         Reviewed by Alexey Proskuryakov.
194
195         * Configurations/WebKitLegacy.xcconfig:
196
197 2015-10-06  Daniel Bates  <dbates@webkit.org>
198
199         Enable XSLT when building WebKit for iOS using the public iOS SDK
200         https://bugs.webkit.org/show_bug.cgi?id=149827
201
202         Reviewed by Alexey Proskuryakov.
203
204         * Configurations/FeatureDefines.xcconfig:
205
206 2015-10-06  Alex Christensen  <achristensen@webkit.org>
207
208         Report error when main resource is blocked by content blocker
209         https://bugs.webkit.org/show_bug.cgi?id=149719
210         rdar://problem/21970595
211
212         Reviewed by Brady Eidson.
213
214         * WebCoreSupport/WebFrameLoaderClient.h:
215         * WebCoreSupport/WebFrameLoaderClient.mm:
216         (WebFrameLoaderClient::blockedError):
217         (WebFrameLoaderClient::blockedByContentBlockerError):
218         (WebFrameLoaderClient::cannotShowURLError):
219         Add blockedByContentBlockerError so WebFrameLoaderClient is not an abstract class,
220         but it should be unused because content blockers are not enabled on WK1.
221
222 2015-10-05  Daniel Bates  <dabates@apple.com>
223
224         DumpRenderTree built with public iOS SDK crashes under -[WebPreferences(WebPrivate) _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]
225         https://bugs.webkit.org/show_bug.cgi?id=149766
226
227         Reviewed by Alexey Proskuryakov.
228
229         Assert that we have a non-null pointer to a cookie storage.
230
231         * WebView/WebPreferences.mm:
232         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
233
234 2015-10-05  Andreas Kling  <akling@apple.com>
235
236         Remove unused HistoryItem::targetItem()
237         <https://webkit.org/b/149803>
238
239         Reviewed by Anders Carlsson.
240
241         Remove the only (unused) client of HistoryItem::targetItem().
242
243         * History/WebHistoryItem.mm:
244         * History/WebHistoryItemPrivate.h:
245
246 2015-10-05  Andreas Kling  <akling@apple.com>
247
248         Remove unused HistoryItem::parent
249         <https://webkit.org/b/149803>
250
251         Reviewed by Anders Carlsson.
252
253         Remove the only (unused) client of HistoryItem's with-parent constructor.
254
255         * History/WebHistoryItem.mm:
256         (-[WebHistoryItem initWithURL:target:parent:title:]): Deleted.
257         * History/WebHistoryItemInternal.h:
258
259 2015-09-30  Timothy Horton  <timothy_horton@apple.com>
260
261         Compute document marker rects at use time instead of paint time
262         https://bugs.webkit.org/show_bug.cgi?id=149643
263
264         Reviewed by Darin Adler.
265
266         * WebView/WebHTMLView.mm:
267         (-[WebHTMLView rectsForTextMatches]):
268
269 2015-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
270
271         printing does not use minimum page zoom factor
272         https://bugs.webkit.org/show_bug.cgi?id=108507
273
274         Reviewed by Darin Adler.
275
276         Pass a the frame as a reference instead of using pointers.
277
278         * Misc/WebCoreStatistics.mm:
279         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
280         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
281
282 2015-09-25  Eric Carlson  <eric.carlson@apple.com>
283
284         Clean up user media request internal API
285         https://bugs.webkit.org/show_bug.cgi?id=149527
286
287         Reviewed by Tim Horton.
288
289         * WebCoreSupport/WebUserMediaClient.mm:
290         (WebUserMediaClient::cancelRequest): Put UserMediaRequestsMap in a local instead or calling
291           userMediaRequestsMap() three times.
292         (-[WebUserMediaPolicyListener allow]): Get rid of unneeded local variables.
293         (-[WebUserMediaPolicyListener allowDeviceWithVideoUID]): Deleted, unused.
294
295 2015-09-22  Andy Estes  <aestes@apple.com>
296
297         Disable QuickLook on tvOS
298         https://bugs.webkit.org/show_bug.cgi?id=149492
299         <rdar://problem/22741586>
300
301         Reviewed by Dan Bernstein.
302
303         We can't use USE(QUICK_LOOK) in a Private header, and postprocess-headers.sh doesn't know how to strip things
304         that aren't feature flags. So, if QuickLook is disabled, we'll just always define WebQuickLookFileNameKey and
305         WebQuickLookUTIKey, and we'll also define -quickLookContentForURL: but have it return nil.
306
307         * WebView/WebView.mm:
308         (-[WebView quickLookContentForURL:]):
309
310 2015-09-22  Tim Horton  <timothy_horton@apple.com>
311
312         Make it more obvious when using an unaccelerated image buffer, and fix a few callers who do
313         https://bugs.webkit.org/show_bug.cgi?id=149428
314
315         Reviewed by Simon Fraser and Darin Adler.
316
317         * WebCoreSupport/WebContextMenuClient.mm:
318         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
319
320 2015-09-21  Alexey Proskuryakov  <ap@apple.com>
321
322         REGRESSION (r182648): UIWebView does not set location.hash synchronously
323         https://bugs.webkit.org/show_bug.cgi?id=149415
324         <rdar://problem/22169467>
325
326         Reviewed by Darin Adler.
327
328         The problem was that the delegate in UI thread became asynchronous due to calling
329         into LaunchServices.
330
331         * WebCoreSupport/WebFrameLoaderClient.mm: (shouldTryAppLink): Don't attempt app
332         links for same domain navigations. This check is part of substantially more complicated
333         logic in WebKit2 that I don't understand, but that should be enough to demonstrate
334         that this fix is an improvement at least.
335
336 2015-09-20  Youenn Fablet  <youenn.fablet@crf.canon.fr>
337
338         Remove XHR_TIMEOUT compilation guard
339         https://bugs.webkit.org/show_bug.cgi?id=149260
340
341         Reviewed by Benjamin Poulain.
342
343         * Configurations/FeatureDefines.xcconfig:
344
345 2015-09-18  Commit Queue  <commit-queue@webkit.org>
346
347         Unreviewed, rolling out r189908.
348         https://bugs.webkit.org/show_bug.cgi?id=149368
349
350         Broke run-webkit-tests --pixel (Requested by ap on #webkit).
351
352         Reverted changeset:
353
354         "printing does not use minimum page zoom factor"
355         https://bugs.webkit.org/show_bug.cgi?id=108507
356         http://trac.webkit.org/changeset/189908
357
358 2015-09-17  Brian Burg  <bburg@apple.com>
359
360         ASSERT(!m_frontendRouter->hasLocalFrontend()) when running Web Inspector tests
361         https://bugs.webkit.org/show_bug.cgi?id=149006
362
363         Reviewed by Joseph Pecoraro.
364
365         WK1 WebInspectorClient was connecting to the wrong controllers. Fix this, and
366         remove extra code paths for closing the frontend.
367
368         * WebCoreSupport/WebInspectorClient.h:
369         * WebCoreSupport/WebInspectorClient.mm:
370         (-[WebInspectorWindowController destroyInspectorView]):
371
372             Disconnect the FrontendClient from the frontend page's inspector controller.
373             Do this teardown before releasing the frontend, otherwise we can't use it.
374
375         (WebInspectorClient::inspectedPageDestroyed): Deleted.
376         (WebInspectorClient::closeLocalFrontend): Deleted.
377         (WebInspectorFrontendClient::disconnectFromBackend): Deleted.
378         * WebInspector/WebInspector.mm:
379         (-[WebInspector inspectedWebViewClosed]):
380
381             Make sure to close ourself if the inspected page closes.
382
383         (-[WebInspector close:]):
384
385             Go through the frontend instead of InspectorController.
386
387         * WebInspector/WebInspectorFrontend.h:
388         * WebInspector/WebInspectorFrontend.mm:
389         (-[WebInspectorFrontend close]):
390
391 2015-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
392
393         printing does not use minimum page zoom factor
394         https://bugs.webkit.org/show_bug.cgi?id=108507
395
396         Reviewed by Darin Adler.
397
398         Pass a the frame as a reference instead of using pointers.
399
400         * Misc/WebCoreStatistics.mm:
401         (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
402         (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
403
404 2015-09-16  Brady Eidson  <beidson@apple.com>
405
406         Have window.indexedDB.deleteDatabase return an IDBOpenDBRequest.
407         https://bugs.webkit.org/show_bug.cgi?id=149229
408
409         Reviewed by Alex Christensen.
410
411         * WebView/WebView.mm:
412         (-[WebView _preferencesChanged:]): Enable IDB in WK1.
413
414 2015-09-15  Ryosuke Niwa  <rniwa@webkit.org>
415
416         Add ShadowRoot interface and Element.prototype.attachShadow
417         https://bugs.webkit.org/show_bug.cgi?id=149187
418
419         Reviewed by Antti Koivisto.
420
421         * Configurations/FeatureDefines.xcconfig:
422
423 2015-09-14  Alex Christensen  <achristensen@webkit.org>
424
425         Progress towards CMake on Mac.
426         https://bugs.webkit.org/show_bug.cgi?id=149123
427
428         Reviewed by Chris Dumez.
429
430         * WebView/WebPDFDocumentExtras.mm:
431         (appendValuesInPDFNameSubtreeToVector):
432         * WebView/WebPDFView.mm:
433         Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks.
434
435 2015-09-12  Brian Burg  <bburg@apple.com>
436
437         Web Inspector: disambiguate inspected/frontend controllers and pages in backend code
438         https://bugs.webkit.org/show_bug.cgi?id=149071
439
440         Reviewed by Joseph Pecoraro.
441
442         Be consistent about prefixing pages, inspector controllers, and window controllers
443         with either "frontend" or "inspected", as appropriate. This change makes obvious some bugs
444         in the frontend connection code, which are tracked by https://webkit.org/b/149006.
445
446         * WebCoreSupport/WebInspectorClient.h:
447         * WebCoreSupport/WebInspectorClient.mm:
448         (WebInspectorClient::WebInspectorClient): Renamed.
449         (WebInspectorClient::inspectedPageDestroyed): Renamed.
450         (WebInspectorClient::openLocalFrontend): Renamed.
451         (WebInspectorClient::closeLocalFrontend): Renamed.
452         (WebInspectorClient::didSetSearchingForNode):
453         (WebInspectorFrontendClient::WebInspectorFrontendClient):
454         (WebInspectorFrontendClient::attachAvailabilityChanged):
455         (WebInspectorFrontendClient::canAttach):
456         (WebInspectorFrontendClient::frontendLoaded):
457         (WebInspectorFrontendClient::startWindowDrag):
458         (WebInspectorFrontendClient::bringToFront):
459         (WebInspectorFrontendClient::closeWindow):
460         (WebInspectorFrontendClient::disconnectFromBackend):
461         (WebInspectorFrontendClient::attachWindow):
462         (WebInspectorFrontendClient::detachWindow):
463         (WebInspectorFrontendClient::setAttachedWindowHeight):
464         (WebInspectorFrontendClient::setToolbarHeight):
465         (WebInspectorFrontendClient::updateWindowTitle):
466         (WebInspectorFrontendClient::save):
467         (WebInspectorFrontendClient::append):
468         (-[WebInspectorWindowController init]):
469         (-[WebInspectorWindowController initWithInspectedWebView:isUnderTest:]):
470         (-[WebInspectorWindowController dealloc]):
471         (-[WebInspectorWindowController frontendWebView]):
472         (-[WebInspectorWindowController close]):
473         (-[WebInspectorWindowController showWindow:]):
474         (-[WebInspectorWindowController setAttachedWindowHeight:]):
475         (-[WebInspectorWindowController destroyInspectorView]):
476         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
477         (WebInspectorClient::inspectorDestroyed): Deleted.
478         (WebInspectorClient::openInspectorFrontend): Deleted.
479         (WebInspectorClient::closeInspectorFrontend): Deleted.
480         (-[WebInspectorWindowController webView]): Deleted.
481         * WebInspector/WebInspector.h:
482         * WebInspector/WebInspector.mm:
483         (-[WebInspector initWithInspectedWebView:]): Renamed.
484         (-[WebInspector inspectedWebViewClosed]): Renamed.
485         (-[WebInspector showWindow]):
486         (-[WebInspector close:]):
487         (-[WebInspector evaluateInFrontend:script:]):
488         (-[WebInspector releaseFrontend]):
489         (-[WebInspector initWithWebView:]): Deleted.
490         (-[WebInspector webViewClosed]): Deleted.
491         * WebView/WebView.mm:
492         (-[WebView _close]):
493         (-[WebView inspector]):
494
495 2015-09-10  Chris Dumez  <cdumez@apple.com>
496
497         Node.appendChild(null) / replaceChild(null, null) / removeChild(null) / insertBefore(null, ref) should throw a TypeError
498         https://bugs.webkit.org/show_bug.cgi?id=148971
499         <rdar://problem/22560883>
500         <rdar://problem/22559225>
501
502         Reviewed by Ryosuke Niwa.
503
504         ContainerNode::appendChild() now takes a Ref<Node>&& parameter so we
505         need to update the call site.
506
507         * WebView/WebFrame.mm:
508         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
509
510 2015-09-07  Andy Estes  <aestes@apple.com>
511
512         [Mac] DebugRelease builds should link against libWebKitSystemInterfaceElCapitan.a on 10.11
513         https://bugs.webkit.org/show_bug.cgi?id=148946
514         <rdar://problem/22603981>
515
516         Reviewed by Dan Bernstein.
517
518         * Configurations/DebugRelease.xcconfig:
519
520 2015-09-04  Brian Burg  <bburg@apple.com>
521
522         Web Inspector: agents should send messages through FrontendRouter instead of FrontendChannel
523         https://bugs.webkit.org/show_bug.cgi?id=148492
524
525         Reviewed by Joseph Pecoraro.
526
527         * WebCoreSupport/WebInspectorClient.h: Clean up the forward declarations, don't use InspectorForwarding.h.
528         * WebCoreSupport/WebInspectorClient.mm:
529         (WebInspectorClient::openInspectorFrontend):
530
531 2015-09-04  Csaba Osztrogonác  <ossy@webkit.org>
532
533         Remove unnecessary compiler guards from mm files
534         https://bugs.webkit.org/show_bug.cgi?id=148797
535
536         Reviewed by Dan Bernstein.
537
538         * Plugins/WebBasePluginPackage.mm:
539         * Plugins/WebNetscapePluginPackage.mm:
540
541 2015-09-04  Brian Burg  <bburg@apple.com>
542
543         Web Inspector: InspectorController should support multiple frontend channels
544         https://bugs.webkit.org/show_bug.cgi?id=148538
545
546         Reviewed by Joseph Pecoraro.
547
548         Remove the notifyInspectorController flag from closeWindow. Since InspectorClients
549         must now manually disconnect their FrontendChannel(s), we should always
550         perform the teardown that was guarded by this flag.
551
552         * WebCoreSupport/WebInspectorClient.h:
553         * WebCoreSupport/WebInspectorClient.mm:
554         (WebInspectorClient::bringFrontendToFront): Add a missing assertion.
555         (WebInspectorFrontendClient::closeWindow):
556         (WebInspectorFrontendClient::disconnectFromBackend):
557         (-[WebInspectorWindowController windowShouldClose:]):
558         (-[WebInspectorWindowController destroyInspectorView]): Always clear the frontend client.
559         (-[WebInspectorWindowController destroyInspectorView:]): Renamed to above.
560
561 2015-09-03  Commit Queue  <commit-queue@webkit.org>
562
563         Unreviewed, rolling out r189338.
564         https://bugs.webkit.org/show_bug.cgi?id=148785
565
566         Caused tons of crashes (Requested by cdumez on #webkit).
567
568         Reverted changeset:
569
570         "Web Inspector: InspectorController should support multiple
571         frontend channels"
572         https://bugs.webkit.org/show_bug.cgi?id=148538
573         http://trac.webkit.org/changeset/189338
574
575 2015-09-03  Brian Burg  <bburg@apple.com>
576
577         Web Inspector: InspectorController should support multiple frontend channels
578         https://bugs.webkit.org/show_bug.cgi?id=148538
579
580         Reviewed by Joseph Pecoraro.
581
582         Remove the notifyInspectorController flag from closeWindow. Since InspectorClients
583         must now manually disconnect their FrontendChannel(s), we should always
584         perform the teardown that was guarded by this flag.
585
586         * WebCoreSupport/WebInspectorClient.h:
587         * WebCoreSupport/WebInspectorClient.mm:
588         (WebInspectorClient::bringFrontendToFront): Add a missing assertion.
589         (WebInspectorFrontendClient::closeWindow):
590         (WebInspectorFrontendClient::disconnectFromBackend):
591         (-[WebInspectorWindowController windowShouldClose:]):
592         (-[WebInspectorWindowController destroyInspectorView]): Always clear the frontend client.
593         (-[WebInspectorWindowController destroyInspectorView:]): Renamed to above.
594
595 2015-08-26  Andy Estes  <aestes@apple.com>
596
597         [Content Filtering] Determine navigation and content policy before continuing to filter a load
598         https://bugs.webkit.org/show_bug.cgi?id=148506
599
600         Reviewed by Brady Eidson.
601
602         Deleted parts of r188486 and r188851.
603
604         * WebCoreSupport/WebFrameLoaderClient.h:
605         * WebCoreSupport/WebFrameLoaderClient.mm:
606         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
607         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
608
609 2015-08-31  Chris Dumez  <cdumez@apple.com>
610
611         Range.detach() / NodeIterator.detach() should be no-ops as per the latest DOM specification
612         https://bugs.webkit.org/show_bug.cgi?id=148454
613
614         Reviewed by Ryosuke Niwa.
615
616         Update Range API call sites to reflect changes.
617
618         * WebView/WebImmediateActionController.mm:
619         (dictionaryPopupInfoForRange):
620
621 2015-08-28  Myles C. Maxfield  <mmaxfield@apple.com>
622
623         Migrate GraphicsContexts from pointers to references
624         https://bugs.webkit.org/show_bug.cgi?id=148561
625
626         Reviewed by Tim Horton.
627
628         * Misc/WebKitNSStringExtras.mm:
629         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
630         * WebCoreSupport/WebContextMenuClient.mm:
631         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
632         * WebView/WebFrame.mm:
633         (-[WebFrame _drawRect:contentsOnly:]):
634
635 2015-08-28  Eric Carlson  <eric.carlson@apple.com>
636
637         [Mac] Restructure WebMediaSessionManager for testing
638         https://bugs.webkit.org/show_bug.cgi?id=148593
639
640         Reviewed by Jer Noble.
641
642         * WebView/WebMediaPlaybackTargetPicker.mm:
643         (WebMediaPlaybackTargetPicker::addPlaybackTargetPickerClient): Call WebMediaSessionManager::singleton,
644           not WebMediaSessionManagerMac::singleton.
645         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient): Ditto.
646         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker): Ditto.
647         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange): Ditto.
648         (WebMediaPlaybackTargetPicker::setPlaybackTarget): Ditto.
649         (WebMediaPlaybackTargetPicker::invalidate): Ditto.
650
651 2015-08-28  Jer Noble  <jer.noble@apple.com>
652
653         [iOS] Add WebKit/WebKit2 settings to control automatic data loading
654         https://bugs.webkit.org/show_bug.cgi?id=148579
655
656         Reviewed by Anders Carlsson.
657
658         Add a WebPreference to allow clients to control whether media is allowed to load automatically.
659         Remove the (now unnecessary) WebFrame property to do the same.
660
661         * WebView/WebFrame.mm:
662         (-[WebFrame mediaDataLoadsAutomatically]): Deleted.
663         (-[WebFrame setMediaDataLoadsAutomatically:]): Deleted.
664         * WebView/WebFramePrivate.h:
665         * WebView/WebPreferenceKeysPrivate.h:
666         * WebView/WebPreferences.mm:
667         (+[WebPreferences initialize]):
668         (-[WebPreferences mediaDataLoadsAutomatically]):
669         (-[WebPreferences setMediaDataLoadsAutomatically:]):
670         * WebView/WebPreferencesPrivate.h:
671         * WebView/WebView.mm:
672         (-[WebView _preferencesChanged:]):
673
674 2015-08-28  Beth Dakin  <bdakin@apple.com>
675
676         Crash in WK1 when clicking on a PDF inside an iframe
677         https://bugs.webkit.org/show_bug.cgi?id=148585
678         -and corresponding-
679         rdar://problem/22165194
680
681         Reviewed by Tim Horton.
682
683         Only handle WebHTMLViews.
684         * WebView/WebImmediateActionController.mm:
685         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
686         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
687
688 2015-08-28  Jer Noble  <jer.noble@apple.com>
689
690         [iOS] Make the AllowsInlineMediaPlayback preference work in WebKit / WebKit2.
691         https://bugs.webkit.org/show_bug.cgi?id=147512
692
693         Reviewed by Anders Carlsson.
694
695         Add a new preference, inlineMediaPlaybackRequiresPlaysInlineAttribute, which defaults to
696         NO on iPad and YES on iPhone and iPod.
697
698         * WebView/WebPreferenceKeysPrivate.h:
699         * WebView/WebPreferences.mm:
700         (+[WebPreferences initialize]): Default the value of WebKitAllowsInlineMediaPlaybackPreferenceKey to
701         YES on iPad and NO on iPhone and iPod.
702         (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]):
703         (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]):
704         * WebView/WebPreferencesPrivate.h:
705         * WebView/WebView.mm:
706         (-[WebView _preferencesChanged:]):
707
708 2015-08-28  Timothy Horton  <timothy_horton@apple.com>
709
710         [Mac] Right-clicking on GIFs spins the UI process for a while
711         https://bugs.webkit.org/show_bug.cgi?id=148566
712         <rdar://problem/22460854>
713
714         Reviewed by Brady Eidson.
715
716         * WebCoreSupport/WebContextMenuClient.mm:
717         (WebContextMenuClient::shareMenuItem):
718         Make an NSImage directly from the hit image if possible.
719
720 2015-08-27  Timothy Horton  <timothy_horton@apple.com>
721
722         Factor out Lookup invocation
723         https://bugs.webkit.org/show_bug.cgi?id=148509
724
725         Reviewed by Anders Carlsson.
726
727         * WebView/DictionaryPopupInfo.h: Removed.
728         Move to WebCore.
729
730         * WebView/WebHTMLView.mm:
731         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
732         DictionaryPopupInfo keeps a TextIndicatorData, not a TextIndicator.
733
734         * WebView/WebImmediateActionController.mm:
735         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
736         (dictionaryPopupInfoForRange):
737         (-[WebImmediateActionController _animationControllerForText]):
738         * WebView/WebView.mm:
739         (-[WebView _prepareForDictionaryLookup]):
740         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
741         (-[WebView _setTextIndicator:withLifetime:]):
742         (-[WebView _showDictionaryLookupPopup:]):
743         * WebView/WebViewInternal.h:
744         Move a bunch of code to WebCore.
745         Factor some that has to stay out into _prepareForDictionaryLookup.
746
747 2015-08-27  Brian Burg  <bburg@apple.com>
748
749         Web Inspector: FrontendChannel should know its own connection type
750         https://bugs.webkit.org/show_bug.cgi?id=148482
751
752         Reviewed by Joseph Pecoraro.
753
754         * WebCoreSupport/WebInspectorClient.h: add connectionType().
755
756 2015-08-26  Beth Dakin  <bdakin@apple.com>
757
758         REGRESSION: Safari navigates after a cancelled force click
759         https://bugs.webkit.org/show_bug.cgi?id=148491
760         -and corresponding-
761         rdar://problem/22394323
762
763         Reviewed by Tim Horton.
764
765         Use the current stage to determine which type of cancel this is.
766         * WebView/WebImmediateActionController.mm:
767         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
768
769 2015-08-26  Tim Horton  <timothy_horton@apple.com>
770
771         Layout Test platform/mac/fast/events/content-inset-hit-testing-in-frame.html is flaky
772         https://bugs.webkit.org/show_bug.cgi?id=148409
773
774         Reviewed by Beth Dakin.
775
776         * WebView/WebDynamicScrollBarsView.mm:
777         (-[WebDynamicScrollBarsView setContentInsets:]):
778         Explicitly force our NSScrollView to lay out after updating
779         content insets. We depend on this happening synchronously (specifically,
780         we need our frame/bounds change callbacks to fire), because the layout
781         which will happen subsequently needs up-to-date information in order to
782         correctly a) enable scrollbars and then b) update the scroll position.
783
784 2015-08-23  Andy Estes  <aestes@apple.com>
785
786         [Content Filtering] REGRESSION (r182356): Provisional URL is incorrect in didReceiveServerRedirectForProvisionalLoadForFrame when Content Filtering is enabled
787         https://bugs.webkit.org/show_bug.cgi?id=147872
788         rdar://problem/22044000
789
790         Reviewed by Dan Bernstein.
791
792         * WebCoreSupport/WebFrameLoaderClient.h:
793         * WebCoreSupport/WebFrameLoaderClient.mm:
794         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Set provisionalURL using the URL argument.
795
796 2015-08-23  Geoffrey Garen  <ggaren@apple.com>
797
798         Unreviewed, rolling back in r188803.
799
800         "Debugger's VM should never be null"
801         https://bugs.webkit.org/show_bug.cgi?id=148341
802         http://trac.webkit.org/changeset/188803
803
804         * WebView/WebScriptDebugger.mm:
805         (toWebFrame):
806         (WebScriptDebugger::WebScriptDebugger):
807
808 2015-08-21  Commit Queue  <commit-queue@webkit.org>
809
810         Unreviewed, rolling out r188792 and r188803.
811         https://bugs.webkit.org/show_bug.cgi?id=148347
812
813         broke lots of tests, ggaren is going to investigate and reland
814         (Requested by thorton on #webkit).
815
816         Reverted changesets:
817
818         "Unify code paths for manually deleting all code"
819         https://bugs.webkit.org/show_bug.cgi?id=148280
820         http://trac.webkit.org/changeset/188792
821
822         "Debugger's VM should never be null"
823         https://bugs.webkit.org/show_bug.cgi?id=148341
824         http://trac.webkit.org/changeset/188803
825
826 2015-08-21  Chris Dumez  <cdumez@apple.com>
827
828         document.getElementsByTagName should return an HTMLCollection
829         https://bugs.webkit.org/show_bug.cgi?id=110611
830
831         Reviewed by Darin Adler.
832
833         * WebView/WebFrame.mm:
834         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
835         Use .ptr() as createFragmentFromMarkup() now returns a
836         Ref<> instead of a RefPtr<>.
837
838 2015-08-21  Anders Carlsson  <andersca@apple.com>
839
840         Get rid of uses of the old callOnMainThread function that takes a function ptr + context
841         https://bugs.webkit.org/show_bug.cgi?id=148324
842
843         Reviewed by Tim Horton.
844
845         * Storage/WebDatabaseManagerClient.mm:
846         (DidModifyOriginData::dispatchToMainThread):
847         (DidModifyOriginData::dispatchDidModifyOriginOnMainThread): Deleted.
848         * Storage/WebStorageTrackerClient.h:
849         * Storage/WebStorageTrackerClient.mm:
850         (WebStorageTrackerClient::dispatchDidModifyOrigin):
851         (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread): Deleted.
852
853 2015-08-19  Eric Carlson  <eric.carlson@apple.com>
854
855         Remove ENABLE_WEBVTT_REGIONS
856         https://bugs.webkit.org/show_bug.cgi?id=148184
857
858         Reviewed by Jer Noble.
859
860         * Configurations/FeatureDefines.xcconfig: Remove ENABLE_WEBVTT_REGIONS.
861
862 2015-08-17  Filip Pizlo  <fpizlo@apple.com>
863
864         Replace all remaining uses of WTF::Mutex with WTF::Lock
865         https://bugs.webkit.org/show_bug.cgi?id=148089
866
867         Reviewed by Geoffrey Garen.
868
869         * Storage/WebDatabaseManager.mm:
870         (transactionBackgroundTaskIdentifierLock):
871         (+[WebDatabaseManager startBackgroundTask]):
872         (+[WebDatabaseManager endBackgroundTask]):
873         * WebView/WebView.mm:
874         (-[WebView _synchronizeCustomFixedPositionLayoutRect]):
875         (-[WebView _setCustomFixedPositionLayoutRectInWebThread:synchronize:]):
876         (-[WebView _setCustomFixedPositionLayoutRect:]):
877         (-[WebView _fetchCustomFixedPositionLayoutRect:]):
878         * WebView/WebViewData.h:
879
880 2015-08-17  Jeff Miller  <jeffm@apple.com>
881
882         Add a method to WebInspector to indicate whether the inspector is open
883         https://bugs.webkit.org/show_bug.cgi?id=148087
884
885         Reviewed by Joseph Pecoraro.
886
887         * WebInspector/WebInspector.h:
888         Added open property.
889
890         * WebInspector/WebInspector.mm:
891         (-[WebInspector isOpen]):
892         Added, returns YES if we have a frontend.
893
894 2015-08-13  Andy Estes  <aestes@apple.com>
895
896         [Cocoa] Downloads do not start if policy decision is made asynchronously
897         https://bugs.webkit.org/show_bug.cgi?id=147985
898
899         Reviewed by Brady Eidson.
900
901         * WebCoreSupport/WebFrameLoaderClient.mm:
902         (WebFrameLoaderClient::convertMainResourceLoadToDownload): Started a new download if the main resource loader is not calling didReceiveResponse.
903
904 2015-08-13  Tim Horton  <timothy_horton@apple.com>
905
906         Performing a Lookup on wrapped text puts the popover arrow in the wrong place (off to the right)
907         https://bugs.webkit.org/show_bug.cgi?id=148012
908         <rdar://problem/19238094>
909
910         Reviewed by Simon Fraser.
911
912         * WebView/WebView.mm:
913         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
914         (-[WebView _showDictionaryLookupPopup:]):
915         Adopt the new SPI, handing it the first text rect, instead of having it
916         guess where to put the popover.
917         Also, null-check the TextIndicator.
918
919 2015-08-13  Tim Horton  <timothy_horton@apple.com>
920
921         Refactor and improve TextIndicator to prepare for tests
922         https://bugs.webkit.org/show_bug.cgi?id=147622
923
924         Reviewed by Simon Fraser.
925
926         * WebView/WebFrame.mm:
927         (-[WebFrame _rectsForRange:]):
928         * WebView/WebHTMLView.mm:
929         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
930         (-[WebHTMLView quickLookWithEvent:]):
931         * WebView/WebImmediateActionController.mm:
932         (-[WebImmediateActionController webView:didHandleScrollWheel:]):
933         (-[WebImmediateActionController _cancelImmediateAction]):
934         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
935         (-[WebImmediateActionController _defaultAnimationController]):
936         (-[WebImmediateActionController menuItemDidClose:]):
937         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
938         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
939         (dictionaryPopupInfoForRange):
940         * WebView/WebView.mm:
941         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
942         (-[WebView _setTextIndicator:]):
943         (-[WebView _setTextIndicator:withLifetime:]):
944         (-[WebView _clearTextIndicatorWithAnimation:]):
945         (-[WebView _showDictionaryLookupPopup:]):
946         (-[WebView _dictionaryLookupPopoverWillClose:]):
947         * WebView/WebViewInternal.h:
948         Adopt TextIndicatorOptions.
949         Adjust to Range method renames.
950
951 2015-08-13  Geoffrey Garen  <ggaren@apple.com>
952
953         Standardize on the phrase "delete code"
954         https://bugs.webkit.org/show_bug.cgi?id=147984
955
956         Reviewed by Mark Lam.
957
958         * WebView/WebView.mm:
959         (+[WebView discardAllCompiledCode]):
960         (+[WebView isCharacterSmartReplaceExempt:isPreviousCharacter:]):
961
962 2015-08-12  Anders Carlsson  <andersca@apple.com>
963
964         Use WTF::Optional in WindowFeatures
965         https://bugs.webkit.org/show_bug.cgi?id=147956
966
967         Reviewed by Sam Weinig.
968
969         * WebCoreSupport/WebChromeClient.mm:
970         (WebChromeClient::createWindow):
971
972 2015-08-13  Matthew Daiter  <mdaiter@apple.com>
973
974         Linking device query ability from WebKit2 to clients
975         https://bugs.webkit.org/show_bug.cgi?id=147263
976         <rdar://problem/21983345>
977
978         Reviewed by Jer Noble.
979
980         * WebCoreSupport/WebUserMediaClient.mm:
981         (-[WebUserMediaPolicyListener allow]):
982         (-[WebUserMediaPolicyListener allowDeviceWithVideoUID:andAudioUID:]):
983
984
985 2015-08-10  Chris Dumez  <cdumez@apple.com>
986
987         Align WebKit1's PageCache size with WebKit2's
988         https://bugs.webkit.org/show_bug.cgi?id=147831
989
990         Reviewed by Sam Weinig.
991
992         Align WebKit1's PageCache size with WebKit2's for consistency. Also, we
993         have data showing that keeping more than 3 pages in the PageCache is
994         not really useful.
995
996         * WebView/WebView.mm:
997         (+[WebView _setCacheModel:]):
998
999 2015-08-06  Anders Carlsson  <andersca@apple.com>
1000
1001         Crashes when calling swizzled setNeedsDisplayInRect: on heartbeat thread
1002         https://bugs.webkit.org/show_bug.cgi?id=147746
1003         rdar://problem/18698271
1004
1005         Reviewed by Dan Bernstein.
1006
1007         Back off if someone is calling our swizzled setNeedsDisplayInRect on a non-main thread.
1008
1009         * WebView/WebHTMLView.mm:
1010         (setNeedsDisplayInRect):
1011
1012 2015-08-05  Filip Pizlo  <fpizlo@apple.com>
1013
1014         Unreviewed, roll out http://trac.webkit.org/changeset/187972.
1015
1016         * Storage/WebDatabaseManager.mm:
1017         (transactionBackgroundTaskIdentifierLock):
1018         (+[WebDatabaseManager startBackgroundTask]):
1019         (+[WebDatabaseManager endBackgroundTask]):
1020         * WebView/WebView.mm:
1021         (-[WebView _synchronizeCustomFixedPositionLayoutRect]):
1022         (-[WebView _setCustomFixedPositionLayoutRectInWebThread:synchronize:]):
1023         (-[WebView _setCustomFixedPositionLayoutRect:]):
1024         (-[WebView _fetchCustomFixedPositionLayoutRect:]):
1025         * WebView/WebViewData.h:
1026
1027 2015-08-04  Filip Pizlo  <fpizlo@apple.com>
1028
1029         Rename Mutex to DeprecatedMutex
1030         https://bugs.webkit.org/show_bug.cgi?id=147675
1031
1032         Reviewed by Geoffrey Garen.
1033
1034         * Storage/WebDatabaseManager.mm:
1035         (transactionBackgroundTaskIdentifierLock):
1036         (+[WebDatabaseManager startBackgroundTask]):
1037         (+[WebDatabaseManager endBackgroundTask]):
1038         * WebView/WebView.mm:
1039         (-[WebView _synchronizeCustomFixedPositionLayoutRect]):
1040         (-[WebView _setCustomFixedPositionLayoutRectInWebThread:synchronize:]):
1041         (-[WebView _setCustomFixedPositionLayoutRect:]):
1042         (-[WebView _fetchCustomFixedPositionLayoutRect:]):
1043         * WebView/WebViewData.h:
1044
1045 2015-08-04  Anders Carlsson  <andersca@apple.com>
1046
1047         Remove database thread pause code
1048         https://bugs.webkit.org/show_bug.cgi?id=147669
1049
1050         Reviewed by Daniel Bates.
1051
1052         * Storage/WebDatabaseManager.mm:
1053         (WebKitSetWebDatabasePaused): Deleted.
1054         * Storage/WebDatabaseManagerInternal.h:
1055
1056 2015-08-04  Simon Fraser  <simon.fraser@apple.com>
1057
1058         Fix the build.
1059
1060         * Plugins/WebNetscapePluginStream.h:
1061
1062 2015-08-04  Anders Carlsson  <andersca@apple.com>
1063
1064         Get rid of ReasonForCallingAllowPlugins since it's not used anywhere
1065         https://bugs.webkit.org/show_bug.cgi?id=147648
1066
1067         Reviewed by Andreas Kling.
1068
1069         * WebCoreSupport/WebPlatformStrategies.mm:
1070         (WebPlatformStrategies::getPluginInfo):
1071         * WebView/WebFrame.mm:
1072         (-[WebFrame _canProvideDocumentSource]):
1073
1074 2015-08-04  Alexey Proskuryakov  <ap@apple.com>
1075
1076         Implement NPAPI redirect handling
1077         https://bugs.webkit.org/show_bug.cgi?id=138675
1078         rdar://problem/15779101
1079
1080         Patch by Jeffrey Pfau, updated and tweaked by me.
1081
1082         Reviewed by Anders Carlsson.
1083
1084         * Plugins/Hosted/HostedNetscapePluginStream.h:
1085         (WebKit::HostedNetscapePluginStream::streamID):
1086         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1087         (WebKit::HostedNetscapePluginStream::didFinishLoading):
1088         (WebKit::HostedNetscapePluginStream::willSendRequest):
1089         (WebKit::HostedNetscapePluginStream::didReceiveResponse):
1090         * Plugins/WebNetscapePluginStream.h:
1091         * Plugins/WebNetscapePluginStream.mm:
1092         (WebNetscapePluginStream::stop):
1093         (WebNetscapePluginStream::willSendRequest):
1094         (WebNetscapePluginStream::didReceiveResponse):
1095
1096 2015-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
1097
1098         Unreviewed post-review feedback on r187797
1099
1100         The correct terminology is "registered" instead of "activated."
1101
1102         * WebView/WebHTMLView.mm:
1103         (-[WebHTMLView _updateFontPanel]):
1104
1105 2015-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
1106
1107         Clean up casts between NSFont*s and CTFontRefs
1108         https://bugs.webkit.org/show_bug.cgi?id=147618
1109
1110         Reviewed by Mitz Pettel
1111
1112         For toll free bridged types, it makes more sense to do a C-style cast, than jump
1113         through hoops for older compilers.
1114
1115         * WebView/WebHTMLView.mm:
1116         (-[WebHTMLView _updateFontPanel]):
1117
1118 2015-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
1119
1120         Fix the Yosemite build after r187797
1121
1122         Unreviewed.
1123
1124         * WebView/WebHTMLView.mm:
1125         (-[WebHTMLView _updateFontPanel]):
1126
1127 2015-08-03  Myles C. Maxfield  <mmaxfield@apple.com>
1128
1129         REGRESSION(r184899): Crash when focusing an input element styled with a web font
1130         https://bugs.webkit.org/show_bug.cgi?id=147616
1131         <rdar://problem/21838271>
1132
1133         Reviewed by Dean Jackson.
1134
1135         NSFontManager can't handle web fonts. We used to pass null to NSFontManager in this case,
1136         but r184899 changed that.
1137
1138         * WebView/WebHTMLView.mm:
1139         (-[WebHTMLView _updateFontPanel]):
1140
1141 2015-07-31  Chris Dumez  <cdumez@apple.com>
1142
1143         Drop dummy Timer callbacks
1144         https://bugs.webkit.org/show_bug.cgi?id=147516
1145
1146         Reviewed by Alexey Proskuryakov.
1147
1148         Drop dummy Timer callbacks in the code base. A lot of Timer callbacks
1149         do nothing else beside calling a particular method. In such case, we
1150         can use the called method as Timer callback instead.
1151
1152         * Plugins/WebNetscapePluginStream.h:
1153         * Plugins/WebNetscapePluginStream.mm:
1154         (WebNetscapePluginStream::WebNetscapePluginStream):
1155         (WebNetscapePluginStream::deliverDataTimerFired): Deleted.
1156
1157 2015-07-31  Brady Eidson  <beidson@apple.com>
1158
1159         REGRESSION (r174791): Returning a zombie NSImage from sharingService:transitionImageForShareItem:contentRect:
1160         <rdar://problem/22060183> and https://bugs.webkit.org/show_bug.cgi?id=147497
1161
1162         Reviewed by Tim Horton.
1163
1164         * WebCoreSupport/WebContextMenuClient.mm:
1165         (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Don't return what is basically a temporary NSImage.
1166           Instead do a [[retain] autorelease] on it while still valid.
1167
1168 2015-07-29  Dean Jackson  <dino@apple.com>
1169
1170         Don't use (Details) when exposing SPI
1171         https://bugs.webkit.org/show_bug.cgi?id=147426
1172         <rdar://problem/22062407>
1173
1174         Reviewed by Dan Bernstein.
1175
1176         If we are declaring the interface without any implementation,
1177         we should use class extensions.
1178
1179         * WebView/WebFrameView.mm:
1180         * WebView/WebPDFView.mm:
1181
1182 2015-07-29  Andy VanWagoner  <thetalecrafter@gmail.com>
1183
1184         Implement basic types for ECMAScript Internationalization API
1185         https://bugs.webkit.org/show_bug.cgi?id=146926
1186
1187         Reviewed by Benjamin Poulain.
1188
1189         * Configurations/FeatureDefines.xcconfig: Enabled INTL.
1190
1191 2015-07-28  Yusuke Suzuki  <utatane.tea@gmail.com>
1192
1193         [ES6] Add ENABLE_ES6_MODULES compile time flag with the default value "false"
1194         https://bugs.webkit.org/show_bug.cgi?id=147350
1195
1196         Reviewed by Sam Weinig.
1197
1198         * Configurations/FeatureDefines.xcconfig:
1199
1200 2015-07-24  Yusuke Suzuki  <utatane.tea@gmail.com>
1201
1202         Remove runtime flags for symbols
1203         https://bugs.webkit.org/show_bug.cgi?id=147246
1204
1205         Reviewed by Alex Christensen.
1206
1207         * WebView/WebPreferencesPrivate.h:
1208
1209 2015-07-24  Yusuke Suzuki  <utatane.tea@gmail.com>
1210
1211         Object.getOwnPropertySymbols on large list takes very long
1212         https://bugs.webkit.org/show_bug.cgi?id=146137
1213
1214         Reviewed by Mark Lam.
1215
1216         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1217         (WebKit::NetscapePluginInstanceProxy::enumerate):
1218
1219 2015-07-23  Alex Christensen  <achristensen@webkit.org>
1220
1221         Remove compile and runtime flags for promises.
1222         https://bugs.webkit.org/show_bug.cgi?id=147244
1223
1224         Reviewed by Yusuke Suzuki.
1225
1226         * Configurations/FeatureDefines.xcconfig:
1227         * WebView/WebPreferencesPrivate.h:
1228
1229 2015-07-22  Sukolsak Sakshuwong  <sukolsak@gmail.com>
1230
1231         Add ENABLE_WEBASSEMBLY feature flag for WebAssembly
1232         https://bugs.webkit.org/show_bug.cgi?id=147212
1233
1234         Reviewed by Filip Pizlo.
1235
1236         * Configurations/FeatureDefines.xcconfig:
1237
1238 2015-07-21  Joseph Pecoraro  <pecoraro@apple.com>
1239
1240         Web Inspector: [Mac] "Open Image In New Window" context menu item does nothing on an image
1241         https://bugs.webkit.org/show_bug.cgi?id=147175
1242
1243         Reviewed by Timothy Hatcher.
1244
1245         * WebCoreSupport/WebInspectorClient.mm:
1246         (-[WebInspectorWindowController webView:contextMenuItemsForElement:defaultMenuItems:]):
1247         Remove default context menus that won't work in the inspector page.
1248
1249 2015-07-21  Simon Fraser  <simon.fraser@apple.com>
1250
1251         Add a logging channel for Layout, remove the LiveConnect channel
1252         https://bugs.webkit.org/show_bug.cgi?id=147170
1253
1254         Reviewed by Zalan Bujtas.
1255
1256         Add a layout logging channel to WebCore, and remove the LiveConnect channel.
1257
1258         * Misc/WebKitLogging.h:
1259         * Plugins/WebNetscapePluginPackage.mm:
1260         (-[WebNetscapePluginPackage _tryLoad]): Deleted.
1261
1262 2015-07-21  Brady Eidson  <beidson@apple.com>
1263
1264         Fix WebPreferences infinite recursion introduced in r186232.
1265         <rdar://problem/9091261> and https://bugs.webkit.org/show_bug.cgi?id=147149
1266
1267         Reviewed by Tim Horton.
1268
1269         * WebView/WebPreferences.mm:
1270         (-[WebPreferences metaRefreshEnabled]):
1271
1272 2015-07-18  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1273
1274         Reduce PassRefPtr in WebKit2 - 3
1275         https://bugs.webkit.org/show_bug.cgi?id=146995
1276
1277         Reviewed by Daniel Bates.
1278
1279         To remove PassRefPtr, this patch reduces use of PassRefPtr in WebKit2.
1280         Because some uses depend on WebCore, WebCore, WK1 ports are modified as well.
1281
1282         * WebCoreSupport/WebFrameLoaderClient.h:
1283         * WebCoreSupport/WebFrameLoaderClient.mm:
1284         (WebFrameLoaderClient::createDocumentLoader):
1285
1286 2015-07-17  Andy Estes  <aestes@apple.com>
1287
1288         [iOS] Further tighten the sandbox around pages fetched with Content-Disposition: attachment
1289         https://bugs.webkit.org/show_bug.cgi?id=147044
1290         rdar://problem/21567820
1291
1292         Reviewed by Brady Eidson.
1293
1294         * WebView/WebView.mm:
1295         (-[WebView _commonInitializationWithFrameName:groupName:]): Enabled Content-Disposition: attachment sandbox on iOS.
1296
1297 2015-07-16  Joseph Pecoraro  <pecoraro@apple.com>
1298
1299         Web Inspector: [Mac] Save dialog not working when inspector is docked
1300         https://bugs.webkit.org/show_bug.cgi?id=146991
1301
1302         Reviewed by Sam Weinig.
1303
1304         * WebCoreSupport/WebInspectorClient.mm:
1305         (WebInspectorFrontendClient::save):
1306         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
1307         When the window is nil (docked) use a non-window version of running the dialog.
1308
1309 2015-07-13  Simon Fraser  <simon.fraser@apple.com>
1310
1311         [iOS] Expose contentsSizeRespectingOverflow() via WebView so UIWebView can use it
1312         https://bugs.webkit.org/show_bug.cgi?id=146924
1313         WebKit part of rdar://problem/21802456
1314
1315         Reviewed by Tim Horton.
1316
1317         Expose the FrameView's contentsSizeRespectingOverflow() via WebView, for use
1318         by UIKit.
1319
1320         * WebView/WebView.mm:
1321         (-[WebView _contentsSizeRespectingOverflow]):
1322         * WebView/WebViewPrivate.h:
1323
1324 2015-07-14  Anders Carlsson  <andersca@apple.com>
1325
1326         Remove wkPopupMenu from WebCoreSystemInterface; it's not called from WebCore
1327         https://bugs.webkit.org/show_bug.cgi?id=146945
1328
1329         Reviewed by Tim Horton.
1330
1331         * WebCoreSupport/PopupMenuMac.mm:
1332         (PopupMenuMac::show):
1333         * WebCoreSupport/WebSystemInterface.mm:
1334         (InitWebCoreSystemInterface): Deleted.
1335
1336 2015-07-11  Nikita Vasilyev  <nvasilyev@apple.com>
1337
1338         Web Inspector: Inspector should be able to be docked to the bottom of a narrow window
1339         https://bugs.webkit.org/show_bug.cgi?id=146871
1340
1341         Reviewed by Timothy Hatcher.
1342
1343         * WebCoreSupport/WebInspectorClient.mm:
1344
1345 2015-07-07  Brady Eidson  <beidson@apple.com>
1346
1347         HTTP Auth cached after disabling private browsing/reset.
1348         <rdar://problem/8293055> and https://bugs.webkit.org/show_bug.cgi?id=146654
1349
1350         Reviewed by Tim Horton.
1351
1352         * Misc/WebCache.h:
1353         * Misc/WebCache.mm:
1354         (+[WebCache clearCachedCredentials]): Clear the global CredentialStorage as well as the
1355           storages belonging to each main frame of each WebView. This method is for DRT.
1356         
1357         * Misc/WebDownload.mm:
1358         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]):
1359         
1360         * Plugins/WebBaseNetscapePluginView.mm:
1361         (WebKit::getAuthenticationInfo):
1362         
1363         * WebView/WebView.mm:
1364         (-[WebView _clearCredentials]): Clear the storage belonging to the current networking session
1365           of the main frame of this WebView.
1366         * WebView/WebViewInternal.h:
1367
1368 2015-07-04  Chris Dumez  <cdumez@apple.com>
1369
1370         Drop RefPtr::clear() method
1371         https://bugs.webkit.org/show_bug.cgi?id=146556
1372
1373         Reviewed by Brady Eidson.
1374
1375         Drop RefPtr::clear() method in favor of "= nullptr;" pattern.
1376
1377 2015-07-03  Dan Bernstein  <mitz@apple.com>
1378
1379         [Xcode] Update some build settings as recommended by Xcode 7
1380         https://bugs.webkit.org/show_bug.cgi?id=146597
1381
1382         Reviewed by Sam Weinig.
1383
1384         * Configurations/Base.xcconfig: Enabled CLANG_WARN_UNREACHABLE_CODE,
1385         GCC_WARN_UNDECLARED_SELECTOR and GCC_NO_COMMON_BLOCKS. Removed GCC_MODEL_TUNING.
1386
1387 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
1388
1389         Fix the build.
1390
1391         Rubber-stamped by Brady Eidson.
1392
1393         * WebView/WebView.mm:
1394         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1395         Http, not HTTP, for settings generator reasons.
1396
1397 2015-07-02  Brady Eidson  <beidson@apple.com>
1398
1399         Add preference to disable all http-equiv.
1400         <rdar://problem/9091261> and https://bugs.webkit.org/show_bug.cgi?id=146553
1401
1402         Reviewed by Sam Weinig.
1403         
1404         * WebView/WebPreferenceKeysPrivate.h:
1405         
1406         * WebView/WebPreferences.mm:
1407         (+[WebPreferences initialize]):
1408         (-[WebPreferences setMetaRefreshEnabled:]): Still expose this SPI, but have it affect
1409           the "httpEquivEnabled" setting.
1410         (-[WebPreferences metaRefreshEnabled]): Ditto.
1411         (-[WebPreferences setHTTPEquivEnabled:]):
1412         (-[WebPreferences httpEquivEnabled]):
1413         * WebView/WebPreferencesPrivate.h:
1414         
1415         * WebView/WebView.mm:
1416         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1417         (-[WebView _preferencesChanged:]):
1418
1419 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
1420
1421         iOS WebKitLegacy should match WebKit2's viewport behavior
1422         https://bugs.webkit.org/show_bug.cgi?id=146540
1423         <rdar://problem/20574017>
1424
1425         Reviewed by Dan Bernstein.
1426
1427         A number of changes have been made to WebKit2's viewport behavior
1428         to make it possible to scale "responsive" sites that misbehave (lay out
1429         in a non-responsive way).
1430
1431         * History/WebHistoryItem.mm:
1432         * History/WebHistoryItemPrivate.h:
1433         Add the plumbing required to implement these new behaviors in WebKit1.
1434
1435 2015-07-01  Dean Jackson  <dino@apple.com>
1436
1437         Disable the experimental WebGL2 implementation
1438         https://bugs.webkit.org/show_bug.cgi?id=146526
1439         <rdar://problem/21641235>
1440
1441         Reviewed by Myles Maxfield.
1442
1443         Add (and disable) an ENABLE_WEBGL2 flag.
1444
1445         * Configurations/FeatureDefines.xcconfig:
1446
1447 2015-07-01  Simon Fraser  <simon.fraser@apple.com>
1448
1449         Fix the iOS build.
1450
1451         * WebCoreSupport/WebUserMediaClient.mm:
1452         (-[WebUserMediaPolicyListener denyOnlyThisRequest]): Remove ASSERT_NOT_REACHED, 
1453         because it caused the compiler to warn about noreturn.
1454
1455 2015-07-01  Matthew Daiter  <mdaiter@apple.com>
1456
1457         Enable MEDIA_STREAM flag
1458         https://bugs.webkit.org/show_bug.cgi?id=145947
1459         <rdar://problem/21365829>
1460
1461         Reviewed by Eric Carlson.
1462
1463         * Configurations/FeatureDefines.xcconfig: Added MEDIA_STREAM flag
1464         * WebCoreSupport/WebUserMediaClient.h: Changed signatures
1465         * WebCoreSupport/WebUserMediaClient.mm: Changed signatures
1466         (WebUserMediaClient::requestPermission):
1467         (WebUserMediaClient::cancelRequest):
1468         (-[WebUserMediaPolicyListener denyOnlyThisRequest]):
1469         (-[WebUserMediaPolicyListener shouldClearCache]):
1470
1471 2015-07-01  Brady Eidson  <beidson@apple.com>
1472
1473         REGRESSION (185319): Reproducible crash in WebHistoryItem launching FluidApp.
1474         <rdar://problem/21598293> and https://bugs.webkit.org/show_bug.cgi?id=146494
1475
1476         Reviewed by Darin Adler.
1477
1478         * History/WebHistoryItem.mm:
1479         (-[WebHistoryItem initFromDictionaryRepresentation:]): Don’t reference members of a Vector
1480           that don’t exist.
1481
1482 2015-06-30  Andy VanWagoner  <thetalecrafter@gmail.com>
1483
1484         Implement ECMAScript Internationalization API
1485         https://bugs.webkit.org/show_bug.cgi?id=90906
1486
1487         Reviewed by Benjamin Poulain.
1488
1489         * Configurations/FeatureDefines.xcconfig: add ENABLE_INTL flag
1490
1491 2015-06-30  Simon Fraser  <simon.fraser@apple.com>
1492
1493         Crash under _layoutForNodeHighlight: when inspecting espn.com
1494         https://bugs.webkit.org/show_bug.cgi?id=146422
1495
1496         Reviewed by Joseph Pecoraro.
1497
1498         When inspecting espn.com, MobileSafari sometimes crashes, because
1499         highlight.quads is empty. I was not able to quickly determine why.
1500
1501         Fix by bailing in this case.
1502
1503         * WebInspector/WebNodeHighlightView.mm:
1504         (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
1505
1506 2015-06-30  Anders Carlsson  <andersca@apple.com>
1507
1508         Remove the WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS ifdefs now that this is always true
1509         https://bugs.webkit.org/show_bug.cgi?id=146462
1510
1511         Reviewed by Dan Bernstein.
1512
1513         * Misc/WebDownload.h:
1514         * WebView/WebFrameLoadDelegate.h:
1515         * WebView/WebPolicyDelegate.h:
1516         * WebView/WebResourceLoadDelegate.h:
1517         * WebView/WebUIDelegate.h:
1518         * WebView/WebView.h:
1519         * postprocess-headers.sh:
1520
1521 2015-06-29  Anders Carlsson  <andersca@apple.com>
1522
1523         Get rid of unused WKSI functions
1524         https://bugs.webkit.org/show_bug.cgi?id=146443
1525
1526         Reviewed by Tim Horton.
1527
1528         * WebCoreSupport/WebSystemInterface.mm:
1529         (InitWebCoreSystemInterface): Deleted.
1530
1531 2015-06-29  Dean Jackson  <dino@apple.com>
1532
1533         Temporarily disable PICTURE_SIZES
1534         https://bugs.webkit.org/show_bug.cgi?id=146435
1535         <rdar://problem/21087013>
1536
1537         Reviewed by Tim Horton.
1538
1539         Temporarily disable PICTURE_SIZES because it causes problems with out
1540         of date <picture> polyfills.
1541
1542         * Configurations/FeatureDefines.xcconfig:
1543
1544 2015-06-27  Ryosuke Niwa  <rniwa@webkit.org>
1545
1546         Font panel doesn't get updated when bolding text via cmd+b in Mail on OS X
1547         https://bugs.webkit.org/show_bug.cgi?id=146379
1548
1549         Reviewed by Darin Adler.
1550
1551         Update the font panel when newly added EditorClient::didApplyStyle is called. Also set the font attributes
1552         in _updateFontPanel so that underline and strike through states will be reflected.
1553
1554         * WebCoreSupport/WebEditorClient.h:
1555         * WebCoreSupport/WebEditorClient.mm:
1556         (WebEditorClient::shouldApplyStyle):
1557         (updateFontPanelIfNeeded): Extracted from respondToChangedContents.
1558         (WebEditorClient::didApplyStyle): Added.
1559         (WebEditorClient::respondToChangedContents):
1560         * WebView/WebHTMLView.mm:
1561         (-[WebHTMLView _updateFontPanel]): Sets font attributes as well as font.
1562
1563 2015-06-29  Dean Jackson  <dino@apple.com>
1564
1565         Setting to enable/disable media controls sizing on page zoom
1566         https://bugs.webkit.org/show_bug.cgi?id=146423
1567         <rdar://problem/18379634>
1568
1569         Reviewed by Eric Carlson.
1570
1571         Add a new setting "MediaControlsScaleWithPageZoom" that can disable
1572         the behaviour we currently implement on iOS, where the media controls
1573         attempt to remain at a fixed size independent of page zoom.
1574
1575         * WebView/WebPreferenceKeysPrivate.h:
1576         * WebView/WebPreferences.mm:
1577         (+[WebPreferences initialize]): Initialize to false on iOS, true otherwise.
1578         (-[WebPreferences mediaControlsScaleWithPageZoom]):
1579         (-[WebPreferences setMediaControlsScaleWithPageZoom:]):
1580         * WebView/WebPreferencesPrivate.h:
1581         * WebView/WebView.mm:
1582         (-[WebView _preferencesChanged:]):
1583
1584 2015-06-29  Anders Carlsson  <andersca@apple.com>
1585
1586         Use DISPATCH_SOURCE_TYPE_MEMORYPRESSURE instead of DISPATCH_SOURCE_TYPE_MEMORYSTATUS
1587         https://bugs.webkit.org/show_bug.cgi?id=146413
1588
1589         Reviewed by Andreas Kling.
1590
1591         Replace SPI with API.
1592
1593         * WebCoreSupport/WebSystemInterface.mm:
1594         (InitWebCoreSystemInterface): Deleted.
1595         * WebView/WebView.mm:
1596         (+[WebView registerForMemoryNotifications]):
1597
1598 2015-06-28  Darin Adler  <darin@apple.com>
1599
1600         [Mac] Remove redundant call to colorUsingColorSpaceName:
1601         https://bugs.webkit.org/show_bug.cgi?id=146397
1602
1603         Reviewed by Alexey Proskuryakov.
1604
1605         * WebView/WebHTMLView.mm:
1606         (extractUnderlines): Remove call to the colorUsingColorSpaceName: method,
1607         since colorFromNSColor already calls it. No need to do it twice.
1608
1609 2015-06-26  Hyungwook Lee  <hyungwook.lee@navercorp.com>
1610
1611         [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
1612         https://bugs.webkit.org/show_bug.cgi?id=145908
1613
1614         Reviewed by Brent Fulgham.
1615
1616         Make WebViewGroup class sharing on Mac and Win port.
1617
1618         * WebCoreSupport/WebViewGroup.h: Removed.
1619         * WebCoreSupport/WebViewGroup.mm: Removed.
1620
1621 2015-06-25  Joseph Pecoraro  <pecoraro@apple.com>
1622
1623         Web Inspector: Add Support for OS X Full Screen Mode
1624         https://bugs.webkit.org/show_bug.cgi?id=123510
1625
1626         Reviewed by Timothy Hatcher.
1627
1628         * WebCoreSupport/WebInspectorClient.h:
1629         * WebCoreSupport/WebInspectorClient.mm:
1630         (WebInspectorClient::didResizeMainFrame):
1631         (WebInspectorClient::windowFullScreenDidChange):
1632         (WebInspectorClient::canAttach):
1633         (WebInspectorFrontendClient::canAttach):
1634         (-[WebInspectorWindowController showWindow:]):
1635         Consolidate canAttach logic into canAttach functions.
1636
1637         (-[WebInspectorWindowController window:]):
1638         Share the same full screen behavior as WebKit2.
1639
1640         (-[WebInspectorWindowController windowDidEnterFullScreen:]):
1641         (-[WebInspectorWindowController windowDidExitFullScreen:]):
1642         Attach availability may have changed.
1643
1644 2015-06-25  Joseph Pecoraro  <pecoraro@apple.com>
1645
1646         [Mac] Web Inspector: Window dragging on toolbar should behave more like native window dragging
1647         https://bugs.webkit.org/show_bug.cgi?id=146324
1648
1649         Reviewed by Timothy Hatcher.
1650
1651         * WebCoreSupport/WebInspectorClient.h:
1652         * WebCoreSupport/WebInspectorClient.mm:
1653         (WebInspectorFrontendClient::startWindowDrag):
1654         Start performing a window drag.
1655
1656 2015-06-23  Anders Carlsson  <andersca@apple.com>
1657
1658         Remove windowResizerRect code, nobody is using it anymore
1659         https://bugs.webkit.org/show_bug.cgi?id=146265
1660
1661         Reviewed by Beth Dakin.
1662
1663         * WebCoreSupport/WebChromeClient.h:
1664         * WebCoreSupport/WebChromeClient.mm:
1665         (WebChromeClient::windowResizerRect): Deleted.
1666
1667 2015-06-22  Chris Dumez  <cdumez@apple.com>
1668
1669         [WK1] WebAllowDenyPolicyListener.denyOnlyThisRequest() should not start a new permission request
1670         https://bugs.webkit.org/show_bug.cgi?id=146228
1671         <rdar://problem/15179262>
1672
1673         Reviewed by Daniel Bates.
1674
1675         Call the new Geolocation::resetIsAllowed() API after denying the
1676         current request, instead of calling
1677         Geolocation::resetAllGeolocationPermission(). In addition to resetting
1678         m_allowGeolocation to Unknown, the latter would also start a new
1679         permission request. However, for
1680         WebAllowDenyPolicyListener.denyOnlyThisRequest(), we really only want
1681         to deny the current request and then reset m_allowGeolocation to
1682         Unknown so that permission is requested again later if the app requests
1683         a position again.
1684
1685         The previous implementation meant that if the client application keeps
1686         calling WebAllowDenyPolicyListener.denyOnlyThisRequest(), we would end
1687         up in an infinite loop (requesting for permission), even though the
1688         application did not make any new geolocation requests.
1689
1690         * WebCoreSupport/WebGeolocationClient.mm:
1691         (-[WebGeolocationPolicyListener denyOnlyThisRequest]):
1692
1693 2015-06-22  Anders Carlsson  <andersca@apple.com>
1694
1695         Delegates should be formal protocols
1696         https://bugs.webkit.org/show_bug.cgi?id=146222
1697         rdar://problem/17380856
1698
1699         Reviewed by Dan Bernstein.
1700
1701         Flip the switch on OS X and make delegates formal protocols.
1702
1703         * postprocess-headers.sh:
1704
1705 2015-06-20  Tim Horton  <timothy_horton@apple.com>
1706
1707         Deselection of text causes a noticeable jump on force touch machines
1708         https://bugs.webkit.org/show_bug.cgi?id=146173
1709         <rdar://problem/20992842>
1710
1711         Reviewed by Sam Weinig.
1712
1713         * WebView/WebImmediateActionController.mm:
1714         (-[WebImmediateActionController _animationControllerForText]):
1715         Get rid of TextIndicatorPresentationTransition::Crossfade.
1716
1717 2015-06-19  Brent Fulgham  <bfulgham@apple.com>
1718
1719         All calls of ImageBuffer::create should null check the return value
1720         https://bugs.webkit.org/show_bug.cgi?id=22132
1721
1722         Reviewed by Zalan Bujtas.
1723
1724         ImageBuffer::create returns nullptr for a number of reasons, and should be
1725         expected to do so. We missed this check in a few places, resulting in
1726         crashes on some systems. Likewise, ImageBuffer::copyImage may return nullptr
1727         in normal use and should be checked.
1728
1729         * WebCoreSupport/WebContextMenuClient.mm:
1730         (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Add nullptr check
1731         for copyImage.
1732
1733 2015-06-18  Jon Lee  <jonlee@apple.com>
1734
1735         Update AVKit usage of pip
1736         https://bugs.webkit.org/show_bug.cgi?id=146095
1737         <rdar://problem/21386853>
1738
1739         Reviewed by Eric Carlson.
1740
1741         - Rename preference key
1742         - Rename shouldAllowAlternateFullscreen to shouldAllowPictureInPictureMediaPlayback
1743
1744         * WebCoreSupport/WebSystemInterface.mm:
1745         * WebView/WebPreferenceKeysPrivate.h:
1746         * WebView/WebPreferences.mm:
1747         (-[WebPreferences allowsAlternateFullscreen]): Call allowsPictureInPictureMediaPlayback.
1748         (-[WebPreferences setAllowsAlternateFullscreen:]):
1749         (-[WebPreferences allowsPictureInPictureMediaPlayback]): Added.
1750         (-[WebPreferences setAllowsPictureInPictureMediaPlayback:]):
1751         * WebView/WebPreferencesPrivate.h:
1752         * WebView/WebView.mm:
1753
1754 2015-06-18  Anders Carlsson  <andersca@apple.com>
1755
1756         Remove shouldInterruptJavaScript
1757         https://bugs.webkit.org/show_bug.cgi?id=146118
1758
1759         Reviewed by Antti Koivisto.
1760
1761         * WebCoreSupport/WebChromeClient.h:
1762         * WebCoreSupport/WebChromeClient.mm:
1763         (WebChromeClient::shouldInterruptJavaScript): Deleted.
1764         * WebView/WebUIDelegatePrivate.h:
1765
1766 2015-06-17  Alex Christensen  <achristensen@webkit.org>
1767
1768         [Content Extensions] Log blocked loads to the WebInspector console
1769         https://bugs.webkit.org/show_bug.cgi?id=146089
1770
1771         Reviewed by Joseph Pecoraro.
1772
1773         * WebCoreSupport/WebChromeClient.mm:
1774         (stringForMessageSource):
1775         Added content blocker message source.
1776
1777 2015-06-17  Dan Bernstein  <mitz@apple.com>
1778
1779         <rdar://problem/19034131> Cleaned up the WebDownload.h framework header.
1780
1781         Reviewed by Anders Carlsson.
1782
1783         * Misc/WebDownload.h: Changed to use USE_APPLE_INTERNAL_SDK instead of __has_include.
1784         * postprocess-headers.sh: Define USE_APPLE_INTERNAL_SDK when postprocessing framework
1785         headers.
1786
1787 2015-06-17  Commit Queue  <commit-queue@webkit.org>
1788
1789         Unreviewed, rolling out r185636.
1790         https://bugs.webkit.org/show_bug.cgi?id=146068
1791
1792         Caused many crashes on Windows (Requested by ap on #webkit).
1793
1794         Reverted changeset:
1795
1796         "[Win] Implement WebViewGroup to support
1797         WebView::addxxxToGroup()."
1798         https://bugs.webkit.org/show_bug.cgi?id=145908
1799         http://trac.webkit.org/changeset/185636
1800
1801 2015-06-16  Hyungwook Lee  <hyungwook.lee@navercorp.com>
1802
1803         [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
1804         https://bugs.webkit.org/show_bug.cgi?id=145908
1805
1806         Reviewed by Brent Fulgham.
1807
1808         Make WebViewGroup class sharing on Mac and Win port.
1809
1810         * WebCoreSupport/WebViewGroup.h: Removed.
1811         * WebCoreSupport/WebViewGroup.mm: Removed.
1812
1813 2015-06-13  Chris Dumez  <cdumez@apple.com>
1814
1815         [WK2] API::Navigation objects are leaked on history navigation to HistoryItems in PageCache
1816         https://bugs.webkit.org/show_bug.cgi?id=145948
1817
1818         Reviewed by Darin Adler.
1819
1820         Add empty implementation for new
1821         FrameLoaderClient::updatedCachedDocumentLoader().
1822
1823         * WebCoreSupport/WebFrameLoaderClient.h:
1824
1825 2015-06-11  Mark Lam  <mark.lam@apple.com>
1826
1827         WebCore::reportException() needs to be able to accept a raw thrown value in addition to Exception objects.
1828         https://bugs.webkit.org/show_bug.cgi?id=145872
1829
1830         Reviewed by Michael Saboff.
1831
1832         * WebView/WebView.mm:
1833         (+[WebView _reportException:inContext:]):
1834         - Don't assume we have an Exception object.  Let WebCore::reportException() take
1835           care of it.
1836
1837 2015-06-11  Jon Lee  <jonlee@apple.com>
1838
1839         Update media controls JS and CSS to use picture-in-picture
1840         https://bugs.webkit.org/show_bug.cgi?id=145827
1841         <rdar://problem/21311576>
1842
1843         Reviewed by Dean Jackson.
1844
1845         * WebCoreSupport/WebSystemInterface.mm:
1846         (InitWebCoreSystemInterface): Deleted GetMediaUIImageData.
1847
1848 2015-06-10  Jon Honeycutt  <jhoneycutt@apple.com>
1849
1850         Meta refresh preference is not respected on fast path WebView
1851         initialization
1852
1853         <https://bugs.webkit.org/show_bug.cgi?id=145861>
1854         <rdar://problem/21309911>
1855
1856         Reviewed by Brady Eidson.
1857
1858         * WebView/WebView.mm:
1859         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1860         Set the WebCore setting from the WebPreferences preference.
1861
1862 2015-06-09  Anders Carlsson  <andersca@apple.com>
1863
1864         Remove more unused SPI methods
1865         https://bugs.webkit.org/show_bug.cgi?id=145804
1866
1867         Reviewed by Simon Fraser.
1868
1869         * Misc/WebNSURLRequestExtras.h:
1870         * Misc/WebNSURLRequestExtras.m:
1871         (-[NSURLRequest _web_HTTPReferrer]): Deleted.
1872         (-[NSURLRequest _web_HTTPContentType]): Deleted.
1873         (-[NSURLRequest _web_isConditionalRequest]): Deleted.
1874
1875 2015-06-08  Dan Bernstein  <mitz@apple.com>
1876
1877         Removed WebDragSourceActionAttachment from the WebDragSourceAction enum.
1878
1879         Rubber-stamped by Anders Carlsson.
1880
1881         * WebView/WebUIDelegate.h: Removed the value. It was added in r181760 and never used.
1882
1883 2015-06-08  Chris Dumez  <cdumez@apple.com>
1884
1885         Access GCController instance via GCController::singleton() instead of a free function
1886         https://bugs.webkit.org/show_bug.cgi?id=145776
1887
1888         Reviewed by Darin Adler.
1889
1890         Access GCController instance via GCController::singleton() instead of a
1891         free function as per coding style and for consistency with other
1892         singleton classes in the codebase.
1893
1894         * Misc/WebCoreStatistics.mm:
1895         (+[WebCoreStatistics garbageCollectJavaScriptObjects]):
1896         (+[WebCoreStatistics garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging:]):
1897         (+[WebCoreStatistics setJavaScriptGarbageCollectorTimerEnabled:]):
1898         * WebView/WebView.mm:
1899         (+[WebView garbageCollectNow]):
1900         (+[WebView discardAllCompiledCode]):
1901         (-[WebView _close]):
1902
1903 2015-06-08  Anders Carlsson  <andersca@apple.com>
1904
1905         Remove more unused Objective-C methods
1906         https://bugs.webkit.org/show_bug.cgi?id=145761
1907
1908         Reviewed by Geoffrey Garen.
1909
1910         * Misc/WebNSImageExtras.h:
1911         * Misc/WebNSImageExtras.m:
1912         (-[NSImage _web_saveAndOpen]): Deleted.
1913         * Misc/WebNSViewExtras.h:
1914         * Misc/WebNSViewExtras.m:
1915         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]): Deleted.
1916         (-[NSView _web_convertRect:toView:]): Deleted.
1917
1918 2015-06-08  Anders Carlsson  <andersca@apple.com>
1919
1920         Try to fix the Mavericks build.
1921
1922         * WebView/WebPDFView.mm:
1923         (removeUselessMenuItemSeparators):
1924
1925 2015-06-07  Anders Carlsson  <andersca@apple.com>
1926
1927         Remove WebNSArrayExtras
1928         https://bugs.webkit.org/show_bug.cgi?id=145747
1929
1930         Reviewed by Darin Adler.
1931
1932         * History/WebHistoryItem.mm:
1933         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1934         * Misc/WebNSArrayExtras.h: Removed.
1935         * Misc/WebNSArrayExtras.m: Removed.
1936         (-[NSArray _webkit_numberAtIndex:]): Deleted.
1937         (-[NSArray _webkit_stringAtIndex:]): Deleted.
1938         (-[NSMutableArray _webkit_removeUselessMenuItemSeparators]): Deleted.
1939         * WebView/WebPDFView.mm:
1940         (removeUselessMenuItemSeparators):
1941         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
1942
1943 2015-06-08  Dan Bernstein  <mitz@apple.com>
1944
1945         Fixed the build.
1946
1947         * WebView/WebView.mm:
1948         (+[WebView _setCacheModel:]):
1949
1950 2015-06-07  Anders Carlsson  <andersca@apple.com>
1951
1952         Remove WebKitSystemBits
1953         https://bugs.webkit.org/show_bug.cgi?id=145746
1954
1955         Reviewed by Dan Bernstein.
1956
1957         Fold WebVolumeFreeSize into its only caller and get rid of WebKitSystemBits.
1958
1959         * Misc/WebKitSystemBits.h: Removed.
1960         * Misc/WebKitSystemBits.m: Removed.
1961         * WebView/WebPreferences.mm:
1962         * WebView/WebView.mm:
1963         (+[WebView _setCacheModel:]):
1964
1965 2015-06-07  Anders Carlsson  <andersca@apple.com>
1966
1967         Remove another SPI method that hasn't been used since Tiger
1968         https://bugs.webkit.org/show_bug.cgi?id=145745
1969
1970         Reviewed by Dan Bernstein.
1971
1972         * WebView/WebView.mm:
1973         (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]): Deleted.
1974         * WebView/WebViewPrivate.h:
1975
1976 2015-06-07  Anders Carlsson  <andersca@apple.com>
1977
1978         Remove another unused SPI method
1979         https://bugs.webkit.org/show_bug.cgi?id=145743
1980
1981         Reviewed by Dan Bernstein.
1982
1983         * WebView/WebView.mm:
1984         (+[WebView _pointingHandCursor]): Deleted.
1985         * WebView/WebViewPrivate.h:
1986
1987 2015-06-07  Anders Carlsson  <andersca@apple.com>
1988
1989         Remove unused SPI
1990         https://bugs.webkit.org/show_bug.cgi?id=145742
1991
1992         Reviewed by Dan Bernstein.
1993
1994         * WebCoreSupport/WebFrameNetworkingContext.h:
1995         * WebCoreSupport/WebFrameNetworkingContext.mm:
1996         (WebFrameNetworkingContext::clearPrivateBrowsingSessionCookieStorage): Deleted.
1997         * WebView/WebView.mm:
1998         (+[WebView _clearPrivateBrowsingSessionCookieStorage]): Deleted.
1999         * WebView/WebViewPrivate.h:
2000
2001 2015-06-06  Dan Bernstein  <mitz@apple.com>
2002
2003         Restored binary compatibility with shipping Safari.
2004
2005         Suggested by Anders Carlsson.
2006
2007         * Misc/WebKitNSStringExtras.mm:
2008         (-[NSString _webkit_fixedCarbonPOSIXPath]): Added an implementation that returns self, so
2009         that Safari doesn’t crash when trying to call this method.
2010
2011 2015-06-06  Dan Bernstein  <mitz@apple.com>
2012
2013         Fixed the build.
2014
2015         * Plugins/WebBasePluginPackage.mm:
2016
2017 2015-06-06  Anders Carlsson  <andersca@apple.com>
2018
2019         Remove support from getting plug-in information from Carbon resources
2020         https://bugs.webkit.org/show_bug.cgi?id=145730
2021
2022         Reviewed by Dan Bernstein.
2023
2024         No current plug-in versions use this feature, and both Chrome and Mozilla for
2025         Mac stopped looking at Carbon resources years ago.
2026
2027         * Misc/WebKitNSStringExtras.h:
2028         * Misc/WebKitNSStringExtras.mm:
2029         (+[NSString _web_encodingForResource:]): Deleted.
2030         * Plugins/WebBasePluginPackage.mm:
2031         * Plugins/WebNetscapePluginPackage.mm:
2032         (-[WebNetscapePluginPackage _initWithPath:]):
2033         (-[WebNetscapePluginPackage stringForStringListID:andIndex:]): Deleted.
2034         (-[WebNetscapePluginPackage getPluginInfoFromResources]): Deleted.
2035
2036 2015-06-06  Anders Carlsson  <andersca@apple.com>
2037
2038         Remove now unused category methods
2039         https://bugs.webkit.org/show_bug.cgi?id=145729
2040
2041         Reviewed by Dan Bernstein.
2042
2043         * Configurations/WebKitLegacy.xcconfig:
2044         * Misc/WebKitNSStringExtras.h:
2045         * Misc/WebKitNSStringExtras.mm:
2046         (-[NSString _webkit_fixedCarbonPOSIXPath]): Deleted.
2047         * Misc/WebNSFileManagerExtras.h:
2048         * Misc/WebNSFileManagerExtras.mm:
2049         (-[NSFileManager _webkit_startupVolumeName]): Deleted.
2050
2051 2015-06-06  Anders Carlsson  <andersca@apple.com>
2052
2053         Fix build.
2054
2055         * WebKit.mac.exp:
2056
2057 2015-06-06  Anders Carlsson  <andersca@apple.com>
2058
2059         Stop using _webkit_fixedCarbonPOSIXPath in plug-in code
2060         https://bugs.webkit.org/show_bug.cgi?id=145728
2061
2062         Reviewed by Dan Bernstein.
2063
2064         This code was put in place to support old plug-ins that would pass Carbon paths to NPAPI functions.
2065         WebKit2 never supported this and we've never had any problems so let's just get rid of it.
2066
2067         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2068         (WebKit::NetscapePluginInstanceProxy::loadURL):
2069         * Plugins/WebNetscapePluginView.mm:
2070         (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
2071
2072 2015-06-06  Anders Carlsson  <andersca@apple.com>
2073
2074         Remove SPI that's no longer used
2075         https://bugs.webkit.org/show_bug.cgi?id=145727
2076
2077         Reviewed by Dan Bernstein.
2078
2079         * Plugins/WebPluginsPrivate.h: Removed.
2080         * Plugins/WebPluginsPrivate.m: Removed.
2081
2082 2015-06-06  Anders Carlsson  <andersca@apple.com>
2083
2084         Only allow plug-ins to create custom MIME property lists on older versions of OS X
2085         https://bugs.webkit.org/show_bug.cgi?id=145726
2086
2087         Reviewed by Dan Bernstein.
2088
2089         * Plugins/WebBasePluginPackage.mm:
2090         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2091
2092 2015-06-05  Mark Lam  <mark.lam@apple.com>
2093
2094         finally blocks should not set the exception stack trace when re-throwing the exception.
2095         https://bugs.webkit.org/show_bug.cgi?id=145525
2096
2097         Reviewed by Geoffrey Garen.
2098
2099         * WebView/WebView.mm:
2100         (+[WebView _reportException:inContext:]):
2101         (WebKitInitializeApplicationCachePathIfNecessary):
2102         - Changed to use the new Exception object.
2103
2104 2015-06-03  Anders Carlsson  <andersca@apple.com>
2105
2106         Define WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS on iOS
2107         https://bugs.webkit.org/show_bug.cgi?id=145615
2108         Part of rdar://problem/17380856.
2109
2110         Reviewed by Dan Bernstein.
2111
2112         * postprocess-headers.sh:
2113
2114 2015-06-02  Brady Eidson  <beidson@apple.com>
2115
2116         WebKit policy delegate should suggest if a navigation should be allowed to open URLs externally.
2117         rdar://problem/21025301 and https://bugs.webkit.org/show_bug.cgi?id=145280
2118
2119         Reviewed by Alex Christensen.
2120
2121         * Plugins/WebPluginController.mm:
2122         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2123         
2124         * WebView/WebFrame.mm:
2125         (-[WebFrame loadRequest:]):
2126         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2127         
2128         * WebView/WebPDFView.mm:
2129         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2130
2131 2015-06-01  Anders Carlsson  <andersca@apple.com>
2132
2133         WAKScrollView.h cannot be imported standalone
2134         https://bugs.webkit.org/show_bug.cgi?id=145529
2135
2136         Reviewed by Dan Bernstein.
2137
2138         Don't migrate WAKScrollView.h, it's not used outside of WebKit.
2139
2140         * MigrateHeaders.make:
2141
2142 2015-05-29  Anders Carlsson  <andersca@apple.com>
2143
2144         Make the header replace rule more restrictive and get rid of a special case
2145         https://bugs.webkit.org/show_bug.cgi?id=145486
2146
2147         Reviewed by Ryosuke Niwa.
2148
2149         We used to not run the header migration script on WAKScrollView.h since we had a rule that would transform
2150         "<WebCore" to "<WebKitLegacy" to convert header #imports. However, WAKScrollView.h contains "WAKView <WebCoreFrameScrollView>" 
2151         which would get transformed to "WAKView <WebKitLegacyFrameScrollView>".
2152         
2153         Instead, check for the trailing slash as well and stop special-casing WAKScrollView.h.
2154
2155         * MigrateHeaders.make:
2156
2157 2015-05-29  Anders Carlsson  <andersca@apple.com>
2158
2159         Get rid of WAKViewPrivate.h
2160         https://bugs.webkit.org/show_bug.cgi?id=145482
2161         rdar://problem/21162149
2162
2163         Reviewed by Dan Bernstein.
2164
2165         Remove WAKViewPrivate.h imports.
2166
2167         * DefaultDelegates/WebDefaultUIDelegate.m:
2168         * MigrateHeaders.make:
2169         * Misc/WebKitNSStringExtras.mm:
2170         * Misc/WebNSViewExtras.m:
2171         * WebCoreSupport/WebFrameLoaderClient.mm:
2172         * WebView/WebFrame.mm:
2173         * WebView/WebFrameView.mm:
2174         * WebView/WebHTMLView.mm:
2175
2176 2015-05-29  Anders Carlsson  <andersca@apple.com>
2177
2178         WebResourceLoadDelegatePrivate.h cannot be imported standalone (missing WebNSInteger type)
2179         https://bugs.webkit.org/show_bug.cgi?id=145476
2180         rdar://problem/21162400
2181
2182         Reviewed by Dan Bernstein.
2183
2184         Change WebNSInteger to NSInteger.
2185
2186         * WebView/WebResourceLoadDelegatePrivate.h:
2187
2188 2015-05-29  Anders Carlsson  <andersca@apple.com>
2189
2190         WebKit.framework installs or references Mac-only headers on iOS
2191         https://bugs.webkit.org/show_bug.cgi?id=145471
2192         rdar://problem/21161459
2193
2194         Reviewed by Dan Bernstein.
2195
2196         * History/WebURLsWithTitles.h:
2197         Add an #if !TARGET_OS_IPHONE guard around the entire header.
2198
2199         * MigrateHeaders.make:
2200         Don't migrate the NPAPI headers on iOS.
2201
2202 2015-05-28  Matt Rajca  <mrajca@apple.com>
2203
2204         Add ENABLE_MEDIA_SESSION feature flag (which is off by default).
2205         https://bugs.webkit.org/show_bug.cgi?id=145415
2206
2207         Reviewed by Eric Carlson.
2208
2209         * Configurations/FeatureDefines.xcconfig:
2210
2211 2015-05-28  Jon Lee  <jonlee@apple.com>
2212
2213         Build fix after r184946.
2214
2215         * WebView/WebPreferences.mm:
2216         (-[WebPreferences allowsAirPlayForMediaPlayback]):
2217         (-[WebPreferences setAllowsAirPlayForMediaPlayback:]):
2218
2219 2015-05-19  Jon Honeycutt  <jhoneycutt@apple.com>
2220
2221         [iOS] When viewing an MJPEG stream as the main resource, only the first
2222         frame paints
2223
2224         <https://bugs.webkit.org/show_bug.cgi?id=145185>
2225         <rdar://problem/20124694>
2226
2227         Reviewed by Darin Adler.
2228
2229         * WebCoreSupport/WebFrameLoaderClient.h:
2230
2231         * WebCoreSupport/WebFrameLoaderClient.mm:
2232         (WebFrameLoaderClient::didReplaceMultipartContent):
2233         Call the FrameView's didReplaceMultipartContent().
2234
2235 2015-05-22  Jon Lee  <jonlee@apple.com>
2236
2237         Fix macros for wireless playback
2238         https://bugs.webkit.org/show_bug.cgi?id=145239
2239         rdar://problem/21049541
2240
2241         Reviewed by Anders Carlsson.
2242
2243         Encompass the logic within ENABLE(WIRELESS_TARGET_PLAYBACK). Update property name.
2244
2245         * WebView/WebPreferenceKeysPrivate.h:
2246         * WebView/WebPreferences.h:
2247         * WebView/WebPreferences.mm:
2248         (+[WebPreferences initialize]): Wrap in ENABLE.
2249         (-[WebPreferences allowsAirPlayForMediaPlayback]): Ditto.
2250         (-[WebPreferences setAllowsAirPlayForMediaPlayback:]): Ditto.
2251         * WebView/WebView.mm:
2252         (-[WebView _preferencesChanged:]): Ditto.
2253
2254 2015-05-27  Dean Jackson  <dino@apple.com>
2255
2256         img.currentSrc problem in strict mode with old picturefill
2257         https://bugs.webkit.org/show_bug.cgi?id=144095
2258         <rdar://problem/21087013>
2259
2260         Reviewed by Simon Fraser.
2261
2262         Add a PICTURE_SIZES flag.
2263
2264         * Configurations/FeatureDefines.xcconfig:
2265
2266 2015-05-26  Dan Bernstein  <mitz@apple.com>
2267
2268         <rdar://problem/21104551> Update build settings
2269
2270         Reviewed by Anders Carlsson.
2271
2272         * Configurations/DebugRelease.xcconfig:
2273         * Configurations/FeatureDefines.xcconfig:
2274         * Configurations/Version.xcconfig:
2275
2276 2015-05-25  Dan Bernstein  <mitz@apple.com>
2277
2278         ASSERT_MAIN_THREAD and DOM_ASSERT_MAIN_THREAD are unnecessary no-ops
2279         https://bugs.webkit.org/show_bug.cgi?id=145372
2280
2281         Reviewed by Sam Weinig.
2282
2283         * Carbon/CarbonWindowAdapter.mm:
2284         (-[CarbonWindowAdapter finalize]): Removed use of ASSERT_MAIN_THREAD.
2285
2286         * Configurations/Base.xcconfig: Removed DISABLE_THREAD_CHECK from DEBUG_DEFINES.
2287
2288         * History/WebHistoryItem.mm:
2289         (-[WebHistoryItem URLString]): Removed use of ASSERT_MAIN_THREAD.
2290         (-[WebHistoryItem originalURLString]): Ditto.
2291         (-[WebHistoryItem title]): Ditto.
2292         (-[WebHistoryItem lastVisitedTimeInterval]): Ditto.
2293         (-[WebHistoryItem isEqual:]): Ditto.
2294         (-[WebHistoryItem description]): Ditto.
2295         (-[WebHistoryItem initFromDictionaryRepresentation:]): Ditto.
2296         (-[WebHistoryItem scrollPoint]): Ditto.
2297
2298         * Misc/WebElementDictionary.mm:
2299         (-[WebElementDictionary finalize]): Ditto.
2300
2301         * Misc/WebIconDatabase.mm:
2302         (-[WebIconDatabase iconForURL:withSize:cache:]): Ditto.
2303         (-[WebIconDatabase iconURLForURL:]): Ditto.
2304         (-[WebIconDatabase defaultIconWithSize:]): Ditto.
2305         (-[WebIconDatabase retainIconForURL:]): Ditto.
2306         (-[WebIconDatabase releaseIconForURL:]): Ditto.
2307         (+[WebIconDatabase delayDatabaseCleanup]): Ditto.
2308         (+[WebIconDatabase allowDatabaseCleanup]): Ditto.
2309         (-[WebIconDatabase removeAllIcons]): Ditto.
2310         (-[WebIconDatabase _iconForFileURL:withSize:]): Ditto.
2311         (webGetNSImage): Ditto.
2312
2313         * Misc/WebKitLogging.h: Removed definition of ASSERT_MAIN_THREAD.
2314
2315         * Plugins/WebBaseNetscapePluginView.mm:
2316         (-[WebBaseNetscapePluginView finalize]): Removed use of ASSERT_MAIN_THREAD.
2317
2318         * Plugins/WebBasePluginPackage.mm:
2319         (-[WebBasePluginPackage finalize]): Ditto.
2320
2321         * Plugins/WebNetscapePluginView.mm:
2322         (-[WebNetscapePluginView finalize]): Ditto.
2323
2324         * WebCoreSupport/WebEditorClient.mm:
2325         (-[WebUndoStep finalize]): Ditto.
2326
2327         * WebView/WebDataSource.mm:
2328         (-[WebDataSource finalize]): Ditto.
2329
2330         * WebView/WebHTMLView.mm:
2331         (-[WebHTMLViewPrivate finalize]): Ditto.
2332         (-[WebHTMLView finalize]): Ditto.
2333         (-[WebHTMLView drawRect:]): Ditto.
2334
2335         * WebView/WebViewData.mm:
2336         (-[WebViewPrivate finalize]): Ditto.
2337
2338 2015-05-23  Dan Bernstein  <mitz@apple.com>
2339
2340         Remove unused definitions of WEBKIT_VERSION_MIN_REQUIRED
2341         https://bugs.webkit.org/show_bug.cgi?id=145345
2342
2343         Reviewed by Sam Weinig.
2344
2345         * Configurations/WebKitLegacy.xcconfig: Also changed to use $(inherited).
2346
2347 2015-05-24  Jeremy Jones  <jeremyj@apple.com>
2348
2349         Register media MIME types as supported by HTML view in WebKit1.
2350         https://bugs.webkit.org/show_bug.cgi?id=145356
2351
2352         Reviewed by Eric Carlson.
2353
2354         WebDataSource and WebFrame view knew about suppotedImageMIMETypes and supportedNonImageMIMETypes,
2355         but not a third category supportedMediaMIMETypes. These are now included along-side 
2356         supportedNonImageMIMETypes.
2357
2358         * WebView/WebDataSource.mm:
2359         (+[WebDataSource _repTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
2360         * WebView/WebFrameView.mm:
2361         (+[WebFrameView _viewTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
2362         * WebView/WebHTMLRepresentation.h: declare -supportedMediaMIMETypes
2363         * WebView/WebHTMLRepresentation.mm:
2364         (+[WebHTMLRepresentation supportedMIMETypes]): include supportedMediaMIMETypes
2365         (+[WebHTMLRepresentation supportedMediaMIMETypes]): added
2366         * WebView/WebHTMLView.mm:
2367         (+[WebHTMLView supportedMediaMIMETypes]): added
2368         * WebView/WebHTMLViewPrivate.h: declare -supportedMediaMIMETypes
2369
2370 2015-05-22  Jon Lee  <jonlee@apple.com>
2371
2372         Rename MediaPlaybackAllowsInline
2373         https://bugs.webkit.org/show_bug.cgi?id=145315
2374
2375         Reviewed by Eric Carlson.
2376
2377         Our API uses allowsInlineMediaPlayback. Our symbols should reflect the same.
2378
2379         * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its
2380         value, for backwards compatibility.
2381         * WebView/WebPreferences.mm:
2382         (+[WebPreferences initialize]): Update the symbol.
2383         (-[WebPreferences mediaPlaybackAllowsInline]): Ditto. This setting will not
2384         be renamed in a future patch.
2385         (-[WebPreferences setMediaPlaybackAllowsInline:]): Ditto.
2386         * WebView/WebView.mm:
2387         (-[WebView _preferencesChanged:]): Update the call to settings.
2388
2389 2015-05-22  Jon Lee  <jonlee@apple.com>
2390
2391         Rename MediaPlaybackAllowsAirPlay
2392         https://bugs.webkit.org/show_bug.cgi?id=145316
2393
2394         Reviewed by Eric Carlson.
2395
2396         In preparation for an API rename, update internal symbols from mediaPlaybackAllowsAirPlay
2397         to allowsAirPlayForMediaPlayback.
2398
2399         * WebView/WebPreferenceKeysPrivate.h: Update the name but keep its value, for backwards
2400         compatibility.
2401         * WebView/WebPreferences.mm:
2402         (+[WebPreferences initialize]): Update to reference the new key name.
2403         (-[WebPreferences mediaPlaybackAllowsAirPlay]): Ditto. This API will not change in a future
2404         patch.
2405         (-[WebPreferences setMediaPlaybackAllowsAirPlay:]): Ditto.
2406         * WebView/WebView.mm:
2407         (-[WebView _preferencesChanged:]): Update the call to settings.
2408
2409 2015-05-22  Jon Lee  <jonlee@apple.com>
2410
2411         Rename MediaPlaybackRequiresUserGesture
2412         https://bugs.webkit.org/show_bug.cgi?id=145314
2413
2414         Reviewed by Anders Carlsson.
2415
2416         In preparation for an API rename, update internal symbols from mediaPlaybackRequiresUserGesture
2417         to requiresUserGestureForMediaPlayback.
2418
2419         No changes are being made to the API in this patch.
2420
2421         * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its value, for backwards
2422         compatibility.
2423         * WebView/WebPreferences.mm:
2424         (+[WebPreferences initialize]): Update the symbol.
2425         (-[WebPreferences mediaPlaybackRequiresUserGesture]): Ditto. This setting will not be renamed
2426         in a future patch.
2427         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]): Ditto.
2428         * WebView/WebView.mm:
2429         (-[WebView _preferencesChanged:]): Update the call to settings.
2430
2431 2015-05-22  Tim Horton  <timothy_horton@apple.com>
2432
2433         Remove action menu support
2434         https://bugs.webkit.org/show_bug.cgi?id=145305
2435         <rdar://problem/21070771>
2436
2437         Reviewed by Anders Carlsson.
2438
2439         * Configurations/WebKitLegacy.xcconfig:
2440         * WebView/WebActionMenuController.h: Removed.
2441         * WebView/WebActionMenuController.mm: Removed.
2442         * WebView/WebHTMLView.mm:
2443         (-[WebHTMLView otherMouseDown:]):
2444         (-[WebHTMLView scrollWheel:scrollWheel:]): Deleted.
2445         (-[WebHTMLView mouseDown:mouseDown:]): Deleted.
2446         * WebView/WebUIDelegatePrivate.h:
2447         * WebView/WebView.mm:
2448         (-[WebView _commonInitializationWithFrameName:groupName:]): Deleted.
2449         (-[WebView _close]): Deleted.
2450         (-[WebView prepareForMenu:withEvent:]): Deleted.
2451         (-[WebView willOpenMenu:withEvent:]): Deleted.
2452         (-[WebView didCloseMenu:withEvent:]): Deleted.
2453         (-[WebView _actionMenuController]): Deleted.
2454         * WebView/WebViewData.h:
2455         * WebView/WebViewData.mm:
2456         (-[WebViewPrivate dealloc]): Deleted.
2457         * WebView/WebViewInternal.h:
2458         Remove everything, except some enums that clients still refer to.
2459
2460 2015-05-22  Brady Eidson  <beidson@apple.com>
2461
2462         Rework how the ResourceRequest user initiated property key is used.
2463         Followup to https://bugs.webkit.org/show_bug.cgi?id=145281
2464
2465         Reviewed by Dan Bernstein.
2466
2467         * WebCoreSupport/WebSystemInterface.mm:
2468         (WKResourceRequestIsUserInitiatedKey): Deleted.
2469         (InitWebCoreSystemInterface): Deleted.
2470
2471 2015-05-21  Brady Eidson  <beidson@apple.com>
2472
2473         Add an "initiated by user gesture" flag to ResourceRequest.
2474         https://bugs.webkit.org/show_bug.cgi?id=145281
2475
2476         Reviewed by Alex Christensen.
2477
2478         * WebCoreSupport/WebSystemInterface.mm:
2479         (WKResourceRequestIsUserInitiatedKey):
2480         (InitWebCoreSystemInterface):
2481
2482 2015-05-20  Anders Carlsson  <andersca@apple.com>
2483
2484         Fix build.
2485
2486         * WebView/WebViewInternal.h:
2487
2488 2015-05-20  Alex Christensen  <achristensen@webkit.org>
2489
2490         Unreviewed build fix; LocalizedStrings.h is in WebCore.
2491
2492         * WebView/WebActionMenuController.mm:
2493
2494 2015-05-20  Jer Noble  <jer.noble@apple.com>
2495
2496         Unreviewed build fix; WebActionMenuController.mm should directly include LocalizedStrings.h
2497
2498         * WebView/WebActionMenuController.mm:
2499
2500 2015-05-19  Jer Noble  <jer.noble@apple.com>
2501
2502         Touching HTMLMediaElement.h or MediaPlayer.h causes a world rebuild.
2503         https://bugs.webkit.org/show_bug.cgi?id=145193
2504
2505         Reviewed by Eric Carlson.
2506
2507         Use HTMLMediaElementEnums instead of HTMLMediaElement.
2508
2509         * WebCoreSupport/WebChromeClient.h:
2510         * WebCoreSupport/WebChromeClient.mm:
2511         (WebChromeClient::enterVideoFullscreenForVideoElement): HTMLMediaElement -> HTMLMediaElementEnums.
2512         * WebView/WebView.mm:
2513         (-[WebView _enterVideoFullscreenForVideoElement:mode:]): Ditto.
2514         * WebView/WebViewInternal.h:
2515
2516 2015-05-19  Michael Saboff  <msaboff@apple.com>
2517
2518         REGRESSION(183787): JIT is enabled for all builds
2519         https://bugs.webkit.org/show_bug.cgi?id=145179
2520
2521         Reviewed by Geoffrey Garen.
2522
2523         Eliminated the setting of ENABLE_JIT, as wtf/Platform.h has appropriate logic to
2524         set it depending on OS and CPU type.
2525
2526         * Configurations/FeatureDefines.xcconfig:
2527
2528 2015-05-19  Brady Eidson  <beidson@apple.com>
2529
2530         X-Frame-Options headers not respected when loading from application cache.
2531         <rdar://problem/14877623> and https://bugs.webkit.org/show_bug.cgi?id=131800
2532
2533         Reviewed by Alexey Proskuryakov.
2534
2535         * WebView/WebFrame.mm:
2536         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2537
2538 2015-05-18  Skachkov Alexandr  <gskachkov@gmail.com>
2539
2540         [ES6] Arrow function syntax. Feature flag for arrow function
2541         https://bugs.webkit.org/show_bug.cgi?id=145108
2542
2543         Reviewed by Ryosuke Niwa.
2544
2545         Added feature flag ENABLE_ES6_ARROWFUNCTION_SYNTAX for arrow function
2546
2547         * Configurations/FeatureDefines.xcconfig:
2548
2549 2015-05-15  Jeremy Jones  <jeremyj@apple.com>
2550
2551         Limit alternate fullscreen with linked on or after.
2552         https://bugs.webkit.org/show_bug.cgi?id=144894
2553
2554         Reviewed by Dean Jackson.
2555
2556         * WebView/WebView.mm:
2557         (shouldAllowAlternateFullscreen): Added.
2558         (-[WebView _preferencesChanged:]):
2559
2560 2015-05-12  Simon Fraser  <simon.fraser@apple.com>
2561
2562         Turn antialiased font dilation off by default
2563         https://bugs.webkit.org/show_bug.cgi?id=144940
2564         rdar://problem/20923031
2565
2566         Reviewed by Sam Weinig.
2567         
2568         Turn antialised font dilation off by default.
2569
2570         * WebView/WebPreferences.mm:
2571         (+[WebPreferences initialize]):
2572
2573 2015-05-11  Daniel Bates  <dabates@apple.com>
2574
2575         [iOS] Close all open databases in expiration handler of process assertion
2576         https://bugs.webkit.org/show_bug.cgi?id=144661
2577         <rdar://problem/20845052>
2578
2579         Reviewed by Darin Adler.
2580
2581         For Legacy WebKit, close all open databases when the process assertion expiration
2582         handler is called.
2583
2584         * Storage/WebDatabaseManager.mm:
2585         (+[WebDatabaseManager startBackgroundTask]): Call DatabaseTracker::tracker().closeAllDatabases()
2586         in the expiration handler to close all open databases. As a side effect of closing
2587         a database all in-progress database transactions are interrupted.
2588
2589 2015-05-10  Sungmann Cho  <sungmann.cho@navercorp.com>
2590
2591         Get rid of the public item accessors in BackForwardClient
2592         https://bugs.webkit.org/show_bug.cgi?id=144827
2593
2594         Reviewed by Darin Adler.
2595
2596         Remove backItem(), currentItem(), and forwardItem() from BackForwardClient.
2597         We can still use these functionalities through BackForwardController.
2598
2599         No new tests, no behavior change.
2600
2601         * WebView/WebView.mm:
2602         (-[WebView _loadBackForwardListFromOtherView:]):
2603
2604 2015-05-09  Yoav Weiss  <yoav@yoav.ws>
2605
2606         Remove the PICTURE_SIZES build flag
2607         https://bugs.webkit.org/show_bug.cgi?id=144679
2608
2609         Reviewed by Benjamin Poulain.
2610
2611         Removed the PICTURE_SIZES build time flag.
2612
2613         * Configurations/FeatureDefines.xcconfig:
2614
2615 2015-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
2616
2617         Remove convenience constructors for TextRun
2618         https://bugs.webkit.org/show_bug.cgi?id=144752
2619
2620         These convenience constructors are unnecessary. Moving the code that makes the StringView
2621         back to the call site will also help us make things more elegant in future refactoring.
2622
2623         Reviewed by Darin Adler.
2624
2625         No new tests because there is no behavior change.
2626
2627         * Misc/WebKitNSStringExtras.mm:
2628         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2629         (-[NSString _web_widthWithFont:]):
2630
2631 2015-05-08  Commit Queue  <commit-queue@webkit.org>
2632
2633         Unreviewed, rolling out r183996.
2634         https://bugs.webkit.org/show_bug.cgi?id=144806
2635
2636         ASan detected use-after free (Requested by ap on #webkit).
2637
2638         Reverted changeset:
2639
2640         "Remove convenience constructors for TextRun"
2641         https://bugs.webkit.org/show_bug.cgi?id=144752
2642         http://trac.webkit.org/changeset/183996
2643
2644 2015-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
2645
2646         Remove convenience constructors for TextRun
2647         https://bugs.webkit.org/show_bug.cgi?id=144752
2648
2649         These convenience constructors are unnecessary. Moving the code that makes the StringView
2650         back to the call site will also help us make things more elegant in future refactoring.
2651
2652         Reviewed by Darin Adler.
2653
2654         No new tests because there is no behavior change.
2655
2656         * Misc/WebKitNSStringExtras.mm:
2657         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2658         (-[NSString _web_widthWithFont:]):
2659
2660 2015-05-07  Anders Carlsson  <andersca@apple.com>
2661
2662         Build fixes.
2663
2664         * Misc/WebNSPasteboardExtras.mm:
2665         (-[NSPasteboard _web_writeFileWrapperAsRTFDAttachment:]):
2666         * WebView/WebHTMLView.mm:
2667         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
2668         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
2669         * WebView/WebPDFView.mm:
2670         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
2671         Pass empty arrays and dictionaries instead of nil.
2672
2673         * WebView/WebView.mm:
2674         (-[WebView _commonInitializationWithFrameName:groupName:]):
2675         Use the regular init method.
2676
2677 2015-05-07  Said Abou-Hallawa  <sabouhallawa@apple.com>
2678
2679         Fix iPhone 6 iOS simulator Build.
2680         following http://trac.webkit.org/changeset/183954.
2681
2682         Reviewed by Daniel Bates.
2683
2684         * WebView/WebHTMLView.mm:
2685         (-[WebHTMLView pressureChangeWithEvent:]):
2686
2687 2015-05-07  Timothy Horton  <timothy_horton@apple.com>
2688
2689         Occasional null deref in WebImmediateActionController
2690         https://bugs.webkit.org/show_bug.cgi?id=144772
2691         <rdar://problem/20811128>
2692
2693         Reviewed by Beth Dakin.
2694
2695         * WebView/WebImmediateActionController.mm:
2696         (-[WebImmediateActionController _defaultAnimationController]):
2697         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
2698         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
2699         Null-check TextIndicators before dereferencing.
2700
2701 2015-05-07  Beth Dakin  <bdakin@apple.com>
2702
2703         New force-related DOM events should fire in WK1 views
2704         https://bugs.webkit.org/show_bug.cgi?id=144663
2705         -and corresponding-
2706         rdar://problem/20281886
2707
2708         Reviewed by Sam Weinig.
2709
2710         Pass the lastPressureEvent to WebCore.
2711         * WebView/WebHTMLView.mm:
2712         (-[WebHTMLView _updateMouseoverWithEvent:]):
2713         (-[WebHTMLView rightMouseUp:]):
2714         (-[WebHTMLView menuForEvent:]):
2715         (-[WebHTMLView acceptsFirstMouse:]):
2716         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
2717         (-[WebHTMLView mouseDown:mouseDown:]):
2718         (-[WebHTMLView mouseDragged:]):
2719         (-[WebHTMLView mouseUp:mouseUp:]):
2720
2721         New NSRespnder method for pressure changes.
2722         (-[WebHTMLView pressureChangeWithEvent:]):
2723
2724         New BOOL _contentPreventsDefault tracks whether the HitTestResult prevented the 
2725         default action. Get rid of willHandleMouseDown; now that the gesture recognizer 
2726         sets delaysPrimaryMouseButtonEvents to NO, we don’t need this.
2727         * WebView/WebImmediateActionController.h:
2728         * WebView/WebImmediateActionController.mm:
2729         (-[WebImmediateActionController _clearImmediateActionState]):
2730
2731         Set all of the immediateActionStages on EventHandler. This is critical to keep 
2732         link navigation happening at the right time now that 
2733         delaysPrimaryMouseButtonEvents is set to NO.
2734         (-[WebImmediateActionController performHitTestAtPoint:]):
2735         (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
2736         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
2737         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
2738
2739         Use a dummy animation controller if the content prevents default.
2740         (-[WebImmediateActionController _defaultAnimationController]):
2741         (-[WebImmediateActionController _updateImmediateActionItem]):
2742         (-[WebImmediateActionController webView:willHandleMouseDown:]): Deleted.
2743
2744         Set delaysPrimaryMouseButtonEvents to NO so that we get existing mouse events when 
2745         we expect to.
2746         * WebView/WebView.mm:
2747         (-[WebView _commonInitializationWithFrameName:groupName:]):
2748
2749         Cache the most recent pressure event so that we can send it to WebCore for all of 
2750         the mouse events.
2751         (-[WebView _pressureEvent]):
2752         (-[WebView _setPressureEvent:]):
2753         * WebView/WebViewData.h:
2754         * WebView/WebViewData.mm:
2755         (-[WebViewPrivate dealloc]):
2756         * WebView/WebViewInternal.h:
2757
2758 2015-05-05  Myles C. Maxfield  <mmaxfield@apple.com>
2759
2760         Revert "Introducing the Platform Abstraction Layer (PAL)"
2761         https://bugs.webkit.org/show_bug.cgi?id=144751
2762
2763         Unreviewed.
2764
2765         PAL should be a new target inside WebCore, rather than a top-level folder.
2766
2767         * Configurations/FeatureDefines.xcconfig: Updated
2768
2769 2015-05-07  Dan Bernstein  <mitz@apple.com>
2770
2771         <rdar://problem/19317140> [Xcode] Remove usage of AspenFamily.xcconfig in Source/
2772         https://bugs.webkit.org/show_bug.cgi?id=144727
2773
2774         Reviewed by Darin Adler.
2775
2776         * Configurations/Base.xcconfig: Don’t include AspenFamily.xcconfig.
2777         * Configurations/WebKitLegacy.xcconfig: Define INSTALL_PATH in terms of
2778         INSTALL_PATH_PREFIX and INSTALL_PATH_ACTUAL, and define INSTALL_PATH_PREFIX for the iOS 8.x
2779         Simulator.
2780
2781 2015-04-02  Myles C. Maxfield  <mmaxfield@apple.com>
2782
2783         Introducing the Platform Abstraction Layer (PAL)
2784         https://bugs.webkit.org/show_bug.cgi?id=143358
2785
2786         Reviewed by Simon Fraser.
2787
2788         * Configurations/FeatureDefines.xcconfig: Updated
2789
2790 2015-05-06  Antti Koivisto  <antti@apple.com>
2791
2792         REGRESSION (r183467): Unable to start downloads in private browsing mode
2793         https://bugs.webkit.org/show_bug.cgi?id=144533
2794
2795         Reviewed by Darin Adler.
2796
2797         * WebCoreSupport/WebFrameLoaderClient.mm:
2798         (WebFrameLoaderClient::dispatchWillSendRequest):
2799
2800             Use updateFromDelegatePreservingOldProperties (like WK2) instead of doing the same thing manually.
2801
2802 2015-05-06  Ryosuke Niwa  <rniwa@webkit.org>
2803
2804         Toggling underline on font panel removes strike through
2805         https://bugs.webkit.org/show_bug.cgi?id=144670
2806         <rdar://problem/3790443>
2807
2808         Reviewed by Darin Adler.
2809
2810         Use setStrikeThroughChange and setUnderlineChange added in r183770 to toggle underline and strike through.
2811
2812         * WebView/WebHTMLView.mm:
2813         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
2814         (-[WebHTMLView _styleForAttributeChange:]):
2815         (-[WebHTMLView changeAttributes:]):
2816
2817 2015-05-04  Ryosuke Niwa  <rniwa@webkit.org>
2818
2819         Toggling underline or strike through affects each other
2820         https://bugs.webkit.org/show_bug.cgi?id=27818
2821
2822         Reviewed by Darin Adler.
2823
2824         * WebView/WebFrame.mm:
2825         (-[WebFrame _setTypingStyle:withUndoAction:]):
2826
2827 2015-05-01  Martin Robinson  <mrobinson@igalia.com>
2828
2829         USE(...) macro should expect unprefixed variables
2830         https://bugs.webkit.org/show_bug.cgi?id=144454
2831
2832         Reviewed by Daniel Bates.
2833
2834         * Misc/WebDownload.h: Replace all occurrences WTF_USE with USE.
2835
2836 2015-05-01  Brady Eidson  <beidson@apple.com>
2837
2838         Add API to disable meta refreshes.
2839         <rdar://problem/20333198> and https://bugs.webkit.org/show_bug.cgi?id=144269
2840
2841         Reviewed by Alexey Proskuryakov.
2842
2843         Add a preference to enable/disable meta refreshes, enabled by default.
2844
2845         * WebView/WebPreferenceKeysPrivate.h:
2846         * WebView/WebPreferences.mm:
2847         (+[WebPreferences initialize]):
2848         (-[WebPreferences setMetaRefreshEnabled:]):
2849         (-[WebPreferences metaRefreshEnabled]):
2850         * WebView/WebPreferencesPrivate.h:
2851         * WebView/WebView.mm:
2852         (-[WebView _preferencesChanged:]):
2853
2854 2015-04-30  Jon Davis  <jond@apple.com>
2855
2856         Web Inspector: console should show an icon for console.info() messages
2857         https://bugs.webkit.org/show_bug.cgi?id=18530
2858
2859         Reviewed by Timothy Hatcher.
2860
2861         * WebCoreSupport/WebChromeClient.mm:
2862         (stringForMessageLevel):
2863         * WebView/WebUIDelegatePrivate.h:
2864
2865 2015-04-29  Myles C. Maxfield  <mmaxfield@apple.com>
2866
2867         [OS X] Use CTFontCreateForCSS instead of doing font search ourselves
2868         https://bugs.webkit.org/show_bug.cgi?id=132159
2869
2870         Reviewed by Darin Adler.
2871
2872         Add SPI to set the font whitelist.
2873
2874         * WebView/WebView.mm:
2875         (+[WebView _setFontWhitelist:]):
2876         * WebView/WebViewPrivate.h:
2877
2878 2015-04-28  Timothy Horton  <timothy_horton@apple.com>
2879
2880         [TextIndicator] Yellow highlight takes too long to fade out on scroll
2881         https://bugs.webkit.org/show_bug.cgi?id=144358
2882         <rdar://problem/19451011>
2883
2884         Reviewed by Beth Dakin.
2885
2886         * WebView/WebActionMenuController.mm:
2887         (-[WebActionMenuController _showTextIndicator]):
2888         * WebView/WebHTMLView.mm:
2889         (-[WebHTMLView quickLookWithEvent:]):
2890         * WebView/WebImmediateActionController.mm:
2891         (-[WebImmediateActionController _defaultAnimationController]):
2892         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
2893         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
2894         Pull _clearTextIndicatorWithAnimation out, make it avoid using a dismissal animation
2895         if we're called from didHandleScrollWheel.
2896
2897         * WebView/WebView.mm:
2898         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
2899         (-[WebView _setTextIndicator:]):
2900         (-[WebView _setTextIndicator:withLifetime:]):
2901         (-[WebView _clearTextIndicator]):
2902         (-[WebView _showDictionaryLookupPopup:]):
2903         (-[WebView _dictionaryLookupPopoverWillClose:]):
2904         (-[WebView _setTextIndicator:fadeOut:]): Deleted.
2905         * WebView/WebViewInternal.h:
2906         Make _setTextIndicator take a reference.
2907         Add a variant of _setTextIndicator that takes a Lifetime.
2908         Make _clearTextIndicatorWithAnimation take a DismissalAnimation.
2909
2910 2015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
2911
2912         Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
2913         https://bugs.webkit.org/show_bug.cgi?id=144304
2914
2915         Reviewed by Geoffrey Garen.
2916
2917         Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
2918
2919         * Configurations/FeatureDefines.xcconfig:
2920
2921 2015-04-28  Commit Queue  <commit-queue@webkit.org>
2922
2923         Unreviewed, rolling out r183514.
2924         https://bugs.webkit.org/show_bug.cgi?id=144359
2925
2926         It broke cloop test bots (Requested by mcatanzaro on #webkit).
2927
2928         Reverted changeset:
2929
2930         "Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT"
2931         https://bugs.webkit.org/show_bug.cgi?id=144304
2932         http://trac.webkit.org/changeset/183514
2933
2934 2015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
2935
2936         Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
2937         https://bugs.webkit.org/show_bug.cgi?id=144304
2938
2939         Reviewed by Geoffrey Garen.
2940
2941         Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
2942
2943         * Configurations/FeatureDefines.xcconfig:
2944
2945 2015-04-28  Joseph Pecoraro  <pecoraro@apple.com>
2946
2947         Fix common typo "targetting" => "targeting"
2948         https://bugs.webkit.org/show_bug.cgi?id=144349
2949
2950         Reviewed by Daniel Bates.
2951
2952         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2953         (WebKit::NetscapePluginInstanceProxy::loadRequest):
2954         * Plugins/WebNetscapePluginView.mm:
2955         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2956         * WebView/WebPolicyDelegate.h:
2957
2958 2015-04-28  Brady Eidson  <beidson@apple.com>
2959
2960         Consolidate most "frame load" arguments into FrameLoadRequest.
2961         https://bugs.webkit.org/show_bug.cgi?id=144276
2962
2963         Reviewed by Alexey Proskuryakov.
2964
2965         * WebView/WebPDFView.mm:
2966         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2967
2968 2015-04-27  Dan Bernstein  <mitz@apple.com>
2969
2970         <rdar://problem/20721931> REGRESSION (r178753): All legacy framework headers are missing availability annotations
2971         https://bugs.webkit.org/show_bug.cgi?id=144311
2972
2973         Reviewed by Adele Peterson.
2974
2975         * postprocess-headers.sh: Changed “macsox” to “macosx”.
2976
2977 2015-04-27  Brady Eidson  <beidson@apple.com>
2978
2979         Make 'enum NavigationType' be an enum class
2980         https://bugs.webkit.org/show_bug.cgi?id=144270
2981
2982         Reviewed by Alex Christensen.
2983
2984         * WebCoreSupport/WebFrameLoaderClient.mm:
2985         (WebFrameLoaderClient::actionDictionary):
2986
2987 2015-04-27  Brent Fulgham  <bfulgham@apple.com>
2988
2989         REGRESSION(r182879): Images and video can no longer be downloaded
2990         https://bugs.webkit.org/show_bug.cgi?id=144267
2991         <rdar://problem/20702844>
2992
2993         Reviewed by Simon Fraser.
2994
2995         * WebView/WebActionMenuController.mm:
2996         (-[WebActionMenuController _createActionMenuItemForTag:]): Check for
2997         "!WebCore::protocolIs(..., "file")" for image and media downloads.
2998
2999 2015-04-26  Yusuke Suzuki  <utatane.tea@gmail.com>
3000
3001         [ES6] Implement ES6 template literals
3002         https://bugs.webkit.org/show_bug.cgi?id=142691
3003
3004         Reviewed by Darin Adler.
3005
3006         Add ENABLE_ES6_TEMPLATE_LITERAL_SYNTAX compile time flag.
3007
3008         * Configurations/FeatureDefines.xcconfig:
3009
3010 2015-04-26  Doug Russell  <d_russell@apple.com>
3011
3012         AX: richer text change notifications (142719)
3013         https://bugs.webkit.org/show_bug.cgi?id=142719
3014
3015         Reviewed by Darin Adler.
3016
3017         Richer accessibility value change notifications. Introduce AXTextEditType,
3018         postTextStateChangeNotification and postTextReplacementNotification to give assistive
3019         tech apps more reliable context for responding to changes in web content. Also implement
3020         a mechanism to post value changes in password form fields in coalesced ticks to thwart
3021         analyzing the cadence of changes.
3022
3023         Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent,
3024         and an overload of postTextReplacementNotification to give assistive tech apps more
3025         reliable context for responding to changes in web content selection. Also block posting
3026         selection changes on password fields.
3027
3028         * WebCoreSupport/WebEditorClient.mm:
3029         (undoNameForEditAction):
3030
3031 2015-04-24  Timothy Hatcher  <timothy@apple.com>
3032
3033         Web Inspector: Remove native window dock controls
3034         https://bugs.webkit.org/show_bug.cgi?id=144184
3035
3036         Reviewed by Joseph Pecoraro.
3037
3038         * Resources/Dock.pdf: Removed.
3039         * Resources/DockLegacy.pdf: Removed.
3040         * WebCoreSupport/WebInspectorClient.mm:
3041         (-[WebInspectorWindowController window]):
3042         (-[WebInspectorWindowController setDockingUnavailable:]):
3043
3044 2015-04-25  Martin Robinson  <mrobinson@igalia.com>
3045
3046         Rename ENABLE_3D_RENDERING to ENABLE_3D_TRANSFORMS
3047         https://bugs.webkit.org/show_bug.cgi?id=144182
3048
3049         Reviewed by Simon Fraser.
3050
3051         * Configurations/FeatureDefines.xcconfig: Replace all instances of 3D_RENDERING with 3D_TRANSFORMS.
3052
3053 2015-04-24  Commit Queue  <commit-queue@webkit.org>
3054
3055         Unreviewed, rolling out r183266.
3056         https://bugs.webkit.org/show_bug.cgi?id=144164
3057
3058         Broke 32-bit build and a test. (Requested by ap on #webkit).
3059
3060         Reverted changeset:
3061
3062         "AX: richer text change notifications (142719)"
3063         https://bugs.webkit.org/show_bug.cgi?id=142719
3064         http://trac.webkit.org/changeset/183266
3065
3066 2015-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
3067
3068         [Cocoa] Start cleaning up FontPlatformData
3069         https://bugs.webkit.org/show_bug.cgi?id=144133
3070
3071         Reviewed by Enrica Casucci.
3072
3073         Receive casts which have been hoisted from the deleted FontPlatformData constructor.
3074
3075         * Misc/WebKitNSStringExtras.mm:
3076         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Receive cast which has
3077         been hoisted from the deleted FontPlatformData constructor.
3078         (-[NSString _web_widthWithFont:]): Ditto.
3079         * Misc/WebStringTruncator.mm:
3080         (fontFromNSFont): Ditto.
3081
3082 2015-04-24  Doug Russell  <d_russell@apple.com>
3083
3084         AX: richer text change notifications (142719)
3085         https://bugs.webkit.org/show_bug.cgi?id=142719
3086
3087         Reviewed by Darin Adler.
3088
3089         Richer accessibility value change notifications. Introduce AXTextEditType, postTextStateChangeNotification and postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content. Also implement a mechanism to post value changes in password form fields in coalesced ticks to thwart analyzing the cadence of changes.
3090
3091         Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent, and an overload of postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content selection. Also block posting selection changes on password fields.
3092
3093         * WebCoreSupport/WebEditorClient.mm:
3094         (undoNameForEditAction):
3095
3096 2015-04-23  Jer Noble  <jer.noble@apple.com>
3097
3098         [Mac] Disable QTKit by default on future OS X.
3099         https://bugs.webkit.org/show_bug.cgi?id=144082
3100
3101         Reviewed by Darin Adler.
3102
3103         Default WebKitQTKitEnabledPreferenceKey to NO.
3104
3105         * WebView/WebPreferences.mm:
3106         (+[WebPreferences initialize]):
3107
3108 2015-04-23  Andreas Kling  <akling@apple.com>
3109
3110         There should only be one way to get the system memory size.
3111         <https://webkit.org/b/144081>
3112
3113         Reviewed by Antti Koivisto.
3114
3115         * Misc/WebKitSystemBits.h:
3116         * Misc/WebKitSystemBits.m:
3117         (WebMemorySize): Deleted.
3118         * WebView/WebView.mm:
3119         (+[WebView _setCacheModel:]):
3120         (roundUpToPowerOf2): Deleted.
3121
3122 2015-04-22  Darin Adler  <darin@apple.com>
3123
3124         Remove OwnPtr and PassOwnPtr use from WebKit/cf, WebKit/mac, and WebKit2
3125         https://bugs.webkit.org/show_bug.cgi?id=143943
3126
3127         Reviewed by Anders Carlsson.
3128
3129         * Plugins/Hosted/ProxyInstance.h: Removed unneeded include.
3130         * Plugins/WebBaseNetscapePluginView.h: Ditto.
3131
3132         * Plugins/WebNetscapePluginEventHandler.h: Use unique_ptr instead of
3133         PassOwnPtr for the create function. Also tweaked formatting and removed
3134         unneeded forward declaration of CGRect.
3135         * Plugins/WebNetscapePluginEventHandler.mm:
3136         (WebNetscapePluginEventHandler::create): Changed to use unique_ptr and
3137         make_unique.
3138
3139         * Plugins/WebNetscapePluginView.h: Use unique_ptr instead of OwnPtr for
3140         the _eventHandler field.
3141         * Plugins/WebNetscapePluginView.mm:
3142         (-[WebNetscapePluginView destroyPlugin]): Changed code to work with unique_ptr.
3143
3144         * WebCoreSupport/WebUserMediaClient.mm: Removed unneeded include.
3145
3146         * WebView/WebDeviceOrientationProviderMock.mm: Changed to use make_unique.
3147         * WebView/WebDeviceOrientationProviderMockInternal.h: Changed to use unique_ptr.
3148
3149         * WebView/WebFrame.mm:
3150         (vectorForDictationPhrasesArray): Changed to return Vector<Vector<String>> and
3151         not a PassOwnPtr. Also rewrote to be much simpler, although there is still a
3152         pre-existing problem here where this could put empty vectors into the result,
3153         and I'm pretty sure the client never expects any of the Vector<String> to be empty.
3154         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
3155         Rewrote logic to involve WebCore types a bit less; old code was round tripping
3156         things through WebCore::URL for no obvious reason.
3157
3158         * WebView/WebFrameInternal.h: Changed vectorForDictationPhrasesArray to return
3159         a Vector<Vector<String>> and not a PassOwnPtr.
3160
3161         * WebView/WebFullScreenController.h: Removed unneeded include.
3162
3163         * WebView/WebViewData.h: Changed m_alternativeTextUIController to be a
3164         m_alternativeTextUIController.
3165         * WebView/WebViewData.mm:
3166         (-[WebViewPrivate init]): Use make_unique to initialize m_alternativeTextUIController.
3167
3168 2015-04-22  Brent Fulgham  <bfulgham@apple.com>
3169
3170         VisibleSelection should only accept Range by reference
3171         https://bugs.webkit.org/show_bug.cgi?id=144047
3172
3173         Reviewed by Tim Horton.
3174
3175         Update all uses of VisibleSelection to pass a Range reference instead
3176         of a Range pointer.
3177
3178         * WebCoreSupport/WebContextMenuClient.mm:
3179         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
3180         * WebView/WebFrame.mm:
3181         (-[WebFrame _selectNSRange:]):
3182
3183 2015-04-22  Eric Carlson  <eric.carlson@apple.com>
3184
3185         [Mac] Device picker menu is positioned incorrectly in WK1
3186         https://bugs.webkit.org/show_bug.cgi?id=144049
3187         <rdar://problem/20493101>
3188
3189         Reviewed by Dean Jackson.
3190
3191         * WebView/WebView.mm:
3192         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]): Mouse location is already in
3193             window coordinates so don't call convertRect:toView:nil.
3194
3195 2015-04-21  Brent Fulgham  <bfulgham@apple.com>
3196
3197         Extend action menus to support PDF
3198         https://bugs.webkit.org/show_bug.cgi?id=143895
3199         <rdar://problem/19003333>
3200
3201         Reviewed by Tim Horton.
3202
3203         Prevent a crash when someone attempts to invoke an action menu on a PDF hosted
3204         in a WK1 view.
3205
3206         * WebView/WebActionMenuController.mm:
3207         (-[WebActionMenuController performHitTestAtPoint:]): Handle WebPDFView as well as
3208         the WebHTMLView case.
3209         * WebView/WebDocument.h:
3210         * WebView/WebHTMLView.h:
3211         * WebView/WebHTMLView.mm:
3212         (-[WebHTMLView _frame]):
3213         * WebView/WebHTMLViewInternal.h:
3214         * WebView/WebPDFView.h:
3215         * WebView/WebPDFView.mm:
3216         (-[WebPDFView _frame]): Added.
3217
3218 2015-04-22  Eric Carlson  <eric.carlson@apple.com>
3219
3220         Unreviewed post-review clean up after r183096.
3221
3222         * WebView/WebMediaPlaybackTargetPicker.h:
3223
3224 2015-04-21  Eric Carlson  <eric.carlson@apple.com>
3225
3226         [Mac] Use one playback target for all web processes
3227         https://bugs.webkit.org/show_bug.cgi?id=144009
3228
3229         Reviewed by Tim Horton.
3230
3231         Update to use WebMediaSessionManager for playback target management.
3232
3233         * WebCoreSupport/WebChromeClient.h:
3234         * WebCoreSupport/WebChromeClient.mm:
3235         (WebChromeClient::addPlaybackTargetPickerClient):
3236         (WebChromeClient::removePlaybackTargetPickerClient):
3237         (WebChromeClient::showPlaybackTargetPicker):
3238         (WebChromeClient::playbackTargetPickerClientStateDidChange):
3239         (WebChromeClient::startingMonitoringPlaybackTargets): Deleted.
3240         (WebChromeClient::stopMonitoringPlaybackTargets): Deleted.
3241         * WebView/WebMediaPlaybackTargetPicker.h:
3242         * WebView/WebMediaPlaybackTargetPicker.mm:
3243         (WebMediaPlaybackTargetPicker::addPlaybackTargetPickerClient):
3244         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
3245         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
3246         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
3247         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
3248         (WebMediaPlaybackTargetPicker::externalOutputDeviceAvailableDidChange):
3249         (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
3250         (WebMediaPlaybackTargetPicker::invalidate):
3251         (WebMediaPlaybackTargetPicker::startingMonitoringPlaybackTargets): Deleted.
3252         (WebMediaPlaybackTargetPicker::stopMonitoringPlaybackTargets): Deleted.
3253         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): Deleted.
3254         (WebMediaPlaybackTargetPicker::targetPicker): Deleted.
3255         * WebView/WebView.mm:
3256         (-[WebView _addPlaybackTargetPickerClient:]):
3257         (-[WebView _removePlaybackTargetPickerClient:]):
3258         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
3259         (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
3260         (-[WebView _showPlaybackTargetPicker:hasVideo:]): Deleted.
3261         (-[WebView _startingMonitoringPlaybackTargets]): Deleted.
3262         (-[WebView _stopMonitoringPlaybackTargets]): Deleted.
3263         * WebView/WebViewInternal.h:
3264
3265 2015-04-20  Alexey Proskuryakov  <ap@apple.com>
3266
3267         Disable mixed content blocking for existing WebKit1 clients
3268         https://bugs.webkit.org/show_bug.cgi?id=143955
3269         rdar://problem/20177186
3270
3271         Reviewed by Oliver Hunt.
3272
3273         * Misc/WebKitVersionChecks.h:
3274         * WebView/WebView.mm:
3275         (shouldAllowInsecureContent):
3276         (-[WebView _preferencesChanged:]):
3277
3278 2015-04-20  Tim Horton  <timothy_horton@apple.com>
3279
3280         Implement immediate action support for tel: and mailto: URLs
3281         https://bugs.webkit.org/show_bug.cgi?id=143916
3282         <rdar://problem/19721711>
3283
3284         Reviewed by Darin Adler.
3285
3286         * WebView/WebImmediateActionController.mm:
3287         (-[WebImmediateActionController _defaultAnimationController]):
3288         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
3289         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
3290         (-[WebImmediateActionController _menuItemForDataDetectedText]): Deleted.
3291         * WebView/WebUIDelegatePrivate.h:
3292         Add _animationControllerForDataDetectedLink and use it when
3293         building immediate actions for tel: and mailto: links.
3294
3295 2015-04-17  Daniel Bates  <dabates@apple.com>
3296
3297         REGRESSION: SVG does not support link dragging
3298         https://bugs.webkit.org/show_bug.cgi?id=141597
3299
3300         Reviewed by Darin Adler.
3301
3302         Write -[WebElementDictionary _isLiveLink] in terms of WebCore::isDraggableLink().
3303
3304         * Misc/WebElementDictionary.mm:
3305         (-[WebElementDictionary _isLiveLink]):
3306
3307 2015-04-16  Sam Weinig  <sam@webkit.org>
3308
3309         Expose JavaScriptMarkupEnabled preference for WebKit1
3310         <rdar://problem/19939450>
3311         https://bugs.webkit.org/show_bug.cgi?id=143855
3312
3313         Reviewed by Dan Bernstein.
3314
3315         * WebView/WebPreferenceKeysPrivate.h:
3316         Add new key, WebKitJavaScriptMarkupEnabledPreferenceKey
3317
3318         * WebView/WebPreferences.mm:
3319         (+[WebPreferences initialize]):
3320         Initialize WebKitJavaScriptMarkupEnabledPreferenceKey to YES.
3321
3322         (-[WebPreferences isJavaScriptMarkupEnabled]):
3323         (-[WebPreferences setJavaScriptMarkupEnabled:]):
3324         Implement getter/setter.
3325
3326         * WebView/WebPreferencesPrivate.h:
3327         Add new property, javaScriptMarkupEnabled.
3328
3329         * WebView/WebView.mm:
3330         (-[WebView _preferencesChanged:]):
3331         Map the new preference to WebCore's scriptMarkupEnabled setting.
3332
3333 2015-04-15  Brent Fulgham  <bfulgham@apple.com>
3334
3335         [Mac] Disable "Save to Downloads" option for local files
3336         https://bugs.webkit.org/show_bug.cgi?id=143794
3337
3338         Reviewed by Tim Horton.
3339
3340         Disable the Image and Media download options if the download
3341         target is a local file. We can only download web resources;
3342         anything else is actually a no-op.
3343
3344         * WebView/WebActionMenuController.mm:
3345         (-[WebActionMenuController _defaultMenuItemsForImage]):
3346         (-[WebActionMenuController _defaultMenuItemsForVideo]):
3347
3348 2015-04-15  Alex Christensen  <achristensen@webkit.org>
3349
3350         Progress towards CMake on Mac.
3351         https://bugs.webkit.org/show_bug.cgi?id=143785
3352
3353         Reviewed by Csaba Osztrogonác.
3354
3355         * WebView/WebPDFDocumentExtras.mm:
3356         * WebView/WebPDFView.mm:
3357
3358 2015-04-13  Jer Noble  <jer.noble@apple.com>
3359
3360         [Fullscreen] ChromeClient::exitVideoFullscreen() should take a pointer to a HTMLVideoElement.
3361         https://bugs.webkit.org/show_bug.cgi?id=143674
3362
3363         Reviewed by Darin Adler.
3364
3365         * WebCoreSupport/WebChromeClient.h:
3366         * WebCoreSupport/WebChromeClient.mm:
3367         (WebChromeClient::enterVideoFullscreenForVideoElement): Takes a reference.
3368         (WebChromeClient::exitVideoFullscreenForVideoElement): Renamed from exitVideoFullscreen().
3369         (WebChromeClient::exitVideoFullscreen): Deleted.
3370
3371 2015-04-14  Simon Fraser  <simon.fraser@apple.com>
3372
3373         Re-enable custom dilation for antialiased fonts
3374         https://bugs.webkit.org/show_bug.cgi?id=143738
3375
3376         Reviewed by Tim Horton.
3377         
3378         Enabling custom dilation for antialised fonts broke layout tests, so re-land it,
3379         but disable in WebKitTestRunner and DumpRenderTree. The latter requires adding
3380         a private WebKit pref. This pref defaults to YES, enabling the feature by default
3381         in WK1 as we do for WK2.
3382
3383         * WebView/WebPreferenceKeysPrivate.h:
3384         * WebView/WebPreferences.mm:
3385         (+[WebPreferences initialize]):
3386         (-[WebPreferences setAntialiasedFontDilationEnabled:]):
3387         (-[WebPreferences antialiasedFontDilationEnabled]):
3388         * WebView/WebPreferencesPrivate.h:
3389         * WebView/WebView.mm:
3390         (-[WebView _preferencesChanged:]):
3391
3392 2015-04-13  Brady Eidson  <beidson@apple.com>
3393
3394         Share sheets from Share menus appear outside the browser window.
3395         <rdar://problem/20455592> and https://bugs.webkit.org/show_bug.cgi?id=143620
3396
3397         Reviewed by Darin Adler.
3398
3399         Refactor existing Sharing Service Picker code to also be used for the Share menu NSMenuItem.
3400
3401         * Misc/WebSharingServicePickerController.h:
3402         (WebSharingServicePickerClient::webView):
3403         * Misc/WebSharingServicePickerController.mm:
3404         (WebSharingServicePickerClient::WebSharingServicePickerClient):
3405         (WebSharingServicePickerClient::sharingServicePickerWillBeDestroyed):
3406         (WebSharingServicePickerClient::pageForSharingServicePicker):
3407         (WebSharingServicePickerClient::windowForSharingServicePicker):
3408         (WebSharingServicePickerClient::screenRectForCurrentSharingServicePickerItem):
3409         (WebSharingServicePickerClient::imageForCurrentSharingServicePickerItem):
3410         (-[WebSharingServicePickerController initWithItems:includeEditorServices:client:style:]):
3411         (-[WebSharingServicePickerController initWithSharingServicePicker:client:]):
3412         (-[WebSharingServicePickerController sharingService:didShareItems:]):
3413
3414         * WebCoreSupport/WebContextMenuClient.h:
3415         (WebContextMenuClient::webView): Deleted.
3416         * WebCoreSupport/WebContextMenuClient.mm:
3417         (WebContextMenuClient::WebContextMenuClient):
3418         (WebContextMenuClient::pageForSharingServicePicker): Deleted.
3419         (WebContextMenuClient::windowForSharingServicePicker): Deleted.
3420
3421         * WebCoreSupport/WebSelectionServiceController.h:
3422         * WebCoreSupport/WebSelectionServiceController.mm:
3423         (WebSelectionServiceController::WebSelectionServiceController):
3424         (WebSelectionServiceController::handleSelectionServiceClick):
3425         (WebSelectionServiceController::pageForSharingServicePicker): Deleted.
3426         (WebSelectionServiceController::windowForSharingServicePicker): Deleted.
3427         (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem): Deleted.
3428         (WebSelectionServiceController::imageForCurrentSharingServicePickerItem): Deleted.
3429
3430         * WebView/WebHTMLView.mm:
3431         (-[WebHTMLView menuForEvent:]):
3432         * WebView/WebViewData.h:
3433
3434 2015-04-13  Beth Dakin  <bdakin@apple.com>
3435
3436         Add force property to MouseEvents
3437         https://bugs.webkit.org/show_bug.cgi?id=143569
3438         -and corresponding-
3439         rdar://problem/20472954
3440
3441         Reviewed by Darin Adler.
3442
3443         PlatformMouseEvent and MouseEvent now take force parameters.
3444         * WebView/WebFrame.mm:
3445         (-[WebFrame _dragSourceEndedAt:operation:]):
3446         * WebView/WebPDFView.mm:
3447         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3448
3449 2015-04-12  Darin Adler  <darin@apple.com>
3450
3451         [Cocoa] Localizable strings are inconsistent and need to be regenerated
3452         https://bugs.webkit.org/show_bug.cgi?id=143661
3453         rdar://problem/19634388
3454
3455         Reviewed by Dan Bernstein.
3456
3457         * Misc/WebLocalizableStrings.mm:
3458         (LoadWebLocalizedStringsTimerCallback): Moved the comment, useful for programmers but
3459         not for localization, into a C++ source code comment, and made the localizer comment
3460         consistent with the place this localizable string is used for actual localization.
3461         * WebCoreSupport/WebEditorClient.mm:
3462         (undoNameForEditAction): Changed the localizer comments for Delete and Dictation
3463         to match the ones in WebKit2; no need to specify that these are iOS only, and if we do
3464         want to specify that, we should not be using the term PLATFORM(IOS) since there is no
3465         reason for us to expect localizers to understand that terminology. Also added a comment
3466         about the fact that we have two copies of all the localizable strings.
3467
3468 2015-04-11  Yusuke Suzuki  <utatane.tea@gmail.com>
3469
3470         [ES6] Enable Symbol in web pages
3471         https://bugs.webkit.org/show_bug.cgi?id=143375
3472
3473         Reviewed by Ryosuke Niwa.
3474
3475         * WebView/WebPreferencesPrivate.h:
3476
3477 2015-04-08  Sam Weinig  <sam@webkit.org>
3478
3479         Allow LaunchServices to handle URLs on link navigations
3480         <rdar://problem/19446826>
3481         https://bugs.webkit.org/show_bug.cgi?id=143544
3482
3483         Reviewed by Anders Carlsson.
3484
3485         * Configurations/WebKitLegacy.xcconfig:
3486         Link MobileCoreServices.
3487
3488         * WebCoreSupport/WebFrameLoaderClient.h:
3489         * WebCoreSupport/WebFrameLoaderClient.mm:
3490         (shouldTryAppLink):
3491         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3492         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3493         (WebFrameLoaderClient::setUpPolicyListener):
3494         Only let LaunchServices have a crack at the URL if the navigation is:
3495             1) a main frame navigation
3496             2) a result of a user gesture
3497
3498 2015-04-10  Alexey Proskuryakov  <ap@apple.com>
3499
3500         Build fix.
3501
3502         * Misc/WebNSURLExtras.mm: (-[NSString _webkit_unescapedQueryValue]): Ignore a deprecation.
3503
3504 2015-04-10  Eric Carlson  <eric.carlson@apple.com>
3505
3506         [Mac] Refactor MediaPlaybackTarget
3507         https://bugs.webkit.org/show_bug.cgi?id=143571
3508
3509         Reviewed by Jer Noble.
3510
3511         * WebView/WebMediaPlaybackTargetPicker.h:
3512         * WebView/WebMediaPlaybackTargetPicker.mm:
3513         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): Take a Ref<MediaPlaybackTarget>&&.
3514
3515 2015-04-09  Andy Estes  <aestes@apple.com>
3516
3517         [Cocoa] Add a HAVE(AVKIT) and use it
3518         https://bugs.webkit.org/show_bug.cgi?id=143593
3519
3520         Reviewed by David Kilzer.
3521
3522         * WebView/WebPreferences.mm:
3523         (+[WebPreferences initialize]): Only set WebKitAVKitEnabled to YES if HAVE(AVKIT).
3524         (-[WebPreferences setAVKitEnabled:]): Only set value for WebKitAVKitEnabled if HAVE(AVKIT).
3525         * WebView/WebView.mm:
3526         (-[WebView _preferencesChanged:]): Only called Settings::setAVKitEnabled() if HAVE(AVKIT).
3527
3528 2015-04-09  Chris Dumez  <cdumez@apple.com>
3529
3530         [WK2][iOS] editorState() should not cause a synchronous layout
3531         https://bugs.webkit.org/show_bug.cgi?id=142536
3532         <rdar://problem/20041506>
3533
3534         Reviewed by Enrica Casucci.
3535
3536         Provide implementation for EditorClient::didChangeSelectionAndUpdateLayout().
3537
3538         * WebCoreSupport/WebEditorClient.h:
3539
3540 2015-04-08  Brent Fulgham  <bfulgham@apple.com>
3541
3542         [Mac] WebKit is not honoring OS preferences for secondary click behaviors
3543         https://bugs.webkit.org/show_bug.cgi?id=143452
3544         <rdar://problem/20437483>
3545
3546         Reviewed by Tim Horton.
3547
3548         We were improperly intercepting contextual menu clicks and passing them through
3549         the mouseDown handler, rather than processing via NSView's menu handling code.
3550
3551         * WebView/WebHTMLView.mm:
3552         (-[WebHTMLView otherMouseDown:]): Treat context menu events the same as the action
3553         menu case, and pass it to AppKit for normal menu processing. 
3554
3555 2015-04-08  Brady Eidson  <beidson@apple.com>
3556
3557         Expose the "Share" menu for links, images, and media.
3558         <rdar://problem/20435340> and https://bugs.webkit.org/show_bug.cgi?id=143502
3559
3560         Reviewed by Tim Horton.
3561
3562         * WebCoreSupport/WebContextMenuClient.h:
3563         * WebCoreSupport/WebContextMenuClient.mm:
3564         (WebContextMenuClient::shareMenuItem): 
3565
3566 2015-04-08  Anders Carlsson  <andersca@apple.com>
3567
3568         Move some ApplicationCache static member functions to ApplicationCacheStorage
3569         https://bugs.webkit.org/show_bug.cgi?id=143524
3570
3571         Reviewed by Antti Koivisto.
3572
3573         * WebCoreSupport/WebApplicationCache.mm:
3574         (+[WebApplicationCache diskUsageForOrigin:]):
3575         (+[WebApplicationCache deleteAllApplicationCaches]):
3576         (+[WebApplicationCache deleteCacheForOrigin:]):
3577
3578 2015-04-08  Chris Dumez  <cdumez@apple.com>
3579
3580         Rename ActiveDOMObject::canSuspend() to canSuspendForPageCache() for clarity
3581         https://bugs.webkit.org/show_bug.cgi?id=143513
3582
3583         Reviewed by Andreas Kling.