1 2018-04-02 Jer Noble <jer.noble@apple.com>
3 Enable Legacy EME for all WebKit & WebKitLegacy clients
4 https://bugs.webkit.org/show_bug.cgi?id=184018
5 <rdar://problem/34887387>
7 Reviewed by Eric Carlson.
9 * WebView/WebPreferences.mm:
10 (+[WebPreferences initialize]):
12 2018-03-29 JF Bastien <jfbastien@apple.com>
14 Use Forward.h instead of forward-declaring WTF::String
15 https://bugs.webkit.org/show_bug.cgi?id=184172
16 <rdar://problem/39026146>
18 Reviewed by Yusuke Suzuki.
20 As part of #184164 I'm changing WTF::String, and the forward
21 declarations are just wrong because I'm making it templated. We
22 should use Forward.h anyways, so do that instead.
24 * WebView/WebScriptDebugger.h:
26 2018-03-28 Brent Fulgham <bfulgham@apple.com>
28 Protect against invalid mach ports returned by mach_port_request_notification
29 https://bugs.webkit.org/show_bug.cgi?id=184106
30 <rdar://problem/37865316>
32 Reviewed by Chris Dumez.
34 * Plugins/Hosted/NetscapePluginHostProxy.mm:
35 (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy): Check return value from 'mach_port_request_notification'
36 and clean up if it experienced an error.
37 (WebKit::NetscapePluginHostProxy::processRequests): Drive-by-fix: Include formatted mach error message in logging.
39 2018-03-28 Brent Fulgham <bfulgham@apple.com>
41 Avoid uninitialized mach ports
42 https://bugs.webkit.org/show_bug.cgi?id=184090
43 <rdar://problem/37261129>
45 Reviewed by Chris Dumez.
47 It is possible for mach_port_allocate to return an error, but we rarely check its return value. The value
48 of the argument passed to mach_port_allocate is not guaranteed to be valid when it returns an error, so
49 there is a potential for us to try to use invalid ports.
51 We should always check return values, and ensure that the mach port variables we seek to initialize are
52 kept in a valid state.
54 Reviewed by Chris Dumez.
56 * Plugins/Hosted/NetscapePluginHostManager.h:
57 * Plugins/Hosted/NetscapePluginHostManager.mm:
58 (WebKit::NetscapePluginHostManager::hostForPlugin): Initialize port to a valid state, ASSERT if an invalid
59 port is passed to an API function.
60 (WebKit::NetscapePluginHostManager::spawnPluginHost): Ditto.
61 (WebKit::NetscapePluginHostManager::initializeVendorPort): Ditto.
62 * Plugins/Hosted/NetscapePluginHostProxy.h:
63 * Plugins/Hosted/NetscapePluginHostProxy.mm:
64 (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy): Ditto.
65 (WebKit::NetscapePluginHostProxy::~NetscapePluginHostProxy): Ditto.
66 (WebKit::NetscapePluginHostProxy::processRequests): Ditto.
67 (WKPCStatusText): Ditto.
69 (WKPCCancelLoadURL): Ditto.
70 (WKPCInvalidateRect): Ditto.
71 (WKPCGetScriptableNPObjectReply): Ditto.
72 (WKPCBooleanReply): Ditto.
73 (WKPCBooleanAndDataReply): Ditto.
74 (WKPCInstantiatePluginReply): Ditto.
75 (WKPCGetWindowNPObject): Ditto.
76 (WKPCGetPluginElementNPObject): Ditto.
77 (WKPCForgetBrowserObject): Ditto.
78 (WKPCEvaluate): Ditto.
79 (WKPCGetStringIdentifier): Ditto.
80 (WKPCGetIntIdentifier): Ditto.
82 (WKPCInvokeDefault): Ditto.
83 (WKPCConstruct): Ditto.
84 (WKPCGetProperty): Ditto.
85 (WKPCSetProperty): Ditto.
86 (WKPCRemoveProperty): Ditto.
87 (WKPCHasProperty): Ditto.
88 (WKPCHasMethod): Ditto.
89 (WKPCIdentifierInfo): Ditto.
90 (WKPCEnumerate): Ditto.
91 (WKPCSetMenuBarVisible): Ditto.
92 (WKPCSetFullscreenWindowIsShowing): Ditto.
93 (WKPCSetModal): Ditto.
94 (WKPCGetCookies): Ditto.
95 (WKPCGetProxy): Ditto.
96 (WKPCSetCookies): Ditto.
97 (WKPCGetAuthenticationInfo): Ditto.
98 (WKPCConvertPoint): Ditto.
99 (WKPCLayerHostingModeChanged): Ditto.
100 (WKPCSetException): Ditto.
102 2018-03-26 Tim Horton <timothy_horton@apple.com>
104 Adopt WK_ALTERNATE_FRAMEWORKS_DIR in WebKit
105 https://bugs.webkit.org/show_bug.cgi?id=184030
106 <rdar://problem/38895281>
108 Reviewed by Dan Bernstein.
110 * Configurations/Base.xcconfig:
112 2018-03-26 Chris Dumez <cdumez@apple.com>
114 Use SecurityOriginData more consistently in Service Worker code
115 https://bugs.webkit.org/show_bug.cgi?id=183969
117 Reviewed by Darin Adler.
119 Use SecurityOrigin::data() instead of SecurityOriginData::fromSecurityOrigin().
121 * Storage/WebDatabaseManager.mm:
122 (-[WebDatabaseManager databasesWithOrigin:]):
123 (-[WebDatabaseManager deleteOrigin:]):
124 (-[WebDatabaseManager deleteDatabase:withOrigin:]):
125 * Storage/WebDatabaseQuotaManager.mm:
126 (-[WebDatabaseQuotaManager usage]):
127 (-[WebDatabaseQuotaManager quota]):
128 (-[WebDatabaseQuotaManager setQuota:]):
129 * Storage/WebStorageManager.mm:
130 (-[WebStorageManager deleteOrigin:]):
131 * WebCoreSupport/WebSecurityOrigin.mm:
132 (-[WebSecurityOrigin databaseIdentifier]):
133 (-[WebSecurityOrigin usage]):
134 (-[WebSecurityOrigin quota]):
135 (-[WebSecurityOrigin setQuota:]):
137 2018-03-26 Brent Fulgham <bfulgham@apple.com>
139 Warn against cookie access in the WebContent process using ProcessPrivilege assertions
140 https://bugs.webkit.org/show_bug.cgi?id=183911
141 <rdar://problem/38762306>
143 Reviewed by Youenn Fablet.
145 Initialize the ProcessPrivilege and Cookie API access levels for single-process use.
147 * WebView/WebView.mm:
148 (+[WebView initialize]):
150 2018-03-26 Alex Christensen <achristensen@webkit.org>
152 Merge ResourceHandleClient::willCacheResponseAsync with ResourceHandleClient::willCacheResponse
153 https://bugs.webkit.org/show_bug.cgi?id=183965
155 Reviewed by Chris Dumez.
157 * WebCoreSupport/WebFrameLoaderClient.h:
158 * WebCoreSupport/WebFrameLoaderClient.mm:
159 (WebFrameLoaderClient::willCacheResponse const):
161 2018-03-25 Commit Queue <commit-queue@webkit.org>
163 Unreviewed, rolling out r229954.
164 https://bugs.webkit.org/show_bug.cgi?id=184000
166 Caused many layout tests to crash on Apple High Sierra,
167 Sierra, iOS Simulator and GTK Linux Debug test bots (Requested
172 "Use SecurityOriginData more consistently in Service Worker
174 https://bugs.webkit.org/show_bug.cgi?id=183969
175 https://trac.webkit.org/changeset/229954
177 2018-03-24 Chris Dumez <cdumez@apple.com>
179 Use SecurityOriginData more consistently in Service Worker code
180 https://bugs.webkit.org/show_bug.cgi?id=183969
182 Reviewed by Darin Adler.
184 Use SecurityOrigin::data() instead of SecurityOriginData::fromSecurityOrigin().
186 * Storage/WebDatabaseManager.mm:
187 (-[WebDatabaseManager databasesWithOrigin:]):
188 (-[WebDatabaseManager deleteOrigin:]):
189 (-[WebDatabaseManager deleteDatabase:withOrigin:]):
190 * Storage/WebDatabaseQuotaManager.mm:
191 (-[WebDatabaseQuotaManager usage]):
192 (-[WebDatabaseQuotaManager quota]):
193 (-[WebDatabaseQuotaManager setQuota:]):
194 * Storage/WebStorageManager.mm:
195 (-[WebStorageManager deleteOrigin:]):
196 * WebCoreSupport/WebSecurityOrigin.mm:
197 (-[WebSecurityOrigin databaseIdentifier]):
198 (-[WebSecurityOrigin usage]):
199 (-[WebSecurityOrigin quota]):
200 (-[WebSecurityOrigin setQuota:]):
202 2018-03-24 Timothy Horton <timothy_horton@apple.com>
206 * WebView/WebView.mm:
208 2018-03-23 Tim Horton <timothy_horton@apple.com>
210 Fix the build with no pasteboard
211 https://bugs.webkit.org/show_bug.cgi?id=183973
213 Reviewed by Dan Bernstein.
215 * Configurations/FeatureDefines.xcconfig:
216 * WebView/WebView.mm:
217 (-[WebView _requestStartDataInteraction:globalPosition:]):
218 (-[WebView _getDataInteractionData]):
219 (-[WebView _dataOperationTextIndicator]):
220 (-[WebView _dragSourceAction]):
221 (-[WebView _draggedLinkTitle]):
222 (-[WebView _draggedLinkURL]):
223 (-[WebView _draggedElementBounds]):
224 (-[WebView _enteredDataInteraction:client:global:operation:]):
225 (-[WebView _updatedDataInteraction:client:global:operation:]):
226 (-[WebView _exitedDataInteraction:client:global:operation:]):
227 (-[WebView _performDataInteraction:client:global:operation:]):
228 (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
229 (-[WebView _endedDataInteraction:global:]):
230 (-[WebView _dataInteractionCaretRect]):
231 * WebView/WebViewPrivate.h:
233 2018-03-23 Tim Horton <timothy_horton@apple.com>
235 Adopt WK_ALTERNATE_FRAMEWORKS_DIR in WebKitLegacy and update install name
236 https://bugs.webkit.org/show_bug.cgi?id=183960
237 <rdar://problem/38812356>
239 Reviewed by Dan Bernstein.
241 * Configurations/WebKitLegacy.xcconfig:
243 2018-03-23 Tim Horton <timothy_horton@apple.com>
245 Introduce and adopt HAVE(AUDIO_TOOLBOX_AUDIO_SESSION)
246 https://bugs.webkit.org/show_bug.cgi?id=183954
247 <rdar://problem/38808858>
249 Reviewed by Dan Bernstein.
251 * WebView/WebPreferences.mm:
252 (-[WebPreferences setAudioSessionCategoryOverride:]):
254 2018-03-23 Tim Horton <timothy_horton@apple.com>
256 Adopt WK_PLATFORM_NAME in WebKitLegacy
257 https://bugs.webkit.org/show_bug.cgi?id=183948
258 <rdar://problem/38803908>
260 Reviewed by Dan Bernstein.
262 * Configurations/WebKitLegacy.xcconfig:
263 * MigrateHeaders.make:
264 * postprocess-headers.sh:
266 2018-03-23 Brady Eidson <beidson@apple.com>
268 Go to back/forward list items after a process-swapped navigation.
269 <rdar://problem/38690544> and https://bugs.webkit.org/show_bug.cgi?id=183920
271 Reviewed by Andy Estes.
273 * WebView/WebView.mm:
274 (-[WebView _loadBackForwardListFromOtherView:]):
275 (-[WebView goToBackForwardItem:]):
277 2018-03-22 Tim Horton <timothy_horton@apple.com>
279 Improve readability of WebCore's OTHER_LDFLAGS
280 https://bugs.webkit.org/show_bug.cgi?id=183909
281 <rdar://problem/38760992>
283 Reviewed by Dan Bernstein.
285 * Configurations/Base.xcconfig:
286 * Configurations/FeatureDefines.xcconfig:
288 2018-03-20 Tim Horton <timothy_horton@apple.com>
290 Enable the minimal simulator feature flag when appropriate
291 https://bugs.webkit.org/show_bug.cgi?id=183807
293 Reviewed by Dan Bernstein.
295 * Configurations/FeatureDefines.xcconfig:
297 2018-03-20 Tim Horton <timothy_horton@apple.com>
299 Add and adopt WK_PLATFORM_NAME and adjust default feature defines
300 https://bugs.webkit.org/show_bug.cgi?id=183758
301 <rdar://problem/38017644>
303 Reviewed by Dan Bernstein.
305 * Configurations/FeatureDefines.xcconfig:
307 2018-03-19 Megan Gardner <megan_gardner@apple.com>
309 Clear style colors when setting default appearance
310 https://bugs.webkit.org/show_bug.cgi?id=183759
312 Reviewed by Tim Horton.
314 Colors are cached and need to be cleared and recalculated.
315 Refactor to do all style recalcs together.
317 * WebView/WebView.mm:
318 (-[WebView _setDefaultAppearanceAndClearStyle]):
319 (-[WebView _setUseSystemAppearance:]):
320 (-[WebView effectiveAppearanceDidChange]):
322 2018-03-19 Jiewen Tan <jiewen_tan@apple.com>
324 Unreviewed, another quick fix for r229699
326 Restricts ENABLE_WEB_AUTHN to only macOS and iOS.
328 * Configurations/FeatureDefines.xcconfig:
330 2018-03-16 Megan Gardner <megan_gardner@apple.com>
332 Ensure that style is updated when the effective appearance changes
333 https://bugs.webkit.org/show_bug.cgi?id=183690
334 <rdar://problem/38385900>
336 Reviewed by Tim Horton and Wenson Hsieh.
338 Respond to and respect the effective appearance changing.
340 * WebView/WebView.mm:
341 (-[WebView _setUseSystemAppearance:]):
342 (-[WebView effectiveAppearanceDidChange]):
344 2018-03-15 Megan Gardner <megan_gardner@apple.com>
346 Create MediaQueryParserContext to provide additional context for the evaluation of media queries
347 https://bugs.webkit.org/show_bug.cgi?id=183677
349 Reviewed by Tim Horton.
351 We need additional context for parsing media queries to make sure they are parsed correctly and valid.
354 (-[DOMHTMLLinkElement _mediaQueryMatches]):
356 2018-03-14 Tim Horton <timothy_horton@apple.com>
358 Fix the build after r229567
360 * Configurations/FeatureDefines.xcconfig:
362 2018-03-12 Tim Horton <timothy_horton@apple.com>
364 Stop using SDK conditionals to control feature definitions
365 https://bugs.webkit.org/show_bug.cgi?id=183430
366 <rdar://problem/38251619>
368 Reviewed by Dan Bernstein.
370 * Configurations/FeatureDefines.xcconfig:
371 * Configurations/WebKitTargetConditionals.xcconfig: Renamed.
373 2018-03-12 Yoav Weiss <yoav@yoav.ws>
375 Runtime flag for link prefetch and remove link subresource.
376 https://bugs.webkit.org/show_bug.cgi?id=183540
378 Reviewed by Chris Dumez.
380 Remove the LINK_PREFETCH build time flag.
382 * Configurations/FeatureDefines.xcconfig:
384 2018-03-12 Javier Fernandez <jfernandez@igalia.com>
386 Remove GridLayout runtime flag
387 https://bugs.webkit.org/show_bug.cgi?id=183484
389 Reviewed by Myles C. Maxfield.
391 The Grid Layout feature has been enabled by default for almost a
392 year, so I think it's time to remove the runtime flag and the
394 * WebView/WebPreferenceKeysPrivate.h:
395 * WebView/WebPreferences.mm:
396 (+[WebPreferences initialize]):
397 * WebView/WebPreferencesPrivate.h:
398 * WebView/WebView.mm:
399 (-[WebView _preferencesChanged:]):
401 2018-03-12 Antoine Quint <graouts@apple.com>
403 [Web Animations] Implement CSS Animations and CSS Transitions as Web Animations
404 https://bugs.webkit.org/show_bug.cgi?id=183504
405 <rdar://problem/38372965>
407 Reviewed by Dean Jackson and Jon Lee.
409 Add the missing WebKitLegacy support the cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled flag
410 which is required for the matching <!-- webkit-test-runner --> flag to work in DumpRenderTree.
412 * WebView/WebPreferenceKeysPrivate.h:
413 * WebView/WebPreferences.mm:
414 (+[WebPreferences initialize]):
415 (-[WebPreferences setModernMediaControlsEnabled:]):
416 (-[WebPreferences cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled]):
417 (-[WebPreferences setCSSAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled:]):
418 * WebView/WebPreferencesPrivate.h:
419 * WebView/WebView.mm:
420 (-[WebView _preferencesChanged:]):
422 2018-03-10 Megan Gardner <megan_gardner@apple.com>
424 Media query for default appearance
425 https://bugs.webkit.org/show_bug.cgi?id=183539
426 <rdar://problem/38326388>
428 Reviewed by Tim Horton.
430 Write a media query to evaluate appearance.
432 * WebView/WebView.mm:
433 (-[WebView _commonInitializationWithFrameName:groupName:]):
434 (-[WebView _setUseSystemAppearance:]):
436 2018-03-09 Andy Estes <aestes@apple.com>
438 [Mac] WebKit fails to receive file promises when the embedding app is sandboxed
439 https://bugs.webkit.org/show_bug.cgi?id=183489
440 <rdar://problem/38267517>
442 WebKitLegacy calls -[NSFilePromiseReceiver receivePromisedFilesAtDestination:...] with
443 NSTemporaryDirectory() as the destination for receiving file promise drops. AppKit attempts
444 to issue a sandbox extension for this directory, but for security reasons App Sandbox
445 refuses to do so for NSTemporaryDirectory() itself. As a result, AppKit will call our reader
446 block with a nil error and a valid file URL, but no file will actually exist at that URL.
448 In order for App Sandbox to grant issuing the sandbox extension needed by AppKit, we need to
449 use some other destination directory. This patch uses FileSystem::createTemporaryDirectory()
450 to securely create a unique temporary directory inside NSTemporaryDirectory() for use as the
453 Reviewed by Wenson Hsieh.
455 * WebView/WebView.mm:
456 (-[WebView performDragOperation:]):
458 2018-03-08 Megan Gardner <megan_gardner@apple.com>
460 Allow WebViews to disable system appearance
461 https://bugs.webkit.org/show_bug.cgi?id=183418
462 <rdar://problem/36975642>
464 Reviewed by Tim Horton.
466 Allow webviews to choose whether or not to follow the default system appearance.
468 * WebView/WebView.mm:
469 (-[WebView _setUseSystemAppearance:]):
470 (-[WebView _useSystemAppearance]):
471 * WebView/WebViewPrivate.h:
473 2018-03-08 Youenn Fablet <youenn@apple.com>
475 libwebrtc update broke internal builds
476 https://bugs.webkit.org/show_bug.cgi?id=183454
478 Reviewed by Eric Carlson.
480 * Configurations/WebKitLegacy.xcconfig:
482 2018-03-08 Chris Dumez <cdumez@apple.com>
484 Possible null dereference of the page under WebFrameNetworkingContext::storageSession()
485 https://bugs.webkit.org/show_bug.cgi?id=183455
486 <rdar://problem/38191749>
488 Reviewed by Youenn Fablet.
490 Add a null check for the page as we have evidence from crashes that it can be null.
491 Other functions in WebFrameNetworkingContext already null check the page as well,
492 not just the frame so this is consistent.
494 * WebCoreSupport/WebFrameNetworkingContext.mm:
495 (WebFrameNetworkingContext::storageSession const):
497 2018-03-08 Yusuke Suzuki <utatane.tea@gmail.com>
499 [JSC] Add inherits<T>(VM&) leveraging JSCast fast path
500 https://bugs.webkit.org/show_bug.cgi?id=183429
502 Reviewed by Mark Lam.
505 (+[DOMNode _nodeFromJSWrapper:]):
506 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
507 (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
508 (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
509 * Plugins/Hosted/ProxyInstance.mm:
510 (WebKit::ProxyInstance::invokeMethod):
511 * WebView/WebView.mm:
514 2018-03-08 Tim Horton <timothy_horton@apple.com>
516 Stop linking ApplicationServices directly
517 https://bugs.webkit.org/show_bug.cgi?id=182867
518 <rdar://problem/38252142>
520 Reviewed by Alex Christensen.
522 The frameworks that we use that live inside ApplicationServices
523 have mostly moved out, so import them directly.
525 * Carbon/CarbonUtils.h:
527 * WebView/WebHTMLView.mm:
528 * WebView/WebPDFView.mm:
530 2018-03-07 Tim Horton <timothy_horton@apple.com>
532 Sort and separate FeatureDefines.xcconfig
533 https://bugs.webkit.org/show_bug.cgi?id=183427
535 Reviewed by Dan Bernstein.
537 * Configurations/FeatureDefines.xcconfig:
538 Sort and split FeatureDefines into paragraphs
539 (to make it easier to sort later).
541 2018-03-07 Youenn Fablet <youenn@apple.com>
543 Match unsupported plugins based on domains and not origin
544 https://bugs.webkit.org/show_bug.cgi?id=183384
546 Reviewed by Chris Dumez.
548 * WebCoreSupport/WebPluginInfoProvider.h:
549 * WebCoreSupport/WebPluginInfoProvider.mm:
550 (WebPluginInfoProvider::getPluginInfo):
551 (WebPluginInfoProvider::getWebVisiblePluginInfo):
553 2018-03-05 Andy Estes <aestes@apple.com>
555 [Mac] Teach WebCore::Pasteboard about file promise drags
556 https://bugs.webkit.org/show_bug.cgi?id=183314
557 <rdar://problem/38105493>
559 Reviewed by Darin Adler.
561 Added a FIXME comment.
563 * WebView/WebView.mm:
564 (-[WebView performDragOperation:]):
566 2018-03-04 Yusuke Suzuki <utatane.tea@gmail.com>
568 [WTF] Move currentCPUTime and sleep(Seconds) to CPUTime.h and Seconds.h respectively
569 https://bugs.webkit.org/show_bug.cgi?id=183312
571 Reviewed by Mark Lam.
573 Remove wtf/CurrentTime.h include pragma.
575 * WebView/WebFrame.mm:
576 * WebView/WebPDFView.mm:
578 2018-03-04 Tim Horton <timothy_horton@apple.com>
580 Make !ENABLE(DATA_DETECTION) iOS build actually succeed
581 https://bugs.webkit.org/show_bug.cgi?id=183283
582 <rdar://problem/38062148>
584 Reviewed by Sam Weinig.
586 * Configurations/FeatureDefines.xcconfig:
588 2018-02-28 Alex Christensen <achristensen@webkit.org>
590 Reduce use of NetworkingContext in WebKit
591 https://bugs.webkit.org/show_bug.cgi?id=183213
593 Reviewed by Brady Eidson.
595 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
596 (WebKit::NetscapePluginInstanceProxy::getProxy):
597 * Plugins/WebNetscapePluginView.mm:
598 (-[WebNetscapePluginView getVariable:forURL:value:length:]):
600 2018-02-17 Darin Adler <darin@apple.com>
602 Prepare for ExtendedColor changes (first step)
603 https://bugs.webkit.org/show_bug.cgi?id=182904
605 Reviewed by Sam Weinig.
607 * Misc/WebKitNSStringExtras.mm:
608 (-[NSString _web_drawAtPoint:font:textColor:]): Use colorFromNSColor.
610 2018-02-22 Yusuke Suzuki <utatane.tea@gmail.com>
612 Remove currentTime() / currentTimeMS()
613 https://bugs.webkit.org/show_bug.cgi?id=183052
615 Reviewed by Mark Lam.
617 * WebCoreSupport/WebFrameLoaderClient.h:
618 * WebCoreSupport/WebFrameLoaderClient.mm:
619 (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
621 2018-02-16 Youenn Fablet <youenn@apple.com>
623 Allow specifying which plug-ins are supported
624 https://bugs.webkit.org/show_bug.cgi?id=182748
626 Reviewed by Chris Dumez.
628 * WebCoreSupport/WebPluginInfoProvider.h:
629 * WebCoreSupport/WebPluginInfoProvider.mm:
630 (WebPluginInfoProvider::getPluginInfo):
631 (WebPluginInfoProvider::getWebVisiblePluginInfo):
633 2018-02-16 Brent Fulgham <bfulgham@apple.com>
635 [Cocoa][WebKitLegacy] REGRESSION(r221559): Coda 2 crashes when switching views
636 https://bugs.webkit.org/show_bug.cgi?id=182882
637 <rdar://problem/35672661>
639 Reviewed by Dan Bernstein.
641 Make sure the smart pointer hold the collection of subviews lives at least as
642 long as the loop using it.
644 * WebView/WebHTMLView.mm:
645 (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]):
647 2018-02-14 Daniel Bates <dabates@apple.com>
649 Disallow cross-origin subresources from asking for credentials
650 https://bugs.webkit.org/show_bug.cgi?id=182579
651 <rdar://problem/36162271>
653 Reviewed by Andy Estes.
655 Add a private preference to toggle allowing non-mixed content cross-origin subresources to load.
656 DumpRenderTree toggles this preference when it sees the test option allowCrossOriginSubresourcesToAskForCredential.
658 * WebView/WebPreferenceKeysPrivate.h:
659 * WebView/WebPreferences.mm:
660 (+[WebPreferences initialize]):
661 (-[WebPreferences allowCrossOriginSubresourcesToAskForCredentials]):
662 (-[WebPreferences setAllowCrossOriginSubresourcesToAskForCredentials:]):
663 * WebView/WebPreferencesPrivate.h:
664 * WebView/WebView.mm:
665 (-[WebView _preferencesChanged:]):
667 2018-02-14 Ross Kirsling <ross.kirsling@sony.com>
669 Remove ForwardingHeaders directory from WebKitLegacy/mac.
670 https://bugs.webkit.org/show_bug.cgi?id=182738
672 Reviewed by Darin Adler.
674 * ForwardingHeaders/collector/handles/Global.h: Removed.
675 * ForwardingHeaders/debugger/DebuggerCallFrame.h: Removed.
676 * ForwardingHeaders/runtime/Completion.h: Removed.
677 * ForwardingHeaders/runtime/Error.h: Removed.
678 * ForwardingHeaders/runtime/JSCJSValue.h: Removed.
679 * ForwardingHeaders/runtime/JSFunction.h: Removed.
680 * ForwardingHeaders/runtime/JSLock.h: Removed.
681 * ForwardingHeaders/runtime/JSObject.h: Removed.
682 * ForwardingHeaders/runtime/JSString.h: Removed.
683 * ForwardingHeaders/runtime/Protect.h: Removed.
684 * ForwardingHeaders/runtime/SymbolTable.h: Removed.
686 2018-02-09 Per Arne Vollan <pvollan@apple.com>
688 Follow-up fixes after moving WebVideoFullscreenController from WebCore to WebKitLegacy.
689 https://bugs.webkit.org/show_bug.cgi?id=182641
691 Reviewed by Dan Bernstein.
693 Remove incorrect use of WEBCORE_EXPORT and namespace WebCore after the files were moved in
694 https://trac.webkit.org/changeset/228308.
696 * WebView/WebVideoFullscreenController.h:
697 * WebView/WebVideoFullscreenHUDWindowController.mm:
698 * WebView/WebWindowAnimation.h:
699 * WebView/WebWindowAnimation.mm:
700 (WebCore::WebWindowAnimationDurationFromDuration): Deleted.
701 (WebCore::scaledRect): Deleted.
702 (WebCore::squaredDistance): Deleted.
704 2018-02-09 Per Arne Vollan <pvollan@apple.com>
706 Unreviewed 32-bit build fix after <https://trac.webkit.org/changeset/228308>.
708 * WebView/WebWindowAnimation.mm:
709 (-[WebWindowScaleAnimation additionalDurationNeededToReachFinalFrame]):
711 2018-02-08 Per Arne Vollan <pvollan@apple.com>
713 Move WebVideoFullscreenController from WebCore to WebKitLegacy.
714 https://bugs.webkit.org/show_bug.cgi?id=182615
716 Reviewed by Eric Carlson.
718 It is only used by WK1. Also there are a few references to NSApp in WebVideoFullscreenController.mm.
719 Ideally, we should not reference NSApp in WebCore.
721 * WebView/WebFullScreenController.mm:
722 * WebView/WebVideoFullscreenController.h: Copied from Source/WebCore/platform/mac/WebVideoFullscreenController.h.
723 * WebView/WebVideoFullscreenController.mm: Copied from Source/WebCore/platform/mac/WebVideoFullscreenController.mm.
724 * WebView/WebVideoFullscreenHUDWindowController.h: Copied from Source/WebCore/platform/mac/WebVideoFullscreenHUDWindowController.h.
725 * WebView/WebVideoFullscreenHUDWindowController.mm: Copied from Source/WebCore/platform/mac/WebVideoFullscreenHUDWindowController.mm.
726 * WebView/WebView.mm:
727 * WebView/WebWindowAnimation.h: Copied from Source/WebCore/platform/mac/WebWindowAnimation.h.
728 * WebView/WebWindowAnimation.mm: Copied from Source/WebCore/platform/mac/WebWindowAnimation.mm.
730 2018-01-13 Darin Adler <darin@apple.com>
733 https://bugs.webkit.org/show_bug.cgi?id=179591
735 Reviewed by Chris Dumez.
737 * DOM/DOMWheelEvent.mm:
738 (-[DOMWheelEvent initWheelEvent:wheelDeltaY:view:screenX:screenY:clientX:clientY:ctrlKey:altKey:shiftKey:metaKey:]):
739 Call initWebKitWheelEvent.
741 * Plugins/Hosted/NetscapePluginInstanceProxy.mm: Removed include of ScriptValue.h.
742 * WebCoreSupport/WebInspectorClient.mm: Ditto.
743 * WebView/WebFrame.mm: Ditto.
745 * WebView/WebHTMLView.mm:
746 (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Updated for name change from keyEvent to
747 underlyingPlatformEvent.
748 (-[WebHTMLView _handleEditingKeyEvent:]): Ditto.
750 * WebView/WebScriptWorld.mm:
751 (+[WebScriptWorld scriptWorldForGlobalContext:]): Pass reference to currentWorld function.
753 * WebView/WebView.mm: Removed include of ScriptValue.h.
755 2018-02-06 Don Olmstead <don.olmstead@sony.com>
757 Remove WebCore/ForwardingHeaders directory
758 https://bugs.webkit.org/show_bug.cgi?id=182347
760 Reviewed by Keith Miller.
762 * Carbon/CarbonWindowAdapter.mm:
763 * DOM/WebDOMOperations.mm:
764 * History/WebBackForwardList.mm:
765 * History/WebHistoryItem.mm:
767 * Misc/WebElementDictionary.mm:
768 * Misc/WebIconDatabase.mm:
769 * Misc/WebStringTruncator.mm:
770 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
771 * Plugins/Hosted/ProxyInstance.mm:
772 * Plugins/Hosted/ProxyRuntimeObject.mm:
773 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
774 * Plugins/WebBaseNetscapePluginView.mm:
775 * Plugins/WebBasePluginPackage.mm:
776 * Plugins/WebNetscapePluginStream.mm:
777 * Plugins/WebNetscapePluginView.mm:
778 * Plugins/WebPluginController.mm:
779 * WebCoreSupport/WebEditorClient.mm:
780 * WebCoreSupport/WebFrameLoaderClient.mm:
781 * WebCoreSupport/WebInspectorClient.h:
782 * WebCoreSupport/WebInspectorClient.mm:
783 * WebView/WebDataSource.mm:
784 * WebView/WebFrame.mm:
785 * WebView/WebHTMLRepresentation.mm:
786 * WebView/WebHTMLView.mm:
787 * WebView/WebPreferences.mm:
788 * WebView/WebScriptDebugDelegate.mm:
789 * WebView/WebScriptDebugger.h:
790 * WebView/WebTextIterator.mm:
791 * WebView/WebView.mm:
792 * WebView/WebViewData.mm:
794 2018-01-30 Don Olmstead <don.olmstead@sony.com>
796 JSExports.h should be included as <JavaScriptCore/JSExportMacros.h>
797 https://bugs.webkit.org/show_bug.cgi?id=182312
799 Reviewed by Michael Catanzaro.
803 2018-01-29 Jiewen Tan <jiewen_tan@apple.com>
805 [WebAuthN] Add a compile-time feature flag
806 https://bugs.webkit.org/show_bug.cgi?id=182211
807 <rdar://problem/36936365>
809 Reviewed by Brent Fulgham.
811 * Configurations/FeatureDefines.xcconfig:
813 2018-01-27 Dan Bernstein <mitz@apple.com>
815 HaveInternalSDK includes should be "#include?"
816 https://bugs.webkit.org/show_bug.cgi?id=179670
818 * Configurations/Base.xcconfig:
820 2018-01-24 Alex Christensen <achristensen@webkit.org>
822 Remove unused QTKit preference
823 https://bugs.webkit.org/show_bug.cgi?id=181968
825 Reviewed by Alexey Proskuryakov.
827 * WebView/WebPreferenceKeysPrivate.h:
828 * WebView/WebPreferences.mm:
829 (+[WebPreferences initialize]):
830 (-[WebPreferences setQTKitEnabled:]): Deleted.
831 (-[WebPreferences isQTKitEnabled]): Deleted.
832 * WebView/WebPreferencesPrivate.h:
833 * WebView/WebView.mm:
834 (-[WebView _preferencesChanged:]):
836 2018-01-23 Wenson Hsieh <wenson_hsieh@apple.com>
838 Harden against layout passes triggered when iterating through HTMLFormElement::associatedElements
839 https://bugs.webkit.org/show_bug.cgi?id=182037
840 <rdar://problem/36747812>
842 Reviewed by Ryosuke Niwa.
844 Rename associatedElements() to unsafeAssociatedElements(), and add ScriptDisallowedScopes. See WebCore ChangeLog
847 * WebView/WebHTMLRepresentation.mm:
848 (-[WebHTMLRepresentation elementWithName:inForm:]):
849 (-[WebHTMLRepresentation controlsInForm:]):
851 2018-01-23 Alex Christensen <achristensen@webkit.org>
853 Use CompletionHandlers for ResourceHandleClient::didReceiveResponseAsync
854 https://bugs.webkit.org/show_bug.cgi?id=181961
856 Reviewed by Michael Catanzaro.
858 * WebView/WebPreferences.mm:
860 2018-01-23 Commit Queue <commit-queue@webkit.org>
862 Unreviewed, rolling out r227437.
863 https://bugs.webkit.org/show_bug.cgi?id=182011
865 broke build (Requested by alexchristensen on #webkit).
869 "Remove unused QTKit preference"
870 https://bugs.webkit.org/show_bug.cgi?id=181968
871 https://trac.webkit.org/changeset/227437
873 2018-01-23 Alex Christensen <achristensen@webkit.org>
875 Remove unused QTKit preference
876 https://bugs.webkit.org/show_bug.cgi?id=181968
878 Reviewed by Alexey Proskuryakov.
880 * WebView/WebPreferenceKeysPrivate.h:
881 * WebView/WebPreferences.mm:
882 (+[WebPreferences initialize]):
883 (-[WebPreferences setQTKitEnabled:]): Deleted.
884 (-[WebPreferences isQTKitEnabled]): Deleted.
885 * WebView/WebPreferencesPrivate.h:
886 * WebView/WebView.mm:
887 (-[WebView _preferencesChanged:]):
889 2018-01-22 Wenson Hsieh <wenson_hsieh@apple.com>
891 WebViews created via -initSimpleHTMLDocumentWithStyle: don't propagate attachmentElementEnabled state
892 https://bugs.webkit.org/show_bug.cgi?id=181960
893 <rdar://problem/36431678>
895 Reviewed by Tim Horton.
897 Mail's compose view is initialized via the -initSimpleHTMLDocumentWithStyle: codepath. This is intended to be
898 a fast path for initializing WebViews, which bypasses certain initialization steps present in the regular -init
899 path, such as calling -_preferencesChanged: to sync RuntimeEnabledFeatures with WebPreferences.
901 This means that even though we set -[WebPreferences attachmentElementEnabled] to YES for Mail, the value of the
902 RuntimeEnabledFeature isn't updated to match. To fix this, we explicitly invoke
903 RuntimeEnabledFeatures::setAttachmentElementEnabled here to make sure the value is in sync with WebPreferences.
905 * WebView/WebView.mm:
906 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
908 2018-01-21 Ryosuke Niwa <rniwa@webkit.org>
910 Turning off custom pasteboard data doesn't actually turn it off in WK2
911 https://bugs.webkit.org/show_bug.cgi?id=181920
912 <rdar://problem/36686429>
914 Reviewed by Wenson Hsieh.
916 Always disable custom pasteboard data in WebKit1. See r226156 for details.
918 * WebView/WebPreferences.mm:
919 (+[WebPreferences initialize]):
920 * WebView/WebView.mm:
921 (-[WebView _preferencesChanged:]):
923 2018-01-21 Wenson Hsieh <wenson_hsieh@apple.com>
925 Add a new feature flag for EXTRA_ZOOM_MODE and reintroduce AdditionalFeatureDefines.h
926 https://bugs.webkit.org/show_bug.cgi?id=181918
928 Reviewed by Tim Horton.
930 Add EXTRA_ZOOM_MODE to FeatureDefines.xconfig (off by default).
932 * Configurations/FeatureDefines.xcconfig:
934 2018-01-20 Andy Estes <aestes@apple.com>
936 [Apple Pay] Stop eagerly loading PassKit.framework
937 https://bugs.webkit.org/show_bug.cgi?id=181911
938 <rdar://problem/36555369>
940 Reviewed by Tim Horton.
942 * WebCoreSupport/WebPaymentCoordinatorClient.h:
943 * WebCoreSupport/WebPaymentCoordinatorClient.mm:
944 (WebPaymentCoordinatorClient::validatedPaymentNetwork):
946 Implemented PaymentCoordinatorClient::validatedPaymentNetwork().
948 2018-01-19 Dean Jackson <dino@apple.com>
950 REGRESSION (r221092): Swipe actions are hard to perform in FastMail app
951 https://bugs.webkit.org/show_bug.cgi?id=181817
952 <rdar://problem/35274055>
954 Reviewed by Simon Fraser.
956 Add a linked-on-or-after check to set passive touch listeners on document in WebCore.
958 * Misc/WebKitVersionChecks.h:
959 * WebView/WebView.mm:
960 (-[WebView _commonInitializationWithFrameName:groupName:]):
962 2018-01-19 Alex Christensen <achristensen@webkit.org>
964 Remove unused WebViewPrivate _allowCookies
965 https://bugs.webkit.org/show_bug.cgi?id=181812
967 Reviewed by Tim Horton.
969 * WebView/WebView.mm:
970 (+[WebView _setAllowCookies:]): Deleted.
971 (+[WebView _allowCookies]): Deleted.
972 * WebView/WebViewPrivate.h:
974 2018-01-18 Alexey Proskuryakov <ap@apple.com>
976 Build fix, remove a call to -[NSWindow setOneShot:]
977 https://bugs.webkit.org/show_bug.cgi?id=181809
979 Reviewed by Tim Horton.
981 * WebView/WebTextCompletionController.mm:
982 (-[WebTextCompletionController _buildUI]):
984 2018-01-18 Ryan Haddad <ryanhaddad@apple.com>
986 Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.
988 * Carbon/HIWebView.mm:
992 2018-01-18 Dan Bernstein <mitz@apple.com>
994 [Xcode] Streamline and future-proof target-macOS-version-dependent build setting definitions
995 https://bugs.webkit.org/show_bug.cgi?id=181803
997 Reviewed by Tim Horton.
999 * Configurations/Base.xcconfig: Updated.
1000 * Configurations/DebugRelease.xcconfig: Ditto.
1001 * Configurations/FeatureDefines.xcconfig: Adopted macOSTargetConditionals helpers.
1002 * Configurations/Version.xcconfig: Updated.
1003 * Configurations/macOSTargetConditionals.xcconfig: Added. Defines helper build settings
1004 useful for defining settings that depend on the target macOS version.
1006 2018-01-17 Youenn Fablet <youenn@apple.com>
1008 Put fetch Request.keepalive behind a runtime flag
1009 https://bugs.webkit.org/show_bug.cgi?id=181592
1011 Reviewed by Chris Dumez.
1013 * WebView/WebPreferenceKeysPrivate.h:
1014 * WebView/WebPreferences.mm:
1015 (+[WebPreferences initialize]):
1016 (-[WebPreferences fetchAPIKeepAliveEnabled]):
1017 (-[WebPreferences setFetchAPIKeepAliveEnabled:]):
1018 * WebView/WebPreferencesPrivate.h:
1019 * WebView/WebView.mm:
1020 (-[WebView _preferencesChanged:]):
1022 2018-01-17 Wenson Hsieh <wenson_hsieh@apple.com>
1024 Add injected bundle SPI to replace subresource URLs when dropping or pasting rich content
1025 https://bugs.webkit.org/show_bug.cgi?id=181637
1026 <rdar://problem/36508471>
1028 Reviewed by Tim Horton.
1030 Add a stub implementation of replacementURLForResource. See WebCore and WebKit ChangeLogs for more detail.
1032 * WebCoreSupport/WebEditorClient.h:
1033 * WebCoreSupport/WebEditorClient.mm:
1034 (WebEditorClient::replacementURLForResource):
1036 2018-01-11 Keith Miller <keith_miller@apple.com>
1038 Rename ENABLE_ASYNC_ITERATION to ENABLE_JS_ASYNC_ITERATION
1039 https://bugs.webkit.org/show_bug.cgi?id=181573
1041 Reviewed by Simon Fraser.
1043 * Configurations/FeatureDefines.xcconfig:
1045 2018-01-11 Wenson Hsieh <wenson_hsieh@apple.com>
1047 Send PromisedBlobInfo to the client through DragItem instead of DragClient::prepareToDragPromisedBlob
1048 https://bugs.webkit.org/show_bug.cgi?id=181497
1050 Reviewed by Tim Horton.
1052 See other ChangeLogs for more detail.
1054 * WebCoreSupport/WebDragClient.h:
1056 2018-01-11 Tim Horton <timothy_horton@apple.com>
1058 Null deref in WebImmediateActionController _dictionaryPopupInfoForRange
1059 https://bugs.webkit.org/show_bug.cgi?id=181523
1060 <rdar://problem/28959131>
1062 Reviewed by Alex Christensen.
1064 * WebView/WebImmediateActionController.mm:
1065 (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
1066 Apply the change made in r216652 to WebKit1's immediate action controller.
1068 Speculative (but successful in WebKit2) fix for non-reproducible crash when
1069 the startContainer of the range is in an anonymous node.
1071 2018-01-11 Youenn Fablet <youenn@apple.com>
1073 Replace WebRTCLegacyAPIDisabled by WebRTCLegacyAPIEnabled and switch off WebRTC legacy flag by default
1074 https://bugs.webkit.org/show_bug.cgi?id=181480
1076 Reviewed by Eric Carlson.
1078 * WebView/WebPreferences.mm:
1079 (+[WebPreferences initialize]):
1081 2018-01-08 David Kilzer <ddkilzer@apple.com>
1083 Fix check-webkit-style issues with WebNSDataExtras.mm
1084 <https://webkit.org/b/181369>
1086 Reviewed by Alex Christensen.
1088 * Misc/WebNSDataExtras.mm:
1089 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
1090 (-[NSData _webkit_guessedMIMETypeForXML]):
1091 (-[NSData _webkit_guessedMIMEType]):
1092 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
1094 (-[NSData _webkit_parseRFC822HeaderFields]):
1095 (-[NSData _web_locationAfterFirstBlankLine]):
1096 - Fix all the check-webkit-style warnings.
1098 2018-01-08 David Kilzer <ddkilzer@apple.com>
1100 Build fix #2: Enable -Wcast-qual for WebInspectorUI, WebKitLegacy, WebKit projects
1101 <https://webkit.org/b/181256>
1102 <rdar://problem/36281730>
1104 * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1105 (WebNetscapePluginEventHandlerCocoa::handleTSMEvent):
1106 - Use reinterpret_cast<NPNSString*>(const_cast<CFMutableStringRef>())
1107 to avoid warnings from casting CFStringRef to NPNSString*.
1108 Note that CFMutableStringRef is the same as CFStringRef
1109 without the const modifier, hence its use in the const_cast<>
1112 2018-01-08 David Kilzer <ddkilzer@apple.com>
1114 Build fix: Enable -Wcast-qual for WebInspectorUI, WebKitLegacy, WebKit projects
1115 <https://webkit.org/b/181256>
1116 <rdar://problem/36281730>
1118 * Carbon/HIWebView.mm:
1119 (StartUpdateObserver): Include TypeCastsCF.h from WTF, and use
1120 checked_cf_cast<CFRunLoopRef>() to fix warning.
1122 2018-01-07 David Kilzer <ddkilzer@apple.com>
1124 Enable -Wcast-qual for WebInspectorUI, WebKitLegacy, WebKit projects
1125 <https://webkit.org/b/181256>
1126 <rdar://problem/36281730>
1128 Reviewed by Darin Adler.
1130 * Carbon/CarbonUtils.m:
1132 - Use #pragmas to ignore -Wcast-qual warnings when using a
1133 C-style cast from CFTypeRef to CFRunloopRef.
1134 * Carbon/CarbonWindowFrame.m:
1135 (-[CarbonWindowFrame title]):
1136 - Use #pragmas to ignore -Wcast-qual warnings when using a
1137 C-style cast from CFStringRef to NSString *.
1138 * Carbon/HIViewAdapter.m:
1139 (+[HIViewAdapter getHIViewForNSView:]):
1140 - Use #pragmas to ignore -Wcast-qual warnings when using a
1141 C-style cast from CFTypeRef to HIViewRef.
1142 * Configurations/Base.xcconfig:
1143 (WARNING_CFLAGS): Add -Wcast-qual.
1144 * Misc/WebElementDictionary.mm:
1145 (-[WebElementDictionary objectForKey:]):
1146 - Use static_cast<SEL>(const_cast<void*>()) to fix
1148 * Misc/WebNSDataExtras.mm: Renamed from Source/WebKitLegacy/mac/Misc/WebNSDataExtras.m.
1149 (-[NSString _web_capitalizeRFC822HeaderFieldName]):
1150 (-[NSData _webkit_guessedMIMETypeForXML]):
1151 (-[NSData _webkit_guessedMIMEType]):
1152 (-[NSData _web_isCaseInsensitiveEqualToCString:]):
1154 (-[NSData _webkit_parseRFC822HeaderFields]):
1155 (-[NSData _web_startsWithBlankLine]):
1156 (-[NSData _web_locationAfterFirstBlankLine]):
1157 - Rename WebNSDataExtras.m to WebNSDataExtras.mm and change file
1158 type to Objective-C++. This fixes the warnings about
1159 discarding the `const` modifier when casing from CFStringRef
1160 to NSString * because in older clang versions, -Wcast-qual was
1161 completely broken when compiling C++ and Objective-C++ source
1162 files. In newer clang versions, discarding the `const`
1163 modifier for toll-free bridged types is ignored when compiling
1164 Objective-C++ source.
1165 - Update copyright and license header.
1166 - Use reinterpret_cast<> and static_cast<> to fix warnings
1167 unrelated to (NSString *) C-style casts.
1168 - Replace use of MIN() macro with std::min<> template functions.
1169 - Fix location of `*` for local variables modified above.
1170 * Plugins/Hosted/NetscapePluginHostManager.mm:
1171 (WebKit::NetscapePluginHostManager::spawnPluginHost):
1172 (WebKit::NetscapePluginHostManager::initializeVendorPort):
1173 (WebKit::NetscapePluginHostManager::instantiatePlugin):
1174 - Use static_cast<uint8_t*>(const_cast<void*>()) to fix
1176 * Plugins/Hosted/NetscapePluginHostProxy.mm:
1177 (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
1178 - Use reinterpret_cast<mig_subsystem_t>(const_cast<struct WKWebKitPluginClient_subsystem*>())
1180 * Plugins/Hosted/ProxyInstance.mm:
1181 (WebKit::ProxyInstance::invoke):
1182 - Use static_cast<char*>(const_cast<void*>()) to fix
1183 warning when using -[NSData bytes].
1184 (WebKit::ProxyInstance::fieldValue const):
1185 - Use reinterpret_cast<char*>(const_cast<unsigned char*>())
1186 to fix warning when using CFDataGetBytePtr().
1187 * Plugins/Hosted/WebTextInputWindowController.m:
1188 (-[WebTextInputPanel _interpretKeyEvent:string:]):
1189 - Use #pragma to ignore -Wcast-qual warning since there
1190 is not a good way to avoid this warning in Objective-C.
1191 * Plugins/WebNetscapePluginStream.mm:
1192 (WebNetscapePluginStream::deliverData):
1193 - Use const_cast<void*>() to fix warning when using
1195 * Plugins/WebNetscapePluginView.mm:
1196 (-[WebNetscapePluginView _createPlugin]):
1197 - Change C-style cast to const_cast<char*>() to fix
1199 * WebCoreSupport/WebChromeClient.mm:
1200 (WebChromeClient::wrapCryptoKey const):
1201 (WebChromeClient::unwrapCryptoKey const):
1202 - Change C-style cast to
1203 static_cast<uint8_t*>(const_cast<void*>() to fix
1205 * WebView/WebPDFView.mm:
1206 (_applicationInfoForMIMEType):
1207 - Change local variable type from 'NSURL *' to
1208 'CFURLRef' to fix warning. Cast back to 'NSURL *'
1209 when calling -[NSURL path].
1211 2018-01-05 Dan Bernstein <mitz@apple.com>
1213 Fixed the build following AppKit API deprecations in a recent SDKs
1215 * WebView/WebFullScreenController.mm:
1216 (-[WebFullScreenController enterFullScreen:]): Suppressed deprecation warnings.
1217 (-[WebFullScreenController exitFullScreen]): Ditto.
1218 (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]): Ditto.
1219 (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]): Ditto.
1220 * WebView/WebHTMLView.mm:
1221 (-[WebHTMLView drawRect:]): Ditto.
1222 (-[WebHTMLView _endPrintModeAndRestoreWindowAutodisplay]): Ditto.
1223 (-[WebHTMLView knowsPageRange:]): Ditto.
1224 * WebView/WebView.mm:
1225 (LayerFlushController::flushLayers): Ditto.
1227 2018-01-03 Wenson Hsieh <wenson_hsieh@apple.com>
1229 [Attachment Support] Create attachment elements when dropping files on iOS
1230 https://bugs.webkit.org/show_bug.cgi?id=181192
1231 <rdar://problem/36280945>
1233 Reviewed by Tim Horton.
1235 Make some minor adjustments for changes to the pasteboard in WebCore. See WebCore/ChangeLog for more detail.
1237 * WebCoreSupport/WebPlatformStrategies.h:
1238 * WebCoreSupport/WebPlatformStrategies.mm:
1239 (WebPlatformStrategies::informationForItemAtIndex):
1240 (WebPlatformStrategies::getFilenamesForDataInteraction): Deleted.
1242 2018-01-03 Wenson Hsieh <wenson_hsieh@apple.com>
1244 [Attachment Support] Add plumbing for starting a drag with promised blob data
1245 https://bugs.webkit.org/show_bug.cgi?id=181201
1247 Reviewed by Tim Horton.
1249 Minor adjustment to account for a DragClient interface change. See WebCore ChangeLog for more details.
1251 * WebCoreSupport/WebDragClient.h:
1253 2018-01-02 Jiewen Tan <jiewen_tan@apple.com>
1255 Add a WebAuthentication runtime feature flag
1256 https://bugs.webkit.org/show_bug.cgi?id=181220
1257 <rdar://problem/36055305>
1259 Reviewed by Brent Fulgham.
1261 Renames the CredentialManagement runtime feature flag into WebAuthentication.
1263 * WebView/WebPreferenceKeysPrivate.h:
1264 * WebView/WebPreferences.mm:
1265 (+[WebPreferences initialize]):
1266 (-[WebPreferences webAuthenticationEnabled]):
1267 (-[WebPreferences setWebAuthenticationEnabled:]):
1268 (-[WebPreferences credentialManagementEnabled]): Deleted.
1269 (-[WebPreferences setCredentialManagementEnabled:]): Deleted.
1270 * WebView/WebPreferencesPrivate.h:
1271 * WebView/WebView.mm:
1272 (-[WebView _preferencesChanged:]):
1274 2017-12-22 Jeff Miller <jeffm@apple.com>
1276 Update user-visible copyright strings to include 2018
1277 https://bugs.webkit.org/show_bug.cgi?id=181141
1279 Reviewed by Dan Bernstein.
1283 2017-12-30 Wenson Hsieh <wenson_hsieh@apple.com>
1285 [Attachment Support] Remove current macOS support for dragging file-backed attachments
1286 https://bugs.webkit.org/show_bug.cgi?id=181188
1288 Reviewed by Dan Bernstein.
1290 See WebCore/ChangeLog for more detail.
1292 * WebCoreSupport/WebDragClient.h:
1293 * WebCoreSupport/WebDragClient.mm:
1294 (WebDragClient::declareAndWriteAttachment): Deleted.
1295 * WebView/WebHTMLView.mm:
1296 (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
1298 2017-12-22 Wenson Hsieh <wenson_hsieh@apple.com>
1300 Unreviewed, continue to fix build failures due to AppKit API deprecation
1302 Wraps more code in -Wdeprecated-declarations.
1304 * Carbon/HIWebView.mm:
1305 (overrideCGContext):
1307 2017-12-22 Wenson Hsieh <wenson_hsieh@apple.com>
1309 Unreviewed, fix build failures due to using deprecated AppKit symbols when building 32-bit
1311 Wrap some more code in -Wdeprecated-declarations to try and fix the 32-bit build using the newest SDK.
1313 * Carbon/CarbonWindowAdapter.mm:
1314 (-[CarbonWindowAdapter setViewsNeedDisplay:]):
1315 * Plugins/WebNetscapePluginView.mm:
1316 (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1317 (-[WebNetscapePluginView sendDrawRectEvent:]):
1318 (-[WebNetscapePluginView drawRect:]):
1320 2017-12-22 Wenson Hsieh <wenson_hsieh@apple.com>
1322 Fix build failures due to using deprecated AppKit symbols
1323 https://bugs.webkit.org/show_bug.cgi?id=181110
1324 <rdar://problem/36162865>
1326 Reviewed by Dan Bernstein and Tim Horton.
1328 See WebCore ChangeLog for more details. Additionally makes a few minor adjustments to pass our style checker.
1330 * Misc/WebKitNSStringExtras.mm:
1331 (-[NSString _web_drawAtPoint:font:textColor:]):
1332 * Misc/WebNSPasteboardExtras.h:
1333 * Misc/WebNSPasteboardExtras.mm:
1334 (+[NSPasteboard _web_writableTypesForURL]):
1335 (_createWritableTypesForImageWithoutArchive):
1336 (_createWritableTypesForImageWithArchive):
1337 (+[NSPasteboard _web_dragTypesForURL]):
1338 (-[NSPasteboard _web_bestURL]):
1339 (-[NSPasteboard _web_writeURL:andTitle:types:]):
1340 (+[NSPasteboard _web_setFindPasteboardString:withOwner:]):
1341 (-[NSPasteboard _web_writeFileWrapperAsRTFDAttachment:]):
1342 (-[NSPasteboard _web_writeImage:element:URL:title:archive:types:source:]):
1343 (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
1344 * Panels/WebAuthenticationPanel.m:
1345 (-[WebAuthenticationPanel runAsModalDialogWithChallenge:]):
1346 (-[WebAuthenticationPanel sheetDidEnd:returnCode:contextInfo:]):
1347 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1348 (-[WebHostedNetscapePluginView drawRect:]):
1349 * WebInspector/WebNodeHighlightView.mm:
1350 (-[WebNodeHighlightView drawRect:]):
1351 * WebView/WebFrame.mm:
1352 (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
1353 (-[WebFrame _drawRect:contentsOnly:]):
1354 * WebView/WebHTMLView.mm:
1356 (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
1357 (-[WebHTMLView _plainTextFromPasteboard:]):
1358 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
1359 (+[WebHTMLView _insertablePasteboardTypes]):
1360 (+[WebHTMLView _selectionPasteboardTypes]):
1361 (-[WebHTMLView pasteboard:provideDataForType:]):
1362 (-[WebHTMLView _writeSelectionToPasteboard:]):
1363 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1364 (-[WebHTMLView validRequestorForSendType:returnType:]):
1365 (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
1367 (-[WebHTMLView _fontAttributesFromFontPasteboard]):
1368 (-[WebHTMLView _colorAsString:]):
1369 (-[WebHTMLView copyFont:]):
1370 * WebView/WebPDFView.mm:
1371 (-[WebPDFView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
1372 (-[WebPDFView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
1373 (-[WebPDFView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
1374 (-[WebPDFView pasteboardTypesForSelection]):
1375 (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
1376 * WebView/WebView.h:
1377 * WebView/WebView.mm:
1378 (-[WebView performDragOperation:]):
1379 (-[WebView validateUserInterfaceItemWithoutDelegate:]):
1380 (-[WebView _searchWithGoogleFromMenu:]):
1382 2017-12-21 Youenn Fablet <youenn@apple.com>
1384 ServiceWorkerThreadProxy should set the correct cookie and cache partitioning options
1385 https://bugs.webkit.org/show_bug.cgi?id=181000
1387 Reviewed by Chris Dumez.
1390 (+[WebCache addImageToCache:forURL:forFrame:]):
1392 2017-12-21 Jeremy Jones <jeremyj@apple.com>
1394 Update FULLSCREEN_API feature defines.
1395 https://bugs.webkit.org/show_bug.cgi?id=181015
1397 Reviewed by Tim Horton.
1399 Change enabled iphone sdk for FULLSCREEN_API.
1401 * Configurations/FeatureDefines.xcconfig:
1403 2017-12-21 Jer Noble <jer.noble@apple.com>
1405 Add initial DOM support for Media Capabilities
1406 https://bugs.webkit.org/show_bug.cgi?id=181064
1408 Reviewed by Eric Carlson.
1410 Add a new preference to enable the (disabled-by-default) Media Capabilities API.
1412 * WebView/WebPreferenceKeysPrivate.h:
1413 * WebView/WebPreferences.mm:
1414 (+[WebPreferences initialize]):
1415 (-[WebPreferences mediaCapabilitiesEnabled]):
1416 (-[WebPreferences setMediaCapabilitiesEnabled:]):
1417 * WebView/WebPreferencesPrivate.h:
1418 * WebView/WebView.mm:
1419 (-[WebView _preferencesChanged:]):
1421 2017-12-21 Jeremy Jones <jeremyj@apple.com>
1423 Enable picture-in-picture from inline element on suspend.
1424 https://bugs.webkit.org/show_bug.cgi?id=180942
1425 rdar://problem/34745234
1427 Reviewed by Jer Noble.
1429 Update signature of enterVideoFullscreenForVideoElement().
1431 * WebCoreSupport/WebChromeClient.h:
1432 * WebCoreSupport/WebChromeClient.mm:
1433 (WebChromeClient::enterVideoFullscreenForVideoElement):
1435 2017-12-20 Daniel Bates <dabates@apple.com>
1437 Remove Alternative Presentation Button
1438 https://bugs.webkit.org/show_bug.cgi?id=180500
1439 <rdar://problem/35891047>
1441 Reviewed by Simon Fraser.
1443 We no longer need the alternative presentation button.
1445 * Configurations/FeatureDefines.xcconfig:
1447 2017-12-19 Jer Noble <jer.noble@apple.com>
1449 Playing media elements which call "pause(); play()" will have the play promise rejected.
1450 https://bugs.webkit.org/show_bug.cgi?id=180781
1451 <rdar://problem/33191377>
1453 Reviewed by Eric Carlson.
1455 shouldRequireUserGestureToLoadVideo() should default to false on Mac.
1457 * WebView/WebView.mm:
1458 (shouldRequireUserGestureToLoadVideo):
1460 2017-12-19 Wenson Hsieh <wenson_hsieh@apple.com>
1462 API test WKAttachmentTests.InsertPastedAttributedStringContainingMultipleAttachments is failing on El Capitan and Sierra
1463 https://bugs.webkit.org/show_bug.cgi?id=180977
1465 Reviewed by Tim Horton.
1467 Fixes a failing API test by updating markup deserialization codepaths in WebKitLegacy to behave like the modern
1468 WebCore counterpart. When determining element tags to exclude when generating markup from an attributed string,
1469 don't add "object" as an element to exclude if the attachment element runtime feature is enabled.
1471 * WebCoreSupport/WebEditorClient.mm:
1472 (attributesForAttributedStringConversion):
1473 * WebView/WebHTMLView.mm:
1474 (+[WebHTMLView _excludedElementsForAttributedStringConversion]):
1476 2017-12-18 David Kilzer <ddkilzer@apple.com>
1478 BUILD FIX: Ignore NSWindow deprecation warnings from the mysterious future
1480 Attempt to fix the following warnings:
1482 AppKit instance variables are private, and the ability to access them will be removed in a future release. [-Werror,-Wdeprecated-declarations]
1484 For the following instance variables:
1491 * Carbon/CarbonWindowAdapter.mm:
1492 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
1493 (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
1494 (-[CarbonWindowAdapter _termWindowIfOwner]):
1495 (-[CarbonWindowAdapter _windowMovedToRect:]):
1496 (-[CarbonWindowAdapter setContentView:]):
1497 (-[CarbonWindowAdapter _handleRootBoundsChanged]):
1498 (-[CarbonWindowAdapter _handleContentBoundsChanged]):
1500 2017-12-16 Dan Bernstein <mitz@apple.com>
1502 WKWebView has no equivalent of -[WebView setAlwaysShowVerticalScroller:]
1503 https://bugs.webkit.org/show_bug.cgi?id=180613
1504 <rdar://problem/35946124>
1506 Reviewed by Geoff Garen.
1508 * WebKit.mac.exp: Removed WebCoreScrollbarAlwaysOn, which is no longer being used by any
1510 * WebView/WebDynamicScrollBarsView.h: Ditto.
1511 * WebView/WebDynamicScrollBarsView.mm: Ditto.
1513 2017-12-14 David Kilzer <ddkilzer@apple.com>
1515 Enable -Wstrict-prototypes for WebKit
1516 <https://webkit.org/b/180757>
1517 <rdar://problem/36024132>
1519 Rubber-stamped by Joseph Pecoraro.
1521 * Configurations/Base.xcconfig:
1522 (CLANG_WARN_STRICT_PROTOTYPES): Add. Set to YES.
1524 2017-12-14 John Wilander <wilander@apple.com>
1526 Storage Access API: Implement frame-specific access in the document.cookie layer
1527 https://bugs.webkit.org/show_bug.cgi?id=180682
1528 <rdar://problem/35982257>
1530 Reviewed by Alex Christensen.
1532 CookiesStrategy::cookiesForDOM(), CookiesStrategy::setCookiesFromDOM(),
1533 CookiesStrategy::cookieRequestHeaderFieldValue(), and
1534 CookiesStrategy::getRawCookies() now take optional parameters for
1535 frameID and pageID to allow frame-specific scoping of cookies.
1537 This change makes the return values of FrameLoaderClient::frameID()
1538 and FrameLoaderClient::pageID() std::optional<uint64_t> so that
1539 WebCore can call those getters and get the right return values in
1540 WebKit and std:nullopt in WebKitLegacy.
1542 * WebCoreSupport/WebFrameLoaderClient.h:
1543 * WebCoreSupport/WebFrameLoaderClient.mm:
1544 (WebFrameLoaderClient::pageID const):
1545 (WebFrameLoaderClient::frameID const):
1546 * WebCoreSupport/WebPlatformStrategies.h:
1547 * WebCoreSupport/WebPlatformStrategies.mm:
1548 (WebPlatformStrategies::cookiesForDOM):
1549 (WebPlatformStrategies::setCookiesFromDOM):
1550 (WebPlatformStrategies::cookieRequestHeaderFieldValue):
1551 (WebPlatformStrategies::getRawCookies):
1553 2017-12-12 Simon Fraser <simon.fraser@apple.com>
1555 Remove ColorSpaceDeviceRGB and most users of the obsolete deviceRGB colorspace
1556 https://bugs.webkit.org/show_bug.cgi?id=180689
1558 Reviewed by Tim Horton.
1560 Use sRGBColorSpaceRef() from WebCore.
1562 * WebView/WebHTMLView.mm:
1565 2017-12-11 Tim Horton <timothy_horton@apple.com>
1567 Stop using deprecated target conditional for simulator builds
1568 https://bugs.webkit.org/show_bug.cgi?id=180662
1569 <rdar://problem/35136156>
1571 Reviewed by Simon Fraser.
1573 * postprocess-headers.sh:
1575 2017-12-11 David Quesada <david_quesada@apple.com>
1577 Turn on ENABLE_APPLICATION_MANIFEST
1578 https://bugs.webkit.org/show_bug.cgi?id=180562
1579 rdar://problem/35924737
1581 Reviewed by Geoffrey Garen.
1583 * Configurations/FeatureDefines.xcconfig:
1585 2017-12-08 Yusuke Suzuki <utatane.tea@gmail.com>
1587 Remove pthread_once in favor of dispatch_once
1588 https://bugs.webkit.org/show_bug.cgi?id=180591
1590 Reviewed by Saam Barati.
1592 * Misc/WebKitErrors.m:
1593 (+[NSError _registerWebKitErrors]):
1594 (registerErrors): Deleted.
1595 * Storage/WebStorageManager.mm:
1596 (+[WebStorageManager _storageDirectoryPath]):
1597 (initializeLocalStoragePath): Deleted.
1599 2017-12-07 Darin Adler <darin@apple.com>
1601 Remove some unused code from WebKitLegacy
1602 https://bugs.webkit.org/show_bug.cgi?id=180567
1604 Reviewed by Anders Carlsson.
1606 * Misc/WebKitNSStringExtras.h: Researched which of these functions are used in
1607 macOS (back a few versions) and iOS and removed unused
1608 _web_drawAtPoint:font:textColor:allowingFontSmoothing:,
1609 _web_drawDoubledAtPoint:withTopColor:bottomColor:font:,
1610 _web_stringByStrippingReturnCharacters, _webkit_hasCaseInsensitiveSubstring:,
1611 _webkit_stringByCollapsingNonPrintingCharacters,
1612 _webkit_stringByCollapsingWhitespaceCharacters,
1613 _web_stringWithData:textEncodingName:, and
1614 _webkit_localStorageDirectoryWithBundleIdentifier:.
1616 * Misc/WebKitNSStringExtras.mm: Made WebKitLocalCacheDefaultsKey private to
1618 (canUseFastRenderer): Made this faster by not calling u_charDirection for
1619 Latin-1 characters, and also added special cases for U_DIR_NON_SPACING_MARK
1620 and U_BOUNDARY_NEUTRAL, which should not prevent use of the fast renderer.
1621 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Deleted.
1622 (-[NSString _web_drawAtPoint:font:textColor:]): Removed unneeded code to
1623 handle font smoothing options.
1624 (-[NSString _web_drawDoubledAtPoint:withTopColor:bottomColor:font:]): Deleted.
1625 (-[NSString _web_stringByAbbreviatingWithTildeInPath]): Moved comment here
1626 from header and made it a little clearer.
1627 (-[NSString _web_stringByStrippingReturnCharacters]): Deleted.
1628 (-[NSString _webkit_hasCaseInsensitiveSubstring:]): Deleted.
1629 (-[NSString _webkit_stringByCollapsingNonPrintingCharacters]): Deleted.
1630 (-[NSString _webkit_stringByCollapsingWhitespaceCharacters]): Deleted.
1631 (+[NSString _web_stringWithData:textEncodingName:]): Deleted.
1632 (+[NSString _webkit_localCacheDirectoryWithBundleIdentifier:]): Streamlined
1633 implementation a bit and used whole words instead of abbreviations.
1634 (+[NSString _webkit_localStorageDirectoryWithBundleIdentifier:]): Deleted.
1636 * Misc/WebNSFileManagerExtras.mm:
1637 (-[NSFileManager _webkit_pathWithUniqueFilenameForPath:]): Use the
1638 filenameByFixingIllegalCharacters function from WebCore directly instead of
1639 indirectly through the method _webkit_filenameByFixingIllegalCharacters.
1641 * Plugins/WebBaseNetscapePluginView.mm:
1642 (-[WebBaseNetscapePluginView URLWithCString:]): Rewrote to use simple
1643 string replacements instead of _web_stringByStrippingReturnCharacters
1644 and to use NSString methods instead of CFString functions.
1646 2017-12-07 Jessie Berlin <jberlin@webkit.org>
1648 Ignore deprecation warnings.
1650 * WebView/WebHTMLView.mm:
1651 (-[NSWindow _web_borderView]):
1652 (-[WebHTMLView _setAsideSubviews]):
1653 * WebView/WebView.mm:
1654 (-[WebView encodeWithCoder:]):
1656 2017-12-02 Darin Adler <darin@apple.com>
1658 Modernize some aspects of text codecs, eliminate WebKit use of strcasecmp
1659 https://bugs.webkit.org/show_bug.cgi?id=180009
1661 Reviewed by Alex Christensen.
1663 * History/HistoryPropertyList.mm: Removed include of StringExtras.h.
1665 * Plugins/WebBaseNetscapePluginView.mm:
1666 (WebKit::getAuthenticationInfo): Use equalLettersIgnoringASCIICase instead
1669 * WebView/WebPreferences.mm:
1670 (contains): Ditto. Also made this a template so it's easier to call on an array.
1671 (cacheModelForMainBundle): Take advantage of the above to make it cleaner.
1673 2017-12-05 Brent Fulgham <bfulgham@apple.com>
1675 Limit user agent versioning to an upper bound
1676 https://bugs.webkit.org/show_bug.cgi?id=180365
1677 <rdar://problem/34550617>
1679 Reviewed by Joseph Pecoraro.
1681 * WebView/WebView.mm:
1682 (+[WebView _standardUserAgentWithApplicationName:]): Don't pass the WebKit bundle version when
1683 creating the User Agent string.
1684 (webKitBundleVersionString): Deleted.
1686 2017-12-05 Andy Estes <aestes@apple.com>
1688 [Cocoa] Stop specifying TARGET_OS_EMBEDDED in postprocess-headers.sh's unifdef options
1689 https://bugs.webkit.org/show_bug.cgi?id=180457
1690 <rdar://problem/35143007>
1692 Reviewed by Tim Horton.
1694 None of WebKitLegacy's framework headers mention TARGET_OS_EMBEDDED, so there's no need to
1695 check for this macro during post-processing.
1697 * postprocess-headers.sh:
1699 2017-12-04 David Quesada <david_quesada@apple.com>
1701 Add a class for parsing application manifests
1702 https://bugs.webkit.org/show_bug.cgi?id=177973
1703 rdar://problem/34747949
1705 Reviewed by Geoffrey Garen.
1707 * Configurations/FeatureDefines.xcconfig: Add ENABLE_APPLICATION_MANIFEST feature flag.
1709 2017-11-30 Stephan Szabo <stephan.szabo@sony.com>
1711 Make LegacyCustomProtocolManager optional for network process
1712 https://bugs.webkit.org/show_bug.cgi?id=176230
1714 Reviewed by Alex Christensen.
1716 * Configurations/FeatureDefines.xcconfig:
1718 2017-11-30 Joseph Pecoraro <pecoraro@apple.com>
1720 Fix some NSOperationQueue leaks
1721 https://bugs.webkit.org/show_bug.cgi?id=180221
1723 Reviewed by Wenson Hsieh.
1725 * WebView/WebView.mm:
1726 (-[WebView performDragOperation:]):
1728 2017-11-30 Darin Adler <darin@apple.com>
1730 [Mac] remove unneeded RetainPtr use introduced in r225142
1731 https://bugs.webkit.org/show_bug.cgi?id=180202
1733 Reviewed by Tim Horton.
1735 * WebView/WebImmediateActionController.mm:
1736 (-[WebImmediateActionController _animationControllerForText]): Got rid of unnecessary
1739 2017-11-29 Said Abou-Hallawa <sabouhallawa@apple.com>
1741 Remove the ImageSource from the class hierarchy that connects BitmapImage to ImageFrame
1742 https://bugs.webkit.org/show_bug.cgi?id=175595
1744 Reviewed by Darin Adler.
1746 * WebView/WebPreferences.mm:
1748 2017-11-27 Tim Horton <timothy_horton@apple.com>
1750 One too many zeroes in macOS version number in FeatureDefines
1751 https://bugs.webkit.org/show_bug.cgi?id=180011
1753 Reviewed by Dan Bernstein.
1755 * Configurations/FeatureDefines.xcconfig:
1757 2017-11-23 Darin Adler <darin@apple.com>
1759 Fix dictionary leak in lookup, convert FindOptions to OptionSet, tweak code style nearby
1760 https://bugs.webkit.org/show_bug.cgi?id=179981
1762 Reviewed by Sam Weinig.
1764 * WebView/WebImmediateActionController.mm:
1765 (-[WebImmediateActionController _animationControllerForText]): Use RetainPtr so we don't leak.
1766 * WebView/WebView.mm:
1767 (coreOptions): Use |= instead of | to build up FindOptions.
1769 2017-11-23 Sam Weinig <sam@webkit.org>
1771 Remove unneeded ScriptController::processingUserGesture() forwarding functions
1772 https://bugs.webkit.org/show_bug.cgi?id=179954
1774 Reviewed by Darin Adler.
1776 Replace ScriptController::processingUserGesture() and ScriptController::processingUserGestureForMedia()
1777 with direct calls to the corresponding UserGestureIndicator functions.
1779 * Plugins/WebPluginController.mm:
1780 (-[WebPluginController processingUserGesture]):
1781 * WebView/WebView.mm:
1782 (-[WebView _isProcessingUserGesture]):
1784 2017-11-23 Darin Adler <darin@apple.com>
1786 Reduce WTF::String operations that do unnecessary Unicode operations instead of ASCII
1787 https://bugs.webkit.org/show_bug.cgi?id=179907
1789 Reviewed by Sam Weinig.
1791 * History/BinaryPropertyList.cpp:
1792 (BinaryPropertyListPlan::writeStringObject): Use isAllASCII.
1793 (BinaryPropertyListSerializer::appendStringObject): Ditto.
1794 * WebView/WebHTMLRepresentation.mm:
1795 (regExpForLabels): Removed TextCaseSensitive since it is now the default.
1796 (matchLabelsAgainstString): Use JSC::Yarr::TextCaseInsensitive.
1798 2017-11-22 Ali Juma <ajuma@chromium.org>
1800 Implement VisualViewport API attributes
1801 https://bugs.webkit.org/show_bug.cgi?id=179385
1803 Reviewed by Frédéric Wang.
1805 Add a VisualViewportAPI preference.
1807 * WebView/WebPreferenceKeysPrivate.h:
1808 * WebView/WebPreferences.mm:
1809 (+[WebPreferences initialize]):
1810 (-[WebPreferences visualViewportAPIEnabled]):
1811 (-[WebPreferences setVisualViewportAPIEnabled:]):
1812 * WebView/WebPreferencesPrivate.h:
1813 * WebView/WebView.mm:
1814 (-[WebView _preferencesChanged:]):
1816 2017-11-22 Christopher Reid <chris.reid@sony.com>
1818 WebCoreObjCExtras.h is being included in too many places
1819 https://bugs.webkit.org/show_bug.cgi?id=179931
1821 Reviewed by Darin Adler.
1823 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1824 * Plugins/WebBaseNetscapePluginView.mm:
1825 * Plugins/WebBasePluginPackage.mm:
1826 * Plugins/WebNetscapePluginStream.mm:
1827 * Plugins/WebNetscapePluginView.mm:
1828 * WebView/WebTextIterator.mm:
1829 * WebView/WebViewData.mm:
1831 2017-11-22 Commit Queue <commit-queue@webkit.org>
1833 Unreviewed, rolling out r225093.
1834 https://bugs.webkit.org/show_bug.cgi?id=179938
1836 Compilation failed on WinCairo 64-bit Release (Requested by
1841 "Implement VisualViewport API attributes"
1842 https://bugs.webkit.org/show_bug.cgi?id=179385
1843 https://trac.webkit.org/changeset/225093
1845 2017-11-21 Ali Juma <ajuma@chromium.org>
1847 Implement VisualViewport API attributes
1848 https://bugs.webkit.org/show_bug.cgi?id=179385
1850 Reviewed by Frédéric Wang.
1852 Add a VisualViewportAPI preference.
1854 * WebView/WebPreferenceKeysPrivate.h:
1855 * WebView/WebPreferences.mm:
1856 (+[WebPreferences initialize]):
1857 (-[WebPreferences visualViewportAPIEnabled]):
1858 (-[WebPreferences setVisualViewportAPIEnabled:]):
1859 * WebView/WebPreferencesPrivate.h:
1860 * WebView/WebView.mm:
1861 (-[WebView _preferencesChanged:]):
1863 2017-11-21 Christopher Reid <chris.reid@sony.com>
1865 [PAL] Remove FileSystem's dependency on WebCoreNSStringExtras
1866 https://bugs.webkit.org/show_bug.cgi?id=179504
1868 Reviewed by Darin Adler.
1870 * Misc/WebKitNSStringExtras.mm:
1871 * Plugins/Hosted/NetscapePluginHostManager.mm:
1872 * Plugins/WebBasePluginPackage.mm:
1874 2017-11-19 Tim Horton <timothy_horton@apple.com>
1876 Remove unused TOUCH_ICON_LOADING feature flag
1877 https://bugs.webkit.org/show_bug.cgi?id=179873
1879 Reviewed by Simon Fraser.
1881 * Configurations/FeatureDefines.xcconfig:
1883 2017-11-19 Tim Horton <timothy_horton@apple.com>
1885 Remove unused LEGACY_VENDOR_PREFIXES feature flag
1886 https://bugs.webkit.org/show_bug.cgi?id=179872
1888 Reviewed by Darin Adler.
1890 * Configurations/FeatureDefines.xcconfig:
1892 2017-11-16 Daniel Bates <dabates@apple.com>
1894 Add feature define for alternative presentation button element
1895 https://bugs.webkit.org/show_bug.cgi?id=179692
1896 Part of <rdar://problem/34917108>
1898 Reviewed by Andy Estes.
1900 Only enabled on Cocoa platforms by default.
1902 * Configurations/FeatureDefines.xcconfig:
1904 2017-11-14 Nan Wang <n_wang@apple.com>
1906 AX: AOM: Implement AccessibleNode class and support label and role attributes
1907 https://bugs.webkit.org/show_bug.cgi?id=179494
1909 Reviewed by Ryosuke Niwa.
1911 * WebView/WebPreferenceKeysPrivate.h:
1912 * WebView/WebPreferences.mm:
1913 (+[WebPreferences initialize]):
1914 (-[WebPreferences accessibilityObjectModelEnabled]):
1915 (-[WebPreferences setAccessibilityObjectModelEnabled:]):
1916 * WebView/WebPreferencesPrivate.h:
1917 * WebView/WebView.mm:
1918 (-[WebView _preferencesChanged:]):
1920 2017-11-14 Alex Christensen <achristensen@webkit.org>
1922 Remove Cocoa CFURLConnection loading code
1923 https://bugs.webkit.org/show_bug.cgi?id=179688
1925 Reviewed by Antti Koivisto.
1927 * Misc/WebDownload.mm:
1928 (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]): Deleted.
1929 * Misc/WebDownloadInternal.h:
1930 * Plugins/WebBaseNetscapePluginView.mm:
1931 * WebCoreSupport/WebFrameLoaderClient.mm:
1932 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1933 * WebView/WebView.mm:
1934 (-[WebView scheduleInRunLoop:forMode:]):
1935 (-[WebView unscheduleFromRunLoop:forMode:]):
1937 2017-11-14 Daniel Bates <dabates@apple.com>
1939 Update comment in FeatureDefines.xcconfig to reflect location of Visual Studio property files
1942 Following r195498 and r201917 the Visual Studio property files for feature defines have
1943 moved from directory WebKitLibraries/win/tools/vsprops to directory Source/cmake/tools/vsprops.
1944 Update the comment in FeatureDefines.xcconfig to reflect the new location and names of these
1947 * Configurations/FeatureDefines.xcconfig:
1949 2017-11-14 Jer Noble <jer.noble@apple.com>
1951 Enable Modern EME tests in DumpRenderTree
1952 https://bugs.webkit.org/show_bug.cgi?id=179544
1954 Reviewed by Alex Christensen.
1956 Add a WebPreferences property to enable the (modern) EME API.
1958 * WebView/WebPreferenceKeysPrivate.h:
1959 * WebView/WebPreferences.mm:
1960 (+[WebPreferences initialize]):
1961 (-[WebPreferences encryptedMediaAPIEnabled]):
1962 (-[WebPreferences setEncryptedMediaAPIEnabled:]):
1963 * WebView/WebPreferencesPrivate.h:
1964 * WebView/WebView.mm:
1965 (-[WebView _preferencesChanged:]):
1967 2017-11-14 Antti Koivisto <antti@apple.com>
1969 Enable display:contents by default
1970 https://bugs.webkit.org/show_bug.cgi?id=179655
1972 Reviewed by Sam Weinig.
1974 * WebView/WebPreferences.mm:
1975 (+[WebPreferences initialize]):
1977 2017-11-13 Alex Christensen <achristensen@webkit.org>
1979 Merge NetworkProcess::EnsurePrivateBrowsingSession and NetworkProcess::AddWebsiteDataStore into one message type
1980 https://bugs.webkit.org/show_bug.cgi?id=178751
1982 Reviewed by Brady Eidson.
1984 * WebCoreSupport/WebFrameNetworkingContext.mm:
1985 (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1987 2017-11-08 Keith Miller <keith_miller@apple.com>
1989 Async iteration should only fetch the next method once and add feature flag
1990 https://bugs.webkit.org/show_bug.cgi?id=179451
1992 Reviewed by Geoffrey Garen.
1994 Add feature flag for Async iteration.
1996 * Configurations/FeatureDefines.xcconfig:
1998 2017-11-13 Mark Lam <mark.lam@apple.com>
2000 Add more overflow check book-keeping for MarkedArgumentBuffer.
2001 https://bugs.webkit.org/show_bug.cgi?id=179634
2002 <rdar://problem/35492517>
2004 Reviewed by Saam Barati.
2006 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2007 (WebKit::NetscapePluginInstanceProxy::invoke):
2008 (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2009 (WebKit::NetscapePluginInstanceProxy::construct):
2011 2017-11-12 Darin Adler <darin@apple.com>
2013 More is<> and downcast<>, less static_cast<>
2014 https://bugs.webkit.org/show_bug.cgi?id=179600
2016 Reviewed by Chris Dumez.
2019 (kit): Use is/downcast.
2020 * WebCoreSupport/WebEditorClient.mm:
2021 (WebEditorClient::handleKeyboardEvent): Ditto.
2022 (WebEditorClient::handleInputMethodKeydown): Ditto.
2023 * WebView/WebHTMLView.mm:
2024 (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Ditto.
2026 2017-11-10 Frederik Riedel <frederik.riedel@frogg.io>
2028 [iOS] Use new class name from UIKit when checking UITextSuggestion type for WebKitLegacy
2029 https://bugs.webkit.org/show_bug.cgi?id=179397
2031 Reviewed by Wenson Hsieh.
2033 * DOM/DOMHTMLInputElement.mm:
2034 (-[DOMHTMLInputElement insertTextSuggestion:]):
2036 2017-11-08 Jeremy Jones <jeremyj@apple.com>
2038 HTMLMediaElement should not use element fullscreen on iOS
2039 https://bugs.webkit.org/show_bug.cgi?id=179418
2040 rdar://problem/35409277
2042 Reviewed by Eric Carlson.
2044 Add ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN to determine if HTMLMediaElement should use element full screen or not.
2046 * Configurations/FeatureDefines.xcconfig:
2048 2017-11-06 Alex Christensen <achristensen@webkit.org>
2050 Make ResourceLoader::willSendRequestInternal asynchronous
2051 https://bugs.webkit.org/show_bug.cgi?id=179251
2053 Reviewed by Andy Estes.
2055 * Plugins/Hosted/HostedNetscapePluginStream.mm:
2056 (WebKit::HostedNetscapePluginStream::start):
2057 * Plugins/WebNetscapePluginStream.mm:
2058 (WebNetscapePluginStream::start):
2060 2017-11-01 Darin Adler <darin@apple.com>
2062 Simplify event dispatch code and make it a bit more consistent
2063 https://bugs.webkit.org/show_bug.cgi?id=178991
2065 Reviewed by Chris Dumez.
2068 (-[DOMEvent srcElement]): Call target instead of srcElement.
2070 2017-11-04 Aishwarya Nirmal <anirmal@apple.com>
2072 [Touch Bar Web API] Add support for menuitem tag
2073 https://bugs.webkit.org/show_bug.cgi?id=179020
2075 Reviewed by Ryosuke Niwa.
2077 Adds in properties and methods that allow the menuitem runtime feature
2078 to be enabled or disabled.
2080 * WebView/WebPreferenceKeysPrivate.h:
2081 * WebView/WebPreferences.mm:
2082 (-[WebPreferences menuItemElementEnabled]):
2083 (-[WebPreferences setMenuItemElementEnabled:]):
2084 * WebView/WebPreferencesPrivate.h:
2085 * WebView/WebView.mm:
2086 (-[WebView _preferencesChanged:]):
2088 2017-11-02 Alex Christensen <achristensen@webkit.org>
2090 Use CompletionHandlers for redirects
2091 https://bugs.webkit.org/show_bug.cgi?id=179163
2093 Reviewed by Tim Horton.
2095 * Plugins/Hosted/HostedNetscapePluginStream.h:
2096 * Plugins/Hosted/HostedNetscapePluginStream.mm:
2097 (WebKit::HostedNetscapePluginStream::willSendRequest):
2098 * Plugins/WebNetscapePluginStream.h:
2099 * Plugins/WebNetscapePluginStream.mm:
2100 (WebNetscapePluginStream::willSendRequest):
2102 2017-11-02 Christopher Reid <chris.reid@sony.com>
2104 Add a FileSystem namespace to FileSystem.cpp
2105 https://bugs.webkit.org/show_bug.cgi?id=179063
2107 Reviewed by Darin Adler.
2109 * Misc/WebNSFileManagerExtras.mm:
2110 * Storage/WebDatabaseProvider.mm:
2112 2017-11-02 Frederic Wang <fwang@igalia.com>
2114 Add references to bug 179167 in FIXME comments
2115 https://bugs.webkit.org/show_bug.cgi?id=179168
2117 Reviewed by Daniel Bates.
2119 * Configurations/FeatureDefines.xcconfig:
2121 2017-11-01 Jeremy Jones <jeremyj@apple.com>
2123 Implement WKFullscreenWindowController for iOS.
2124 https://bugs.webkit.org/show_bug.cgi?id=178924
2125 rdar://problem/34697120
2127 Reviewed by Simon Fraser.
2129 Enable ENABLE_FULLSCREEN_API for iOS. Fix a build error.
2131 * Configurations/FeatureDefines.xcconfig:
2132 * WebView/WebView.mm:
2133 (-[WebView fullScreenPlaceholderView]):
2135 2017-10-31 Tim Horton <timothy_horton@apple.com>
2137 Clean up some drag and drop feature flags
2138 https://bugs.webkit.org/show_bug.cgi?id=179082
2140 Reviewed by Simon Fraser.
2142 * Configurations/FeatureDefines.xcconfig:
2144 2017-10-31 Simon Fraser <simon.fraser@apple.com>
2146 Make it possible to test rubber-banding in overflow scroll
2147 https://bugs.webkit.org/show_bug.cgi?id=179078
2149 Reviewed by Sam Weinig.
2151 Add internals.unconstrainedScrollTo(element, x, y) and plumb through ScrollClamping
2152 (which replaces RenderLayer::ScrollOffsetClamping) to support it.
2154 Flip the default from unclamped to clamped for various RenderLayer scrolling-related
2155 functions, since most callers want clamped.
2158 (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]):
2160 2017-10-31 Tim Horton <timothy_horton@apple.com>
2162 Fix up some content filtering feature flags
2163 https://bugs.webkit.org/show_bug.cgi?id=179079
2165 Reviewed by Simon Fraser.
2167 * Configurations/FeatureDefines.xcconfig:
2169 2017-10-28 Zalan Bujtas <zalan@apple.com>
2171 [FrameView::layout cleanup] Move core layout logic to a separate class.
2172 https://bugs.webkit.org/show_bug.cgi?id=178771
2173 <rdar://problem/35166542>
2175 Reviewed by Simon Fraser.
2177 Move layout code out from FrameView to LayoutContext.
2179 * WebView/WebClipView.mm:
2180 (-[WebClipView _immediateScrollToPoint:]):
2181 * WebView/WebFrame.mm:
2182 (-[WebFrame layoutCount]):
2184 2017-10-26 Simon Fraser <simon.fraser@apple.com>
2186 Fix issues with WebView subframe painting
2187 https://bugs.webkit.org/show_bug.cgi?id=178842
2188 rdar://problem/34072253
2190 Reviewed by Daniel Bates.
2192 WebHTMLView overrides some NSView internal methods to make sure that AppKit doesn't paint
2193 subframes (WebKit controls subframe painting). The method signature of one of these changed in macOS
2194 High Sierra, so match the new signature.
2196 Also rename the 'rect' param to 'displayRect' to match AppKit code.
2198 * WebView/WebHTMLView.mm:
2199 (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
2200 (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): Deleted.
2202 2017-10-25 Youenn Fablet <youenn@apple.com>
2204 Enable ServiceWorker to fetch resources
2205 https://bugs.webkit.org/show_bug.cgi?id=178673
2207 Reviewed by Brady Eidson.
2209 * WebCoreSupport/WebFrameLoaderClient.mm:
2210 (WebFrameLoaderClient::pageID const):
2211 (WebFrameLoaderClient::frameID const):
2212 (WebFrameLoaderClient::sessionID const):
2214 Added implementation to the new getters.
2215 They are noop in the context of WK1.
2217 2017-10-24 Eric Carlson <eric.carlson@apple.com>
2219 Web Inspector: Enable WebKit logging configuration and display
2220 https://bugs.webkit.org/show_bug.cgi?id=177027
2221 <rdar://problem/33964767>
2223 Reviewed by Joseph Pecoraro.
2225 * WebCoreSupport/WebChromeClient.mm:
2226 (stringForMessageSource): Deal with Media and WebRTC message sources.
2228 2017-10-20 Antoine Quint <graouts@apple.com>
2230 [Web Animations] Provide basic timeline and animation interfaces
2231 https://bugs.webkit.org/show_bug.cgi?id=178526
2233 Reviewed by Dean Jackson.
2235 Remove the WEB_ANIMATIONS compile-time flag.
2237 * Configurations/FeatureDefines.xcconfig:
2238 * WebView/WebPreferences.mm:
2239 (+[WebPreferences initialize]):
2240 * WebView/WebView.mm:
2241 (-[WebView _preferencesChanged:]):
2243 2017-10-19 Sam Weinig <sam@webkit.org>
2245 [Settings] Move global settings into their own file
2246 https://bugs.webkit.org/show_bug.cgi?id=178512
2248 Reviewed by Darin Adler.
2250 Moves all global settigns out of SettingsBase and into the new DeprecatedGlobalSettings.
2252 * WebCoreSupport/WebChromeClient.mm:
2253 (WebChromeClient::supportsVideoFullscreen):
2254 * WebView/WebDynamicScrollBarsView.mm:
2255 (+[WebDynamicScrollBarsView _horizontalScrollerClass]):
2256 (+[WebDynamicScrollBarsView _verticalScrollerClass]):
2257 * WebView/WebPreferences.mm:
2258 (+[WebPreferences initialize]):
2259 * WebView/WebView.mm:
2260 (-[WebView _commonInitializationWithFrameName:groupName:]):
2261 (-[WebView _preferencesChanged:]):
2262 (+[WebView _doNotStartObservingNetworkReachability]):
2264 2017-10-17 Jiewen Tan <jiewen_tan@apple.com>
2266 Replace some stack raw pointers with RefPtrs within WebCore/html
2267 https://bugs.webkit.org/show_bug.cgi?id=178201
2268 <rdar://problem/34841692>
2270 Reviewed by Ryosuke Niwa.
2274 Change the type of node as toNode() is changed to return RefPtr.
2276 2017-10-18 Chris Dumez <cdumez@apple.com>
2278 [Service Worker] Add stubs for Client / WindowClient / Clients
2279 https://bugs.webkit.org/show_bug.cgi?id=178469
2281 Reviewed by Youenn Fablet.
2283 Rename PageVisiblityState to VisibilityState.
2285 * WebView/WebView.mm:
2288 2017-10-18 Wenson Hsieh <wenson_hsieh@apple.com>
2290 Unreviewed, rolling out r223291.
2292 See WebCore ChangeLog for more detail.
2296 "Remove Editor::simplifyMarkup"
2297 https://bugs.webkit.org/show_bug.cgi?id=178271
2298 https://trac.webkit.org/changeset/223291
2300 2017-10-17 Keith Miller <keith_miller@apple.com>
2302 Change WebCore sources to work with unified source builds
2303 https://bugs.webkit.org/show_bug.cgi?id=178229
2305 Rubber stamped by Tim Horton.
2307 * Configurations/FeatureDefines.xcconfig:
2309 2017-10-16 Sam Weinig <sam@webkit.org>
2311 [Settings] Remove all custom code from Settings.h/cpp
2312 https://bugs.webkit.org/show_bug.cgi?id=178330
2314 Reviewed by Simon Fraser.
2316 * WebView/WebPreferences.mm:
2317 (+[WebPreferences initialize]):
2319 Update for naming changes of FrameFlattening now that it is an enum class.
2321 2017-10-13 Alex Christensen <achristensen@webkit.org>
2323 Remove Editor::simplifyMarkup
2324 https://bugs.webkit.org/show_bug.cgi?id=178271
2326 Reviewed by Wenson Hsieh.
2328 * WebView/WebView.mm:
2329 (-[WebView _simplifyMarkup:endNode:]):
2331 2017-10-12 Chris Dumez <cdumez@apple.com>
2333 [Mac] Add support for MouseEvent.buttons
2334 https://bugs.webkit.org/show_bug.cgi?id=178214
2336 Reviewed by Ryosuke Niwa.
2338 * WebView/WebPDFView.mm:
2339 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2341 2017-10-11 Sam Weinig <sam@webkit.org>
2343 Remove out-parameter variants of copyToVector
2344 https://bugs.webkit.org/show_bug.cgi?id=178155
2346 Reviewed by Tim Horton.
2348 * Plugins/WebNetscapePluginView.mm:
2349 (-[WebNetscapePluginView destroyPlugin]):
2350 * WebView/WebHTMLRepresentation.mm:
2351 (newArrayWithStrings):
2353 Replace out-parameter based copyToVector, with one that returns a Vector.
2355 2017-10-11 Ryosuke Niwa <rniwa@webkit.org>
2357 Sanitize URL in pasteboard for other applications and cross origin content
2358 https://bugs.webkit.org/show_bug.cgi?id=178060
2359 <rdar://problem/34874518>
2361 Reviewed by Wenson Hsieh.
2363 * WebCoreSupport/WebPlatformStrategies.h:
2364 * WebCoreSupport/WebPlatformStrategies.mm:
2365 (WebPlatformStrategies::typesSafeForDOMToReadAndWrite):
2367 2017-10-11 Chris Dumez <cdumez@apple.com>
2369 Modernize Geolocation code
2370 https://bugs.webkit.org/show_bug.cgi?id=178148
2372 Reviewed by Ryosuke Niwa.
2374 * WebCoreSupport/WebGeolocationClient.h:
2375 * WebCoreSupport/WebGeolocationClient.mm:
2376 (WebGeolocationClient::lastPosition):
2377 * WebView/WebGeolocationPosition.mm:
2378 (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
2380 (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
2381 (-[WebGeolocationPosition initWithGeolocationPosition:]):
2382 * WebView/WebGeolocationPositionInternal.h:
2384 2017-10-10 Ryosuke Niwa <rniwa@webkit.org>
2386 Enable custom pasteboard data in DumpRenderTree and WebKitTestRunner
2387 https://bugs.webkit.org/show_bug.cgi?id=178154
2389 Reviewed by Wenson Hsieh.
2391 Enable custom pasteboard data by default.
2393 * WebView/WebPreferenceKeysPrivate.h:
2394 * WebView/WebPreferences.mm:
2395 (+[WebPreferences initialize]):
2396 (-[WebPreferences customPasteboardDataEnabled]): Added.
2397 (-[WebPreferences setCustomPasteboardDataEnabled:]): Added.
2398 * WebView/WebPreferencesPrivate.h:
2399 * WebView/WebView.mm:
2400 (-[WebView _preferencesChanged:]):
2402 2017-10-10 Sam Weinig <sam@webkit.org>
2404 Replace copyKeysToVector/copyValuesToVector with copyToVector(map.keys())/copyToVector(map.values())
2405 https://bugs.webkit.org/show_bug.cgi?id=178102
2407 Reviewed by Tim Horton.
2409 * History/WebHistory.mm:
2410 (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
2411 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2412 (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
2413 * WebCoreSupport/WebUserMediaClient.mm:
2414 (WebUserMediaClient::pageDestroyed):
2416 2017-10-09 Robin Morisset <rmorisset@apple.com>
2418 Make the names of the options consistent
2419 https://bugs.webkit.org/show_bug.cgi?id=177933
2421 Reviewed by Saam Barati.
2423 * WebView/WebFrame.h:
2424 * WebView/WebHTMLView.mm:
2425 (-[WebHTMLView setMarkedText:selectedRange:]):
2426 * WebView/WebView.h:
2428 2017-10-06 Wenson Hsieh <wenson_hsieh@apple.com>
2430 [iOS] Tweak support for classifying form controls (followup to r222487)
2431 https://bugs.webkit.org/show_bug.cgi?id=177917
2432 <rdar://problem/34820122>
2434 Reviewed by Dean Jackson.
2436 Implement _autofillContext in legacy WebKit, and remove the two previous SPI hooks.
2438 * DOM/DOMHTMLInputElement.mm:
2439 (-[DOMHTMLInputElement _autofillContext]):
2440 (-[DOMHTMLInputElement acceptsAutofilledLoginCredentials]): Deleted.
2441 (-[DOMHTMLInputElement representingPageURL]): Deleted.
2443 2017-10-05 Keith Miller <keith_miller@apple.com>
2445 Unreviewed, tapi builds without optimization so we should have TAPI passes -DRELEASE_WITHOUT_OPTIMIZATIONS.
2447 * Configurations/WebKitLegacy.xcconfig:
2449 2017-10-05 Jer Noble <jer.noble@apple.com>
2451 [Cocoa] Enable ENABLE_ENCRYPTED_MEDIA build-time setting
2452 https://bugs.webkit.org/show_bug.cgi?id=177261
2454 Reviewed by Eric Carlson.
2456 * Configurations/FeatureDefines.xcconfig:
2458 2017-10-05 Chris Dumez <cdumez@apple.com>
2460 Drop unused parameters for CookiesStrategy::cookiesEnabled()
2461 https://bugs.webkit.org/show_bug.cgi?id=177957
2463 Reviewed by Alex Christensen.
2465 * WebCoreSupport/WebPlatformStrategies.h:
2466 * WebCoreSupport/WebPlatformStrategies.mm:
2467 (WebPlatformStrategies::cookiesEnabled):
2469 2017-10-05 Youenn Fablet <youenn@apple.com>
2471 Make LibWebRTCProvider port agnostic
2472 https://bugs.webkit.org/show_bug.cgi?id=177747
2474 Reviewed by Alex Christensen & Alex Garcia.
2476 * WebView/WebView.mm:
2477 (-[WebView _commonInitializationWithFrameName:groupName:]):
2478 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2480 2017-10-04 Alex Christensen <achristensen@webkit.org>
2482 Stop linking with WebKitSystemInterface
2483 https://bugs.webkit.org/show_bug.cgi?id=177915
2485 Reviewed by Antti Koivisto.
2487 * Configurations/DebugRelease.xcconfig:
2488 * Configurations/WebKitLegacy.xcconfig:
2490 2017-10-04 Alex Christensen <achristensen@webkit.org>
2492 Remove unnecessary includes of WebKitSystemInterface on Cocoa platforms
2493 https://bugs.webkit.org/show_bug.cgi?id=177912
2495 Reviewed by Saam Barati.
2497 * Carbon/CarbonUtils.m:
2498 * Carbon/CarbonWindowAdapter.mm:
2499 * Carbon/HIWebView.mm:
2500 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2501 * Misc/WebNSFileManagerExtras.mm:
2502 * Misc/WebNSPasteboardExtras.mm:
2503 * Misc/WebNSURLExtras.mm:
2504 * Plugins/Hosted/HostedNetscapePluginStream.mm:
2505 * Plugins/Hosted/NetscapePluginHostManager.mm:
2506 * Plugins/Hosted/NetscapePluginHostProxy.mm:
2507 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2508 * Plugins/Hosted/WebHostedNetscapePluginView.h:
2509 * Plugins/Hosted/WebTextInputWindowController.m:
2510 * Plugins/WebBaseNetscapePluginView.mm:
2511 * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
2512 * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
2513 * Plugins/WebNetscapePluginStream.mm:
2514 * Plugins/WebNetscapePluginView.mm:
2515 * Plugins/WebPluginDatabase.mm:
2516 * WebCoreSupport/PopupMenuMac.mm:
2517 * WebCoreSupport/WebChromeClient.mm:
2518 * WebCoreSupport/WebFrameLoaderClient.mm:
2519 * WebCoreSupport/WebInspectorClient.mm:
2520 * WebCoreSupport/WebPlatformStrategies.mm:
2521 * WebCoreSupport/WebSystemInterface.mm:
2522 * WebView/WebDynamicScrollBarsView.mm:
2523 * WebView/WebFrame.mm:
2524 * WebView/WebFrameView.mm:
2525 * WebView/WebFullScreenController.mm:
2526 * WebView/WebHTMLView.mm:
2527 * WebView/WebPreferences.mm:
2528 * WebView/WebView.mm:
2530 2017-09-29 Alexey Proskuryakov <ap@apple.com>
2532 Follow-up to https://trac.webkit.org/r222239 to fix crashes.
2533 rdar://problem/34705779
2535 Addressing review comments that I somehow landed without.
2537 * WebView/WebHTMLView.mm: Undo adding #if guards around -_web_uniqueWebDataURL
2539 2017-09-29 Chris Dumez <cdumez@apple.com>
2541 Split some logic out of VisitedLinkStore and make it reusable
2542 https://bugs.webkit.org/show_bug.cgi?id=177575
2544 Reviewed by Alex Christensen.
2546 * WebCoreSupport/WebVisitedLinkStore.h:
2547 * WebCoreSupport/WebVisitedLinkStore.mm:
2548 (WebVisitedLinkStore::addVisitedLink):
2549 (WebVisitedLinkStore::removeVisitedLink):
2550 (WebVisitedLinkStore::isLinkVisited):
2551 (WebVisitedLinkStore::addVisitedLinkHash):
2553 2017-09-28 Jonathan Bedard <jbedard@apple.com>
2555 Build fix for High Sierra 32 bit Mac
2556 https://bugs.webkit.org/show_bug.cgi?id=177551
2557 <rdar://problem/34690283>
2559 Reviewed by Alexey Proskuryakov.
2561 Some assertions have been removed from the SDK. Replace these assertions with equivalent
2562 WTF assert code. Since the files in this patch are using tabs, some style changes were
2565 * Carbon/CarbonWindowAdapter.mm:
2566 (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
2567 (-[CarbonWindowAdapter initWithContentRect:styleMask:backing:defer:]):
2568 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
2569 (-[CarbonWindowAdapter setViewsNeedDisplay:]):
2570 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:]):
2571 (-[CarbonWindowAdapter dealloc]):
2572 (-[CarbonWindowAdapter windowRef]):
2573 (-[CarbonWindowAdapter _hasWindowRef]):
2574 (-[CarbonWindowAdapter _managesWindowRef]):
2575 (-[CarbonWindowAdapter _removeWindowRef]):
2576 (-[CarbonWindowAdapter _carbonWindowClass]):
2577 (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
2578 (-[CarbonWindowAdapter sendSuperEvent:]):
2579 (-[CarbonWindowAdapter relinquishFocus]):
2580 (-[CarbonWindowAdapter _cancelKey:]):
2581 (-[CarbonWindowAdapter _commonAwake]):
2582 (-[CarbonWindowAdapter _destroyRealWindow:]):
2583 (-[CarbonWindowAdapter _oldPlaceWindow:]):
2584 (-[CarbonWindowAdapter _termWindowIfOwner]):
2585 (-[CarbonWindowAdapter _windowMovedToRect:]):
2586 (-[CarbonWindowAdapter constrainFrameRect:toScreen:]):
2587 (-[CarbonWindowAdapter selectKeyViewFollowingView:]):
2588 (-[CarbonWindowAdapter selectKeyViewPrecedingView:]):
2589 (-[CarbonWindowAdapter canBecomeKeyWindow]):
2590 (-[CarbonWindowAdapter canBecomeMainWindow]):
2591 (-[CarbonWindowAdapter encodeWithCoder:]):
2592 (-[CarbonWindowAdapter initWithCoder:]):
2593 (-[CarbonWindowAdapter setContentView:]):
2594 (-[CarbonWindowAdapter worksWhenModal]):
2595 (-[CarbonWindowAdapter _setModalWindowLevel]):
2596 (-[CarbonWindowAdapter _clearModalWindowLevel]):
2597 (-[CarbonWindowAdapter carbonHICommandIDFromActionSelector:]):
2598 (-[CarbonWindowAdapter sendCarbonProcessHICommandEvent:]):
2599 (-[CarbonWindowAdapter sendCarbonUpdateHICommandStatusEvent:withMenuRef:andMenuItemIndex:]):
2600 (-[CarbonWindowAdapter _handleRootBoundsChanged]):
2601 (-[CarbonWindowAdapter _handleContentBoundsChanged]):
2602 (-[CarbonWindowAdapter _handleCarbonEvent:callRef:]):
2603 (NSCarbonWindowHandleEvent):
2604 (-[CarbonWindowAdapter _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]):
2605 (-[CarbonWindowAdapter _growBoxRect]):
2606 * Carbon/HIWebView.mm:
2607 (HIWebViewGetWebView):
2608 (HIWebViewConstructor):
2609 (HIWebViewDestructor):
2610 (HIWebViewRegisterClass):
2616 (CreateNSEventAdoptingCGEvent):
2618 (CreateNSEventWithCarbonClickEvent):
2620 (CreateNSEventWithCarbonEvent):
2622 (CreateNSEventWithCarbonMouseMoveEvent):
2629 (OwningWindowChanged):
2635 (ActiveStateChanged):
2637 (UpdateCommandStatus):
2638 (_NSSelectorForHICommand):
2639 (HIWebViewEventHandler):
2640 (StartUpdateObserver):
2641 (StopUpdateObserver):
2644 2017-09-27 Wenson Hsieh <wenson_hsieh@apple.com>
2646 Drag event DataTransfer has unexpected types "dyn.ah62d4..."
2647 https://bugs.webkit.org/show_bug.cgi?id=172526
2648 <rdar://problem/32396081>
2650 Reviewed by Ryosuke Niwa.
2652 Adjust for changes in WebCore. See WebCore ChangeLog for more details.
2654 * WebCoreSupport/WebPlatformStrategies.h:
2655 * WebCoreSupport/WebPlatformStrategies.mm:
2656 (WebPlatformStrategies::webExposedTypes):
2657 (WebPlatformStrategies::writeCustomData):
2659 2017-09-27 Matt Lewis <jlewis3@apple.com>
2661 Unreviewed, rolling out r222567.
2663 This broke and internal build.
2667 "Build fix for High Sierra 32 bit Mac"
2668 https://bugs.webkit.org/show_bug.cgi?id=177551
2669 http://trac.webkit.org/changeset/222567
2671 2017-09-27 Jonathan Bedard <jbedard@apple.com>
2673 Build fix for High Sierra 32 bit Mac
2674 https://bugs.webkit.org/show_bug.cgi?id=177551
2675 <rdar://problem/34690283>
2677 Reviewed by Alexey Proskuryakov.
2679 Some assertions have been removed from the SDK. Replace these assertions with equivalent
2680 WTF assert code. Since the files in this patch are using tabs, some style changes were
2683 * Carbon/CarbonWindowAdapter.mm:
2684 (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
2685 (-[CarbonWindowAdapter initWithContentRect:styleMask:backing:defer:]):
2686 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
2687 (-[CarbonWindowAdapter setViewsNeedDisplay:]):
2688 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:]):
2689 (-[CarbonWindowAdapter dealloc]):
2690 (-[CarbonWindowAdapter windowRef]):
2691 (-[CarbonWindowAdapter _hasWindowRef]):
2692 (-[CarbonWindowAdapter _managesWindowRef]):
2693 (-[CarbonWindowAdapter _removeWindowRef]):
2694 (-[CarbonWindowAdapter _carbonWindowClass]):
2695 (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
2696 (-[CarbonWindowAdapter sendSuperEvent:]):
2697 (-[CarbonWindowAdapter relinquishFocus]):
2698 (-[CarbonWindowAdapter _cancelKey:]):
2699 (-[CarbonWindowAdapter _commonAwake]):
2700 (-[CarbonWindowAdapter _destroyRealWindow:]):
2701 (-[CarbonWindowAdapter _oldPlaceWindow:]):
2702 (-[CarbonWindowAdapter _termWindowIfOwner]):
2703 (-[CarbonWindowAdapter _windowMovedToRect:]):
2704 (-[CarbonWindowAdapter constrainFrameRect:toScreen:]):
2705 (-[CarbonWindowAdapter selectKeyViewFollowingView:]):
2706 (-[CarbonWindowAdapter selectKeyViewPrecedingView:]):
2707 (-[CarbonWindowAdapter canBecomeKeyWindow]):
2708 (-[CarbonWindowAdapter canBecomeMainWindow]):
2709 (-[CarbonWindowAdapter encodeWithCoder:]):
2710 (-[CarbonWindowAdapter initWithCoder:]):
2711 (-[CarbonWindowAdapter setContentView:]):
2712 (-[CarbonWindowAdapter worksWhenModal]):
2713 (-[CarbonWindowAdapter _setModalWindowLevel]):
2714 (-[CarbonWindowAdapter _clearModalWindowLevel]):
2715 (-[CarbonWindowAdapter carbonHICommandIDFromActionSelector:]):
2716 (-[CarbonWindowAdapter sendCarbonProcessHICommandEvent:]):
2717 (-[CarbonWindowAdapter sendCarbonUpdateHICommandStatusEvent:withMenuRef:andMenuItemIndex:]):
2718 (-[CarbonWindowAdapter _handleRootBoundsChanged]):
2719 (-[CarbonWindowAdapter _handleContentBoundsChanged]):
2720 (-[CarbonWindowAdapter _handleCarbonEvent:callRef:]):
2721 (NSCarbonWindowHandleEvent):
2722 (-[CarbonWindowAdapter _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]):
2723 (-[CarbonWindowAdapter _growBoxRect]):
2724 * Carbon/HIWebView.mm:
2725 (HIWebViewGetWebView):
2726 (HIWebViewConstructor):
2727 (HIWebViewDestructor):
2728 (HIWebViewRegisterClass):
2734 (CreateNSEventAdoptingCGEvent):
2736 (CreateNSEventWithCarbonClickEvent):
2738 (CreateNSEventWithCarbonEvent):
2740 (CreateNSEventWithCarbonMouseMoveEvent):
2747 (OwningWindowChanged):
2753 (ActiveStateChanged):
2755 (UpdateCommandStatus):
2756 (_NSSelectorForHICommand):
2757 (HIWebViewEventHandler):
2758 (StartUpdateObserver):
2759 (StopUpdateObserver):
2762 2017-09-25 Alex Christensen <achristensen@webkit.org>
2764 Make PolicyAction an encodable enum class
2765 https://bugs.webkit.org/show_bug.cgi?id=177480
2767 Reviewed by Antti Koivisto.
2769 * Plugins/WebPluginContainerCheck.mm:
2770 (-[WebPluginContainerCheck _continueWithPolicy:]):
2771 (-[WebPluginContainerCheck _isForbiddenFileLoad]):
2772 * WebCoreSupport/WebFrameLoaderClient.mm:
2773 (-[WebFramePolicyListener invalidate]):
2774 (-[WebFramePolicyListener ignore]):
2775 (-[WebFramePolicyListener download]):
2776 (-[WebFramePolicyListener use]):
2777 (-[WebFramePolicyListener continue]):
2778 * WebView/WebPolicyDelegate.mm:
2779 (-[WebPolicyDecisionListener use]):
2780 (-[WebPolicyDecisionListener ignore]):
2781 (-[WebPolicyDecisionListener download]):
2783 2017-09-25 Frederik Riedel <riedel@apple.com>
2785 Expose way to set values of classified form controls as {Legacy WebKit, WebKit} SPI
2786 https://bugs.webkit.org/show_bug.cgi?id=174394
2787 <rdar://problem/33183504>
2789 Reviewed by Ryosuke Niwa.
2791 * DOM/DOMHTMLInputElement.h:
2792 * DOM/DOMHTMLInputElement.mm:
2793 (-[DOMHTMLInputElement acceptsAutofilledLoginCredentials]):
2794 Determines if this HTMLInputElement is part of a login screen.
2795 (-[DOMHTMLInputElement representingPageUrl]):
2796 Returns the webpage's URL that is currently displayed in the Web View.
2797 (-[DOMHTMLInputElement insertTextSuggestion:]):
2798 Inserts login credentials into the Web View.
2800 2017-09-25 Sam Weinig <sam@webkit.org>
2802 Remove unused EditorClient functions
2803 https://bugs.webkit.org/show_bug.cgi?id=177463
2805 Reviewed by Alex Christensen.
2807 Remove unused EditorClient functions.
2809 * WebCoreSupport/WebEditorClient.h:
2810 * WebCoreSupport/WebEditorClient.mm:
2811 (WebEditorClient::canonicalizeURL): Deleted.
2812 (WebEditorClient::canonicalizeURLString): Deleted.
2813 (WebEditorClient::writeDataToPasteboard): Deleted.
2814 (WebEditorClient::supportedPasteboardTypesForCurrentSelection): Deleted.
2815 (WebEditorClient::readDataFromPasteboard): Deleted.
2816 (WebEditorClient::pasteboardChangeCount): Deleted.
2818 2017-09-25 Alex Christensen <achristensen@webkit.org>
2820 Stop using PolicyCallback
2821 https://bugs.webkit.org/show_bug.cgi?id=176088
2823 Reviewed by Andy Estes.
2825 * WebCoreSupport/WebFrameLoaderClient.mm:
2826 (-[WebFramePolicyListener invalidate]):
2827 (-[WebFramePolicyListener receivedPolicyDecision:]):
2829 2017-09-25 Sam Weinig <sam@webkit.org>
2831 Remove unnecessary userVisibleString EditorClient function
2832 https://bugs.webkit.org/show_bug.cgi?id=177456
2834 Reviewed by Dan Bernstein.
2836 * WebCoreSupport/WebEditorClient.h:
2837 * WebCoreSupport/WebEditorClient.mm:
2838 (WebEditorClient::userVisibleString): Deleted.
2840 Remove userVisibleString client function.
2842 2017-09-25 Alex Christensen <achristensen@webkit.org>
2844 Separate form submission from PolicyChecker infrastructure
2845 https://bugs.webkit.org/show_bug.cgi?id=177396
2847 Reviewed by Geoffrey Garen.
2849 * WebCoreSupport/WebFrameLoaderClient.h:
2850 * WebCoreSupport/WebFrameLoaderClient.mm:
2851 (WebFrameLoaderClient::dispatchWillSubmitForm):
2853 2017-09-22 Zalan Bujtas <zalan@apple.com>
2855 WeakPtrFactory should populate m_ref lazily.
2856 https://bugs.webkit.org/show_bug.cgi?id=177375
2858 Reviewed by Geoffrey Garen.
2860 * WebCoreSupport/WebEditorClient.mm:
2861 (WebEditorClient::WebEditorClient):
2862 (WebEditorClient::requestCandidatesForSelection):
2864 2017-09-22 Chris Dumez <cdumez@apple.com>
2866 Use high resolution timestamp for event time
2867 https://bugs.webkit.org/show_bug.cgi?id=154246
2868 <rdar://problem/34333304>
2870 Reviewed by Ryosuke Niwa.
2872 Use WallTime / MonotonicTime instead of double type for clarity.
2875 (-[DOMEvent timeStamp]):
2876 * WebView/WebFrame.mm:
2877 (-[WebFrame _dragSourceEndedAt:operation:]):
2878 * WebView/WebPDFView.mm:
2879 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2881 2017-09-21 Ryosuke Niwa <rniwa@webkit.org>
2883 Enable dataTransfer.items on macOS and iOS
2884 https://bugs.webkit.org/show_bug.cgi?id=177335
2886 Reviewed by Sam Weinig.
2888 * WebView/WebPreferences.mm:
2889 (+[WebPreferences initialize]):
2891 2017-09-20 Joseph Pecoraro <pecoraro@apple.com>
2893 Web Inspector: WebView indication highlights sticks around for WebKitLegacy views
2894 https://bugs.webkit.org/show_bug.cgi?id=177101
2895 <rdar://problem/34500648>
2897 Reviewed by Brian Burg.
2899 * WebInspector/WebNodeHighlight.mm:
2900 Ensure we close the window that we have just removed.
2902 2017-09-20 Antti Koivisto <antti@apple.com>
2904 Remove DOM and styling support for CSS Regions
2905 https://bugs.webkit.org/show_bug.cgi?id=177221
2907 Reviewed by Andreas Kling.
2909 * Configurations/FeatureDefines.xcconfig:
2912 * DOM/DOMElement.mm:
2913 (-[DOMElement webkitRegionOverset]): Deleted.
2915 2017-09-19 Alexey Proskuryakov <ap@apple.com>
2917 Layering violation in Editor::createFragment
2918 https://bugs.webkit.org/show_bug.cgi?id=176123
2920 Reviewed by Darin Adler.
2922 * Misc/WebNSURLExtras.h:
2923 * Misc/WebNSURLExtras.mm:
2924 * WebView/WebFrame.mm:
2925 * WebView/WebHTMLView.mm:
2926 Removed multiple copies of webkit-fake-url creation code, switching to URL::fakeURLWithRelativePart().
2928 * WebCoreSupport/WebEditorClient.mm:
2929 (_WebCreateFragment): Added a stub implementation for older OSes. This is needed
2930 because WebKitLegacy.exp is not passed through preprocessor, so there is no sane
2931 way to avoid exporting the symbol just on newer OSes.
2933 2017-09-19 Ryosuke Niwa <rniwa@webkit.org>
2935 On iOS, getData can't get text set by setData during copy event
2936 https://bugs.webkit.org/show_bug.cgi?id=176980
2937 <rdar://problem/34453915>
2939 Reviewed by Darin Adler.
2941 * WebCoreSupport/WebPlatformStrategies.h:
2942 * WebCoreSupport/WebPlatformStrategies.mm:
2943 (WebPlatformStrategies::copy): Deleted.
2945 2017-09-18 Andy Estes <aestes@apple.com>
2947 [Mac] Upstream miscellaneous WebKitSystemInterface functions
2948 https://bugs.webkit.org/show_bug.cgi?id=177029
2950 Reviewed by Alex Christensen.
2952 * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2953 (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
2954 * Plugins/Hosted/NetscapePluginHostProxy.mm:
2955 (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
2956 * WebCoreSupport/PopupMenuMac.mm:
2957 (PopupMenuMac::show):
2958 * WebCoreSupport/WebSystemInterface.mm:
2959 (InitWebCoreSystemInterface):
2960 * WebView/WebHTMLView.mm:
2961 (-[WebHTMLView setDataSource:]):
2962 (-[WebHTMLView attachRootLayer:]):
2963 * WebView/WebView.mm:
2964 (-[WebView _needsAdobeFrameReloadingQuirk]):
2965 (-[WebView _needsLinkElementTextCSSQuirk]):
2966 (-[WebView _needsIsLoadingInAPISenseQuirk]):
2967 (-[WebView _needsFrameLoadDelegateRetainQuirk]):
2968 (-[WebView _preferencesChanged:]):
2970 2017-09-15 Andy Estes <aestes@apple.com>
2972 [Cocoa] Upstream MediaRemote and VideoToolbox WebKitSystemInterface functions
2973 https://bugs.webkit.org/show_bug.cgi?id=176953
2975 Reviewed by Eric Carlson.
2977 * WebCoreSupport/WebSystemInterface.mm:
2978 (InitWebCoreSystemInterface):
2980 2017-09-14 Andy Estes <aestes@apple.com>
2982 [Mac] Upstream SpeechSynthesis-related WebKitSystemInterface functions
2983 https://bugs.webkit.org/show_bug.cgi?id=176931
2985 Reviewed by Joseph Pecoraro.
2987 * WebCoreSupport/WebSystemInterface.mm:
2988 (InitWebCoreSystemInterface):
2990 2017-09-14 Yusuke Suzuki <utatane.tea@gmail.com>
2992 [JSC] Add PrivateSymbolMode::{Include,Exclude} for PropertyNameArray
2993 https://bugs.webkit.org/show_bug.cgi?id=176867
2995 Reviewed by Sam Weinig.
2997 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2998 (WebKit::NetscapePluginInstanceProxy::enumerate):
3000 2017-09-13 Andy Estes <aestes@apple.com>
3002 [CF] Upstream CFNetwork-related WebKitSystemInterface functions
3003 https://bugs.webkit.org/show_bug.cgi?id=176729
3005 Reviewed by Alex Christensen.
3007 * WebCoreSupport/WebSystemInterface.mm:
3008 (InitWebCoreSystemInterface):
3009 * WebView/WebView.mm:
3010 (+[WebView _setCacheModel:]):
3012 2017-09-13 Ryosuke Niwa <rniwa@webkit.org>
3014 Refactor WebContentReader out of EditorMac and EditorIOS
3015 https://bugs.webkit.org/show_bug.cgi?id=176770
3017 Reviewed by Sam Weinig.
3019 * WebCoreSupport/WebEditorClient.mm:
3021 2017-09-12 Ryosuke Niwa <rniwa@webkit.org>
3023 Dragging & dropping a file creates an attachment element even when it's disabled
3024 https://bugs.webkit.org/show_bug.cgi?id=176769
3026 Reviewed by Tim Horton.
3028 * WebView/WebView.mm:
3029 (-[WebView _preferencesChanged:]):
3031 2017-09-11 Wenson Hsieh <wenson_hsieh@apple.com>
3033 [iOS DnD] Support DataTransfer.setDragImage when starting a drag on iOS
3034 https://bugs.webkit.org/show_bug.cgi?id=176721
3035 <rdar://problem/34373660>
3037 Reviewed by Tim Horton.
3039 Rename elementBounds => dragPreviewFrameInRootViewCoordinates. (Note: Unfortunately, _draggedElementBounds in
3040 WebViewPrivate.h can't be renamed yet, due to binary and SDK compatibility with UIKit).
3042 * WebView/WebView.mm:
3043 (-[WebView _startDrag:]):
3044 (-[WebView _draggedElementBounds]):
3045 (-[WebView _endedDataInteraction:global:]):
3046 * WebView/WebViewData.h:
3048 2017-09-11 Andy Estes <aestes@apple.com>
3050 [Mac] Upstream QTKit-related WebKitSystemInterface functions
3051 https://bugs.webkit.org/show_bug.cgi?id=176472
3053 Reviewed by Eric Carlson.
3055 * WebCoreSupport/WebSystemInterface.mm:
3056 (InitWebCoreSystemInterface):
3058 2017-09-09 Mark Lam <mark.lam@apple.com>
3060 Avoid duplicate computations of ExecState::vm().
3061 https://bugs.webkit.org/show_bug.cgi?id=176647
3063 Reviewed by Saam Barati.
3065 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3066 (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3067 (WebKit::NetscapePluginInstanceProxy::construct):
3068 (WebKit::NetscapePluginInstanceProxy::setProperty):
3069 (WebKit::NetscapePluginInstanceProxy::removeProperty):
3070 (WebKit::NetscapePluginInstanceProxy::enumerate):
3071 * Plugins/Hosted/ProxyInstance.mm:
3072 (WebKit::ProxyRuntimeMethod::create):
3074 2017-09-08 Commit Queue <commit-queue@webkit.org>
3076 Unreviewed, rolling out r221773.
3077 https://bugs.webkit.org/show_bug.cgi?id=176614
3079 This caused build failures. (Requested by mlewis13 on
3084 "[Mac] Upstream QTKit-related WebKitSystemInterface functions"
3085 https://bugs.webkit.org/show_bug.cgi?id=176472
3086 http://trac.webkit.org/changeset/221773
3088 2017-09-07 Andy Estes <aestes@apple.com>
3090 [Mac] Upstream QTKit-related WebKitSystemInterface functions
3091 https://bugs.webkit.org/show_bug.cgi?id=176472
3093 Reviewed by Eric Carlson.
3095 * WebCoreSupport/WebSystemInterface.mm:
3096 (InitWebCoreSystemInterface):
3098 2017-09-07 Myles C. Maxfield <mmaxfield@apple.com>
3100 [PAL] Unify PlatformUserPreferredLanguages.h with Language.h
3101 https://bugs.webkit.org/show_bug.cgi?id=176561
3103 Reviewed by Brent Fulgham.
3105 * Misc/WebNSUserDefaultsExtras.mm:
3107 2017-09-07 Alex Christensen <achristensen@webkit.org>
3109 Modernize Geolocation code
3110 https://bugs.webkit.org/show_bug.cgi?id=176496
3112 Reviewed by Andy Estes.
3114 * WebCoreSupport/WebGeolocationClient.h:
3115 * WebCoreSupport/WebGeolocationClient.mm:
3116 (WebGeolocationClient::requestPermission):
3117 (-[WebGeolocationPolicyListener initWithGeolocation:]):
3118 (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]):
3119 (-[WebGeolocationProviderInitializationListener initWithGeolocation:]):
3120 * WebView/WebView.mm:
3121 (-[WebView _commonInitializationWithFrameName:groupName:]):
3122 (-[WebView _geolocationDidFailWithMessage:]):
3124 2017-09-05 Tim Horton <timothy_horton@apple.com>
3126 Remove some unused bits of code and resources
3127 https://bugs.webkit.org/show_bug.cgi?id=176275
3129 Reviewed by Dan Bernstein.
3131 * Misc/WebNSFileManagerExtras.mm:
3132 Include FileSystem instead of FileSystemIOS.
3134 2017-09-03 Darin Adler <darin@apple.com>
3136 [Cocoa] Tidy a few things in legacy WebHTMLView
3137 https://bugs.webkit.org/show_bug.cgi?id=176280
3139 Reviewed by Dan Bernstein.
3141 * WebCoreSupport/WebChromeClient.mm:
3142 (WebChromeClient::attachRootGraphicsLayer): Made this function Mac-only, because the
3143 methods it calls on WebHTMLView were doing nothing on iOS.
3145 * WebView/WebFrame.mm:
3146 (-[WebFrame _paintBehaviorForDestinationContext:]): Changed iOS code so that it no longer
3147 depends on -[WebHTMLView _web_isDrawingIntoLayer], which always returned YES on iOS.
3149 * WebView/WebHTMLView.mm: Define WebEvent on both iOS and Mac so more event handling
3150 code can be shared without #if below. Use #if PLATFORM(MAC) instead of #if !PLATFORM(IOS)
3151 in a lot more places. Move many of the SPI declarations up to the top in alphabetical
3152 order. Removed all sorts of unused things. Made more code and fields Mac-only where
3153 what was compiled was doing nothing on iOS and it makes the resulting code simpler.
3154 Use RetainPtr instead of writing retain/release wherever possible.
3155 (+[WebMenuTarget sharedMenuTarget]): Moved global inside this method and used C++
3156 initialization for it. Removed various unused methods and declarations of methods.
3157 (promisedDataClient): Use NeverDestroyed instead of just doing a "new" on the heap.
3158 (-[WebHTMLView _imageExistsAtPaths:]): Deleted.
3159 (-[WebHTMLView _documentFragmentWithPaths:]): Use RetainPtr and modern for loop.
3160 (+[WebHTMLView _excludedElementsForAttributedStringConversion]): Use C++ initialization,
3161 and remove CFRetain no longer needed since we don't support garbage collection any more.
3162 (uniqueURLWithRelativePart): Simplified using [NSUUID UUID].
3163 (-[WebHTMLView _plainTextFromPasteboard:]): Simplified with RetainPtr.
3164 (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Ditto.
3165 (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Ditto.
3166 (-[WebHTMLView _removeWindowObservers]): Removed code dealing with empty
3167 methods windowWillOrderOnScreen: and windowWillOrderOffScreen:.
3168 (-[WebHTMLView _shouldDeleteRange:]): Deleted. Was unused.
3169 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
3170 Simplified with stringByReplacingOccurrencesOfString and modern string literal syntax.
3171 (-[WebHTMLView _setMouseDownEvent:]): Ditto.
3172 (-[WebHTMLView _web_setPrintingModeRecursive:adjustViewSize:]): Added. Helper method so
3173 the next three methhods can be super-simple. Used RetainPtr and a modern for loop to make
3174 this method simpler than the functions it replaced. Also got rid of the enumeratingSubviews
3175 debug flag; we haven't used it for years and it's not clearly helpful.
3176 (-[WebHTMLView _web_setPrintingModeRecursive]): Turned into a one-liner with the above.
3177 (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
3178 (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
3179 (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]): Moved from the
3180 WebInternal category to the WebHTMLViewFileInternal category so it can be called by
3181 two additional methods in the WebPrivate category and still be called by the two
3182 methods in the WebInternal category that were already using it.
3183 (-[WebHTMLView didAddSubview:]): Deleted.
3184 (-[WebHTMLView _insideAnotherHTMLView]): Deleted.
3185 (-[WebHTMLView _clearLastHitViewIfSelf]): Deleted. Inlined the implementation in the one
3186 place this was called, the close method.
3187 (-[WebHTMLView _setToolTip:]): Simplified with RetainPtr.
3188 (-[WebHTMLView pasteboard:provideDataForType:]): Ditto.
3189 (-[WebHTMLView _autoscroll]): Simplified by making this Mac-only.
3190 (-[WebHTMLView _hasHTMLDocument]): Deleted. The one caller was removed a long time ago.
3191 (-[WebHTMLView _web_documentFragmentFromPasteboard:pasteboardType:imageMIMEType:]):
3192 Added helper method to make the one below simpler.
3193 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
3194 Compared pasteboard type strings using isEqualToString: rather than using == since
3195 we want to actually compare the string contents. Also updated to use modern for loop,
3196 renamed a local variable from "s" to "localSubresources", and factored out the handling
3197 of three image types to use the helper method above.
3198 (-[WebHTMLView _pauseNullEventsForAllNetscapePlugins]): Rewrite using the
3199 _web_makePluginSubviewsPerformSelector:withObject: method.
3200 (-[WebHTMLView _resumeNullEventsForAllNetscapePlugins]): Ditto.
3201 (-[NSView _web_addDescendentWebHTMLViewsToArray:]): Fixed spelling to use the adjective
3202 "descendent" rather than the noun "descendant". Also removed Mac-only optimization to
3203 not call the -[NSView subviews] method to make this identical on both platforms and used
3205 (-[NSMutableDictionary _web_setObjectIfNotNil:forKey:]): Deleted.
3206 (-[WebHTMLView acceptsFirstResponder]): Reduced amount of platform-specific code by
3207 defining WebEventMouseDown as a synonym for NSEventTypeLeftMouseDown on Mac.
3208 (-[WebHTMLView addWindowObservers]): Removed code dealing with empty
3209 methods windowWillOrderOnScreen: and windowWillOrderOffScreen:.
3210 (-[WebHTMLView willRemoveSubview:]): Removed the enumeratingSubviews check.
3211 (-[WebHTMLView drawSingleRect:]): Rearranged this method to make it clearer that most
3213 (-[WebHTMLView windowWillOrderOnScreen:]): Deleted. All the current version of this
3214 method did was call itself on the main thread, and do nothing if called on main thread.
3215 (-[WebHTMLView windowWillOrderOffScreen:]): Deleted. Ditto.
3216 (-[WebHTMLView _isSelectionEvent:]): Merged macOS and iOS versions.
3217 (-[WebHTMLView resignFirstResponder]): Removed iOS-specific code in the macOS-specific
3218 half of this method.
3219 (-[WebHTMLView setDataSource:]): Simplified using RetainPtr.
3220 (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
3221 Simplified using a modern for loop and RetainPtr.
3222 (-[WebHTMLView knowsPageRange:]): Simplified using RetainPtr.
3223 (-[WebHTMLView keyDown:]): Ditto.
3224 (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Ditto.
3225 (-[WebHTMLView performKeyEquivalent:]): Ditto.
3226 (-[WebHTMLView _styleForAttributeChange:]): Ditto.
3227 (-[WebHTMLView complete:]): Ditto.
3228 (-[WebHTMLView _windowChangedKeyState]): Removed iOS-specific code since this method is
3230 (-[WebHTMLView _selectionChanged]): Removed call to _updateSelectionForInputManager on
3231 iOS since that is now macOS-only.
3232 (-[WebHTMLView promisedDragTIFFDataSource]): Deleted.
3233 (-[WebHTMLView _startAutoscrollTimer:]): Moved this into an internal category instead of
3234 a private one because it is not used or needed outside WebKit. Also made it macOS-only
3235 and reorganized to use early return.
3236 (-[WebHTMLView _stopAutoscrollTimer]): Moved into internal category. It remains a no-op
3237 on iOS, but kept there so we don't have to do #if at every call site.
3238 (-[WebHTMLView _pluginController]): Moved into internal category.
3239 (-[WebHTMLView validAttributesForMarkedText]): Simplified by removing CFRetain that was
3240 there only for GC, using C++ initialization, removing obsolete comment.
3241 (-[WebHTMLView _updateSelectionForInputManager]): Made this macOS-only and removed
3242 peculiar iOS-only comment.
3243 (+[NSURL _web_uniqueWebDataURL]): Simplified using [NSUUID UUID].
3245 * WebView/WebHTMLViewInternal.h: Removed unused promisedDragTIFFDataSource method.
3246 Made attachRootLayer:, detachRootLayer, _web_isDrawingIntoLayer,
3247 _web_isDrawingIntoAcceleratedLayer all macOS-only. Moved _startAutoscrollTimer:,
3248 _stopAutoscrollTimer, and _pluginController here from SPI header since they aren't
3249 needed or used as SPI. And made _startAutoscrollTimer macOS-only.
3251 * WebView/WebHTMLViewPrivate.h: Removed unneeded and unused SPI: _insideAnotherHTMLView,
3252 _clearLastHitViewIfSelf, _pluginController, _startAutoscrollTimer:, and _stopAutoscrollTimer.
3253 Made _transparentBackground and _setTransparentBackground: macOS-only. These probably
3254 are not needed on macOS either, but I wasn't able to make absolutely sure I could remove
3257 2017-09-03 Sam Weinig <sam@webkit.org>
3260 https://bugs.webkit.org/show_bug.cgi?id=176288
3262 Reviewed by Yusuke Suzuki.
3264 CanvasProxy does not appear to be in any current HTML spec
3265 and was disabled and unimplemented in our tree. Time to
3268 * Configurations/FeatureDefines.xcconfig:
3270 2017-09-02 Andy Estes <aestes@apple.com>
3272 [CA] Upstream QuartzCore-related WebKitSystemInterface functions
3273 https://bugs.webkit.org/show_bug.cgi?id=176270
3275 Reviewed by Tim Horton.
3277 * Plugins/Hosted/NetscapePluginHostManager.mm:
3278 (WebKit::NetscapePluginHostManager::spawnPluginHost):
3279 * Plugins/Hosted/WebHostedNetscapePluginView.h:
3280 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3281 (WebKit::SoftwareCARenderer::SoftwareCARenderer):
3282 (WebKit::SoftwareCARenderer::~SoftwareCARenderer):
3283 (WebKit::SoftwareCARenderer::context const):
3284 (WebKit::SoftwareCARenderer::renderContext const):
3285 (WebKit::SoftwareCARenderer::render):
3286 (-[WebHostedNetscapePluginView createPlugin]):
3287 (-[WebHostedNetscapePluginView createPluginLayer]):
3288 (-[WebHostedNetscapePluginView destroyPlugin]):
3289 (-[WebHostedNetscapePluginView drawRect:]):
3290 * WebCoreSupport/WebSystemInterface.mm:
3291 (InitWebCoreSystemInterface):
3293 2017-09-01 Andy Estes <aestes@apple.com>
3295 [CG] Upstream CoreGraphics-related WebKitSystemInterface functions
3296 https://bugs.webkit.org/show_bug.cgi?id=176200
3298 Reviewed by Tim Horton.
3300 * Carbon/HIWebView.mm:
3301 (-[NSWindowGraphicsContext _web_setGraphicsPort:]):
3302 (overrideCGContext):
3305 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3306 (+[WebHostedNetscapePluginView initialize]):
3307 * Plugins/WebBaseNetscapePluginView.h:
3308 * Plugins/WebBaseNetscapePluginView.mm:
3309 (WebKit::sendUserChangeNotifications):
3310 * Plugins/WebNetscapePluginView.mm:
3311 (+[WebNetscapePluginView initialize]):
3312 (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
3313 * WebCoreSupport/WebSystemInterface.mm:
3314 (InitWebCoreSystemInterface):
3315 * WebView/WebFrame.mm:
3316 (-[WebFrame _paintBehaviorForDestinationContext:]):
3317 * WebView/WebFullScreenController.mm:
3318 (setClipRectForWindow):
3319 (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
3320 (-[WebFullScreenController finishedExitFullScreenAnimation:]):
3321 (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
3322 (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
3324 2017-08-31 Andy Estes <aestes@apple.com>
3326 [Mac] Upstream AppKit-related WebKitSystemInterface functions
3327 https://bugs.webkit.org/show_bug.cgi?id=176175
3329 Reviewed by Brady Eidson.
3331 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3332 (WebKit::NetscapePluginInstanceProxy::keyEvent):
3333 * Plugins/Hosted/WebTextInputWindowController.m:
3334 (-[WebTextInputPanel init]):
3335 * WebCoreSupport/WebSystemInterface.mm:
3336 (InitWebCoreSystemInterface):
3337 * WebView/WebDynamicScrollBarsView.mm:
3338 (-[WebDynamicScrollBarsView scrollWheel:]):
3339 * WebView/WebHTMLView.mm:
3340 (-[WebHTMLView _removeWindowObservers]):
3341 (-[WebHTMLView addWindowObservers]):
3342 * WebView/WebView.mm:
3343 (-[WebView addWindowObserversForWindow:]):
3344 (-[WebView removeWindowObservers]):
3345 (-[WebView viewWillMoveToWindow:]):
3347 2017-08-31 Alex Christensen <achristensen@webkit.org>
3349 Add ObjC SPI corresponding to WKPageLoaderClient's webGLLoadPolicy and resolveWebGLLoadPolicy
3350 https://bugs.webkit.org/show_bug.cgi?id=175779
3351 <rdar://problem/22367975>
3353 Reviewed by Tim Horton.
3355 * WebCoreSupport/WebFrameLoaderClient.h:
3356 * WebCoreSupport/WebFrameLoaderClient.mm:
3357 (WebFrameLoaderClient::webGLPolicyForURL const):
3358 (WebFrameLoaderClient::resolveWebGLPolicyForURL const):
3360 2017-08-30 Andy Estes <aestes@apple.com>
3362 [Mac] Upstream Accessibility-related WebKitSystemInterface functions
3363 https://bugs.webkit.org/show_bug.cgi?id=176093
3365 Reviewed by Eric Carlson.
3367 * WebCoreSupport/WebSystemInterface.mm:
3368 (InitWebCoreSystemInterface):
3370 2017-08-30 Andy Estes <aestes@apple.com>
3372 [Mac] Upstream Carbon-related WebKitSystemInterface functions
3373 https://bugs.webkit.org/show_bug.cgi?id=176087
3375 Reviewed by Alex Christensen.
3377 * Carbon/CarbonUtils.m:
3378 (getNSAutoreleasePoolCount):
3381 * Carbon/CarbonWindowAdapter.mm:
3382 (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
3383 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
3384 (-[CarbonWindowAdapter _oldPlaceWindow:]):
3385 (-[CarbonWindowAdapter _windowMovedToRect:]):
3386 * Carbon/HIViewAdapter.m:
3387 * Carbon/HIWebView.mm:
3389 (CreateNSEventAdoptingCGEvent):
3391 (CreateNSEventWithCarbonClickEvent):
3393 (CreateNSEventWithCarbonEvent):
3395 (CreateNSEventWithCarbonMouseMoveEvent):
3400 (HIWebViewEventHandler):
3401 * Misc/QuickDrawCompatibility.h: Removed.
3402 * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
3404 (WebNetscapePluginEventHandlerCarbon::keyDown):
3405 (WebNetscapePluginEventHandlerCarbon::keyUp):
3406 * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
3407 (WebNetscapePluginEventHandlerCocoa::keyDown):
3408 * Plugins/WebNetscapePluginView.mm:
3409 (-[WebNetscapePluginView tellQuickTimeToChill]):
3411 2017-08-29 Andy Estes <aestes@apple.com>
3413 [Mac] Upstream WKSetMetadataURL() from WebKitSystemInterface
3414 https://bugs.webkit.org/show_bug.cgi?id=176046
3416 Reviewed by Alex Christensen.
3418 Removed the pthread logic from -_webkit_setMetadataURL:referrer:atPath: and replaced with
3419 WebCore::setMetadataURL(), which uses dispatch_async() for the same purpose as the pthread.
3421 * Misc/WebNSFileManagerExtras.mm:
3422 (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
3423 (setMetaData): Deleted.
3424 * WebCoreSupport/WebSystemInterface.mm:
3425 (InitWebCoreSystemInterface):
3427 2017-08-28 Andy Estes <aestes@apple.com>
3429 [Cocoa] Upstream WKGetWebDefaultCFStringEncoding()
3430 https://bugs.webkit.org/show_bug.cgi?id=176039
3432 Reviewed by Alex Christensen.
3434 * WebCoreSupport/WebSystemInterface.mm:
3435 (InitWebCoreSystemInterface):
3436 * WebView/WebPreferences.mm:
3437 (+[WebPreferences _systemCFStringEncoding]):
3439 2017-08-28 Andy Estes <aestes@apple.com>
3441 [Cocoa] Upstream CFNetwork-related WebKitSystemInterface functions
3442 https://bugs.webkit.org/show_bug.cgi?id=176032
3444 Reviewed by Alex Christensen.
3446 * WebCoreSupport/WebSystemInterface.mm:
3447 (InitWebCoreSystemInterface):
3448 * WebView/WebView.mm:
3449 (-[WebView _cachedResponseForURL:]):
3451 2017-08-28 Brent Fulgham <bfulgham@apple.com>
3453 Disable access to secure cookies if an HTTPS site loads mixed content (Part 2: Header Requests)
3454 https://bugs.webkit.org/show_bug.cgi?id=175992
3455 <rdar://problem/34086613>
3457 Reviewed by Daniel Bates.
3459 * WebCoreSupport/WebPlatformStrategies.h:
3460 * WebCoreSupport/WebPlatformStrategies.mm:
3461 (WebPlatformStrategies::cookieRequestHeaderFieldValue): Modify to accept a flag indicating if secure
3462 cookies should be included, and return a pair containing the resulting cookie string and a boolean
3463 indicating if secure cookies were accessed.
3465 2017-08-27 Wenson Hsieh <wenson_hsieh@apple.com>
3467 Picking an emoji via the emoji dialog (Ctrl+Cmd+Space) fires inconsistent beforeinput events.
3468 https://bugs.webkit.org/show_bug.cgi?id=170955
3469 <rdar://problem/31697653>
3471 Reviewed by Ryosuke Niwa.
3473 Tweak -insertText: to pass TextEventInputAutocompletion to Editor::insertText when inserting text, if existing
3474 text is being replaced.
3476 * WebView/WebHTMLView.mm:
3477 (-[WebHTMLView insertText:]):
3479 2017-08-24 Chris Dumez <cdumez@apple.com>
3481 [Directory Upload] Add basic support for input.webkitdirectory
3482 https://bugs.webkit.org/show_bug.cgi?id=175950
3483 <rdar://problem/33951915>
3485 Reviewed by Geoffrey Garen.