1 2015-10-23 Anders Carlsson <andersca@apple.com>
3 Invoke the context menu delegate callback right before we return the menu
4 https://bugs.webkit.org/show_bug.cgi?id=150521
6 Reviewed by Tim Horton.
8 Move the getCustomMenuFromDefaultItems to WebHTMLView wholesale. This will allow us to get rid of the ContextMenuClient function from WebCore.
10 * WebCoreSupport/WebContextMenuClient.mm:
11 (WebContextMenuClient::getCustomMenuFromDefaultItems):
12 (isPreVersion3Client): Deleted.
13 (isPreInspectElementTagClient): Deleted.
14 (fixMenusToSendToOldClients): Deleted.
15 (fixMenusReceivedFromOldClients): Deleted.
16 * WebView/WebHTMLView.mm:
17 (isPreVersion3Client):
18 (isPreInspectElementTagClient):
19 (fixMenusToSendToOldClients):
20 (fixMenusReceivedFromOldClients):
21 (customMenuFromDefaultItems):
22 (-[WebHTMLView menuForEvent:]):
24 2015-10-23 Anders Carlsson <andersca@apple.com>
26 More context menu simplification
27 https://bugs.webkit.org/show_bug.cgi?id=150519
29 Reviewed by Tim Horton.
31 There's no need to convert the menu items back to ContextMenuItems just so we can check whether its
32 represented object is the sharing service picker. Also, move the check to the second loop.
34 * WebView/WebHTMLView.mm:
35 (-[WebHTMLView menuForEvent:]):
37 2015-10-23 Anders Carlsson <andersca@apple.com>
39 Simplify the WebKitLegacy menu conversion code
40 https://bugs.webkit.org/show_bug.cgi?id=150509
42 Reviewed by Andreas Kling.
44 * WebCoreSupport/WebContextMenuClient.mm:
45 (fixMenusToSendToOldClients):
46 (fixMenusReceivedFromOldClients):
47 (WebContextMenuClient::getCustomMenuFromDefaultItems):
49 2015-10-23 Anders Carlsson <andersca@apple.com>
51 Don't override already existing represented objects on menu items
52 https://bugs.webkit.org/show_bug.cgi?id=150508
54 Reviewed by Tim Horton.
56 This fixes a crash/exception when a client implements webView:contextMenuItemsForElement:defaultMenuItems: and
57 the default menu has a share menu item.
59 * WebCoreSupport/WebContextMenuClient.mm:
60 (WebContextMenuClient::getCustomMenuFromDefaultItems):
62 2015-10-22 Sam Weinig <sam@webkit.org>
64 Navigations on the same host (but with different schemes and ports) should not trigger universal links
65 <rdar://problem/22811325>
66 https://bugs.webkit.org/show_bug.cgi?id=150481
68 Reviewed by Dan Bernstein.
70 * WebCoreSupport/WebFrameLoaderClient.mm:
72 Update the policy for following universal links to only take host into consideration.
74 2015-10-22 Gordon Sheridan <gordon_sheridan@apple.com>
76 Fix build for clang-700.0.59.5 by replacing deprecated calls to convert points between screen and window coordinates for Mac.
77 https://bugs.webkit.org/show_bug.cgi?id=150379
79 Reviewed by Andy Estes.
81 * WebView/WebHTMLView.mm:
82 (-[WebHTMLView characterIndexForPoint:]):
83 Convert point to rect, and replace call to deprecated convertScreenToBase: with convertRectFromScreen:.
85 (-[WebHTMLView firstRectForCharacterRange:]):
86 Replace call to deprecated convertBaseToScreen: with convertRectToScreen:.
88 2015-10-22 Myles C. Maxfield <mmaxfield@apple.com>
90 [Cocoa] Migrate WKSetPatternPhaseInUserSpace() and WKGetUserToBaseCTM() from WKSI
91 https://bugs.webkit.org/show_bug.cgi?id=150460
93 Reviewed by Tim Horton.
95 * WebCoreSupport/WebSystemInterface.mm:
96 (InitWebCoreSystemInterface): Deleted.
98 2015-10-21 Carlos Garcia Campos <cgarcia@igalia.com>
100 NetworkProcess: DNS prefetch happens in the Web Process
101 https://bugs.webkit.org/show_bug.cgi?id=147824
103 Reviewed by Chris Dumez.
105 Implement FrameLoaderClient::prefetchDNS().
107 * WebCoreSupport/WebFrameLoaderClient.h:
108 * WebCoreSupport/WebFrameLoaderClient.mm:
110 2015-10-20 Commit Queue <commit-queue@webkit.org>
112 Unreviewed, rolling out r191370.
113 https://bugs.webkit.org/show_bug.cgi?id=150384
115 Broke iOS 9 build (Requested by ap on #webkit).
119 "Fix build for clang-700.0.59.5 by replacing deprecated calls
120 to convertScreenToBase: with convertRectFromScreen:."
121 https://bugs.webkit.org/show_bug.cgi?id=150379
122 http://trac.webkit.org/changeset/191370
124 2015-10-20 Gordon Sheridan <gordon_sheridan@apple.com>
126 Fix build for clang-700.0.59.5 by replacing deprecated calls to convertScreenToBase: with convertRectFromScreen:.
127 https://bugs.webkit.org/show_bug.cgi?id=150379
129 Reviewed by Simon Fraser.
131 * WebView/WebHTMLView.mm:
132 (-[WebHTMLView characterIndexForPoint:]):
133 Convert point to rect, and call convertRectFromScreen:.
135 (-[WebHTMLView firstRectForCharacterRange:]):
136 Replace convertBaseToScreen: with convertRectToScreen:.
138 2015-10-20 Tim Horton <timothy_horton@apple.com>
140 Try to fix the build by disabling MAC_GESTURE_EVENTS on 10.9 and 10.10
142 * Configurations/FeatureDefines.xcconfig:
144 2015-10-20 Yoav Weiss <yoav@yoav.ws>
146 Rename the PICTURE_SIZES flag to CURRENTSRC
147 https://bugs.webkit.org/show_bug.cgi?id=150275
149 Reviewed by Dean Jackson.
151 * Configurations/FeatureDefines.xcconfig:
153 2015-10-19 Tim Horton <timothy_horton@apple.com>
155 Try to fix the iOS build
157 * Configurations/FeatureDefines.xcconfig:
159 2015-10-19 Tim Horton <timothy_horton@apple.com>
161 Add magnify and rotate gesture event support for Mac
162 https://bugs.webkit.org/show_bug.cgi?id=150179
163 <rdar://problem/8036240>
165 Reviewed by Darin Adler.
167 * Configurations/FeatureDefines.xcconfig:
170 2015-10-17 Myles C. Maxfield <mmaxfield@apple.com>
172 Build fix after r191260
176 * WebView/WebView.mm:
177 (+[WebView initialize]):
179 2015-10-18 Myles C. Maxfield <mmaxfield@apple.com>
181 Stop honoring the user default "WebKitKerningAndLigaturesEnabledByDefault"
182 https://bugs.webkit.org/show_bug.cgi?id=150287
184 Reviewed by Simon Fraser.
186 * WebView/WebView.mm:
187 (+[WebView initialize]): Deleted.
189 2015-10-18 Commit Queue <commit-queue@webkit.org>
191 Unreviewed, rolling out r191250 and r191253.
192 https://bugs.webkit.org/show_bug.cgi?id=150296
194 Broke all the tests on Windows (Requested by ap on #webkit).
198 "Stop honoring the user default
199 "WebKitKerningAndLigaturesEnabledByDefault""
200 https://bugs.webkit.org/show_bug.cgi?id=150287
201 http://trac.webkit.org/changeset/191250
203 "Build fix after r191250"
204 http://trac.webkit.org/changeset/191253
206 2015-10-17 Myles C. Maxfield <mmaxfield@apple.com>
208 Build fix after r191250
212 * WebView/WebView.mm:
213 (+[WebView initialize]):
215 2015-10-17 Myles C. Maxfield <mmaxfield@apple.com>
217 Stop honoring the user default "WebKitKerningAndLigaturesEnabledByDefault"
218 https://bugs.webkit.org/show_bug.cgi?id=150287
220 Reviewed by Simon Fraser.
222 * WebView/WebView.mm:
223 (+[WebView initialize]): Deleted.
225 2015-10-16 Anders Carlsson <andersca@apple.com>
227 WebEditingDelegate should be a formal protocol
228 https://bugs.webkit.org/show_bug.cgi?id=150254
229 <rdar://problem/23149847>
231 Reviewed by Dan Bernstein.
233 * WebView/WebEditingDelegate.h:
234 Move all the delegate methods inside the protocol declaration. Also make the header self-contained.
237 Change the type of the editing delegate and make it assign.
239 2015-10-15 Myles C. Maxfield <mmaxfield@apple.com>
241 Migrate to CGContextSetBaseCTM() and CGContextResetClip() from WKSI
242 https://bugs.webkit.org/show_bug.cgi?id=150155
244 Reviewed by Tim Horton.
246 * WebCoreSupport/WebSystemInterface.mm:
247 (InitWebCoreSystemInterface): Deleted.
248 * WebView/WebView.mm:
249 (-[WebView _setBaseCTM:forContext:]):
251 2015-10-15 Dan Bernstein <mitz@apple.com>
253 [Cocoa] Stop using WKSetNSURLConnectionDefersCallbacks
254 https://bugs.webkit.org/show_bug.cgi?id=150189
256 Reviewed by Anders Carlsson.
258 * WebCoreSupport/WebSystemInterface.mm:
259 (InitWebCoreSystemInterface): Removed initialization.
261 2015-10-14 Zhuo Li <zachli@apple.com>
263 Augment <input type=search>’s recent search history with the time each entry was added,
264 in order to allow time-based clearing of search history.
265 https://bugs.webkit.org/show_bug.cgi?id=148388.
267 Reviewed by Darin Adler.
269 Replace Vector<String> with Vector<RecentSearch>, where RecentSearch is a struct
270 that consists search string and time, for recent searches in order to store additional time information.
272 All these new RecentSearches are stored in a plist in which the structure looks like:
277 { "searchString": searchString, "date": date },
284 * WebCoreSupport/SearchPopupMenuMac.h:
285 * WebCoreSupport/SearchPopupMenuMac.mm:
286 (SearchPopupMenuMac::saveRecentSearches): Call saveRecentSearches in WebCore::SearchPopupMenuCocoa.
287 (SearchPopupMenuMac::loadRecentSearches): Call loadRecentSearches in WebCore::SearchPopupMenuCocoa.
288 (autosaveKey): Deleted.
290 2015-10-13 Myles C. Maxfield <mmaxfield@apple.com>
292 Split TypesettingFeatures into kerning and ligatures bools
293 https://bugs.webkit.org/show_bug.cgi?id=150074
295 Reviewed by Simon Fraser.
297 * WebView/WebView.mm:
298 (+[WebView initialize]):
300 2015-10-13 Chris Dumez <cdumez@apple.com>
302 Avoid useless copies in range-loops that are using 'auto'
303 https://bugs.webkit.org/show_bug.cgi?id=150091
305 Reviewed by Sam Weinig.
307 Avoid useless copies in range-loops that are using 'auto'. Also use
308 'auto*' instead of 'auto' when range values are pointers for clarity.
310 * WebView/WebFrame.mm:
311 (-[WebFrame getDictationResultRanges:andMetadatas:]):
313 2015-10-09 Anders Carlsson <andersca@apple.com>
315 Don't allow plug-ins to override image types for <embed> elements
316 https://bugs.webkit.org/show_bug.cgi?id=149979
318 Reviewed by Tim Horton.
320 * WebCoreSupport/WebFrameLoaderClient.h:
321 * WebCoreSupport/WebFrameLoaderClient.mm:
322 (WebFrameLoaderClient::objectContentType):
324 2015-10-10 Dan Bernstein <mitz@apple.com>
326 [iOS] Remove unnecessary iOS version checks
327 https://bugs.webkit.org/show_bug.cgi?id=150002
329 Reviewed by Alexey Proskuryakov.
331 * Plugins/WebPluginController.h:
332 * Plugins/WebPluginController.mm:
333 (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
334 (+[WebPluginController addPlugInView:]):
335 (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]): Deleted.
336 * WebCoreSupport/WebFrameLoaderClient.mm:
338 * WebView/WebPreferences.mm:
339 (-[WebPreferences isDNSPrefetchingEnabled]):
340 (-[WebPreferences setWebInspectorServerEnabled:]): Deleted.
341 (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]): Deleted.
342 * WebView/WebPreferencesPrivate.h:
343 * WebView/WebView.mm:
344 (shouldAllowPictureInPictureMediaPlayback):
346 2015-10-10 Dan Bernstein <mitz@apple.com>
348 [iOS] Remove project support for iOS 8
349 https://bugs.webkit.org/show_bug.cgi?id=149993
351 Reviewed by Alexey Proskuryakov.
353 * Configurations/WebKitLegacy.xcconfig:
355 2015-10-06 Daniel Bates <dbates@webkit.org>
357 Enable XSLT when building WebKit for iOS using the public iOS SDK
358 https://bugs.webkit.org/show_bug.cgi?id=149827
360 Reviewed by Alexey Proskuryakov.
362 * Configurations/FeatureDefines.xcconfig:
364 2015-10-06 Alex Christensen <achristensen@webkit.org>
366 Report error when main resource is blocked by content blocker
367 https://bugs.webkit.org/show_bug.cgi?id=149719
368 rdar://problem/21970595
370 Reviewed by Brady Eidson.
372 * WebCoreSupport/WebFrameLoaderClient.h:
373 * WebCoreSupport/WebFrameLoaderClient.mm:
374 (WebFrameLoaderClient::blockedError):
375 (WebFrameLoaderClient::blockedByContentBlockerError):
376 (WebFrameLoaderClient::cannotShowURLError):
377 Add blockedByContentBlockerError so WebFrameLoaderClient is not an abstract class,
378 but it should be unused because content blockers are not enabled on WK1.
380 2015-10-05 Daniel Bates <dabates@apple.com>
382 DumpRenderTree built with public iOS SDK crashes under -[WebPreferences(WebPrivate) _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]
383 https://bugs.webkit.org/show_bug.cgi?id=149766
385 Reviewed by Alexey Proskuryakov.
387 Assert that we have a non-null pointer to a cookie storage.
389 * WebView/WebPreferences.mm:
390 (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
392 2015-10-05 Andreas Kling <akling@apple.com>
394 Remove unused HistoryItem::targetItem()
395 <https://webkit.org/b/149803>
397 Reviewed by Anders Carlsson.
399 Remove the only (unused) client of HistoryItem::targetItem().
401 * History/WebHistoryItem.mm:
402 * History/WebHistoryItemPrivate.h:
404 2015-10-05 Andreas Kling <akling@apple.com>
406 Remove unused HistoryItem::parent
407 <https://webkit.org/b/149803>
409 Reviewed by Anders Carlsson.
411 Remove the only (unused) client of HistoryItem's with-parent constructor.
413 * History/WebHistoryItem.mm:
414 (-[WebHistoryItem initWithURL:target:parent:title:]): Deleted.
415 * History/WebHistoryItemInternal.h:
417 2015-09-30 Timothy Horton <timothy_horton@apple.com>
419 Compute document marker rects at use time instead of paint time
420 https://bugs.webkit.org/show_bug.cgi?id=149643
422 Reviewed by Darin Adler.
424 * WebView/WebHTMLView.mm:
425 (-[WebHTMLView rectsForTextMatches]):
427 2015-09-16 Carlos Garcia Campos <cgarcia@igalia.com>
429 printing does not use minimum page zoom factor
430 https://bugs.webkit.org/show_bug.cgi?id=108507
432 Reviewed by Darin Adler.
434 Pass a the frame as a reference instead of using pointers.
436 * Misc/WebCoreStatistics.mm:
437 (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
438 (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
440 2015-09-25 Eric Carlson <eric.carlson@apple.com>
442 Clean up user media request internal API
443 https://bugs.webkit.org/show_bug.cgi?id=149527
445 Reviewed by Tim Horton.
447 * WebCoreSupport/WebUserMediaClient.mm:
448 (WebUserMediaClient::cancelRequest): Put UserMediaRequestsMap in a local instead or calling
449 userMediaRequestsMap() three times.
450 (-[WebUserMediaPolicyListener allow]): Get rid of unneeded local variables.
451 (-[WebUserMediaPolicyListener allowDeviceWithVideoUID]): Deleted, unused.
453 2015-09-22 Andy Estes <aestes@apple.com>
455 Disable QuickLook on tvOS
456 https://bugs.webkit.org/show_bug.cgi?id=149492
457 <rdar://problem/22741586>
459 Reviewed by Dan Bernstein.
461 We can't use USE(QUICK_LOOK) in a Private header, and postprocess-headers.sh doesn't know how to strip things
462 that aren't feature flags. So, if QuickLook is disabled, we'll just always define WebQuickLookFileNameKey and
463 WebQuickLookUTIKey, and we'll also define -quickLookContentForURL: but have it return nil.
465 * WebView/WebView.mm:
466 (-[WebView quickLookContentForURL:]):
468 2015-09-22 Tim Horton <timothy_horton@apple.com>
470 Make it more obvious when using an unaccelerated image buffer, and fix a few callers who do
471 https://bugs.webkit.org/show_bug.cgi?id=149428
473 Reviewed by Simon Fraser and Darin Adler.
475 * WebCoreSupport/WebContextMenuClient.mm:
476 (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
478 2015-09-21 Alexey Proskuryakov <ap@apple.com>
480 REGRESSION (r182648): UIWebView does not set location.hash synchronously
481 https://bugs.webkit.org/show_bug.cgi?id=149415
482 <rdar://problem/22169467>
484 Reviewed by Darin Adler.
486 The problem was that the delegate in UI thread became asynchronous due to calling
489 * WebCoreSupport/WebFrameLoaderClient.mm: (shouldTryAppLink): Don't attempt app
490 links for same domain navigations. This check is part of substantially more complicated
491 logic in WebKit2 that I don't understand, but that should be enough to demonstrate
492 that this fix is an improvement at least.
494 2015-09-20 Youenn Fablet <youenn.fablet@crf.canon.fr>
496 Remove XHR_TIMEOUT compilation guard
497 https://bugs.webkit.org/show_bug.cgi?id=149260
499 Reviewed by Benjamin Poulain.
501 * Configurations/FeatureDefines.xcconfig:
503 2015-09-18 Commit Queue <commit-queue@webkit.org>
505 Unreviewed, rolling out r189908.
506 https://bugs.webkit.org/show_bug.cgi?id=149368
508 Broke run-webkit-tests --pixel (Requested by ap on #webkit).
512 "printing does not use minimum page zoom factor"
513 https://bugs.webkit.org/show_bug.cgi?id=108507
514 http://trac.webkit.org/changeset/189908
516 2015-09-17 Brian Burg <bburg@apple.com>
518 ASSERT(!m_frontendRouter->hasLocalFrontend()) when running Web Inspector tests
519 https://bugs.webkit.org/show_bug.cgi?id=149006
521 Reviewed by Joseph Pecoraro.
523 WK1 WebInspectorClient was connecting to the wrong controllers. Fix this, and
524 remove extra code paths for closing the frontend.
526 * WebCoreSupport/WebInspectorClient.h:
527 * WebCoreSupport/WebInspectorClient.mm:
528 (-[WebInspectorWindowController destroyInspectorView]):
530 Disconnect the FrontendClient from the frontend page's inspector controller.
531 Do this teardown before releasing the frontend, otherwise we can't use it.
533 (WebInspectorClient::inspectedPageDestroyed): Deleted.
534 (WebInspectorClient::closeLocalFrontend): Deleted.
535 (WebInspectorFrontendClient::disconnectFromBackend): Deleted.
536 * WebInspector/WebInspector.mm:
537 (-[WebInspector inspectedWebViewClosed]):
539 Make sure to close ourself if the inspected page closes.
541 (-[WebInspector close:]):
543 Go through the frontend instead of InspectorController.
545 * WebInspector/WebInspectorFrontend.h:
546 * WebInspector/WebInspectorFrontend.mm:
547 (-[WebInspectorFrontend close]):
549 2015-09-16 Carlos Garcia Campos <cgarcia@igalia.com>
551 printing does not use minimum page zoom factor
552 https://bugs.webkit.org/show_bug.cgi?id=108507
554 Reviewed by Darin Adler.
556 Pass a the frame as a reference instead of using pointers.
558 * Misc/WebCoreStatistics.mm:
559 (-[WebFrame numberOfPagesWithPageWidth:pageHeight:]):
560 (-[WebFrame printToCGContext:pageWidth:pageHeight:]):
562 2015-09-16 Brady Eidson <beidson@apple.com>
564 Have window.indexedDB.deleteDatabase return an IDBOpenDBRequest.
565 https://bugs.webkit.org/show_bug.cgi?id=149229
567 Reviewed by Alex Christensen.
569 * WebView/WebView.mm:
570 (-[WebView _preferencesChanged:]): Enable IDB in WK1.
572 2015-09-15 Ryosuke Niwa <rniwa@webkit.org>
574 Add ShadowRoot interface and Element.prototype.attachShadow
575 https://bugs.webkit.org/show_bug.cgi?id=149187
577 Reviewed by Antti Koivisto.
579 * Configurations/FeatureDefines.xcconfig:
581 2015-09-14 Alex Christensen <achristensen@webkit.org>
583 Progress towards CMake on Mac.
584 https://bugs.webkit.org/show_bug.cgi?id=149123
586 Reviewed by Chris Dumez.
588 * WebView/WebPDFDocumentExtras.mm:
589 (appendValuesInPDFNameSubtreeToVector):
590 * WebView/WebPDFView.mm:
591 Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks.
593 2015-09-12 Brian Burg <bburg@apple.com>
595 Web Inspector: disambiguate inspected/frontend controllers and pages in backend code
596 https://bugs.webkit.org/show_bug.cgi?id=149071
598 Reviewed by Joseph Pecoraro.
600 Be consistent about prefixing pages, inspector controllers, and window controllers
601 with either "frontend" or "inspected", as appropriate. This change makes obvious some bugs
602 in the frontend connection code, which are tracked by https://webkit.org/b/149006.
604 * WebCoreSupport/WebInspectorClient.h:
605 * WebCoreSupport/WebInspectorClient.mm:
606 (WebInspectorClient::WebInspectorClient): Renamed.
607 (WebInspectorClient::inspectedPageDestroyed): Renamed.
608 (WebInspectorClient::openLocalFrontend): Renamed.
609 (WebInspectorClient::closeLocalFrontend): Renamed.
610 (WebInspectorClient::didSetSearchingForNode):
611 (WebInspectorFrontendClient::WebInspectorFrontendClient):
612 (WebInspectorFrontendClient::attachAvailabilityChanged):
613 (WebInspectorFrontendClient::canAttach):
614 (WebInspectorFrontendClient::frontendLoaded):
615 (WebInspectorFrontendClient::startWindowDrag):
616 (WebInspectorFrontendClient::bringToFront):
617 (WebInspectorFrontendClient::closeWindow):
618 (WebInspectorFrontendClient::disconnectFromBackend):
619 (WebInspectorFrontendClient::attachWindow):
620 (WebInspectorFrontendClient::detachWindow):
621 (WebInspectorFrontendClient::setAttachedWindowHeight):
622 (WebInspectorFrontendClient::setToolbarHeight):
623 (WebInspectorFrontendClient::updateWindowTitle):
624 (WebInspectorFrontendClient::save):
625 (WebInspectorFrontendClient::append):
626 (-[WebInspectorWindowController init]):
627 (-[WebInspectorWindowController initWithInspectedWebView:isUnderTest:]):
628 (-[WebInspectorWindowController dealloc]):
629 (-[WebInspectorWindowController frontendWebView]):
630 (-[WebInspectorWindowController close]):
631 (-[WebInspectorWindowController showWindow:]):
632 (-[WebInspectorWindowController setAttachedWindowHeight:]):
633 (-[WebInspectorWindowController destroyInspectorView]):
634 (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
635 (WebInspectorClient::inspectorDestroyed): Deleted.
636 (WebInspectorClient::openInspectorFrontend): Deleted.
637 (WebInspectorClient::closeInspectorFrontend): Deleted.
638 (-[WebInspectorWindowController webView]): Deleted.
639 * WebInspector/WebInspector.h:
640 * WebInspector/WebInspector.mm:
641 (-[WebInspector initWithInspectedWebView:]): Renamed.
642 (-[WebInspector inspectedWebViewClosed]): Renamed.
643 (-[WebInspector showWindow]):
644 (-[WebInspector close:]):
645 (-[WebInspector evaluateInFrontend:script:]):
646 (-[WebInspector releaseFrontend]):
647 (-[WebInspector initWithWebView:]): Deleted.
648 (-[WebInspector webViewClosed]): Deleted.
649 * WebView/WebView.mm:
651 (-[WebView inspector]):
653 2015-09-10 Chris Dumez <cdumez@apple.com>
655 Node.appendChild(null) / replaceChild(null, null) / removeChild(null) / insertBefore(null, ref) should throw a TypeError
656 https://bugs.webkit.org/show_bug.cgi?id=148971
657 <rdar://problem/22560883>
658 <rdar://problem/22559225>
660 Reviewed by Ryosuke Niwa.
662 ContainerNode::appendChild() now takes a Ref<Node>&& parameter so we
663 need to update the call site.
665 * WebView/WebFrame.mm:
666 (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
668 2015-09-07 Andy Estes <aestes@apple.com>
670 [Mac] DebugRelease builds should link against libWebKitSystemInterfaceElCapitan.a on 10.11
671 https://bugs.webkit.org/show_bug.cgi?id=148946
672 <rdar://problem/22603981>
674 Reviewed by Dan Bernstein.
676 * Configurations/DebugRelease.xcconfig:
678 2015-09-04 Brian Burg <bburg@apple.com>
680 Web Inspector: agents should send messages through FrontendRouter instead of FrontendChannel
681 https://bugs.webkit.org/show_bug.cgi?id=148492
683 Reviewed by Joseph Pecoraro.
685 * WebCoreSupport/WebInspectorClient.h: Clean up the forward declarations, don't use InspectorForwarding.h.
686 * WebCoreSupport/WebInspectorClient.mm:
687 (WebInspectorClient::openInspectorFrontend):
689 2015-09-04 Csaba Osztrogonác <ossy@webkit.org>
691 Remove unnecessary compiler guards from mm files
692 https://bugs.webkit.org/show_bug.cgi?id=148797
694 Reviewed by Dan Bernstein.
696 * Plugins/WebBasePluginPackage.mm:
697 * Plugins/WebNetscapePluginPackage.mm:
699 2015-09-04 Brian Burg <bburg@apple.com>
701 Web Inspector: InspectorController should support multiple frontend channels
702 https://bugs.webkit.org/show_bug.cgi?id=148538
704 Reviewed by Joseph Pecoraro.
706 Remove the notifyInspectorController flag from closeWindow. Since InspectorClients
707 must now manually disconnect their FrontendChannel(s), we should always
708 perform the teardown that was guarded by this flag.
710 * WebCoreSupport/WebInspectorClient.h:
711 * WebCoreSupport/WebInspectorClient.mm:
712 (WebInspectorClient::bringFrontendToFront): Add a missing assertion.
713 (WebInspectorFrontendClient::closeWindow):
714 (WebInspectorFrontendClient::disconnectFromBackend):
715 (-[WebInspectorWindowController windowShouldClose:]):
716 (-[WebInspectorWindowController destroyInspectorView]): Always clear the frontend client.
717 (-[WebInspectorWindowController destroyInspectorView:]): Renamed to above.
719 2015-09-03 Commit Queue <commit-queue@webkit.org>
721 Unreviewed, rolling out r189338.
722 https://bugs.webkit.org/show_bug.cgi?id=148785
724 Caused tons of crashes (Requested by cdumez on #webkit).
728 "Web Inspector: InspectorController should support multiple
730 https://bugs.webkit.org/show_bug.cgi?id=148538
731 http://trac.webkit.org/changeset/189338
733 2015-09-03 Brian Burg <bburg@apple.com>
735 Web Inspector: InspectorController should support multiple frontend channels
736 https://bugs.webkit.org/show_bug.cgi?id=148538
738 Reviewed by Joseph Pecoraro.
740 Remove the notifyInspectorController flag from closeWindow. Since InspectorClients
741 must now manually disconnect their FrontendChannel(s), we should always
742 perform the teardown that was guarded by this flag.
744 * WebCoreSupport/WebInspectorClient.h:
745 * WebCoreSupport/WebInspectorClient.mm:
746 (WebInspectorClient::bringFrontendToFront): Add a missing assertion.
747 (WebInspectorFrontendClient::closeWindow):
748 (WebInspectorFrontendClient::disconnectFromBackend):
749 (-[WebInspectorWindowController windowShouldClose:]):
750 (-[WebInspectorWindowController destroyInspectorView]): Always clear the frontend client.
751 (-[WebInspectorWindowController destroyInspectorView:]): Renamed to above.
753 2015-08-26 Andy Estes <aestes@apple.com>
755 [Content Filtering] Determine navigation and content policy before continuing to filter a load
756 https://bugs.webkit.org/show_bug.cgi?id=148506
758 Reviewed by Brady Eidson.
760 Deleted parts of r188486 and r188851.
762 * WebCoreSupport/WebFrameLoaderClient.h:
763 * WebCoreSupport/WebFrameLoaderClient.mm:
764 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
765 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
767 2015-08-31 Chris Dumez <cdumez@apple.com>
769 Range.detach() / NodeIterator.detach() should be no-ops as per the latest DOM specification
770 https://bugs.webkit.org/show_bug.cgi?id=148454
772 Reviewed by Ryosuke Niwa.
774 Update Range API call sites to reflect changes.
776 * WebView/WebImmediateActionController.mm:
777 (dictionaryPopupInfoForRange):
779 2015-08-28 Myles C. Maxfield <mmaxfield@apple.com>
781 Migrate GraphicsContexts from pointers to references
782 https://bugs.webkit.org/show_bug.cgi?id=148561
784 Reviewed by Tim Horton.
786 * Misc/WebKitNSStringExtras.mm:
787 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
788 * WebCoreSupport/WebContextMenuClient.mm:
789 (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
790 * WebView/WebFrame.mm:
791 (-[WebFrame _drawRect:contentsOnly:]):
793 2015-08-28 Eric Carlson <eric.carlson@apple.com>
795 [Mac] Restructure WebMediaSessionManager for testing
796 https://bugs.webkit.org/show_bug.cgi?id=148593
798 Reviewed by Jer Noble.
800 * WebView/WebMediaPlaybackTargetPicker.mm:
801 (WebMediaPlaybackTargetPicker::addPlaybackTargetPickerClient): Call WebMediaSessionManager::singleton,
802 not WebMediaSessionManagerMac::singleton.
803 (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient): Ditto.
804 (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker): Ditto.
805 (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange): Ditto.
806 (WebMediaPlaybackTargetPicker::setPlaybackTarget): Ditto.
807 (WebMediaPlaybackTargetPicker::invalidate): Ditto.
809 2015-08-28 Jer Noble <jer.noble@apple.com>
811 [iOS] Add WebKit/WebKit2 settings to control automatic data loading
812 https://bugs.webkit.org/show_bug.cgi?id=148579
814 Reviewed by Anders Carlsson.
816 Add a WebPreference to allow clients to control whether media is allowed to load automatically.
817 Remove the (now unnecessary) WebFrame property to do the same.
819 * WebView/WebFrame.mm:
820 (-[WebFrame mediaDataLoadsAutomatically]): Deleted.
821 (-[WebFrame setMediaDataLoadsAutomatically:]): Deleted.
822 * WebView/WebFramePrivate.h:
823 * WebView/WebPreferenceKeysPrivate.h:
824 * WebView/WebPreferences.mm:
825 (+[WebPreferences initialize]):
826 (-[WebPreferences mediaDataLoadsAutomatically]):
827 (-[WebPreferences setMediaDataLoadsAutomatically:]):
828 * WebView/WebPreferencesPrivate.h:
829 * WebView/WebView.mm:
830 (-[WebView _preferencesChanged:]):
832 2015-08-28 Beth Dakin <bdakin@apple.com>
834 Crash in WK1 when clicking on a PDF inside an iframe
835 https://bugs.webkit.org/show_bug.cgi?id=148585
837 rdar://problem/22165194
839 Reviewed by Tim Horton.
841 Only handle WebHTMLViews.
842 * WebView/WebImmediateActionController.mm:
843 (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
844 (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
846 2015-08-28 Jer Noble <jer.noble@apple.com>
848 [iOS] Make the AllowsInlineMediaPlayback preference work in WebKit / WebKit2.
849 https://bugs.webkit.org/show_bug.cgi?id=147512
851 Reviewed by Anders Carlsson.
853 Add a new preference, inlineMediaPlaybackRequiresPlaysInlineAttribute, which defaults to
854 NO on iPad and YES on iPhone and iPod.
856 * WebView/WebPreferenceKeysPrivate.h:
857 * WebView/WebPreferences.mm:
858 (+[WebPreferences initialize]): Default the value of WebKitAllowsInlineMediaPlaybackPreferenceKey to
859 YES on iPad and NO on iPhone and iPod.
860 (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]):
861 (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]):
862 * WebView/WebPreferencesPrivate.h:
863 * WebView/WebView.mm:
864 (-[WebView _preferencesChanged:]):
866 2015-08-28 Timothy Horton <timothy_horton@apple.com>
868 [Mac] Right-clicking on GIFs spins the UI process for a while
869 https://bugs.webkit.org/show_bug.cgi?id=148566
870 <rdar://problem/22460854>
872 Reviewed by Brady Eidson.
874 * WebCoreSupport/WebContextMenuClient.mm:
875 (WebContextMenuClient::shareMenuItem):
876 Make an NSImage directly from the hit image if possible.
878 2015-08-27 Timothy Horton <timothy_horton@apple.com>
880 Factor out Lookup invocation
881 https://bugs.webkit.org/show_bug.cgi?id=148509
883 Reviewed by Anders Carlsson.
885 * WebView/DictionaryPopupInfo.h: Removed.
888 * WebView/WebHTMLView.mm:
889 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
890 DictionaryPopupInfo keeps a TextIndicatorData, not a TextIndicator.
892 * WebView/WebImmediateActionController.mm:
893 (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
894 (dictionaryPopupInfoForRange):
895 (-[WebImmediateActionController _animationControllerForText]):
896 * WebView/WebView.mm:
897 (-[WebView _prepareForDictionaryLookup]):
898 (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
899 (-[WebView _setTextIndicator:withLifetime:]):
900 (-[WebView _showDictionaryLookupPopup:]):
901 * WebView/WebViewInternal.h:
902 Move a bunch of code to WebCore.
903 Factor some that has to stay out into _prepareForDictionaryLookup.
905 2015-08-27 Brian Burg <bburg@apple.com>
907 Web Inspector: FrontendChannel should know its own connection type
908 https://bugs.webkit.org/show_bug.cgi?id=148482
910 Reviewed by Joseph Pecoraro.
912 * WebCoreSupport/WebInspectorClient.h: add connectionType().
914 2015-08-26 Beth Dakin <bdakin@apple.com>
916 REGRESSION: Safari navigates after a cancelled force click
917 https://bugs.webkit.org/show_bug.cgi?id=148491
919 rdar://problem/22394323
921 Reviewed by Tim Horton.
923 Use the current stage to determine which type of cancel this is.
924 * WebView/WebImmediateActionController.mm:
925 (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
927 2015-08-26 Tim Horton <timothy_horton@apple.com>
929 Layout Test platform/mac/fast/events/content-inset-hit-testing-in-frame.html is flaky
930 https://bugs.webkit.org/show_bug.cgi?id=148409
932 Reviewed by Beth Dakin.
934 * WebView/WebDynamicScrollBarsView.mm:
935 (-[WebDynamicScrollBarsView setContentInsets:]):
936 Explicitly force our NSScrollView to lay out after updating
937 content insets. We depend on this happening synchronously (specifically,
938 we need our frame/bounds change callbacks to fire), because the layout
939 which will happen subsequently needs up-to-date information in order to
940 correctly a) enable scrollbars and then b) update the scroll position.
942 2015-08-23 Andy Estes <aestes@apple.com>
944 [Content Filtering] REGRESSION (r182356): Provisional URL is incorrect in didReceiveServerRedirectForProvisionalLoadForFrame when Content Filtering is enabled
945 https://bugs.webkit.org/show_bug.cgi?id=147872
946 rdar://problem/22044000
948 Reviewed by Dan Bernstein.
950 * WebCoreSupport/WebFrameLoaderClient.h:
951 * WebCoreSupport/WebFrameLoaderClient.mm:
952 (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Set provisionalURL using the URL argument.
954 2015-08-23 Geoffrey Garen <ggaren@apple.com>
956 Unreviewed, rolling back in r188803.
958 "Debugger's VM should never be null"
959 https://bugs.webkit.org/show_bug.cgi?id=148341
960 http://trac.webkit.org/changeset/188803
962 * WebView/WebScriptDebugger.mm:
964 (WebScriptDebugger::WebScriptDebugger):
966 2015-08-21 Commit Queue <commit-queue@webkit.org>
968 Unreviewed, rolling out r188792 and r188803.
969 https://bugs.webkit.org/show_bug.cgi?id=148347
971 broke lots of tests, ggaren is going to investigate and reland
972 (Requested by thorton on #webkit).
976 "Unify code paths for manually deleting all code"
977 https://bugs.webkit.org/show_bug.cgi?id=148280
978 http://trac.webkit.org/changeset/188792
980 "Debugger's VM should never be null"
981 https://bugs.webkit.org/show_bug.cgi?id=148341
982 http://trac.webkit.org/changeset/188803
984 2015-08-21 Chris Dumez <cdumez@apple.com>
986 document.getElementsByTagName should return an HTMLCollection
987 https://bugs.webkit.org/show_bug.cgi?id=110611
989 Reviewed by Darin Adler.
991 * WebView/WebFrame.mm:
992 (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
993 Use .ptr() as createFragmentFromMarkup() now returns a
994 Ref<> instead of a RefPtr<>.
996 2015-08-21 Anders Carlsson <andersca@apple.com>
998 Get rid of uses of the old callOnMainThread function that takes a function ptr + context
999 https://bugs.webkit.org/show_bug.cgi?id=148324
1001 Reviewed by Tim Horton.
1003 * Storage/WebDatabaseManagerClient.mm:
1004 (DidModifyOriginData::dispatchToMainThread):
1005 (DidModifyOriginData::dispatchDidModifyOriginOnMainThread): Deleted.
1006 * Storage/WebStorageTrackerClient.h:
1007 * Storage/WebStorageTrackerClient.mm:
1008 (WebStorageTrackerClient::dispatchDidModifyOrigin):
1009 (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread): Deleted.
1011 2015-08-19 Eric Carlson <eric.carlson@apple.com>
1013 Remove ENABLE_WEBVTT_REGIONS
1014 https://bugs.webkit.org/show_bug.cgi?id=148184
1016 Reviewed by Jer Noble.
1018 * Configurations/FeatureDefines.xcconfig: Remove ENABLE_WEBVTT_REGIONS.
1020 2015-08-17 Filip Pizlo <fpizlo@apple.com>
1022 Replace all remaining uses of WTF::Mutex with WTF::Lock
1023 https://bugs.webkit.org/show_bug.cgi?id=148089
1025 Reviewed by Geoffrey Garen.
1027 * Storage/WebDatabaseManager.mm:
1028 (transactionBackgroundTaskIdentifierLock):
1029 (+[WebDatabaseManager startBackgroundTask]):
1030 (+[WebDatabaseManager endBackgroundTask]):
1031 * WebView/WebView.mm:
1032 (-[WebView _synchronizeCustomFixedPositionLayoutRect]):
1033 (-[WebView _setCustomFixedPositionLayoutRectInWebThread:synchronize:]):
1034 (-[WebView _setCustomFixedPositionLayoutRect:]):
1035 (-[WebView _fetchCustomFixedPositionLayoutRect:]):
1036 * WebView/WebViewData.h:
1038 2015-08-17 Jeff Miller <jeffm@apple.com>
1040 Add a method to WebInspector to indicate whether the inspector is open
1041 https://bugs.webkit.org/show_bug.cgi?id=148087
1043 Reviewed by Joseph Pecoraro.
1045 * WebInspector/WebInspector.h:
1046 Added open property.
1048 * WebInspector/WebInspector.mm:
1049 (-[WebInspector isOpen]):
1050 Added, returns YES if we have a frontend.
1052 2015-08-13 Andy Estes <aestes@apple.com>
1054 [Cocoa] Downloads do not start if policy decision is made asynchronously
1055 https://bugs.webkit.org/show_bug.cgi?id=147985
1057 Reviewed by Brady Eidson.
1059 * WebCoreSupport/WebFrameLoaderClient.mm:
1060 (WebFrameLoaderClient::convertMainResourceLoadToDownload): Started a new download if the main resource loader is not calling didReceiveResponse.
1062 2015-08-13 Tim Horton <timothy_horton@apple.com>
1064 Performing a Lookup on wrapped text puts the popover arrow in the wrong place (off to the right)
1065 https://bugs.webkit.org/show_bug.cgi?id=148012
1066 <rdar://problem/19238094>
1068 Reviewed by Simon Fraser.
1070 * WebView/WebView.mm:
1071 (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1072 (-[WebView _showDictionaryLookupPopup:]):
1073 Adopt the new SPI, handing it the first text rect, instead of having it
1074 guess where to put the popover.
1075 Also, null-check the TextIndicator.
1077 2015-08-13 Tim Horton <timothy_horton@apple.com>
1079 Refactor and improve TextIndicator to prepare for tests
1080 https://bugs.webkit.org/show_bug.cgi?id=147622
1082 Reviewed by Simon Fraser.
1084 * WebView/WebFrame.mm:
1085 (-[WebFrame _rectsForRange:]):
1086 * WebView/WebHTMLView.mm:
1087 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
1088 (-[WebHTMLView quickLookWithEvent:]):
1089 * WebView/WebImmediateActionController.mm:
1090 (-[WebImmediateActionController webView:didHandleScrollWheel:]):
1091 (-[WebImmediateActionController _cancelImmediateAction]):
1092 (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
1093 (-[WebImmediateActionController _defaultAnimationController]):
1094 (-[WebImmediateActionController menuItemDidClose:]):
1095 (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1096 (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1097 (dictionaryPopupInfoForRange):
1098 * WebView/WebView.mm:
1099 (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1100 (-[WebView _setTextIndicator:]):
1101 (-[WebView _setTextIndicator:withLifetime:]):
1102 (-[WebView _clearTextIndicatorWithAnimation:]):
1103 (-[WebView _showDictionaryLookupPopup:]):
1104 (-[WebView _dictionaryLookupPopoverWillClose:]):
1105 * WebView/WebViewInternal.h:
1106 Adopt TextIndicatorOptions.
1107 Adjust to Range method renames.
1109 2015-08-13 Geoffrey Garen <ggaren@apple.com>
1111 Standardize on the phrase "delete code"
1112 https://bugs.webkit.org/show_bug.cgi?id=147984
1114 Reviewed by Mark Lam.
1116 * WebView/WebView.mm:
1117 (+[WebView discardAllCompiledCode]):
1118 (+[WebView isCharacterSmartReplaceExempt:isPreviousCharacter:]):
1120 2015-08-12 Anders Carlsson <andersca@apple.com>
1122 Use WTF::Optional in WindowFeatures
1123 https://bugs.webkit.org/show_bug.cgi?id=147956
1125 Reviewed by Sam Weinig.
1127 * WebCoreSupport/WebChromeClient.mm:
1128 (WebChromeClient::createWindow):
1130 2015-08-13 Matthew Daiter <mdaiter@apple.com>
1132 Linking device query ability from WebKit2 to clients
1133 https://bugs.webkit.org/show_bug.cgi?id=147263
1134 <rdar://problem/21983345>
1136 Reviewed by Jer Noble.
1138 * WebCoreSupport/WebUserMediaClient.mm:
1139 (-[WebUserMediaPolicyListener allow]):
1140 (-[WebUserMediaPolicyListener allowDeviceWithVideoUID:andAudioUID:]):
1143 2015-08-10 Chris Dumez <cdumez@apple.com>
1145 Align WebKit1's PageCache size with WebKit2's
1146 https://bugs.webkit.org/show_bug.cgi?id=147831
1148 Reviewed by Sam Weinig.
1150 Align WebKit1's PageCache size with WebKit2's for consistency. Also, we
1151 have data showing that keeping more than 3 pages in the PageCache is
1154 * WebView/WebView.mm:
1155 (+[WebView _setCacheModel:]):
1157 2015-08-06 Anders Carlsson <andersca@apple.com>
1159 Crashes when calling swizzled setNeedsDisplayInRect: on heartbeat thread
1160 https://bugs.webkit.org/show_bug.cgi?id=147746
1161 rdar://problem/18698271
1163 Reviewed by Dan Bernstein.
1165 Back off if someone is calling our swizzled setNeedsDisplayInRect on a non-main thread.
1167 * WebView/WebHTMLView.mm:
1168 (setNeedsDisplayInRect):
1170 2015-08-05 Filip Pizlo <fpizlo@apple.com>
1172 Unreviewed, roll out http://trac.webkit.org/changeset/187972.
1174 * Storage/WebDatabaseManager.mm:
1175 (transactionBackgroundTaskIdentifierLock):
1176 (+[WebDatabaseManager startBackgroundTask]):
1177 (+[WebDatabaseManager endBackgroundTask]):
1178 * WebView/WebView.mm:
1179 (-[WebView _synchronizeCustomFixedPositionLayoutRect]):
1180 (-[WebView _setCustomFixedPositionLayoutRectInWebThread:synchronize:]):
1181 (-[WebView _setCustomFixedPositionLayoutRect:]):
1182 (-[WebView _fetchCustomFixedPositionLayoutRect:]):
1183 * WebView/WebViewData.h:
1185 2015-08-04 Filip Pizlo <fpizlo@apple.com>
1187 Rename Mutex to DeprecatedMutex
1188 https://bugs.webkit.org/show_bug.cgi?id=147675
1190 Reviewed by Geoffrey Garen.
1192 * Storage/WebDatabaseManager.mm:
1193 (transactionBackgroundTaskIdentifierLock):
1194 (+[WebDatabaseManager startBackgroundTask]):
1195 (+[WebDatabaseManager endBackgroundTask]):
1196 * WebView/WebView.mm:
1197 (-[WebView _synchronizeCustomFixedPositionLayoutRect]):
1198 (-[WebView _setCustomFixedPositionLayoutRectInWebThread:synchronize:]):
1199 (-[WebView _setCustomFixedPositionLayoutRect:]):
1200 (-[WebView _fetchCustomFixedPositionLayoutRect:]):
1201 * WebView/WebViewData.h:
1203 2015-08-04 Anders Carlsson <andersca@apple.com>
1205 Remove database thread pause code
1206 https://bugs.webkit.org/show_bug.cgi?id=147669
1208 Reviewed by Daniel Bates.
1210 * Storage/WebDatabaseManager.mm:
1211 (WebKitSetWebDatabasePaused): Deleted.
1212 * Storage/WebDatabaseManagerInternal.h:
1214 2015-08-04 Simon Fraser <simon.fraser@apple.com>
1218 * Plugins/WebNetscapePluginStream.h:
1220 2015-08-04 Anders Carlsson <andersca@apple.com>
1222 Get rid of ReasonForCallingAllowPlugins since it's not used anywhere
1223 https://bugs.webkit.org/show_bug.cgi?id=147648
1225 Reviewed by Andreas Kling.
1227 * WebCoreSupport/WebPlatformStrategies.mm:
1228 (WebPlatformStrategies::getPluginInfo):
1229 * WebView/WebFrame.mm:
1230 (-[WebFrame _canProvideDocumentSource]):
1232 2015-08-04 Alexey Proskuryakov <ap@apple.com>
1234 Implement NPAPI redirect handling
1235 https://bugs.webkit.org/show_bug.cgi?id=138675
1236 rdar://problem/15779101
1238 Patch by Jeffrey Pfau, updated and tweaked by me.
1240 Reviewed by Anders Carlsson.
1242 * Plugins/Hosted/HostedNetscapePluginStream.h:
1243 (WebKit::HostedNetscapePluginStream::streamID):
1244 * Plugins/Hosted/HostedNetscapePluginStream.mm:
1245 (WebKit::HostedNetscapePluginStream::didFinishLoading):
1246 (WebKit::HostedNetscapePluginStream::willSendRequest):
1247 (WebKit::HostedNetscapePluginStream::didReceiveResponse):
1248 * Plugins/WebNetscapePluginStream.h:
1249 * Plugins/WebNetscapePluginStream.mm:
1250 (WebNetscapePluginStream::stop):
1251 (WebNetscapePluginStream::willSendRequest):
1252 (WebNetscapePluginStream::didReceiveResponse):
1254 2015-08-03 Myles C. Maxfield <mmaxfield@apple.com>
1256 Unreviewed post-review feedback on r187797
1258 The correct terminology is "registered" instead of "activated."
1260 * WebView/WebHTMLView.mm:
1261 (-[WebHTMLView _updateFontPanel]):
1263 2015-08-03 Myles C. Maxfield <mmaxfield@apple.com>
1265 Clean up casts between NSFont*s and CTFontRefs
1266 https://bugs.webkit.org/show_bug.cgi?id=147618
1268 Reviewed by Mitz Pettel
1270 For toll free bridged types, it makes more sense to do a C-style cast, than jump
1271 through hoops for older compilers.
1273 * WebView/WebHTMLView.mm:
1274 (-[WebHTMLView _updateFontPanel]):
1276 2015-08-03 Myles C. Maxfield <mmaxfield@apple.com>
1278 Fix the Yosemite build after r187797
1282 * WebView/WebHTMLView.mm:
1283 (-[WebHTMLView _updateFontPanel]):
1285 2015-08-03 Myles C. Maxfield <mmaxfield@apple.com>
1287 REGRESSION(r184899): Crash when focusing an input element styled with a web font
1288 https://bugs.webkit.org/show_bug.cgi?id=147616
1289 <rdar://problem/21838271>
1291 Reviewed by Dean Jackson.
1293 NSFontManager can't handle web fonts. We used to pass null to NSFontManager in this case,
1294 but r184899 changed that.
1296 * WebView/WebHTMLView.mm:
1297 (-[WebHTMLView _updateFontPanel]):
1299 2015-07-31 Chris Dumez <cdumez@apple.com>
1301 Drop dummy Timer callbacks
1302 https://bugs.webkit.org/show_bug.cgi?id=147516
1304 Reviewed by Alexey Proskuryakov.
1306 Drop dummy Timer callbacks in the code base. A lot of Timer callbacks
1307 do nothing else beside calling a particular method. In such case, we
1308 can use the called method as Timer callback instead.
1310 * Plugins/WebNetscapePluginStream.h:
1311 * Plugins/WebNetscapePluginStream.mm:
1312 (WebNetscapePluginStream::WebNetscapePluginStream):
1313 (WebNetscapePluginStream::deliverDataTimerFired): Deleted.
1315 2015-07-31 Brady Eidson <beidson@apple.com>
1317 REGRESSION (r174791): Returning a zombie NSImage from sharingService:transitionImageForShareItem:contentRect:
1318 <rdar://problem/22060183> and https://bugs.webkit.org/show_bug.cgi?id=147497
1320 Reviewed by Tim Horton.
1322 * WebCoreSupport/WebContextMenuClient.mm:
1323 (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Don't return what is basically a temporary NSImage.
1324 Instead do a [[retain] autorelease] on it while still valid.
1326 2015-07-29 Dean Jackson <dino@apple.com>
1328 Don't use (Details) when exposing SPI
1329 https://bugs.webkit.org/show_bug.cgi?id=147426
1330 <rdar://problem/22062407>
1332 Reviewed by Dan Bernstein.
1334 If we are declaring the interface without any implementation,
1335 we should use class extensions.
1337 * WebView/WebFrameView.mm:
1338 * WebView/WebPDFView.mm:
1340 2015-07-29 Andy VanWagoner <thetalecrafter@gmail.com>
1342 Implement basic types for ECMAScript Internationalization API
1343 https://bugs.webkit.org/show_bug.cgi?id=146926
1345 Reviewed by Benjamin Poulain.
1347 * Configurations/FeatureDefines.xcconfig: Enabled INTL.
1349 2015-07-28 Yusuke Suzuki <utatane.tea@gmail.com>
1351 [ES6] Add ENABLE_ES6_MODULES compile time flag with the default value "false"
1352 https://bugs.webkit.org/show_bug.cgi?id=147350
1354 Reviewed by Sam Weinig.
1356 * Configurations/FeatureDefines.xcconfig:
1358 2015-07-24 Yusuke Suzuki <utatane.tea@gmail.com>
1360 Remove runtime flags for symbols
1361 https://bugs.webkit.org/show_bug.cgi?id=147246
1363 Reviewed by Alex Christensen.
1365 * WebView/WebPreferencesPrivate.h:
1367 2015-07-24 Yusuke Suzuki <utatane.tea@gmail.com>
1369 Object.getOwnPropertySymbols on large list takes very long
1370 https://bugs.webkit.org/show_bug.cgi?id=146137
1372 Reviewed by Mark Lam.
1374 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1375 (WebKit::NetscapePluginInstanceProxy::enumerate):
1377 2015-07-23 Alex Christensen <achristensen@webkit.org>
1379 Remove compile and runtime flags for promises.
1380 https://bugs.webkit.org/show_bug.cgi?id=147244
1382 Reviewed by Yusuke Suzuki.
1384 * Configurations/FeatureDefines.xcconfig:
1385 * WebView/WebPreferencesPrivate.h:
1387 2015-07-22 Sukolsak Sakshuwong <sukolsak@gmail.com>
1389 Add ENABLE_WEBASSEMBLY feature flag for WebAssembly
1390 https://bugs.webkit.org/show_bug.cgi?id=147212
1392 Reviewed by Filip Pizlo.
1394 * Configurations/FeatureDefines.xcconfig:
1396 2015-07-21 Joseph Pecoraro <pecoraro@apple.com>
1398 Web Inspector: [Mac] "Open Image In New Window" context menu item does nothing on an image
1399 https://bugs.webkit.org/show_bug.cgi?id=147175
1401 Reviewed by Timothy Hatcher.
1403 * WebCoreSupport/WebInspectorClient.mm:
1404 (-[WebInspectorWindowController webView:contextMenuItemsForElement:defaultMenuItems:]):
1405 Remove default context menus that won't work in the inspector page.
1407 2015-07-21 Simon Fraser <simon.fraser@apple.com>
1409 Add a logging channel for Layout, remove the LiveConnect channel
1410 https://bugs.webkit.org/show_bug.cgi?id=147170
1412 Reviewed by Zalan Bujtas.
1414 Add a layout logging channel to WebCore, and remove the LiveConnect channel.
1416 * Misc/WebKitLogging.h:
1417 * Plugins/WebNetscapePluginPackage.mm:
1418 (-[WebNetscapePluginPackage _tryLoad]): Deleted.
1420 2015-07-21 Brady Eidson <beidson@apple.com>
1422 Fix WebPreferences infinite recursion introduced in r186232.
1423 <rdar://problem/9091261> and https://bugs.webkit.org/show_bug.cgi?id=147149
1425 Reviewed by Tim Horton.
1427 * WebView/WebPreferences.mm:
1428 (-[WebPreferences metaRefreshEnabled]):
1430 2015-07-18 Gyuyoung Kim <gyuyoung.kim@webkit.org>
1432 Reduce PassRefPtr in WebKit2 - 3
1433 https://bugs.webkit.org/show_bug.cgi?id=146995
1435 Reviewed by Daniel Bates.
1437 To remove PassRefPtr, this patch reduces use of PassRefPtr in WebKit2.
1438 Because some uses depend on WebCore, WebCore, WK1 ports are modified as well.
1440 * WebCoreSupport/WebFrameLoaderClient.h:
1441 * WebCoreSupport/WebFrameLoaderClient.mm:
1442 (WebFrameLoaderClient::createDocumentLoader):
1444 2015-07-17 Andy Estes <aestes@apple.com>
1446 [iOS] Further tighten the sandbox around pages fetched with Content-Disposition: attachment
1447 https://bugs.webkit.org/show_bug.cgi?id=147044
1448 rdar://problem/21567820
1450 Reviewed by Brady Eidson.
1452 * WebView/WebView.mm:
1453 (-[WebView _commonInitializationWithFrameName:groupName:]): Enabled Content-Disposition: attachment sandbox on iOS.
1455 2015-07-16 Joseph Pecoraro <pecoraro@apple.com>
1457 Web Inspector: [Mac] Save dialog not working when inspector is docked
1458 https://bugs.webkit.org/show_bug.cgi?id=146991
1460 Reviewed by Sam Weinig.
1462 * WebCoreSupport/WebInspectorClient.mm:
1463 (WebInspectorFrontendClient::save):
1464 (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
1465 When the window is nil (docked) use a non-window version of running the dialog.
1467 2015-07-13 Simon Fraser <simon.fraser@apple.com>
1469 [iOS] Expose contentsSizeRespectingOverflow() via WebView so UIWebView can use it
1470 https://bugs.webkit.org/show_bug.cgi?id=146924
1471 WebKit part of rdar://problem/21802456
1473 Reviewed by Tim Horton.
1475 Expose the FrameView's contentsSizeRespectingOverflow() via WebView, for use
1478 * WebView/WebView.mm:
1479 (-[WebView _contentsSizeRespectingOverflow]):
1480 * WebView/WebViewPrivate.h:
1482 2015-07-14 Anders Carlsson <andersca@apple.com>
1484 Remove wkPopupMenu from WebCoreSystemInterface; it's not called from WebCore
1485 https://bugs.webkit.org/show_bug.cgi?id=146945
1487 Reviewed by Tim Horton.
1489 * WebCoreSupport/PopupMenuMac.mm:
1490 (PopupMenuMac::show):
1491 * WebCoreSupport/WebSystemInterface.mm:
1492 (InitWebCoreSystemInterface): Deleted.
1494 2015-07-11 Nikita Vasilyev <nvasilyev@apple.com>
1496 Web Inspector: Inspector should be able to be docked to the bottom of a narrow window
1497 https://bugs.webkit.org/show_bug.cgi?id=146871
1499 Reviewed by Timothy Hatcher.
1501 * WebCoreSupport/WebInspectorClient.mm:
1503 2015-07-07 Brady Eidson <beidson@apple.com>
1505 HTTP Auth cached after disabling private browsing/reset.
1506 <rdar://problem/8293055> and https://bugs.webkit.org/show_bug.cgi?id=146654
1508 Reviewed by Tim Horton.
1512 (+[WebCache clearCachedCredentials]): Clear the global CredentialStorage as well as the
1513 storages belonging to each main frame of each WebView. This method is for DRT.
1515 * Misc/WebDownload.mm:
1516 (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]):
1518 * Plugins/WebBaseNetscapePluginView.mm:
1519 (WebKit::getAuthenticationInfo):
1521 * WebView/WebView.mm:
1522 (-[WebView _clearCredentials]): Clear the storage belonging to the current networking session
1523 of the main frame of this WebView.
1524 * WebView/WebViewInternal.h:
1526 2015-07-04 Chris Dumez <cdumez@apple.com>
1528 Drop RefPtr::clear() method
1529 https://bugs.webkit.org/show_bug.cgi?id=146556
1531 Reviewed by Brady Eidson.
1533 Drop RefPtr::clear() method in favor of "= nullptr;" pattern.
1535 2015-07-03 Dan Bernstein <mitz@apple.com>
1537 [Xcode] Update some build settings as recommended by Xcode 7
1538 https://bugs.webkit.org/show_bug.cgi?id=146597
1540 Reviewed by Sam Weinig.
1542 * Configurations/Base.xcconfig: Enabled CLANG_WARN_UNREACHABLE_CODE,
1543 GCC_WARN_UNDECLARED_SELECTOR and GCC_NO_COMMON_BLOCKS. Removed GCC_MODEL_TUNING.
1545 2015-07-02 Timothy Horton <timothy_horton@apple.com>
1549 Rubber-stamped by Brady Eidson.
1551 * WebView/WebView.mm:
1552 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1553 Http, not HTTP, for settings generator reasons.
1555 2015-07-02 Brady Eidson <beidson@apple.com>
1557 Add preference to disable all http-equiv.
1558 <rdar://problem/9091261> and https://bugs.webkit.org/show_bug.cgi?id=146553
1560 Reviewed by Sam Weinig.
1562 * WebView/WebPreferenceKeysPrivate.h:
1564 * WebView/WebPreferences.mm:
1565 (+[WebPreferences initialize]):
1566 (-[WebPreferences setMetaRefreshEnabled:]): Still expose this SPI, but have it affect
1567 the "httpEquivEnabled" setting.
1568 (-[WebPreferences metaRefreshEnabled]): Ditto.
1569 (-[WebPreferences setHTTPEquivEnabled:]):
1570 (-[WebPreferences httpEquivEnabled]):
1571 * WebView/WebPreferencesPrivate.h:
1573 * WebView/WebView.mm:
1574 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1575 (-[WebView _preferencesChanged:]):
1577 2015-07-02 Timothy Horton <timothy_horton@apple.com>
1579 iOS WebKitLegacy should match WebKit2's viewport behavior
1580 https://bugs.webkit.org/show_bug.cgi?id=146540
1581 <rdar://problem/20574017>
1583 Reviewed by Dan Bernstein.
1585 A number of changes have been made to WebKit2's viewport behavior
1586 to make it possible to scale "responsive" sites that misbehave (lay out
1587 in a non-responsive way).
1589 * History/WebHistoryItem.mm:
1590 * History/WebHistoryItemPrivate.h:
1591 Add the plumbing required to implement these new behaviors in WebKit1.
1593 2015-07-01 Dean Jackson <dino@apple.com>
1595 Disable the experimental WebGL2 implementation
1596 https://bugs.webkit.org/show_bug.cgi?id=146526
1597 <rdar://problem/21641235>
1599 Reviewed by Myles Maxfield.
1601 Add (and disable) an ENABLE_WEBGL2 flag.
1603 * Configurations/FeatureDefines.xcconfig:
1605 2015-07-01 Simon Fraser <simon.fraser@apple.com>
1609 * WebCoreSupport/WebUserMediaClient.mm:
1610 (-[WebUserMediaPolicyListener denyOnlyThisRequest]): Remove ASSERT_NOT_REACHED,
1611 because it caused the compiler to warn about noreturn.
1613 2015-07-01 Matthew Daiter <mdaiter@apple.com>
1615 Enable MEDIA_STREAM flag
1616 https://bugs.webkit.org/show_bug.cgi?id=145947
1617 <rdar://problem/21365829>
1619 Reviewed by Eric Carlson.
1621 * Configurations/FeatureDefines.xcconfig: Added MEDIA_STREAM flag
1622 * WebCoreSupport/WebUserMediaClient.h: Changed signatures
1623 * WebCoreSupport/WebUserMediaClient.mm: Changed signatures
1624 (WebUserMediaClient::requestPermission):
1625 (WebUserMediaClient::cancelRequest):
1626 (-[WebUserMediaPolicyListener denyOnlyThisRequest]):
1627 (-[WebUserMediaPolicyListener shouldClearCache]):
1629 2015-07-01 Brady Eidson <beidson@apple.com>
1631 REGRESSION (185319): Reproducible crash in WebHistoryItem launching FluidApp.
1632 <rdar://problem/21598293> and https://bugs.webkit.org/show_bug.cgi?id=146494
1634 Reviewed by Darin Adler.
1636 * History/WebHistoryItem.mm:
1637 (-[WebHistoryItem initFromDictionaryRepresentation:]): Don’t reference members of a Vector
1640 2015-06-30 Andy VanWagoner <thetalecrafter@gmail.com>
1642 Implement ECMAScript Internationalization API
1643 https://bugs.webkit.org/show_bug.cgi?id=90906
1645 Reviewed by Benjamin Poulain.
1647 * Configurations/FeatureDefines.xcconfig: add ENABLE_INTL flag
1649 2015-06-30 Simon Fraser <simon.fraser@apple.com>
1651 Crash under _layoutForNodeHighlight: when inspecting espn.com
1652 https://bugs.webkit.org/show_bug.cgi?id=146422
1654 Reviewed by Joseph Pecoraro.
1656 When inspecting espn.com, MobileSafari sometimes crashes, because
1657 highlight.quads is empty. I was not able to quickly determine why.
1659 Fix by bailing in this case.
1661 * WebInspector/WebNodeHighlightView.mm:
1662 (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
1664 2015-06-30 Anders Carlsson <andersca@apple.com>
1666 Remove the WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS ifdefs now that this is always true
1667 https://bugs.webkit.org/show_bug.cgi?id=146462
1669 Reviewed by Dan Bernstein.
1671 * Misc/WebDownload.h:
1672 * WebView/WebFrameLoadDelegate.h:
1673 * WebView/WebPolicyDelegate.h:
1674 * WebView/WebResourceLoadDelegate.h:
1675 * WebView/WebUIDelegate.h:
1676 * WebView/WebView.h:
1677 * postprocess-headers.sh:
1679 2015-06-29 Anders Carlsson <andersca@apple.com>
1681 Get rid of unused WKSI functions
1682 https://bugs.webkit.org/show_bug.cgi?id=146443
1684 Reviewed by Tim Horton.
1686 * WebCoreSupport/WebSystemInterface.mm:
1687 (InitWebCoreSystemInterface): Deleted.
1689 2015-06-29 Dean Jackson <dino@apple.com>
1691 Temporarily disable PICTURE_SIZES
1692 https://bugs.webkit.org/show_bug.cgi?id=146435
1693 <rdar://problem/21087013>
1695 Reviewed by Tim Horton.
1697 Temporarily disable PICTURE_SIZES because it causes problems with out
1698 of date <picture> polyfills.
1700 * Configurations/FeatureDefines.xcconfig:
1702 2015-06-27 Ryosuke Niwa <rniwa@webkit.org>
1704 Font panel doesn't get updated when bolding text via cmd+b in Mail on OS X
1705 https://bugs.webkit.org/show_bug.cgi?id=146379
1707 Reviewed by Darin Adler.
1709 Update the font panel when newly added EditorClient::didApplyStyle is called. Also set the font attributes
1710 in _updateFontPanel so that underline and strike through states will be reflected.
1712 * WebCoreSupport/WebEditorClient.h:
1713 * WebCoreSupport/WebEditorClient.mm:
1714 (WebEditorClient::shouldApplyStyle):
1715 (updateFontPanelIfNeeded): Extracted from respondToChangedContents.
1716 (WebEditorClient::didApplyStyle): Added.
1717 (WebEditorClient::respondToChangedContents):
1718 * WebView/WebHTMLView.mm:
1719 (-[WebHTMLView _updateFontPanel]): Sets font attributes as well as font.
1721 2015-06-29 Dean Jackson <dino@apple.com>
1723 Setting to enable/disable media controls sizing on page zoom
1724 https://bugs.webkit.org/show_bug.cgi?id=146423
1725 <rdar://problem/18379634>
1727 Reviewed by Eric Carlson.
1729 Add a new setting "MediaControlsScaleWithPageZoom" that can disable
1730 the behaviour we currently implement on iOS, where the media controls
1731 attempt to remain at a fixed size independent of page zoom.
1733 * WebView/WebPreferenceKeysPrivate.h:
1734 * WebView/WebPreferences.mm:
1735 (+[WebPreferences initialize]): Initialize to false on iOS, true otherwise.
1736 (-[WebPreferences mediaControlsScaleWithPageZoom]):
1737 (-[WebPreferences setMediaControlsScaleWithPageZoom:]):
1738 * WebView/WebPreferencesPrivate.h:
1739 * WebView/WebView.mm:
1740 (-[WebView _preferencesChanged:]):
1742 2015-06-29 Anders Carlsson <andersca@apple.com>
1744 Use DISPATCH_SOURCE_TYPE_MEMORYPRESSURE instead of DISPATCH_SOURCE_TYPE_MEMORYSTATUS
1745 https://bugs.webkit.org/show_bug.cgi?id=146413
1747 Reviewed by Andreas Kling.
1749 Replace SPI with API.
1751 * WebCoreSupport/WebSystemInterface.mm:
1752 (InitWebCoreSystemInterface): Deleted.
1753 * WebView/WebView.mm:
1754 (+[WebView registerForMemoryNotifications]):
1756 2015-06-28 Darin Adler <darin@apple.com>
1758 [Mac] Remove redundant call to colorUsingColorSpaceName:
1759 https://bugs.webkit.org/show_bug.cgi?id=146397
1761 Reviewed by Alexey Proskuryakov.
1763 * WebView/WebHTMLView.mm:
1764 (extractUnderlines): Remove call to the colorUsingColorSpaceName: method,
1765 since colorFromNSColor already calls it. No need to do it twice.
1767 2015-06-26 Hyungwook Lee <hyungwook.lee@navercorp.com>
1769 [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
1770 https://bugs.webkit.org/show_bug.cgi?id=145908
1772 Reviewed by Brent Fulgham.
1774 Make WebViewGroup class sharing on Mac and Win port.
1776 * WebCoreSupport/WebViewGroup.h: Removed.
1777 * WebCoreSupport/WebViewGroup.mm: Removed.
1779 2015-06-25 Joseph Pecoraro <pecoraro@apple.com>
1781 Web Inspector: Add Support for OS X Full Screen Mode
1782 https://bugs.webkit.org/show_bug.cgi?id=123510
1784 Reviewed by Timothy Hatcher.
1786 * WebCoreSupport/WebInspectorClient.h:
1787 * WebCoreSupport/WebInspectorClient.mm:
1788 (WebInspectorClient::didResizeMainFrame):
1789 (WebInspectorClient::windowFullScreenDidChange):
1790 (WebInspectorClient::canAttach):
1791 (WebInspectorFrontendClient::canAttach):
1792 (-[WebInspectorWindowController showWindow:]):
1793 Consolidate canAttach logic into canAttach functions.
1795 (-[WebInspectorWindowController window:]):
1796 Share the same full screen behavior as WebKit2.
1798 (-[WebInspectorWindowController windowDidEnterFullScreen:]):
1799 (-[WebInspectorWindowController windowDidExitFullScreen:]):
1800 Attach availability may have changed.
1802 2015-06-25 Joseph Pecoraro <pecoraro@apple.com>
1804 [Mac] Web Inspector: Window dragging on toolbar should behave more like native window dragging
1805 https://bugs.webkit.org/show_bug.cgi?id=146324
1807 Reviewed by Timothy Hatcher.
1809 * WebCoreSupport/WebInspectorClient.h:
1810 * WebCoreSupport/WebInspectorClient.mm:
1811 (WebInspectorFrontendClient::startWindowDrag):
1812 Start performing a window drag.
1814 2015-06-23 Anders Carlsson <andersca@apple.com>
1816 Remove windowResizerRect code, nobody is using it anymore
1817 https://bugs.webkit.org/show_bug.cgi?id=146265
1819 Reviewed by Beth Dakin.
1821 * WebCoreSupport/WebChromeClient.h:
1822 * WebCoreSupport/WebChromeClient.mm:
1823 (WebChromeClient::windowResizerRect): Deleted.
1825 2015-06-22 Chris Dumez <cdumez@apple.com>
1827 [WK1] WebAllowDenyPolicyListener.denyOnlyThisRequest() should not start a new permission request
1828 https://bugs.webkit.org/show_bug.cgi?id=146228
1829 <rdar://problem/15179262>
1831 Reviewed by Daniel Bates.
1833 Call the new Geolocation::resetIsAllowed() API after denying the
1834 current request, instead of calling
1835 Geolocation::resetAllGeolocationPermission(). In addition to resetting
1836 m_allowGeolocation to Unknown, the latter would also start a new
1837 permission request. However, for
1838 WebAllowDenyPolicyListener.denyOnlyThisRequest(), we really only want
1839 to deny the current request and then reset m_allowGeolocation to
1840 Unknown so that permission is requested again later if the app requests
1843 The previous implementation meant that if the client application keeps
1844 calling WebAllowDenyPolicyListener.denyOnlyThisRequest(), we would end
1845 up in an infinite loop (requesting for permission), even though the
1846 application did not make any new geolocation requests.
1848 * WebCoreSupport/WebGeolocationClient.mm:
1849 (-[WebGeolocationPolicyListener denyOnlyThisRequest]):
1851 2015-06-22 Anders Carlsson <andersca@apple.com>
1853 Delegates should be formal protocols
1854 https://bugs.webkit.org/show_bug.cgi?id=146222
1855 rdar://problem/17380856
1857 Reviewed by Dan Bernstein.
1859 Flip the switch on OS X and make delegates formal protocols.
1861 * postprocess-headers.sh:
1863 2015-06-20 Tim Horton <timothy_horton@apple.com>
1865 Deselection of text causes a noticeable jump on force touch machines
1866 https://bugs.webkit.org/show_bug.cgi?id=146173
1867 <rdar://problem/20992842>
1869 Reviewed by Sam Weinig.
1871 * WebView/WebImmediateActionController.mm:
1872 (-[WebImmediateActionController _animationControllerForText]):
1873 Get rid of TextIndicatorPresentationTransition::Crossfade.
1875 2015-06-19 Brent Fulgham <bfulgham@apple.com>
1877 All calls of ImageBuffer::create should null check the return value
1878 https://bugs.webkit.org/show_bug.cgi?id=22132
1880 Reviewed by Zalan Bujtas.
1882 ImageBuffer::create returns nullptr for a number of reasons, and should be
1883 expected to do so. We missed this check in a few places, resulting in
1884 crashes on some systems. Likewise, ImageBuffer::copyImage may return nullptr
1885 in normal use and should be checked.
1887 * WebCoreSupport/WebContextMenuClient.mm:
1888 (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Add nullptr check
1891 2015-06-18 Jon Lee <jonlee@apple.com>
1893 Update AVKit usage of pip
1894 https://bugs.webkit.org/show_bug.cgi?id=146095
1895 <rdar://problem/21386853>
1897 Reviewed by Eric Carlson.
1899 - Rename preference key
1900 - Rename shouldAllowAlternateFullscreen to shouldAllowPictureInPictureMediaPlayback
1902 * WebCoreSupport/WebSystemInterface.mm:
1903 * WebView/WebPreferenceKeysPrivate.h:
1904 * WebView/WebPreferences.mm:
1905 (-[WebPreferences allowsAlternateFullscreen]): Call allowsPictureInPictureMediaPlayback.
1906 (-[WebPreferences setAllowsAlternateFullscreen:]):
1907 (-[WebPreferences allowsPictureInPictureMediaPlayback]): Added.
1908 (-[WebPreferences setAllowsPictureInPictureMediaPlayback:]):
1909 * WebView/WebPreferencesPrivate.h:
1910 * WebView/WebView.mm:
1912 2015-06-18 Anders Carlsson <andersca@apple.com>
1914 Remove shouldInterruptJavaScript
1915 https://bugs.webkit.org/show_bug.cgi?id=146118
1917 Reviewed by Antti Koivisto.
1919 * WebCoreSupport/WebChromeClient.h:
1920 * WebCoreSupport/WebChromeClient.mm:
1921 (WebChromeClient::shouldInterruptJavaScript): Deleted.
1922 * WebView/WebUIDelegatePrivate.h:
1924 2015-06-17 Alex Christensen <achristensen@webkit.org>
1926 [Content Extensions] Log blocked loads to the WebInspector console
1927 https://bugs.webkit.org/show_bug.cgi?id=146089
1929 Reviewed by Joseph Pecoraro.
1931 * WebCoreSupport/WebChromeClient.mm:
1932 (stringForMessageSource):
1933 Added content blocker message source.
1935 2015-06-17 Dan Bernstein <mitz@apple.com>
1937 <rdar://problem/19034131> Cleaned up the WebDownload.h framework header.
1939 Reviewed by Anders Carlsson.
1941 * Misc/WebDownload.h: Changed to use USE_APPLE_INTERNAL_SDK instead of __has_include.
1942 * postprocess-headers.sh: Define USE_APPLE_INTERNAL_SDK when postprocessing framework
1945 2015-06-17 Commit Queue <commit-queue@webkit.org>
1947 Unreviewed, rolling out r185636.
1948 https://bugs.webkit.org/show_bug.cgi?id=146068
1950 Caused many crashes on Windows (Requested by ap on #webkit).
1954 "[Win] Implement WebViewGroup to support
1955 WebView::addxxxToGroup()."
1956 https://bugs.webkit.org/show_bug.cgi?id=145908
1957 http://trac.webkit.org/changeset/185636
1959 2015-06-16 Hyungwook Lee <hyungwook.lee@navercorp.com>
1961 [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
1962 https://bugs.webkit.org/show_bug.cgi?id=145908
1964 Reviewed by Brent Fulgham.
1966 Make WebViewGroup class sharing on Mac and Win port.
1968 * WebCoreSupport/WebViewGroup.h: Removed.
1969 * WebCoreSupport/WebViewGroup.mm: Removed.
1971 2015-06-13 Chris Dumez <cdumez@apple.com>
1973 [WK2] API::Navigation objects are leaked on history navigation to HistoryItems in PageCache
1974 https://bugs.webkit.org/show_bug.cgi?id=145948
1976 Reviewed by Darin Adler.
1978 Add empty implementation for new
1979 FrameLoaderClient::updatedCachedDocumentLoader().
1981 * WebCoreSupport/WebFrameLoaderClient.h:
1983 2015-06-11 Mark Lam <mark.lam@apple.com>
1985 WebCore::reportException() needs to be able to accept a raw thrown value in addition to Exception objects.
1986 https://bugs.webkit.org/show_bug.cgi?id=145872
1988 Reviewed by Michael Saboff.
1990 * WebView/WebView.mm:
1991 (+[WebView _reportException:inContext:]):
1992 - Don't assume we have an Exception object. Let WebCore::reportException() take
1995 2015-06-11 Jon Lee <jonlee@apple.com>
1997 Update media controls JS and CSS to use picture-in-picture
1998 https://bugs.webkit.org/show_bug.cgi?id=145827
1999 <rdar://problem/21311576>
2001 Reviewed by Dean Jackson.
2003 * WebCoreSupport/WebSystemInterface.mm:
2004 (InitWebCoreSystemInterface): Deleted GetMediaUIImageData.
2006 2015-06-10 Jon Honeycutt <jhoneycutt@apple.com>
2008 Meta refresh preference is not respected on fast path WebView
2011 <https://bugs.webkit.org/show_bug.cgi?id=145861>
2012 <rdar://problem/21309911>
2014 Reviewed by Brady Eidson.
2016 * WebView/WebView.mm:
2017 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2018 Set the WebCore setting from the WebPreferences preference.
2020 2015-06-09 Anders Carlsson <andersca@apple.com>
2022 Remove more unused SPI methods
2023 https://bugs.webkit.org/show_bug.cgi?id=145804
2025 Reviewed by Simon Fraser.
2027 * Misc/WebNSURLRequestExtras.h:
2028 * Misc/WebNSURLRequestExtras.m:
2029 (-[NSURLRequest _web_HTTPReferrer]): Deleted.
2030 (-[NSURLRequest _web_HTTPContentType]): Deleted.
2031 (-[NSURLRequest _web_isConditionalRequest]): Deleted.
2033 2015-06-08 Dan Bernstein <mitz@apple.com>
2035 Removed WebDragSourceActionAttachment from the WebDragSourceAction enum.
2037 Rubber-stamped by Anders Carlsson.
2039 * WebView/WebUIDelegate.h: Removed the value. It was added in r181760 and never used.
2041 2015-06-08 Chris Dumez <cdumez@apple.com>
2043 Access GCController instance via GCController::singleton() instead of a free function
2044 https://bugs.webkit.org/show_bug.cgi?id=145776
2046 Reviewed by Darin Adler.
2048 Access GCController instance via GCController::singleton() instead of a
2049 free function as per coding style and for consistency with other
2050 singleton classes in the codebase.
2052 * Misc/WebCoreStatistics.mm:
2053 (+[WebCoreStatistics garbageCollectJavaScriptObjects]):
2054 (+[WebCoreStatistics garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging:]):
2055 (+[WebCoreStatistics setJavaScriptGarbageCollectorTimerEnabled:]):
2056 * WebView/WebView.mm:
2057 (+[WebView garbageCollectNow]):
2058 (+[WebView discardAllCompiledCode]):
2059 (-[WebView _close]):
2061 2015-06-08 Anders Carlsson <andersca@apple.com>
2063 Remove more unused Objective-C methods
2064 https://bugs.webkit.org/show_bug.cgi?id=145761
2066 Reviewed by Geoffrey Garen.
2068 * Misc/WebNSImageExtras.h:
2069 * Misc/WebNSImageExtras.m:
2070 (-[NSImage _web_saveAndOpen]): Deleted.
2071 * Misc/WebNSViewExtras.h:
2072 * Misc/WebNSViewExtras.m:
2073 (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]): Deleted.
2074 (-[NSView _web_convertRect:toView:]): Deleted.
2076 2015-06-08 Anders Carlsson <andersca@apple.com>
2078 Try to fix the Mavericks build.
2080 * WebView/WebPDFView.mm:
2081 (removeUselessMenuItemSeparators):
2083 2015-06-07 Anders Carlsson <andersca@apple.com>
2085 Remove WebNSArrayExtras
2086 https://bugs.webkit.org/show_bug.cgi?id=145747
2088 Reviewed by Darin Adler.
2090 * History/WebHistoryItem.mm:
2091 (-[WebHistoryItem initFromDictionaryRepresentation:]):
2092 * Misc/WebNSArrayExtras.h: Removed.
2093 * Misc/WebNSArrayExtras.m: Removed.
2094 (-[NSArray _webkit_numberAtIndex:]): Deleted.
2095 (-[NSArray _webkit_stringAtIndex:]): Deleted.
2096 (-[NSMutableArray _webkit_removeUselessMenuItemSeparators]): Deleted.
2097 * WebView/WebPDFView.mm:
2098 (removeUselessMenuItemSeparators):
2099 (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
2101 2015-06-08 Dan Bernstein <mitz@apple.com>
2105 * WebView/WebView.mm:
2106 (+[WebView _setCacheModel:]):
2108 2015-06-07 Anders Carlsson <andersca@apple.com>
2110 Remove WebKitSystemBits
2111 https://bugs.webkit.org/show_bug.cgi?id=145746
2113 Reviewed by Dan Bernstein.
2115 Fold WebVolumeFreeSize into its only caller and get rid of WebKitSystemBits.
2117 * Misc/WebKitSystemBits.h: Removed.
2118 * Misc/WebKitSystemBits.m: Removed.
2119 * WebView/WebPreferences.mm:
2120 * WebView/WebView.mm:
2121 (+[WebView _setCacheModel:]):
2123 2015-06-07 Anders Carlsson <andersca@apple.com>
2125 Remove another SPI method that hasn't been used since Tiger
2126 https://bugs.webkit.org/show_bug.cgi?id=145745
2128 Reviewed by Dan Bernstein.
2130 * WebView/WebView.mm:
2131 (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]): Deleted.
2132 * WebView/WebViewPrivate.h:
2134 2015-06-07 Anders Carlsson <andersca@apple.com>
2136 Remove another unused SPI method
2137 https://bugs.webkit.org/show_bug.cgi?id=145743
2139 Reviewed by Dan Bernstein.
2141 * WebView/WebView.mm:
2142 (+[WebView _pointingHandCursor]): Deleted.
2143 * WebView/WebViewPrivate.h:
2145 2015-06-07 Anders Carlsson <andersca@apple.com>
2148 https://bugs.webkit.org/show_bug.cgi?id=145742
2150 Reviewed by Dan Bernstein.
2152 * WebCoreSupport/WebFrameNetworkingContext.h:
2153 * WebCoreSupport/WebFrameNetworkingContext.mm:
2154 (WebFrameNetworkingContext::clearPrivateBrowsingSessionCookieStorage): Deleted.
2155 * WebView/WebView.mm:
2156 (+[WebView _clearPrivateBrowsingSessionCookieStorage]): Deleted.
2157 * WebView/WebViewPrivate.h:
2159 2015-06-06 Dan Bernstein <mitz@apple.com>
2161 Restored binary compatibility with shipping Safari.
2163 Suggested by Anders Carlsson.
2165 * Misc/WebKitNSStringExtras.mm:
2166 (-[NSString _webkit_fixedCarbonPOSIXPath]): Added an implementation that returns self, so
2167 that Safari doesn’t crash when trying to call this method.
2169 2015-06-06 Dan Bernstein <mitz@apple.com>
2173 * Plugins/WebBasePluginPackage.mm:
2175 2015-06-06 Anders Carlsson <andersca@apple.com>
2177 Remove support from getting plug-in information from Carbon resources
2178 https://bugs.webkit.org/show_bug.cgi?id=145730
2180 Reviewed by Dan Bernstein.
2182 No current plug-in versions use this feature, and both Chrome and Mozilla for
2183 Mac stopped looking at Carbon resources years ago.
2185 * Misc/WebKitNSStringExtras.h:
2186 * Misc/WebKitNSStringExtras.mm:
2187 (+[NSString _web_encodingForResource:]): Deleted.
2188 * Plugins/WebBasePluginPackage.mm:
2189 * Plugins/WebNetscapePluginPackage.mm:
2190 (-[WebNetscapePluginPackage _initWithPath:]):
2191 (-[WebNetscapePluginPackage stringForStringListID:andIndex:]): Deleted.
2192 (-[WebNetscapePluginPackage getPluginInfoFromResources]): Deleted.
2194 2015-06-06 Anders Carlsson <andersca@apple.com>
2196 Remove now unused category methods
2197 https://bugs.webkit.org/show_bug.cgi?id=145729
2199 Reviewed by Dan Bernstein.
2201 * Configurations/WebKitLegacy.xcconfig:
2202 * Misc/WebKitNSStringExtras.h:
2203 * Misc/WebKitNSStringExtras.mm:
2204 (-[NSString _webkit_fixedCarbonPOSIXPath]): Deleted.
2205 * Misc/WebNSFileManagerExtras.h:
2206 * Misc/WebNSFileManagerExtras.mm:
2207 (-[NSFileManager _webkit_startupVolumeName]): Deleted.
2209 2015-06-06 Anders Carlsson <andersca@apple.com>
2215 2015-06-06 Anders Carlsson <andersca@apple.com>
2217 Stop using _webkit_fixedCarbonPOSIXPath in plug-in code
2218 https://bugs.webkit.org/show_bug.cgi?id=145728
2220 Reviewed by Dan Bernstein.
2222 This code was put in place to support old plug-ins that would pass Carbon paths to NPAPI functions.
2223 WebKit2 never supported this and we've never had any problems so let's just get rid of it.
2225 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2226 (WebKit::NetscapePluginInstanceProxy::loadURL):
2227 * Plugins/WebNetscapePluginView.mm:
2228 (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
2230 2015-06-06 Anders Carlsson <andersca@apple.com>
2232 Remove SPI that's no longer used
2233 https://bugs.webkit.org/show_bug.cgi?id=145727
2235 Reviewed by Dan Bernstein.
2237 * Plugins/WebPluginsPrivate.h: Removed.
2238 * Plugins/WebPluginsPrivate.m: Removed.
2240 2015-06-06 Anders Carlsson <andersca@apple.com>
2242 Only allow plug-ins to create custom MIME property lists on older versions of OS X
2243 https://bugs.webkit.org/show_bug.cgi?id=145726
2245 Reviewed by Dan Bernstein.
2247 * Plugins/WebBasePluginPackage.mm:
2248 (-[WebBasePluginPackage getPluginInfoFromPLists]):
2250 2015-06-05 Mark Lam <mark.lam@apple.com>
2252 finally blocks should not set the exception stack trace when re-throwing the exception.
2253 https://bugs.webkit.org/show_bug.cgi?id=145525
2255 Reviewed by Geoffrey Garen.
2257 * WebView/WebView.mm:
2258 (+[WebView _reportException:inContext:]):
2259 (WebKitInitializeApplicationCachePathIfNecessary):
2260 - Changed to use the new Exception object.
2262 2015-06-03 Anders Carlsson <andersca@apple.com>
2264 Define WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS on iOS
2265 https://bugs.webkit.org/show_bug.cgi?id=145615
2266 Part of rdar://problem/17380856.
2268 Reviewed by Dan Bernstein.
2270 * postprocess-headers.sh:
2272 2015-06-02 Brady Eidson <beidson@apple.com>
2274 WebKit policy delegate should suggest if a navigation should be allowed to open URLs externally.
2275 rdar://problem/21025301 and https://bugs.webkit.org/show_bug.cgi?id=145280
2277 Reviewed by Alex Christensen.
2279 * Plugins/WebPluginController.mm:
2280 (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2282 * WebView/WebFrame.mm:
2283 (-[WebFrame loadRequest:]):
2284 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2286 * WebView/WebPDFView.mm:
2287 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2289 2015-06-01 Anders Carlsson <andersca@apple.com>
2291 WAKScrollView.h cannot be imported standalone
2292 https://bugs.webkit.org/show_bug.cgi?id=145529
2294 Reviewed by Dan Bernstein.
2296 Don't migrate WAKScrollView.h, it's not used outside of WebKit.
2298 * MigrateHeaders.make:
2300 2015-05-29 Anders Carlsson <andersca@apple.com>
2302 Make the header replace rule more restrictive and get rid of a special case
2303 https://bugs.webkit.org/show_bug.cgi?id=145486
2305 Reviewed by Ryosuke Niwa.
2307 We used to not run the header migration script on WAKScrollView.h since we had a rule that would transform
2308 "<WebCore" to "<WebKitLegacy" to convert header #imports. However, WAKScrollView.h contains "WAKView <WebCoreFrameScrollView>"
2309 which would get transformed to "WAKView <WebKitLegacyFrameScrollView>".
2311 Instead, check for the trailing slash as well and stop special-casing WAKScrollView.h.
2313 * MigrateHeaders.make:
2315 2015-05-29 Anders Carlsson <andersca@apple.com>
2317 Get rid of WAKViewPrivate.h
2318 https://bugs.webkit.org/show_bug.cgi?id=145482
2319 rdar://problem/21162149
2321 Reviewed by Dan Bernstein.
2323 Remove WAKViewPrivate.h imports.
2325 * DefaultDelegates/WebDefaultUIDelegate.m:
2326 * MigrateHeaders.make:
2327 * Misc/WebKitNSStringExtras.mm:
2328 * Misc/WebNSViewExtras.m:
2329 * WebCoreSupport/WebFrameLoaderClient.mm:
2330 * WebView/WebFrame.mm:
2331 * WebView/WebFrameView.mm:
2332 * WebView/WebHTMLView.mm:
2334 2015-05-29 Anders Carlsson <andersca@apple.com>
2336 WebResourceLoadDelegatePrivate.h cannot be imported standalone (missing WebNSInteger type)
2337 https://bugs.webkit.org/show_bug.cgi?id=145476
2338 rdar://problem/21162400
2340 Reviewed by Dan Bernstein.
2342 Change WebNSInteger to NSInteger.
2344 * WebView/WebResourceLoadDelegatePrivate.h:
2346 2015-05-29 Anders Carlsson <andersca@apple.com>
2348 WebKit.framework installs or references Mac-only headers on iOS
2349 https://bugs.webkit.org/show_bug.cgi?id=145471
2350 rdar://problem/21161459
2352 Reviewed by Dan Bernstein.
2354 * History/WebURLsWithTitles.h:
2355 Add an #if !TARGET_OS_IPHONE guard around the entire header.
2357 * MigrateHeaders.make:
2358 Don't migrate the NPAPI headers on iOS.
2360 2015-05-28 Matt Rajca <mrajca@apple.com>
2362 Add ENABLE_MEDIA_SESSION feature flag (which is off by default).
2363 https://bugs.webkit.org/show_bug.cgi?id=145415
2365 Reviewed by Eric Carlson.
2367 * Configurations/FeatureDefines.xcconfig:
2369 2015-05-28 Jon Lee <jonlee@apple.com>
2371 Build fix after r184946.
2373 * WebView/WebPreferences.mm:
2374 (-[WebPreferences allowsAirPlayForMediaPlayback]):
2375 (-[WebPreferences setAllowsAirPlayForMediaPlayback:]):
2377 2015-05-19 Jon Honeycutt <jhoneycutt@apple.com>
2379 [iOS] When viewing an MJPEG stream as the main resource, only the first
2382 <https://bugs.webkit.org/show_bug.cgi?id=145185>
2383 <rdar://problem/20124694>
2385 Reviewed by Darin Adler.
2387 * WebCoreSupport/WebFrameLoaderClient.h:
2389 * WebCoreSupport/WebFrameLoaderClient.mm:
2390 (WebFrameLoaderClient::didReplaceMultipartContent):
2391 Call the FrameView's didReplaceMultipartContent().
2393 2015-05-22 Jon Lee <jonlee@apple.com>
2395 Fix macros for wireless playback
2396 https://bugs.webkit.org/show_bug.cgi?id=145239
2397 rdar://problem/21049541
2399 Reviewed by Anders Carlsson.
2401 Encompass the logic within ENABLE(WIRELESS_TARGET_PLAYBACK). Update property name.
2403 * WebView/WebPreferenceKeysPrivate.h:
2404 * WebView/WebPreferences.h:
2405 * WebView/WebPreferences.mm:
2406 (+[WebPreferences initialize]): Wrap in ENABLE.
2407 (-[WebPreferences allowsAirPlayForMediaPlayback]): Ditto.
2408 (-[WebPreferences setAllowsAirPlayForMediaPlayback:]): Ditto.
2409 * WebView/WebView.mm:
2410 (-[WebView _preferencesChanged:]): Ditto.
2412 2015-05-27 Dean Jackson <dino@apple.com>
2414 img.currentSrc problem in strict mode with old picturefill
2415 https://bugs.webkit.org/show_bug.cgi?id=144095
2416 <rdar://problem/21087013>
2418 Reviewed by Simon Fraser.
2420 Add a PICTURE_SIZES flag.
2422 * Configurations/FeatureDefines.xcconfig:
2424 2015-05-26 Dan Bernstein <mitz@apple.com>
2426 <rdar://problem/21104551> Update build settings
2428 Reviewed by Anders Carlsson.
2430 * Configurations/DebugRelease.xcconfig:
2431 * Configurations/FeatureDefines.xcconfig:
2432 * Configurations/Version.xcconfig:
2434 2015-05-25 Dan Bernstein <mitz@apple.com>
2436 ASSERT_MAIN_THREAD and DOM_ASSERT_MAIN_THREAD are unnecessary no-ops
2437 https://bugs.webkit.org/show_bug.cgi?id=145372
2439 Reviewed by Sam Weinig.
2441 * Carbon/CarbonWindowAdapter.mm:
2442 (-[CarbonWindowAdapter finalize]): Removed use of ASSERT_MAIN_THREAD.
2444 * Configurations/Base.xcconfig: Removed DISABLE_THREAD_CHECK from DEBUG_DEFINES.
2446 * History/WebHistoryItem.mm:
2447 (-[WebHistoryItem URLString]): Removed use of ASSERT_MAIN_THREAD.
2448 (-[WebHistoryItem originalURLString]): Ditto.
2449 (-[WebHistoryItem title]): Ditto.
2450 (-[WebHistoryItem lastVisitedTimeInterval]): Ditto.
2451 (-[WebHistoryItem isEqual:]): Ditto.
2452 (-[WebHistoryItem description]): Ditto.
2453 (-[WebHistoryItem initFromDictionaryRepresentation:]): Ditto.
2454 (-[WebHistoryItem scrollPoint]): Ditto.
2456 * Misc/WebElementDictionary.mm:
2457 (-[WebElementDictionary finalize]): Ditto.
2459 * Misc/WebIconDatabase.mm:
2460 (-[WebIconDatabase iconForURL:withSize:cache:]): Ditto.
2461 (-[WebIconDatabase iconURLForURL:]): Ditto.
2462 (-[WebIconDatabase defaultIconWithSize:]): Ditto.
2463 (-[WebIconDatabase retainIconForURL:]): Ditto.
2464 (-[WebIconDatabase releaseIconForURL:]): Ditto.
2465 (+[WebIconDatabase delayDatabaseCleanup]): Ditto.
2466 (+[WebIconDatabase allowDatabaseCleanup]): Ditto.
2467 (-[WebIconDatabase removeAllIcons]): Ditto.
2468 (-[WebIconDatabase _iconForFileURL:withSize:]): Ditto.
2469 (webGetNSImage): Ditto.
2471 * Misc/WebKitLogging.h: Removed definition of ASSERT_MAIN_THREAD.
2473 * Plugins/WebBaseNetscapePluginView.mm:
2474 (-[WebBaseNetscapePluginView finalize]): Removed use of ASSERT_MAIN_THREAD.
2476 * Plugins/WebBasePluginPackage.mm:
2477 (-[WebBasePluginPackage finalize]): Ditto.
2479 * Plugins/WebNetscapePluginView.mm:
2480 (-[WebNetscapePluginView finalize]): Ditto.
2482 * WebCoreSupport/WebEditorClient.mm:
2483 (-[WebUndoStep finalize]): Ditto.
2485 * WebView/WebDataSource.mm:
2486 (-[WebDataSource finalize]): Ditto.
2488 * WebView/WebHTMLView.mm:
2489 (-[WebHTMLViewPrivate finalize]): Ditto.
2490 (-[WebHTMLView finalize]): Ditto.
2491 (-[WebHTMLView drawRect:]): Ditto.
2493 * WebView/WebViewData.mm:
2494 (-[WebViewPrivate finalize]): Ditto.
2496 2015-05-23 Dan Bernstein <mitz@apple.com>
2498 Remove unused definitions of WEBKIT_VERSION_MIN_REQUIRED
2499 https://bugs.webkit.org/show_bug.cgi?id=145345
2501 Reviewed by Sam Weinig.
2503 * Configurations/WebKitLegacy.xcconfig: Also changed to use $(inherited).
2505 2015-05-24 Jeremy Jones <jeremyj@apple.com>
2507 Register media MIME types as supported by HTML view in WebKit1.
2508 https://bugs.webkit.org/show_bug.cgi?id=145356
2510 Reviewed by Eric Carlson.
2512 WebDataSource and WebFrame view knew about suppotedImageMIMETypes and supportedNonImageMIMETypes,
2513 but not a third category supportedMediaMIMETypes. These are now included along-side
2514 supportedNonImageMIMETypes.
2516 * WebView/WebDataSource.mm:
2517 (+[WebDataSource _repTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
2518 * WebView/WebFrameView.mm:
2519 (+[WebFrameView _viewTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
2520 * WebView/WebHTMLRepresentation.h: declare -supportedMediaMIMETypes
2521 * WebView/WebHTMLRepresentation.mm:
2522 (+[WebHTMLRepresentation supportedMIMETypes]): include supportedMediaMIMETypes
2523 (+[WebHTMLRepresentation supportedMediaMIMETypes]): added
2524 * WebView/WebHTMLView.mm:
2525 (+[WebHTMLView supportedMediaMIMETypes]): added
2526 * WebView/WebHTMLViewPrivate.h: declare -supportedMediaMIMETypes
2528 2015-05-22 Jon Lee <jonlee@apple.com>
2530 Rename MediaPlaybackAllowsInline
2531 https://bugs.webkit.org/show_bug.cgi?id=145315
2533 Reviewed by Eric Carlson.
2535 Our API uses allowsInlineMediaPlayback. Our symbols should reflect the same.
2537 * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its
2538 value, for backwards compatibility.
2539 * WebView/WebPreferences.mm:
2540 (+[WebPreferences initialize]): Update the symbol.
2541 (-[WebPreferences mediaPlaybackAllowsInline]): Ditto. This setting will not
2542 be renamed in a future patch.
2543 (-[WebPreferences setMediaPlaybackAllowsInline:]): Ditto.
2544 * WebView/WebView.mm:
2545 (-[WebView _preferencesChanged:]): Update the call to settings.
2547 2015-05-22 Jon Lee <jonlee@apple.com>
2549 Rename MediaPlaybackAllowsAirPlay
2550 https://bugs.webkit.org/show_bug.cgi?id=145316
2552 Reviewed by Eric Carlson.
2554 In preparation for an API rename, update internal symbols from mediaPlaybackAllowsAirPlay
2555 to allowsAirPlayForMediaPlayback.
2557 * WebView/WebPreferenceKeysPrivate.h: Update the name but keep its value, for backwards
2559 * WebView/WebPreferences.mm:
2560 (+[WebPreferences initialize]): Update to reference the new key name.
2561 (-[WebPreferences mediaPlaybackAllowsAirPlay]): Ditto. This API will not change in a future
2563 (-[WebPreferences setMediaPlaybackAllowsAirPlay:]): Ditto.
2564 * WebView/WebView.mm:
2565 (-[WebView _preferencesChanged:]): Update the call to settings.
2567 2015-05-22 Jon Lee <jonlee@apple.com>
2569 Rename MediaPlaybackRequiresUserGesture
2570 https://bugs.webkit.org/show_bug.cgi?id=145314
2572 Reviewed by Anders Carlsson.
2574 In preparation for an API rename, update internal symbols from mediaPlaybackRequiresUserGesture
2575 to requiresUserGestureForMediaPlayback.
2577 No changes are being made to the API in this patch.
2579 * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its value, for backwards
2581 * WebView/WebPreferences.mm:
2582 (+[WebPreferences initialize]): Update the symbol.
2583 (-[WebPreferences mediaPlaybackRequiresUserGesture]): Ditto. This setting will not be renamed
2585 (-[WebPreferences setMediaPlaybackRequiresUserGesture:]): Ditto.
2586 * WebView/WebView.mm:
2587 (-[WebView _preferencesChanged:]): Update the call to settings.
2589 2015-05-22 Tim Horton <timothy_horton@apple.com>
2591 Remove action menu support
2592 https://bugs.webkit.org/show_bug.cgi?id=145305
2593 <rdar://problem/21070771>
2595 Reviewed by Anders Carlsson.
2597 * Configurations/WebKitLegacy.xcconfig:
2598 * WebView/WebActionMenuController.h: Removed.
2599 * WebView/WebActionMenuController.mm: Removed.
2600 * WebView/WebHTMLView.mm:
2601 (-[WebHTMLView otherMouseDown:]):
2602 (-[WebHTMLView scrollWheel:scrollWheel:]): Deleted.
2603 (-[WebHTMLView mouseDown:mouseDown:]): Deleted.
2604 * WebView/WebUIDelegatePrivate.h:
2605 * WebView/WebView.mm:
2606 (-[WebView _commonInitializationWithFrameName:groupName:]): Deleted.
2607 (-[WebView _close]): Deleted.
2608 (-[WebView prepareForMenu:withEvent:]): Deleted.
2609 (-[WebView willOpenMenu:withEvent:]): Deleted.
2610 (-[WebView didCloseMenu:withEvent:]): Deleted.
2611 (-[WebView _actionMenuController]): Deleted.
2612 * WebView/WebViewData.h:
2613 * WebView/WebViewData.mm:
2614 (-[WebViewPrivate dealloc]): Deleted.
2615 * WebView/WebViewInternal.h:
2616 Remove everything, except some enums that clients still refer to.
2618 2015-05-22 Brady Eidson <beidson@apple.com>
2620 Rework how the ResourceRequest user initiated property key is used.
2621 Followup to https://bugs.webkit.org/show_bug.cgi?id=145281
2623 Reviewed by Dan Bernstein.
2625 * WebCoreSupport/WebSystemInterface.mm:
2626 (WKResourceRequestIsUserInitiatedKey): Deleted.
2627 (InitWebCoreSystemInterface): Deleted.
2629 2015-05-21 Brady Eidson <beidson@apple.com>
2631 Add an "initiated by user gesture" flag to ResourceRequest.
2632 https://bugs.webkit.org/show_bug.cgi?id=145281
2634 Reviewed by Alex Christensen.
2636 * WebCoreSupport/WebSystemInterface.mm:
2637 (WKResourceRequestIsUserInitiatedKey):
2638 (InitWebCoreSystemInterface):
2640 2015-05-20 Anders Carlsson <andersca@apple.com>
2644 * WebView/WebViewInternal.h:
2646 2015-05-20 Alex Christensen <achristensen@webkit.org>
2648 Unreviewed build fix; LocalizedStrings.h is in WebCore.
2650 * WebView/WebActionMenuController.mm:
2652 2015-05-20 Jer Noble <jer.noble@apple.com>
2654 Unreviewed build fix; WebActionMenuController.mm should directly include LocalizedStrings.h
2656 * WebView/WebActionMenuController.mm:
2658 2015-05-19 Jer Noble <jer.noble@apple.com>
2660 Touching HTMLMediaElement.h or MediaPlayer.h causes a world rebuild.
2661 https://bugs.webkit.org/show_bug.cgi?id=145193
2663 Reviewed by Eric Carlson.
2665 Use HTMLMediaElementEnums instead of HTMLMediaElement.
2667 * WebCoreSupport/WebChromeClient.h:
2668 * WebCoreSupport/WebChromeClient.mm:
2669 (WebChromeClient::enterVideoFullscreenForVideoElement): HTMLMediaElement -> HTMLMediaElementEnums.
2670 * WebView/WebView.mm:
2671 (-[WebView _enterVideoFullscreenForVideoElement:mode:]): Ditto.
2672 * WebView/WebViewInternal.h:
2674 2015-05-19 Michael Saboff <msaboff@apple.com>
2676 REGRESSION(183787): JIT is enabled for all builds
2677 https://bugs.webkit.org/show_bug.cgi?id=145179
2679 Reviewed by Geoffrey Garen.
2681 Eliminated the setting of ENABLE_JIT, as wtf/Platform.h has appropriate logic to
2682 set it depending on OS and CPU type.
2684 * Configurations/FeatureDefines.xcconfig:
2686 2015-05-19 Brady Eidson <beidson@apple.com>
2688 X-Frame-Options headers not respected when loading from application cache.
2689 <rdar://problem/14877623> and https://bugs.webkit.org/show_bug.cgi?id=131800
2691 Reviewed by Alexey Proskuryakov.
2693 * WebView/WebFrame.mm:
2694 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2696 2015-05-18 Skachkov Alexandr <gskachkov@gmail.com>
2698 [ES6] Arrow function syntax. Feature flag for arrow function
2699 https://bugs.webkit.org/show_bug.cgi?id=145108
2701 Reviewed by Ryosuke Niwa.
2703 Added feature flag ENABLE_ES6_ARROWFUNCTION_SYNTAX for arrow function
2705 * Configurations/FeatureDefines.xcconfig:
2707 2015-05-15 Jeremy Jones <jeremyj@apple.com>
2709 Limit alternate fullscreen with linked on or after.
2710 https://bugs.webkit.org/show_bug.cgi?id=144894
2712 Reviewed by Dean Jackson.
2714 * WebView/WebView.mm:
2715 (shouldAllowAlternateFullscreen): Added.
2716 (-[WebView _preferencesChanged:]):
2718 2015-05-12 Simon Fraser <simon.fraser@apple.com>
2720 Turn antialiased font dilation off by default
2721 https://bugs.webkit.org/show_bug.cgi?id=144940
2722 rdar://problem/20923031
2724 Reviewed by Sam Weinig.
2726 Turn antialised font dilation off by default.
2728 * WebView/WebPreferences.mm:
2729 (+[WebPreferences initialize]):
2731 2015-05-11 Daniel Bates <dabates@apple.com>
2733 [iOS] Close all open databases in expiration handler of process assertion
2734 https://bugs.webkit.org/show_bug.cgi?id=144661
2735 <rdar://problem/20845052>
2737 Reviewed by Darin Adler.
2739 For Legacy WebKit, close all open databases when the process assertion expiration
2742 * Storage/WebDatabaseManager.mm:
2743 (+[WebDatabaseManager startBackgroundTask]): Call DatabaseTracker::tracker().closeAllDatabases()
2744 in the expiration handler to close all open databases. As a side effect of closing
2745 a database all in-progress database transactions are interrupted.
2747 2015-05-10 Sungmann Cho <sungmann.cho@navercorp.com>
2749 Get rid of the public item accessors in BackForwardClient
2750 https://bugs.webkit.org/show_bug.cgi?id=144827
2752 Reviewed by Darin Adler.
2754 Remove backItem(), currentItem(), and forwardItem() from BackForwardClient.
2755 We can still use these functionalities through BackForwardController.
2757 No new tests, no behavior change.
2759 * WebView/WebView.mm:
2760 (-[WebView _loadBackForwardListFromOtherView:]):
2762 2015-05-09 Yoav Weiss <yoav@yoav.ws>
2764 Remove the PICTURE_SIZES build flag
2765 https://bugs.webkit.org/show_bug.cgi?id=144679
2767 Reviewed by Benjamin Poulain.
2769 Removed the PICTURE_SIZES build time flag.
2771 * Configurations/FeatureDefines.xcconfig:
2773 2015-05-08 Myles C. Maxfield <mmaxfield@apple.com>
2775 Remove convenience constructors for TextRun
2776 https://bugs.webkit.org/show_bug.cgi?id=144752
2778 These convenience constructors are unnecessary. Moving the code that makes the StringView
2779 back to the call site will also help us make things more elegant in future refactoring.
2781 Reviewed by Darin Adler.
2783 No new tests because there is no behavior change.
2785 * Misc/WebKitNSStringExtras.mm:
2786 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2787 (-[NSString _web_widthWithFont:]):
2789 2015-05-08 Commit Queue <commit-queue@webkit.org>
2791 Unreviewed, rolling out r183996.
2792 https://bugs.webkit.org/show_bug.cgi?id=144806
2794 ASan detected use-after free (Requested by ap on #webkit).
2798 "Remove convenience constructors for TextRun"
2799 https://bugs.webkit.org/show_bug.cgi?id=144752
2800 http://trac.webkit.org/changeset/183996
2802 2015-05-08 Myles C. Maxfield <mmaxfield@apple.com>
2804 Remove convenience constructors for TextRun
2805 https://bugs.webkit.org/show_bug.cgi?id=144752
2807 These convenience constructors are unnecessary. Moving the code that makes the StringView
2808 back to the call site will also help us make things more elegant in future refactoring.
2810 Reviewed by Darin Adler.
2812 No new tests because there is no behavior change.
2814 * Misc/WebKitNSStringExtras.mm:
2815 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
2816 (-[NSString _web_widthWithFont:]):
2818 2015-05-07 Anders Carlsson <andersca@apple.com>
2822 * Misc/WebNSPasteboardExtras.mm:
2823 (-[NSPasteboard _web_writeFileWrapperAsRTFDAttachment:]):
2824 * WebView/WebHTMLView.mm:
2825 (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
2826 (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
2827 * WebView/WebPDFView.mm:
2828 (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
2829 Pass empty arrays and dictionaries instead of nil.
2831 * WebView/WebView.mm:
2832 (-[WebView _commonInitializationWithFrameName:groupName:]):
2833 Use the regular init method.
2835 2015-05-07 Said Abou-Hallawa <sabouhallawa@apple.com>
2837 Fix iPhone 6 iOS simulator Build.
2838 following http://trac.webkit.org/changeset/183954.
2840 Reviewed by Daniel Bates.
2842 * WebView/WebHTMLView.mm:
2843 (-[WebHTMLView pressureChangeWithEvent:]):
2845 2015-05-07 Timothy Horton <timothy_horton@apple.com>
2847 Occasional null deref in WebImmediateActionController
2848 https://bugs.webkit.org/show_bug.cgi?id=144772
2849 <rdar://problem/20811128>
2851 Reviewed by Beth Dakin.
2853 * WebView/WebImmediateActionController.mm:
2854 (-[WebImmediateActionController _defaultAnimationController]):
2855 (-[WebImmediateActionController _animationControllerForDataDetectedText]):
2856 (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
2857 Null-check TextIndicators before dereferencing.
2859 2015-05-07 Beth Dakin <bdakin@apple.com>
2861 New force-related DOM events should fire in WK1 views
2862 https://bugs.webkit.org/show_bug.cgi?id=144663
2864 rdar://problem/20281886
2866 Reviewed by Sam Weinig.
2868 Pass the lastPressureEvent to WebCore.
2869 * WebView/WebHTMLView.mm:
2870 (-[WebHTMLView _updateMouseoverWithEvent:]):
2871 (-[WebHTMLView rightMouseUp:]):
2872 (-[WebHTMLView menuForEvent:]):
2873 (-[WebHTMLView acceptsFirstMouse:]):
2874 (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
2875 (-[WebHTMLView mouseDown:mouseDown:]):
2876 (-[WebHTMLView mouseDragged:]):
2877 (-[WebHTMLView mouseUp:mouseUp:]):
2879 New NSRespnder method for pressure changes.
2880 (-[WebHTMLView pressureChangeWithEvent:]):
2882 New BOOL _contentPreventsDefault tracks whether the HitTestResult prevented the
2883 default action. Get rid of willHandleMouseDown; now that the gesture recognizer
2884 sets delaysPrimaryMouseButtonEvents to NO, we don’t need this.
2885 * WebView/WebImmediateActionController.h:
2886 * WebView/WebImmediateActionController.mm:
2887 (-[WebImmediateActionController _clearImmediateActionState]):
2889 Set all of the immediateActionStages on EventHandler. This is critical to keep
2890 link navigation happening at the right time now that
2891 delaysPrimaryMouseButtonEvents is set to NO.
2892 (-[WebImmediateActionController performHitTestAtPoint:]):
2893 (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
2894 (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
2895 (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
2897 Use a dummy animation controller if the content prevents default.
2898 (-[WebImmediateActionController _defaultAnimationController]):
2899 (-[WebImmediateActionController _updateImmediateActionItem]):
2900 (-[WebImmediateActionController webView:willHandleMouseDown:]): Deleted.
2902 Set delaysPrimaryMouseButtonEvents to NO so that we get existing mouse events when
2904 * WebView/WebView.mm:
2905 (-[WebView _commonInitializationWithFrameName:groupName:]):
2907 Cache the most recent pressure event so that we can send it to WebCore for all of
2909 (-[WebView _pressureEvent]):
2910 (-[WebView _setPressureEvent:]):
2911 * WebView/WebViewData.h:
2912 * WebView/WebViewData.mm:
2913 (-[WebViewPrivate dealloc]):
2914 * WebView/WebViewInternal.h:
2916 2015-05-05 Myles C. Maxfield <mmaxfield@apple.com>
2918 Revert "Introducing the Platform Abstraction Layer (PAL)"
2919 https://bugs.webkit.org/show_bug.cgi?id=144751
2923 PAL should be a new target inside WebCore, rather than a top-level folder.
2925 * Configurations/FeatureDefines.xcconfig: Updated
2927 2015-05-07 Dan Bernstein <mitz@apple.com>
2929 <rdar://problem/19317140> [Xcode] Remove usage of AspenFamily.xcconfig in Source/
2930 https://bugs.webkit.org/show_bug.cgi?id=144727
2932 Reviewed by Darin Adler.
2934 * Configurations/Base.xcconfig: Don’t include AspenFamily.xcconfig.
2935 * Configurations/WebKitLegacy.xcconfig: Define INSTALL_PATH in terms of
2936 INSTALL_PATH_PREFIX and INSTALL_PATH_ACTUAL, and define INSTALL_PATH_PREFIX for the iOS 8.x
2939 2015-04-02 Myles C. Maxfield <mmaxfield@apple.com>
2941 Introducing the Platform Abstraction Layer (PAL)
2942 https://bugs.webkit.org/show_bug.cgi?id=143358
2944 Reviewed by Simon Fraser.
2946 * Configurations/FeatureDefines.xcconfig: Updated
2948 2015-05-06 Antti Koivisto <antti@apple.com>
2950 REGRESSION (r183467): Unable to start downloads in private browsing mode
2951 https://bugs.webkit.org/show_bug.cgi?id=144533
2953 Reviewed by Darin Adler.
2955 * WebCoreSupport/WebFrameLoaderClient.mm:
2956 (WebFrameLoaderClient::dispatchWillSendRequest):
2958 Use updateFromDelegatePreservingOldProperties (like WK2) instead of doing the same thing manually.
2960 2015-05-06 Ryosuke Niwa <rniwa@webkit.org>
2962 Toggling underline on font panel removes strike through
2963 https://bugs.webkit.org/show_bug.cgi?id=144670
2964 <rdar://problem/3790443>
2966 Reviewed by Darin Adler.
2968 Use setStrikeThroughChange and setUnderlineChange added in r183770 to toggle underline and strike through.
2970 * WebView/WebHTMLView.mm:
2971 (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
2972 (-[WebHTMLView _styleForAttributeChange:]):
2973 (-[WebHTMLView changeAttributes:]):
2975 2015-05-04 Ryosuke Niwa <rniwa@webkit.org>
2977 Toggling underline or strike through affects each other
2978 https://bugs.webkit.org/show_bug.cgi?id=27818
2980 Reviewed by Darin Adler.
2982 * WebView/WebFrame.mm:
2983 (-[WebFrame _setTypingStyle:withUndoAction:]):
2985 2015-05-01 Martin Robinson <mrobinson@igalia.com>
2987 USE(...) macro should expect unprefixed variables
2988 https://bugs.webkit.org/show_bug.cgi?id=144454
2990 Reviewed by Daniel Bates.
2992 * Misc/WebDownload.h: Replace all occurrences WTF_USE with USE.
2994 2015-05-01 Brady Eidson <beidson@apple.com>
2996 Add API to disable meta refreshes.
2997 <rdar://problem/20333198> and https://bugs.webkit.org/show_bug.cgi?id=144269
2999 Reviewed by Alexey Proskuryakov.
3001 Add a preference to enable/disable meta refreshes, enabled by default.
3003 * WebView/WebPreferenceKeysPrivate.h:
3004 * WebView/WebPreferences.mm:
3005 (+[WebPreferences initialize]):
3006 (-[WebPreferences setMetaRefreshEnabled:]):
3007 (-[WebPreferences metaRefreshEnabled]):
3008 * WebView/WebPreferencesPrivate.h:
3009 * WebView/WebView.mm:
3010 (-[WebView _preferencesChanged:]):
3012 2015-04-30 Jon Davis <jond@apple.com>
3014 Web Inspector: console should show an icon for console.info() messages
3015 https://bugs.webkit.org/show_bug.cgi?id=18530
3017 Reviewed by Timothy Hatcher.
3019 * WebCoreSupport/WebChromeClient.mm:
3020 (stringForMessageLevel):
3021 * WebView/WebUIDelegatePrivate.h:
3023 2015-04-29 Myles C. Maxfield <mmaxfield@apple.com>
3025 [OS X] Use CTFontCreateForCSS instead of doing font search ourselves
3026 https://bugs.webkit.org/show_bug.cgi?id=132159
3028 Reviewed by Darin Adler.
3030 Add SPI to set the font whitelist.
3032 * WebView/WebView.mm:
3033 (+[WebView _setFontWhitelist:]):
3034 * WebView/WebViewPrivate.h:
3036 2015-04-28 Timothy Horton <timothy_horton@apple.com>
3038 [TextIndicator] Yellow highlight takes too long to fade out on scroll
3039 https://bugs.webkit.org/show_bug.cgi?id=144358
3040 <rdar://problem/19451011>
3042 Reviewed by Beth Dakin.
3044 * WebView/WebActionMenuController.mm:
3045 (-[WebActionMenuController _showTextIndicator]):
3046 * WebView/WebHTMLView.mm:
3047 (-[WebHTMLView quickLookWithEvent:]):
3048 * WebView/WebImmediateActionController.mm:
3049 (-[WebImmediateActionController _defaultAnimationController]):
3050 (-[WebImmediateActionController _animationControllerForDataDetectedText]):
3051 (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
3052 Pull _clearTextIndicatorWithAnimation out, make it avoid using a dismissal animation
3053 if we're called from didHandleScrollWheel.
3055 * WebView/WebView.mm:
3056 (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
3057 (-[WebView _setTextIndicator:]):
3058 (-[WebView _setTextIndicator:withLifetime:]):
3059 (-[WebView _clearTextIndicator]):
3060 (-[WebView _showDictionaryLookupPopup:]):
3061 (-[WebView _dictionaryLookupPopoverWillClose:]):
3062 (-[WebView _setTextIndicator:fadeOut:]): Deleted.
3063 * WebView/WebViewInternal.h:
3064 Make _setTextIndicator take a reference.
3065 Add a variant of _setTextIndicator that takes a Lifetime.
3066 Make _clearTextIndicatorWithAnimation take a DismissalAnimation.
3068 2015-04-28 Michael Catanzaro <mcatanzaro@igalia.com>
3070 Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
3071 https://bugs.webkit.org/show_bug.cgi?id=144304
3073 Reviewed by Geoffrey Garen.
3075 Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
3077 * Configurations/FeatureDefines.xcconfig:
3079 2015-04-28 Commit Queue <commit-queue@webkit.org>
3081 Unreviewed, rolling out r183514.
3082 https://bugs.webkit.org/show_bug.cgi?id=144359
3084 It broke cloop test bots (Requested by mcatanzaro on #webkit).
3088 "Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT"
3089 https://bugs.webkit.org/show_bug.cgi?id=144304
3090 http://trac.webkit.org/changeset/183514
3092 2015-04-28 Michael Catanzaro <mcatanzaro@igalia.com>
3094 Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
3095 https://bugs.webkit.org/show_bug.cgi?id=144304
3097 Reviewed by Geoffrey Garen.
3099 Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
3101 * Configurations/FeatureDefines.xcconfig:
3103 2015-04-28 Joseph Pecoraro <pecoraro@apple.com>
3105 Fix common typo "targetting" => "targeting"
3106 https://bugs.webkit.org/show_bug.cgi?id=144349
3108 Reviewed by Daniel Bates.
3110 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3111 (WebKit::NetscapePluginInstanceProxy::loadRequest):
3112 * Plugins/WebNetscapePluginView.mm:
3113 (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
3114 * WebView/WebPolicyDelegate.h:
3116 2015-04-28 Brady Eidson <beidson@apple.com>
3118 Consolidate most "frame load" arguments into FrameLoadRequest.
3119 https://bugs.webkit.org/show_bug.cgi?id=144276
3121 Reviewed by Alexey Proskuryakov.
3123 * WebView/WebPDFView.mm:
3124 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3126 2015-04-27 Dan Bernstein <mitz@apple.com>
3128 <rdar://problem/20721931> REGRESSION (r178753): All legacy framework headers are missing availability annotations
3129 https://bugs.webkit.org/show_bug.cgi?id=144311
3131 Reviewed by Adele Peterson.
3133 * postprocess-headers.sh: Changed “macsox” to “macosx”.
3135 2015-04-27 Brady Eidson <beidson@apple.com>
3137 Make 'enum NavigationType' be an enum class
3138 https://bugs.webkit.org/show_bug.cgi?id=144270
3140 Reviewed by Alex Christensen.
3142 * WebCoreSupport/WebFrameLoaderClient.mm:
3143 (WebFrameLoaderClient::actionDictionary):
3145 2015-04-27 Brent Fulgham <bfulgham@apple.com>
3147 REGRESSION(r182879): Images and video can no longer be downloaded
3148 https://bugs.webkit.org/show_bug.cgi?id=144267
3149 <rdar://problem/20702844>
3151 Reviewed by Simon Fraser.
3153 * WebView/WebActionMenuController.mm:
3154 (-[WebActionMenuController _createActionMenuItemForTag:]): Check for
3155 "!WebCore::protocolIs(..., "file")" for image and media downloads.
3157 2015-04-26 Yusuke Suzuki <utatane.tea@gmail.com>
3159 [ES6] Implement ES6 template literals
3160 https://bugs.webkit.org/show_bug.cgi?id=142691
3162 Reviewed by Darin Adler.
3164 Add ENABLE_ES6_TEMPLATE_LITERAL_SYNTAX compile time flag.
3166 * Configurations/FeatureDefines.xcconfig:
3168 2015-04-26 Doug Russell <d_russell@apple.com>
3170 AX: richer text change notifications (142719)
3171 https://bugs.webkit.org/show_bug.cgi?id=142719
3173 Reviewed by Darin Adler.
3175 Richer accessibility value change notifications. Introduce AXTextEditType,
3176 postTextStateChangeNotification and postTextReplacementNotification to give assistive
3177 tech apps more reliable context for responding to changes in web content. Also implement
3178 a mechanism to post value changes in password form fields in coalesced ticks to thwart
3179 analyzing the cadence of changes.
3181 Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent,
3182 and an overload of postTextReplacementNotification to give assistive tech apps more
3183 reliable context for responding to changes in web content selection. Also block posting
3184 selection changes on password fields.
3186 * WebCoreSupport/WebEditorClient.mm:
3187 (undoNameForEditAction):
3189 2015-04-24 Timothy Hatcher <timothy@apple.com>
3191 Web Inspector: Remove native window dock controls
3192 https://bugs.webkit.org/show_bug.cgi?id=144184
3194 Reviewed by Joseph Pecoraro.
3196 * Resources/Dock.pdf: Removed.
3197 * Resources/DockLegacy.pdf: Removed.
3198 * WebCoreSupport/WebInspectorClient.mm:
3199 (-[WebInspectorWindowController window]):
3200 (-[WebInspectorWindowController setDockingUnavailable:]):
3202 2015-04-25 Martin Robinson <mrobinson@igalia.com>
3204 Rename ENABLE_3D_RENDERING to ENABLE_3D_TRANSFORMS
3205 https://bugs.webkit.org/show_bug.cgi?id=144182
3207 Reviewed by Simon Fraser.
3209 * Configurations/FeatureDefines.xcconfig: Replace all instances of 3D_RENDERING with 3D_TRANSFORMS.
3211 2015-04-24 Commit Queue <commit-queue@webkit.org>
3213 Unreviewed, rolling out r183266.
3214 https://bugs.webkit.org/show_bug.cgi?id=144164
3216 Broke 32-bit build and a test. (Requested by ap on #webkit).
3220 "AX: richer text change notifications (142719)"
3221 https://bugs.webkit.org/show_bug.cgi?id=142719
3222 http://trac.webkit.org/changeset/183266
3224 2015-04-24 Myles C. Maxfield <mmaxfield@apple.com>
3226 [Cocoa] Start cleaning up FontPlatformData
3227 https://bugs.webkit.org/show_bug.cgi?id=144133
3229 Reviewed by Enrica Casucci.
3231 Receive casts which have been hoisted from the deleted FontPlatformData constructor.
3233 * Misc/WebKitNSStringExtras.mm:
3234 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Receive cast which has
3235 been hoisted from the deleted FontPlatformData constructor.
3236 (-[NSString _web_widthWithFont:]): Ditto.
3237 * Misc/WebStringTruncator.mm:
3238 (fontFromNSFont): Ditto.
3240 2015-04-24 Doug Russell <d_russell@apple.com>
3242 AX: richer text change notifications (142719)
3243 https://bugs.webkit.org/show_bug.cgi?id=142719
3245 Reviewed by Darin Adler.
3247 Richer accessibility value change notifications. Introduce AXTextEditType, postTextStateChangeNotification and postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content. Also implement a mechanism to post value changes in password form fields in coalesced ticks to thwart analyzing the cadence of changes.
3249 Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent, and an overload of postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content selection. Also block posting selection changes on password fields.
3251 * WebCoreSupport/WebEditorClient.mm:
3252 (undoNameForEditAction):
3254 2015-04-23 Jer Noble <jer.noble@apple.com>
3256 [Mac] Disable QTKit by default on future OS X.
3257 https://bugs.webkit.org/show_bug.cgi?id=144082
3259 Reviewed by Darin Adler.
3261 Default WebKitQTKitEnabledPreferenceKey to NO.
3263 * WebView/WebPreferences.mm:
3264 (+[WebPreferences initialize]):
3266 2015-04-23 Andreas Kling <akling@apple.com>
3268 There should only be one way to get the system memory size.
3269 <https://webkit.org/b/144081>
3271 Reviewed by Antti Koivisto.
3273 * Misc/WebKitSystemBits.h:
3274 * Misc/WebKitSystemBits.m:
3275 (WebMemorySize): Deleted.
3276 * WebView/WebView.mm:
3277 (+[WebView _setCacheModel:]):
3278 (roundUpToPowerOf2): Deleted.
3280 2015-04-22 Darin Adler <darin@apple.com>
3282 Remove OwnPtr and PassOwnPtr use from WebKit/cf, WebKit/mac, and WebKit2
3283 https://bugs.webkit.org/show_bug.cgi?id=143943
3285 Reviewed by Anders Carlsson.
3287 * Plugins/Hosted/ProxyInstance.h: Removed unneeded include.
3288 * Plugins/WebBaseNetscapePluginView.h: Ditto.
3290 * Plugins/WebNetscapePluginEventHandler.h: Use unique_ptr instead of
3291 PassOwnPtr for the create function. Also tweaked formatting and removed
3292 unneeded forward declaration of CGRect.
3293 * Plugins/WebNetscapePluginEventHandler.mm:
3294 (WebNetscapePluginEventHandler::create): Changed to use unique_ptr and
3297 * Plugins/WebNetscapePluginView.h: Use unique_ptr instead of OwnPtr for
3298 the _eventHandler field.
3299 * Plugins/WebNetscapePluginView.mm:
3300 (-[WebNetscapePluginView destroyPlugin]): Changed code to work with unique_ptr.
3302 * WebCoreSupport/WebUserMediaClient.mm: Removed unneeded include.
3304 * WebView/WebDeviceOrientationProviderMock.mm: Changed to use make_unique.
3305 * WebView/WebDeviceOrientationProviderMockInternal.h: Changed to use unique_ptr.
3307 * WebView/WebFrame.mm:
3308 (vectorForDictationPhrasesArray): Changed to return Vector<Vector<String>> and
3309 not a PassOwnPtr. Also rewrote to be much simpler, although there is still a
3310 pre-existing problem here where this could put empty vectors into the result,
3311 and I'm pretty sure the client never expects any of the Vector<String> to be empty.
3312 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
3313 Rewrote logic to involve WebCore types a bit less; old code was round tripping
3314 things through WebCore::URL for no obvious reason.
3316 * WebView/WebFrameInternal.h: Changed vectorForDictationPhrasesArray to return
3317 a Vector<Vector<String>> and not a PassOwnPtr.
3319 * WebView/WebFullScreenController.h: Removed unneeded include.
3321 * WebView/WebViewData.h: Changed m_alternativeTextUIController to be a
3322 m_alternativeTextUIController.
3323 * WebView/WebViewData.mm:
3324 (-[WebViewPrivate init]): Use make_unique to initialize m_alternativeTextUIController.
3326 2015-04-22 Brent Fulgham <bfulgham@apple.com>
3328 VisibleSelection should only accept Range by reference
3329 https://bugs.webkit.org/show_bug.cgi?id=144047
3331 Reviewed by Tim Horton.
3333 Update all uses of VisibleSelection to pass a Range reference instead
3336 * WebCoreSupport/WebContextMenuClient.mm:
3337 (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
3338 * WebView/WebFrame.mm:
3339 (-[WebFrame _selectNSRange:]):
3341 2015-04-22 Eric Carlson <eric.carlson@apple.com>
3343 [Mac] Device picker menu is positioned incorrectly in WK1
3344 https://bugs.webkit.org/show_bug.cgi?id=144049
3345 <rdar://problem/20493101>
3347 Reviewed by Dean Jackson.
3349 * WebView/WebView.mm:
3350 (-[WebView _showPlaybackTargetPicker:location:hasVideo:]): Mouse location is already in
3351 window coordinates so don't call convertRect:toView:nil.
3353 2015-04-21 Brent Fulgham <bfulgham@apple.com>
3355 Extend action menus to support PDF
3356 https://bugs.webkit.org/show_bug.cgi?id=143895
3357 <rdar://problem/19003333>
3359 Reviewed by Tim Horton.
3361 Prevent a crash when someone attempts to invoke an action menu on a PDF hosted
3364 * WebView/WebActionMenuController.mm:
3365 (-[WebActionMenuController performHitTestAtPoint:]): Handle WebPDFView as well as
3366 the WebHTMLView case.
3367 * WebView/WebDocument.h:
3368 * WebView/WebHTMLView.h:
3369 * WebView/WebHTMLView.mm:
3370 (-[WebHTMLView _frame]):
3371 * WebView/WebHTMLViewInternal.h:
3372 * WebView/WebPDFView.h:
3373 * WebView/WebPDFView.mm:
3374 (-[WebPDFView _frame]): Added.
3376 2015-04-22 Eric Carlson <eric.carlson@apple.com>
3378 Unreviewed post-review clean up after r183096.
3380 * WebView/WebMediaPlaybackTargetPicker.h:
3382 2015-04-21 Eric Carlson <eric.carlson@apple.com>
3384 [Mac] Use one playback target for all web processes
3385 https://bugs.webkit.org/show_bug.cgi?id=144009
3387 Reviewed by Tim Horton.
3389 Update to use WebMediaSessionManager for playback target management.
3391 * WebCoreSupport/WebChromeClient.h:
3392 * WebCoreSupport/WebChromeClient.mm:
3393 (WebChromeClient::addPlaybackTargetPickerClient):
3394 (WebChromeClient::removePlaybackTargetPickerClient):
3395 (WebChromeClient::showPlaybackTargetPicker):
3396 (WebChromeClient::playbackTargetPickerClientStateDidChange):
3397 (WebChromeClient::startingMonitoringPlaybackTargets): Deleted.
3398 (WebChromeClient::stopMonitoringPlaybackTargets): Deleted.
3399 * WebView/WebMediaPlaybackTargetPicker.h:
3400 * WebView/WebMediaPlaybackTargetPicker.mm:
3401 (WebMediaPlaybackTargetPicker::addPlaybackTargetPickerClient):
3402 (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
3403 (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
3404 (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
3405 (WebMediaPlaybackTargetPicker::setPlaybackTarget):
3406 (WebMediaPlaybackTargetPicker::externalOutputDeviceAvailableDidChange):
3407 (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
3408 (WebMediaPlaybackTargetPicker::invalidate):
3409 (WebMediaPlaybackTargetPicker::startingMonitoringPlaybackTargets): Deleted.
3410 (WebMediaPlaybackTargetPicker::stopMonitoringPlaybackTargets): Deleted.
3411 (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): Deleted.
3412 (WebMediaPlaybackTargetPicker::targetPicker): Deleted.
3413 * WebView/WebView.mm:
3414 (-[WebView _addPlaybackTargetPickerClient:]):
3415 (-[WebView _removePlaybackTargetPickerClient:]):
3416 (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
3417 (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
3418 (-[WebView _showPlaybackTargetPicker:hasVideo:]): Deleted.
3419 (-[WebView _startingMonitoringPlaybackTargets]): Deleted.
3420 (-[WebView _stopMonitoringPlaybackTargets]): Deleted.
3421 * WebView/WebViewInternal.h:
3423 2015-04-20 Alexey Proskuryakov <ap@apple.com>
3425 Disable mixed content blocking for existing WebKit1 clients
3426 https://bugs.webkit.org/show_bug.cgi?id=143955
3427 rdar://problem/20177186
3429 Reviewed by Oliver Hunt.
3431 * Misc/WebKitVersionChecks.h:
3432 * WebView/WebView.mm:
3433 (shouldAllowInsecureContent):
3434 (-[WebView _preferencesChanged:]):
3436 2015-04-20 Tim Horton <timothy_horton@apple.com>
3438 Implement immediate action support for tel: and mailto: URLs
3439 https://bugs.webkit.org/show_bug.cgi?id=143916
3440 <rdar://problem/19721711>
3442 Reviewed by Darin Adler.
3444 * WebView/WebImmediateActionController.mm:
3445 (-[WebImmediateActionController _defaultAnimationController]):
3446 (-[WebImmediateActionController _animationControllerForDataDetectedText]):
3447 (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
3448 (-[WebImmediateActionController _menuItemForDataDetectedText]): Deleted.
3449 * WebView/WebUIDelegatePrivate.h:
3450 Add _animationControllerForDataDetectedLink and use it when
3451 building immediate actions for tel: and mailto: links.
3453 2015-04-17 Daniel Bates <dabates@apple.com>
3455 REGRESSION: SVG does not support link dragging
3456 https://bugs.webkit.org/show_bug.cgi?id=141597
3458 Reviewed by Darin Adler.
3460 Write -[WebElementDictionary _isLiveLink] in terms of WebCore::isDraggableLink().
3462 * Misc/WebElementDictionary.mm:
3463 (-[WebElementDictionary _isLiveLink]):
3465 2015-04-16 Sam Weinig <sam@webkit.org>
3467 Expose JavaScriptMarkupEnabled preference for WebKit1
3468 <rdar://problem/19939450>
3469 https://bugs.webkit.org/show_bug.cgi?id=143855
3471 Reviewed by Dan Bernstein.
3473 * WebView/WebPreferenceKeysPrivate.h:
3474 Add new key, WebKitJavaScriptMarkupEnabledPreferenceKey
3476 * WebView/WebPreferences.mm:
3477 (+[WebPreferences initialize]):
3478 Initialize WebKitJavaScriptMarkupEnabledPreferenceKey to YES.
3480 (-[WebPreferences isJavaScriptMarkupEnabled]):
3481 (-[WebPreferences setJavaScriptMarkupEnabled:]):
3482 Implement getter/setter.
3484 * WebView/WebPreferencesPrivate.h:
3485 Add new property, javaScriptMarkupEnabled.
3487 * WebView/WebView.mm:
3488 (-[WebView _preferencesChanged:]):
3489 Map the new preference to WebCore's scriptMarkupEnabled setting.
3491 2015-04-15 Brent Fulgham <bfulgham@apple.com>
3493 [Mac] Disable "Save to Downloads" option for local files
3494 https://bugs.webkit.org/show_bug.cgi?id=143794
3496 Reviewed by Tim Horton.
3498 Disable the Image and Media download options if the download
3499 target is a local file. We can only download web resources;
3500 anything else is actually a no-op.
3502 * WebView/WebActionMenuController.mm:
3503 (-[WebActionMenuController _defaultMenuItemsForImage]):
3504 (-[WebActionMenuController _defaultMenuItemsForVideo]):
3506 2015-04-15 Alex Christensen <achristensen@webkit.org>
3508 Progress towards CMake on Mac.
3509 https://bugs.webkit.org/show_bug.cgi?id=143785
3511 Reviewed by Csaba Osztrogonác.
3513 * WebView/WebPDFDocumentExtras.mm:
3514 * WebView/WebPDFView.mm:
3516 2015-04-13 Jer Noble <jer.noble@apple.com>
3518 [Fullscreen] ChromeClient::exitVideoFullscreen() should take a pointer to a HTMLVideoElement.
3519 https://bugs.webkit.org/show_bug.cgi?id=143674
3521 Reviewed by Darin Adler.
3523 * WebCoreSupport/WebChromeClient.h:
3524 * WebCoreSupport/WebChromeClient.mm:
3525 (WebChromeClient::enterVideoFullscreenForVideoElement): Takes a reference.
3526 (WebChromeClient::exitVideoFullscreenForVideoElement): Renamed from exitVideoFullscreen().
3527 (WebChromeClient::exitVideoFullscreen): Deleted.
3529 2015-04-14 Simon Fraser <simon.fraser@apple.com>
3531 Re-enable custom dilation for antialiased fonts
3532 https://bugs.webkit.org/show_bug.cgi?id=143738
3534 Reviewed by Tim Horton.
3536 Enabling custom dilation for antialised fonts broke layout tests, so re-land it,
3537 but disable in WebKitTestRunner and DumpRenderTree. The latter requires adding
3538 a private WebKit pref. This pref defaults to YES, enabling the feature by default
3539 in WK1 as we do for WK2.
3541 * WebView/WebPreferenceKeysPrivate.h:
3542 * WebView/WebPreferences.mm:
3543 (+[WebPreferences initialize]):
3544 (-[WebPreferences setAntialiasedFontDilationEnabled:]):
3545 (-[WebPreferences antialiasedFontDilationEnabled]):
3546 * WebView/WebPreferencesPrivate.h:
3547 * WebView/WebView.mm:
3548 (-[WebView _preferencesChanged:]):
3550 2015-04-13 Brady Eidson <beidson@apple.com>
3552 Share sheets from Share menus appear outside the browser window.
3553 <rdar://problem/20455592> and https://bugs.webkit.org/show_bug.cgi?id=143620
3555 Reviewed by Darin Adler.
3557 Refactor existing Sharing Service Picker code to also be used for the Share menu NSMenuItem.
3559 * Misc/WebSharingServicePickerController.h:
3560 (WebSharingServicePickerClient::webView):
3561 * Misc/WebSharingServicePickerController.mm:
3562 (WebSharingServicePickerClient::WebSharingServicePickerClient):
3563 (WebSharingServicePickerClient::sharingServicePickerWillBeDestroyed):
3564 (WebSharingServicePickerClient::pageForSharingServicePicker):
3565 (WebSharingServicePickerClient::windowForSharingServicePicker):
3566 (WebSharingServicePickerClient::screenRectForCurrentSharingServicePickerItem):
3567 (WebSharingServicePickerClient::imageForCurrentSharingServicePickerItem):
3568 (-[WebSharingServicePickerController initWithItems:includeEditorServices:client:style:]):
3569 (-[WebSharingServicePickerController initWithSharingServicePicker:client:]):
3570 (-[WebSharingServicePickerController sharingService:didShareItems:]):
3572 * WebCoreSupport/WebContextMenuClient.h:
3573 (WebContextMenuClient::webView): Deleted.
3574 * WebCoreSupport/WebContextMenuClient.mm:
3575 (WebContextMenuClient::WebContextMenuClient):
3576 (WebContextMenuClient::pageForSharingServicePicker): Deleted.
3577 (WebContextMenuClient::windowForSharingServicePicker): Deleted.
3579 * WebCoreSupport/WebSelectionServiceController.h:
3580 * WebCoreSupport/WebSelectionServiceController.mm:
3581 (WebSelectionServiceController::WebSelectionServiceController):
3582 (WebSelectionServiceController::handleSelectionServiceClick):
3583 (WebSelectionServiceController::pageForSharingServicePicker): Deleted.
3584 (WebSelectionServiceController::windowForSharingServicePicker): Deleted.
3585 (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem): Deleted.
3586 (WebSelectionServiceController::imageForCurrentSharingServicePickerItem): Deleted.
3588 * WebView/WebHTMLView.mm:
3589 (-[WebHTMLView menuForEvent:]):