cf1086c9446865a275ce593448d00b73118c7406
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2015-12-31  Andy Estes  <aestes@apple.com>
2
3         Replace WTF::move with WTFMove
4         https://bugs.webkit.org/show_bug.cgi?id=152601
5
6         Reviewed by Brady Eidson.
7
8         * History/WebHistoryItem.mm:
9         (-[WebHistoryItem initFromDictionaryRepresentation:]):
10         * Plugins/Hosted/HostedNetscapePluginStream.mm:
11         (WebKit::HostedNetscapePluginStream::willSendRequest):
12         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
13         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
14         * Plugins/WebNetscapePluginStream.mm:
15         (WebNetscapePluginStream::willSendRequest):
16         * Plugins/WebNetscapePluginView.mm:
17         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
18         * WebCoreSupport/WebContextMenuClient.mm:
19         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
20         * WebCoreSupport/WebFrameLoaderClient.mm:
21         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
22         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
23         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
24         (WebFrameLoaderClient::dispatchWillSubmitForm):
25         (WebFrameLoaderClient::createDocumentLoader):
26         * WebCoreSupport/WebInspectorClient.mm:
27         (WebInspectorFrontendClient::WebInspectorFrontendClient):
28         * WebView/WebArchive.mm:
29         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
30         * WebView/WebFrame.mm:
31         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
32         * WebView/WebHTMLView.mm:
33         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
34         * WebView/WebMediaPlaybackTargetPicker.mm:
35         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
36         * WebView/WebView.mm:
37         (-[WebView _loadBackForwardListFromOtherView:]):
38         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
39         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
40
41 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
42
43         Fix the iOS and EFL builds, after an over-eager commit-queue commit.
44
45         * History/WebHistoryItem.mm:
46         (-[WebHistoryItem initFromDictionaryRepresentation:]):
47
48 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
49
50         Fix naming in HistoryItem to refer to scrollPositions
51         https://bugs.webkit.org/show_bug.cgi?id=152646
52
53         Reviewed by Zalan Bujtas.
54
55         HistoryItem stores a scrollPosition, so call it that.
56
57         * History/WebHistoryItem.mm:
58         (-[WebHistoryItem scrollPoint]):
59
60 2016-01-01  Jeff Miller  <jeffm@apple.com>
61
62         Update user-visible copyright strings to include 2016
63         https://bugs.webkit.org/show_bug.cgi?id=152531
64
65         Reviewed by Alexey Proskuryakov.
66
67         * Info.plist:
68
69 2015-12-31  David Kilzer  <ddkilzer@apple.com>
70
71         Stop using USE(CFNETWORK) path on iOS
72         https://bugs.webkit.org/show_bug.cgi?id=142540
73
74         Step 1/2: Do everything but turn off USE(CFNETWORK) internally.
75
76         Original patch by Antti Koivisto <antti@apple.com> on 2015-03-10
77         Reviewed by Daniel Bates.
78
79         * Misc/WebDownload.h: Add header guard to make
80         NSURLDownloadSPI.h work when pre-declaring NSURLDownload object.
81         * Misc/WebKitVersionChecks.h: Define
82         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES
83         for iOS.
84         * WebView/WebView.mm:
85         (-[WebView _commonInitializationWithFrameName:groupName:]): Use
86         the correct runloop on iOS.
87         * WebView/WebViewPrivate.h:
88         (-[WebView(WebPendingPublic) scheduleInRunLoop:forMode:]):
89         (-[WebView(WebPendingPublic) unscheduleFromRunLoop:forMode:]):
90         - These are available on iOS now.
91
92 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
93
94         Clarify that scrollPositionChangedViaPlatformWidget takes offsets
95         https://bugs.webkit.org/show_bug.cgi?id=152606
96
97         Reviewed by Zalan Bujtas.
98
99         scrollPositionChangedViaPlatformWidget actually gets scroll offsets, since the
100         values we get from AppKit are zero-based, so rename to scrollOffsetChangedViaPlatformWidget().
101         
102         Change ScrollableArea's setScrollPosition() and requestScrollPositionUpdate() to take
103         ScrollPositions.
104         
105         Add a FIXME noting that willRevealEdge events are probably broken in RTL documents.
106
107         * WebView/WebHTMLView.mm:
108         (-[WebHTMLView _frameOrBoundsChanged]):
109
110 2015-12-22  Andy Estes  <aestes@apple.com>
111
112         [CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI
113         https://bugs.webkit.org/show_bug.cgi?id=152463
114
115         Reviewed by Alexey Proskuryakov.
116
117         Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward
118         declared in CFNetworkSPI.h.
119
120         * Plugins/Hosted/HostedNetscapePluginStream.mm:
121         (WebKit::HostedNetscapePluginStream::didReceiveResponse):
122         * Plugins/WebNetscapePluginStream.mm:
123         (WebNetscapePluginStream::didReceiveResponse):
124         * WebCoreSupport/WebSystemInterface.mm:
125         (InitWebCoreSystemInterface): Deleted.
126         * WebView/WebPreferences.mm:
127         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
128
129 2015-12-20  Dan Bernstein  <mitz@apple.com>
130
131         Remove unused setToolbarHeight
132         https://bugs.webkit.org/show_bug.cgi?id=152466
133
134         Reviewed by Darin Adler.
135
136         * WebCoreSupport/WebInspectorClient.h:
137         * WebCoreSupport/WebInspectorClient.mm::
138         (WebInspectorFrontendClient::setToolbarHeight): Deleted.
139
140 2015-12-19  Dan Bernstein  <mitz@apple.com>
141
142         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
143         https://bugs.webkit.org/show_bug.cgi?id=152462
144
145         Reviewed by Alexey Proskuryakov.
146
147         - Removed build setting definitions for OS X 10.9 and earlier, and simplified defintions
148           that became uniform across all OS X versions as a result:
149
150         * Configurations/DebugRelease.xcconfig:
151         * Configurations/FeatureDefines.xcconfig:
152         * Configurations/Version.xcconfig:
153         * Configurations/WebKitLegacy.xcconfig:
154
155         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
156           never getting compiled:
157
158         * WebCoreSupport/WebInspectorClient.mm:
159         * WebView/WebDynamicScrollBarsView.mm:
160         * WebView/WebHTMLView.mm:
161         * WebView/WebImmediateActionController.h:
162         * WebView/WebImmediateActionController.mm:
163         * WebView/WebView.mm:
164         * WebView/WebViewData.h:
165         * WebView/WebViewData.mm:
166         * WebView/WebViewInternal.h:
167
168 2015-12-17  Tim Horton  <timothy_horton@apple.com>
169
170         Data detector yellow highlight location is vertically mirrored in WebKit1
171         https://bugs.webkit.org/show_bug.cgi?id=152216
172         <rdar://problem/23848003>
173
174         Reviewed by Darin Adler.
175
176         * WebView/WebImmediateActionController.mm:
177         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
178         Match the conversion we do at every other WK1 TextIndicator construction.
179
180 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
181
182         [Fetch API] Add fetch API compile time flag
183         https://bugs.webkit.org/show_bug.cgi?id=152254
184
185         Reviewed by Darin Adler.
186
187         * Configurations/FeatureDefines.xcconfig:
188
189 2015-12-13  Tim Horton  <timothy_horton@apple.com>
190
191         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
192         https://bugs.webkit.org/show_bug.cgi?id=150988
193         <rdar://problem/18993594>
194
195         Reviewed by Darin Adler.
196
197         * WebCoreSupport/WebContextMenuClient.mm:
198         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
199         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
200
201 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
202
203         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
204         https://bugs.webkit.org/show_bug.cgi?id=152197
205
206         Reviewed by Dean Jackson.
207
208         * WebView/WebPreferenceKeysPrivate.h:
209         * WebView/WebPreferences.mm:
210         (+[WebPreferences initialize]):
211         (-[WebPreferences mockCaptureDevicesEnabled]):
212         (-[WebPreferences setMockCaptureDevicesEnabled:]):
213         * WebView/WebPreferencesPrivate.h:
214         * WebView/WebView.mm:
215         (-[WebView _preferencesChanged:]):
216
217 2015-12-11  Beth Dakin  <bdakin@apple.com>
218
219         _touchEventRegions should return regions in the view's coordinates
220         https://bugs.webkit.org/show_bug.cgi?id=152189
221         -and corresponding-
222         rdar://problem/23188605
223
224         Reviewed by Dan Bernstein.
225
226         The comment here was actually out of date. It claimed that touch rectangles 
227         are in the coordinate system of the document, but we had actually changed 
228         them to be in the view’s coordinate system in order to fix issues with 
229         handling touch events in UIWebView. But now we are going back to having the 
230         touch rectangles be in the document’s coordinate system, so we should fix the 
231         rtl bugs here by converting to view coordinates before handing the rects off 
232         to iOS WK1 clients.
233         * WebView/WebView.mm:
234         (-[WebView _touchEventRegions]):
235
236 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
237
238         [MediaStream] Expose media capture devices persistent permissions to WebCore
239         https://bugs.webkit.org/show_bug.cgi?id=152087
240
241         Reviewed by Chris Dumez.
242
243         Add methods and helpers for WK1 permission checker interface.
244         * WebCoreSupport/WebUserMediaClient.h:
245         * WebCoreSupport/WebUserMediaClient.mm:
246         (userMediaRequestsMap):
247         (AddRequestToRequestMap):
248         (RemoveRequestFromRequestMap):
249         (userMediaCheckMap):
250         (AddPermissionCheckToMap):
251         (RemovePermissionCheckFromMap):
252         (WebUserMediaClient::WebUserMediaClient):
253         (WebUserMediaClient::requestUserMediaAccess):
254         (WebUserMediaClient::cancelUserMediaAccessRequest):
255         (WebUserMediaClient::checkUserMediaPermission):
256         (WebUserMediaClient::cancelUserMediaPermissionCheck):
257         (-[WebUserMediaPolicyListener allow]):
258         (-[WebUserMediaPolicyListener deny]):
259         (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]):
260         (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]):
261         (-[WebUserMediaPolicyCheckerListener allow]):
262         (-[WebUserMediaPolicyCheckerListener deny]):
263         (-[WebUserMediaPolicyCheckerListener denyOnlyThisRequest]):
264         (-[WebUserMediaPolicyCheckerListener shouldClearCache]):
265         (AddRequestToMap): Deleted.
266         (RemoveRequestFromMap): Deleted.
267         * WebView/WebUIDelegatePrivate.h:
268
269 2015-12-08  Beth Dakin  <bdakin@apple.com>
270
271         Follow-up to:
272         Add support for WebViewAdditions
273         https://bugs.webkit.org/show_bug.cgi?id=151967
274
275         Rubber-stamped by Dan Bernstein.
276
277         We should use the Web prefix for all category names.
278         * WebView/WebView.mm:
279         (-[WebView updateWebViewAdditions]):
280         * WebView/WebViewInternal.h:
281
282 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
283
284         [MediaStream] Rename UserMediaClient and UserMediaController methods
285         https://bugs.webkit.org/show_bug.cgi?id=152001
286
287         Reviewed by Brady Eidson.
288
289         * WebCoreSupport/WebUserMediaClient.h:
290         * WebCoreSupport/WebUserMediaClient.mm:
291         (WebUserMediaClient::pageDestroyed):
292         (WebUserMediaClient::requestUserMediaAccess):
293         (WebUserMediaClient::cancelUserMediaAccessRequest):
294         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
295         (-[WebUserMediaPolicyListener cancelUserMediaAccessRequest]):
296         (WebUserMediaClient::requestPermission): Deleted.
297         (WebUserMediaClient::cancelRequest): Deleted.
298         (-[WebUserMediaPolicyListener cancelRequest]): Deleted.
299
300 2015-12-07  Alex Christensen  <achristensen@webkit.org>
301
302         Build fix after r193675.
303
304         * WebView/WebViewData.h:
305
306 2015-12-07  Alex Christensen  <achristensen@webkit.org>
307
308         Build fix after r193661.
309
310         Reviewed by Beth Dakin.
311
312         * WebView/WebViewData.h:
313
314 2015-12-07  Beth Dakin  <bdakin@apple.com>
315
316         Add support for WebViewAdditions
317         https://bugs.webkit.org/show_bug.cgi?id=151967
318
319         Reviewed by Sam Weinig.
320
321         * WebCoreSupport/WebEditorClient.mm:
322         (WebEditorClient::respondToChangedSelection):
323         * WebView/WebView.mm:
324         (-[WebView _commonInitializationWithFrameName:groupName:]):
325         (-[WebView updateWebViewAdditions]):
326         * WebView/WebViewData.h:
327         * WebView/WebViewInternal.h:
328
329 2015-12-07  Beth Dakin  <bdakin@apple.com>
330
331         Hook up request and show for typing candidates in WK1
332         https://bugs.webkit.org/show_bug.cgi?id=151831
333         -and corresponding-
334         <rdar://problem/23751214>
335
336         Reviewed by Enrica Casucci.
337
338         Add member variables to WebEditorClient. One is a WeakPtrFactory for the 
339         asynchronous handlers, and the other caches the VisibleSelection at the time 
340         candidates were requested so that we can make sure the candidates are still 
341         valid once we receive them.
342         * WebCoreSupport/WebEditorClient.h:
343         * WebCoreSupport/WebEditorClient.mm:
344         (WebEditorClient::WebEditorClient):
345
346         Call [NSSpellChecker requestCandidatesForSelectedRange] with the appropriate 
347         parameters.
348         (WebEditorClient::requestCandidatesForSelection):
349
350         Two helpers to compute information that we need for both of the handlers 
351         below.
352         (candidateRangeForSelection):
353         (candidateWouldReplaceText):
354
355         In this handler, we just need to call [NSSpellChecker showCandidates] with 
356         the appropriate parameters.
357         (WebEditorClient::handleRequestedCandidates):
358
359         Once a candidate is accepted, it should be inserted in the right way.
360         (WebEditorClient::handleAcceptedCandidate):
361
362 2015-12-03  Jer Noble  <jer.noble@apple.com>
363
364         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
365         https://bugs.webkit.org/show_bug.cgi?id=151830
366
367         Reviewed by Anders Carlsson.
368
369         Add a new WebPreferences property invisibleAutoplayNotPermitted.
370
371         * WebView/WebPreferenceKeysPrivate.h:
372         * WebView/WebPreferences.mm:
373         (-[WebPreferences invisibleAutoplayNotPermitted]):
374         (-[WebPreferences setInvisibleAutoplayNotPermitted:]):
375         * WebView/WebPreferencesPrivate.h:
376         * WebView/WebView.mm:
377         (-[WebView _preferencesChanged:]):
378
379 2015-12-03  Anders Carlsson  <andersca@apple.com>
380
381         Remove Objective-C GC support
382         https://bugs.webkit.org/show_bug.cgi?id=151819
383         rdar://problem/23746991
384
385         Reviewed by Dan Bernstein.
386
387         * Carbon/CarbonWindowAdapter.mm:
388         (+[CarbonWindowAdapter initialize]): Deleted.
389         (-[CarbonWindowAdapter finalize]): Deleted.
390         * Configurations/Base.xcconfig:
391         * History/WebBackForwardList.mm:
392         (+[WebBackForwardList initialize]): Deleted.
393         (-[WebBackForwardList finalize]): Deleted.
394         * History/WebHistory.mm:
395         (-[WebHistoryPrivate finalize]): Deleted.
396         (-[WebHistory finalize]): Deleted.
397         * History/WebHistoryItem.mm:
398         (+[WebHistoryItem initialize]): Deleted.
399         (-[WebHistoryItem finalize]): Deleted.
400         * Misc/WebElementDictionary.mm:
401         (+[WebElementDictionary initialize]): Deleted.
402         (-[WebElementDictionary finalize]): Deleted.
403         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
404         (+[WebHostedNetscapePluginView initialize]): Deleted.
405         * Plugins/WebBaseNetscapePluginView.mm:
406         (-[WebBaseNetscapePluginView finalize]): Deleted.
407         * Plugins/WebBasePluginPackage.mm:
408         (-[WebBasePluginPackage finalize]): Deleted.
409         * Plugins/WebNetscapePluginView.mm:
410         (+[WebNetscapePluginView initialize]): Deleted.
411         (-[WebNetscapePluginView finalize]): Deleted.
412         * Plugins/WebPluginContainerCheck.mm:
413         (-[WebPluginContainerCheck finalize]): Deleted.
414         * WebCoreSupport/WebEditorClient.mm:
415         (+[WebUndoStep initialize]): Deleted.
416         (-[WebUndoStep finalize]): Deleted.
417         * WebCoreSupport/WebFrameLoaderClient.mm:
418         * WebCoreSupport/WebOpenPanelResultListener.mm:
419         (-[WebOpenPanelResultListener finalize]): Deleted.
420         * WebCoreSupport/WebSecurityOrigin.mm:
421         (-[WebSecurityOrigin finalize]): Deleted.
422         * WebView/WebArchive.mm:
423         (+[WebArchivePrivate initialize]): Deleted.
424         * WebView/WebDataSource.mm:
425         (+[WebDataSource initialize]): Deleted.
426         (-[WebDataSource finalize]): Deleted.
427         * WebView/WebDynamicScrollBarsView.mm:
428         (-[WebDynamicScrollBarsView finalize]): Deleted.
429         * WebView/WebFrame.mm:
430         (-[WebFramePrivate setWebFrameView:]):
431         (-[WebFramePrivate finalize]): Deleted.
432         (-[WebFrame finalize]): Deleted.
433         * WebView/WebFrameView.mm:
434         (-[WebFrameView finalize]): Deleted.
435         * WebView/WebHTMLRepresentation.mm:
436         (-[WebHTMLRepresentation finalize]): Deleted.
437         * WebView/WebHTMLView.mm:
438         (+[WebHTMLViewPrivate initialize]):
439         (-[WebHTMLViewPrivate finalize]): Deleted.
440         (+[WebHTMLView initialize]): Deleted.
441         (-[WebHTMLView finalize]): Deleted.
442         * WebView/WebResource.mm:
443         (+[WebResourcePrivate initialize]): Deleted.
444         (-[WebResourcePrivate finalize]): Deleted.
445         * WebView/WebTextIterator.mm:
446         (+[WebTextIteratorPrivate initialize]): Deleted.
447         * WebView/WebView.mm:
448         (-[WebView finalize]): Deleted.
449         * WebView/WebViewData.mm:
450         (+[WebViewPrivate initialize]): Deleted.
451         (-[WebViewPrivate init]): Deleted.
452         (-[WebViewPrivate finalize]): Deleted.
453
454 2015-12-02  Antti Koivisto  <antti@apple.com>
455
456         Move ResourceLoadScheduler to WebKit1
457         https://bugs.webkit.org/show_bug.cgi?id=151743
458
459         Reviewed by Alex Christensen.
460
461         * Plugins/Hosted/HostedNetscapePluginStream.mm:
462         (WebKit::HostedNetscapePluginStream::start):
463         (WebKit::HostedNetscapePluginStream::stop):
464         * Plugins/WebNetscapePluginStream.mm:
465         (WebNetscapePluginStream::start):
466         (WebNetscapePluginStream::stop):
467         * WebCoreSupport/WebPlatformStrategies.h:
468         * WebCoreSupport/WebPlatformStrategies.mm:
469         (WebPlatformStrategies::createLoaderStrategy):
470         (WebPlatformStrategies::createPasteboardStrategy):
471         (WebPlatformStrategies::createPluginStrategy):
472         (WebPlatformStrategies::createBlobRegistry):
473         (WebPlatformStrategies::cookiesForDOM):
474         * WebView/WebView.mm:
475         (-[WebView _dispatchPendingLoadRequests]):
476         (+[WebView _setLoadResourcesSerially:]):
477         (+[WebView _HTTPPipeliningEnabled]):
478
479 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
480
481         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
482         https://bugs.webkit.org/show_bug.cgi?id=150792
483
484         Reviewed by Saam Barati.
485
486         * Configurations/FeatureDefines.xcconfig:
487
488 2015-12-01  Commit Queue  <commit-queue@webkit.org>
489
490         Unreviewed, rolling out r192914.
491         https://bugs.webkit.org/show_bug.cgi?id=151734
492
493         JSC tests for this change are failing on 32 and 64-bit bots
494         (Requested by ryanhaddad on #webkit).
495
496         Reverted changeset:
497
498         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
499         enable this feature"
500         https://bugs.webkit.org/show_bug.cgi?id=150792
501         http://trac.webkit.org/changeset/192914
502
503 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
504
505         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
506         https://bugs.webkit.org/show_bug.cgi?id=150792
507
508         Reviewed by Saam Barati.
509
510         * Configurations/FeatureDefines.xcconfig:
511
512 2015-11-30  Katlyn Graff  <kgraff@apple.com>
513
514         Rename ActiveDOMObject/DOMWindow PageCacheSuspension code to support more reasons for suspension
515         https://bugs.webkit.org/show_bug.cgi?id=151677
516
517         Reviewed by Ryosuke Niwa.
518
519         * WebView/WebFrame.mm:
520         (-[WebFrame _cacheabilityDictionary]):
521
522 2015-11-30  Jiewen Tan  <jiewen_tan@apple.com>
523
524         Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone.html
525         https://bugs.webkit.org/show_bug.cgi?id=149309
526         <rdar://problem/22748363>
527
528         Reviewed by Brent Fulgham.
529
530         * WebView/WebDataSource.mm:
531         (WebDataSourcePrivate::~WebDataSourcePrivate):
532         Refine the assertion to treat <rdar://problem/9673866>.
533
534 == Rolled over to ChangeLog-2015-11-21 ==