1 2016-11-11 Ryosuke Niwa <rniwa@webkit.org>
3 Hovering over a slotted Text node clears hover state
4 https://bugs.webkit.org/show_bug.cgi?id=164002
5 <rdar://problem/29040471>
7 Reviewed by Simon Fraser.
9 * WebView/WebImmediateActionController.mm:
10 (-[WebImmediateActionController performHitTestAtPoint:]):
12 2016-11-11 Wenson Hsieh <wenson_hsieh@apple.com>
14 [WK2] autocorrect and autocapitalize attributes do not work in contenteditable elements
15 https://bugs.webkit.org/show_bug.cgi?id=164538
16 <rdar://problem/8418711>
18 Reviewed by Ryosuke Niwa.
20 Account for renaming HTMLElement::autocorrect to HTMLElement::shouldAutocorrect, as well as moving
21 WebAutocapitalizeType to WebKit from WebCore. Additionally, moves the -autocorrect and -autocapitalize SPIs out
22 of HTML(Input|Form|TextArea)ElementPrivate.h and into HTMLElementPrivate.h. This also means removing redundant
23 code for interfacing with the unwrapped HTMLElement's autocorrect and autocapitalize attributes.
26 (webAutocapitalizeType):
27 (-[DOMHTMLInputElement _autocapitalizeType]):
28 (-[DOMHTMLTextAreaElement _autocapitalizeType]):
29 * DOM/DOMHTMLElement.mm:
30 (-[DOMHTMLElement autocorrect]):
31 (-[DOMHTMLElement setAutocorrect:]):
32 (-[DOMHTMLElement autocapitalize]):
33 (-[DOMHTMLElement setAutocapitalize:]):
34 * DOM/DOMHTMLElementPrivate.h: Copied from Source/WebCore/html/Autocapitalize.h.
35 * DOM/DOMHTMLFormElement.mm:
36 (-[DOMHTMLFormElement autocorrect]): Deleted.
37 (-[DOMHTMLFormElement setAutocorrect:]): Deleted.
38 (-[DOMHTMLFormElement autocapitalize]): Deleted.
39 (-[DOMHTMLFormElement setAutocapitalize:]): Deleted.
40 * DOM/DOMHTMLInputElement.mm:
41 (-[DOMHTMLInputElement autocorrect]): Deleted.
42 (-[DOMHTMLInputElement setAutocorrect:]): Deleted.
43 (-[DOMHTMLInputElement autocapitalize]): Deleted.
44 (-[DOMHTMLInputElement setAutocapitalize:]): Deleted.
45 * DOM/DOMHTMLInputElementPrivate.h:
46 * DOM/DOMHTMLTextAreaElement.mm:
47 (-[DOMHTMLTextAreaElement autocorrect]): Deleted.
48 (-[DOMHTMLTextAreaElement setAutocorrect:]): Deleted.
49 (-[DOMHTMLTextAreaElement autocapitalize]): Deleted.
50 (-[DOMHTMLTextAreaElement setAutocapitalize:]): Deleted.
51 * DOM/DOMHTMLTextAreaElementPrivate.h:
53 We need to import DOMHTMLElementPrivate.h here to avoid breaking UIKit. We should follow this up with a UIKit
54 change to import DOMHTMLElementPrivate.h directly.
57 * DOM/WebAutocapitalizeTypes.h: Copied from Tools/WebKitTestRunner/ios/UIKitSPI.h.
58 * MigrateHeaders.make:
60 2016-11-11 Beth Dakin <bdakin@apple.com>
62 Move to modern TouchBar methods
63 https://bugs.webkit.org/show_bug.cgi?id=164655
65 rdar://problem/29226911
67 Reviewed by Wenson Hsieh.
69 customizationDefaultItemIdentifiers -> defaultItemIdentifiers
70 itemIdentifiers -> defaultItemIdentifiers
71 defaultItems -> templateItems
74 (-[WebView _plainTextTouchBarDefaultItemIdentifiers]):
75 (-[WebView _richTextTouchBarDefaultItemIdentifiers]):
76 (-[WebView setUpTextTouchBar:]):
77 (-[WebView updateTextTouchBar]):
78 (-[WebView _plainTextTouchBarCustomizationDefaultItemIdentifiers]): Deleted.
79 (-[WebView _richTextTouchBarCustomizationDefaultItemIdentifiers]): Deleted.
81 2016-11-11 Darin Adler <darin@apple.com>
83 Move Node from ExceptionCode to ExceptionOr
84 https://bugs.webkit.org/show_bug.cgi?id=164515
86 Reviewed by Sam Weinig.
88 * DOM/DOMHTMLSelectElement.mm:
89 (-[DOMHTMLSelectElement remove:]): Call remove instead of removeByIndex
90 now that it was renamed.
92 (-[DOMNode setNodeValue:]): Updated exception handling.
93 (-[DOMNode setPrefix:]): Ditto.
94 (-[DOMNode setTextContent:]): Ditto.
95 (-[DOMNode insertBefore:refChild:]): Ditto.
96 (-[DOMNode replaceChild:oldChild:]): Ditto.
97 (-[DOMNode removeChild:]): Ditto.
98 (-[DOMNode appendChild:]): Ditto.
99 (-[DOMNode cloneNode:]): Ditto.
101 2016-11-11 Beth Dakin <bdakin@apple.com>
103 Get touch bar code building for open source builds
104 https://bugs.webkit.org/show_bug.cgi?id=164610
106 Reviewed by Wenson Hsieh.
110 2016-11-10 Alex Christensen <achristensen@webkit.org>
112 Fix assertion after r208534.
113 https://bugs.webkit.org/show_bug.cgi?id=160497
115 * WebView/WebView.mm:
116 (-[WebView _commonInitializationWithFrameName:groupName:]):
117 (WebInstallMemoryPressureHandler):
118 WebInstallMemoryPressureHandler can be called before [WebView initWithFrame:frameName:groupName:]
119 When this happens, we should use the same std::once_flag to make sure we install the MemoryPressureHandler::singleton
120 only once, otherwise we get an assertion !m_installed in MemoryPressureHandler::setLowMemoryHandler.
122 2016-11-10 Alex Christensen <achristensen@webkit.org>
124 Move SecurityOrigin::databaseIdentifier() to SecurityOriginData
125 https://bugs.webkit.org/show_bug.cgi?id=164573
127 Reviewed by Brady Eidson.
129 * WebCoreSupport/WebSecurityOrigin.mm:
130 (-[WebSecurityOrigin databaseIdentifier]):
132 2016-10-14 Carlos Garcia Campos <cgarcia@igalia.com>
134 MemoryPressureHandler shouldn't know how to release WebCore memory
135 https://bugs.webkit.org/show_bug.cgi?id=160497
137 Reviewed by Michael Catanzaro.
139 Set the low memory handler before installing the memory pressure handler.
141 * WebView/WebView.mm:
142 (-[WebView _commonInitializationWithFrameName:groupName:]):
144 2016-11-09 Ryosuke Niwa <rniwa@webkit.org>
146 WebHTMLView's _attributeStringFromDOMRange should use HTMLConverter instead of NSAttributedString's _initWithDOMRange
147 https://bugs.webkit.org/show_bug.cgi?id=164501
148 <rdar://problem/29152282>
150 Reviewed by Sam Weinig.
152 Align what [WebHTMLView attributedString] returns to what would be used on copy & paste by using HTMLConverter
153 instead of _initWithDOMRange in [WebHTMLView _attributeStringFromDOMRange].
155 * WebView/WebHTMLView.mm:
156 (-[WebHTMLView _attributedStringFromDOMRange:]): Renamed from _attributeStringFromDOMRange.
157 (-[WebHTMLView attributedString]):
158 (-[WebHTMLView selectedAttributedString]):
159 (-[WebHTMLView selectedString]): Moved to reduce the number of occurrences of the if-defs.
161 2016-11-04 Brent Fulgham <bfulgham@apple.com>
163 Local HTML should be blocked from localStorage access unless "Disable Local File Restrictions" is checked
164 https://bugs.webkit.org/show_bug.cgi?id=155185
165 <rdar://problem/11101440>
167 Reviewed by Brady Eidson.
169 Provide SPI to access the new quirk for localStorage. The quirk defaults to 'on'. When active, this
170 quirk says that localStorage access should be granted, without needing to grant universal file access.
172 If the quirk is turned off, then localStorage is blocked unless the WebKit client explicitly
173 grants universal file access.
175 * WebView/WebPreferenceKeysPrivate.h:
176 * WebView/WebPreferences.mm:
177 (-[WebPreferences needsLocalStorageQuirk]): Added.
178 (-[WebPreferences setNeedsLocalStorageQuirk:]): Added.
179 * WebView/WebPreferencesPrivate.h:
180 * WebView/WebView.mm:
181 (-[WebView _preferencesChanged:]): Honor the new localStorage quirk.
183 2016-11-09 Alex Christensen <achristensen@webkit.org>
185 Clean up Storage code
186 https://bugs.webkit.org/show_bug.cgi?id=164562
188 Reviewed by Brady Eidson.
190 * Storage/WebStorageManager.mm:
191 (-[WebStorageManager origins]):
192 (-[WebStorageManager deleteAllOrigins]):
193 (-[WebStorageManager deleteOrigin:]):
194 (-[WebStorageManager diskUsageForOrigin:]):
195 (-[WebStorageManager syncLocalStorage]):
196 (-[WebStorageManager syncFileSystemAndTrackerDatabase]):
197 (+[WebStorageManager setStorageDatabaseIdleInterval:]):
198 (+[WebStorageManager closeIdleLocalStorageDatabases]):
199 (WebKitInitializeStorageIfNecessary):
200 * WebView/WebView.mm:
201 (+[WebView _applicationWillTerminate]):
203 2016-11-09 Beth Dakin <bdakin@apple.com>
205 Another attempted build fix.
207 * WebView/WebView.mm:
209 2016-11-09 Beth Dakin <bdakin@apple.com>
213 * WebView/WebView.mm:
215 2016-11-09 Darin Adler <darin@apple.com>
217 Move Range from ExceptionCode to ExceptionOr
218 https://bugs.webkit.org/show_bug.cgi?id=164457
220 Reviewed by Alex Christensen.
223 (-[DOMRange setStart:offset:]): Updated exception handling.
224 (-[DOMRange setEnd:offset:]): Ditto.
225 (-[DOMRange setStartBefore:]): Ditto.
226 (-[DOMRange setStartAfter:]): Ditto.
227 (-[DOMRange setEndBefore:]): Ditto.
228 (-[DOMRange setEndAfter:]): Ditto.
229 (-[DOMRange selectNode:]): Ditto.
230 (-[DOMRange selectNodeContents:]): Ditto.
231 (-[DOMRange compareBoundaryPoints:sourceRange:]): Ditto.
232 (-[DOMRange deleteContents]): Ditto.
233 (-[DOMRange extractContents]): Ditto.
234 (-[DOMRange cloneContents]): Ditto.
235 (-[DOMRange insertNode:]): Ditto.
236 (-[DOMRange surroundContents:]): Ditto.
237 (-[DOMRange createContextualFragment:]): Ditto.
238 (-[DOMRange compareNode:]): Ditto.
239 (-[DOMRange intersectsNode:]): Ditto.
240 (-[DOMRange comparePoint:offset:]): Ditto.
241 (-[DOMRange isPointInRange:offset:]): Ditto.
242 (-[DOMRange expand:]): Ditto.
243 * WebView/WebFrame.mm:
244 (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]): Ditto.
245 (-[WebFrame _smartDeleteRangeForProposedRange:]): Deleted.
246 This function was incorrectly implemented (set both start and end of
247 the range to the computed start), not declared in any header file,
248 not used anywhere inside WebKit, and I also could not find a use of it
249 in outside-WebKit Apple code.
250 * mac/DOM/DOMUIKitExtensions.mm:
251 (-[DOMRange move:inDirection:]): Ditto.
252 (-[DOMRange extend:inDirection:]): Ditto.
254 2016-11-09 Darin Adler <darin@apple.com>
256 Move EventTarget from ExceptionCode to ExceptionOr
257 https://bugs.webkit.org/show_bug.cgi?id=164465
259 Reviewed by Youenn Fablet.
262 (-[DOMNode dispatchEvent:]): Updated exception handling.
264 2016-11-09 Chris Dumez <cdumez@apple.com>
266 [Mac] Stop using deprecated AppKit enumeration values
267 https://bugs.webkit.org/show_bug.cgi?id=164494
269 Reviewed by Darin Adler.
271 Stop using deprecated AppKit enumeration values.
273 * Carbon/CarbonWindowAdapter.mm:
274 (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
275 (-[CarbonWindowAdapter sendSuperEvent:]):
276 * Plugins/Hosted/NetscapePluginHostProxy.mm:
277 (WebKit::NetscapePluginHostProxy::beginModal):
278 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
279 (WebKit::NetscapePluginInstanceProxy::syntheticKeyDownWithCommandModifier):
280 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
281 (-[WebHostedNetscapePluginView drawRect:]):
282 * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
283 (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
284 * WebCoreSupport/PopupMenuMac.mm:
285 (PopupMenuMac::populate):
286 (PopupMenuMac::show):
287 * WebCoreSupport/WebContextMenuClient.mm:
288 (WebContextMenuClient::showContextMenu):
289 * WebCoreSupport/WebFrameLoaderClient.mm:
290 (WebFrameLoaderClient::actionDictionary):
291 * WebCoreSupport/WebInspectorClient.mm:
292 (WebInspectorFrontendClient::canAttach):
293 (-[WebInspectorWindowController window]):
294 * WebInspector/WebNodeHighlight.mm:
295 (-[WebNodeHighlight initWithTargetView:inspectorController:]):
296 * WebView/WebFrameView.mm:
297 (-[WebFrameView keyDown:keyDown:]):
298 * WebView/WebFullScreenController.mm:
299 (-[WebFullScreenController init]):
300 (createBackgroundFullscreenWindow):
301 * WebView/WebHTMLView.mm:
302 (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
303 (-[WebHTMLView _setMouseDownEvent:_setMouseDownEvent:]):
304 (-[WebHTMLView _updateMouseoverWithFakeEvent]):
306 (-[WebHTMLView hitTest:]):
307 (-[WebHTMLView _sendToolTipMouseExited]):
308 (-[WebHTMLView _sendToolTipMouseEntered]):
309 (mouseEventIsPartOfClickOrDrag):
310 (-[WebHTMLView _updateMouseoverWithEvent:]):
311 (-[WebHTMLView _autoscroll]):
312 (-[WebHTMLView acceptsFirstResponder]):
313 (-[WebHTMLView viewDidMoveToWindow]):
314 (-[WebHTMLView mouseDown:mouseDown:]):
315 (currentKeyboardEvent):
316 (-[WebHTMLView _handleStyleKeyEquivalent:]):
317 (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
318 * WebView/WebPDFView.mm:
319 (-[WebPDFView hitTest:]):
320 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
321 (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
322 * WebView/WebTextCompletionController.mm:
323 (-[WebTextCompletionController _buildUI]):
324 (-[WebTextCompletionController _placePopupWindow:]):
325 * WebView/WebView.mm:
326 (-[WebView applicationFlags:]):
328 2016-11-09 Beth Dakin <bdakin@apple.com>
330 Support TouchBar in WebKit
331 https://bugs.webkit.org/show_bug.cgi?id=164437
333 rdar://problem/28876524
335 Reviewed by Darin Adler.
337 * WebCoreSupport/WebEditorClient.mm:
338 (WebEditorClient::respondToChangedSelection):
339 (WebEditorClient::updateEditorStateAfterLayoutIfEditabilityChanged):
340 * WebView/WebHTMLView.mm:
341 (-[WebHTMLView candidateListTouchBarItem]):
342 * WebView/WebView.mm:
343 (-[_WebTextListTouchBarViewController initWithWebView:]):
344 (-[_WebTextListTouchBarViewController _selectList:]):
345 (-[_WebTextListTouchBarViewController setCurrentListType:]):
346 (-[WebTextTouchBarItemController initWithWebView:]):
347 (-[WebTextTouchBarItemController itemForIdentifier:]):
348 (-[WebTextTouchBarItemController webTextListTouchBarViewController]):
349 (-[WebTextTouchBarItemController setTextIsBold:]):
350 (-[WebTextTouchBarItemController setTextIsItalic:]):
351 (-[WebTextTouchBarItemController setTextIsUnderlined:]):
352 (-[WebTextTouchBarItemController _webChangeTextStyle:]):
353 (-[WebTextTouchBarItemController setCurrentTextAlignment:]):
354 (-[WebTextTouchBarItemController _webChangeTextAlignment:]):
355 (-[WebTextTouchBarItemController textColor]):
356 (-[WebTextTouchBarItemController setTextColor:]):
357 (-[WebTextTouchBarItemController _webChangeColor:]):
358 (-[WebTextTouchBarItemController textListViewController]):
359 (-[WebView _commonInitializationWithFrameName:groupName:]):
360 (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
361 (-[WebView shouldRequestCandidates]):
362 (-[WebView forceRequestCandidatesForTesting]):
363 (-[WebView makeTouchBar]):
364 (-[WebView touchBar:makeItemForIdentifier:]):
365 (textCheckingResultFromNSTextCheckingResult):
366 (-[WebView candidateListTouchBarItem:endSelectingCandidateAtIndex:]):
367 (-[WebView candidateListTouchBarItem:changedCandidateListVisibility:]):
368 (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
369 (-[WebView _clearPlaybackControlsManager]):
370 (-[WebView _dismissTextTouchBarPopoverItemWithIdentifier:]):
371 (-[WebView _textTouchBarCustomizationAllowedIdentifiers]):
372 (-[WebView _plainTextTouchBarCustomizationDefaultItemIdentifiers]):
373 (-[WebView _richTextTouchBarCustomizationDefaultItemIdentifiers]):
374 (-[WebView touchBarDidExitCustomization:]):
375 (-[WebView touchBarWillEnterCustomization:]):
376 (-[WebView didChangeAutomaticTextCompletion:]):
377 (-[WebView setUpTextTouchBar:]):
378 (-[WebView _isRichlyEditable]):
379 (-[WebView textTouchBar]):
380 (-[WebView updateTextTouchBar]):
381 (-[WebView updateMediaTouchBar]):
382 (-[WebView updateTouchBar]):
383 (-[WebView prepareForMouseDown]):
384 (-[WebView prepareForMouseUp]):
385 (-[WebView webViewAdditionsWillDestroyView]):
386 (-[WebView candidateList]):
387 (-[WebView updateWebViewAdditions]): Deleted.
388 * WebView/WebViewData.h:
389 * WebView/WebViewInternal.h:
390 * WebView/WebViewPrivate.h:
392 2016-11-04 Wenson Hsieh <wenson_hsieh@apple.com>
394 Safari does not emit composition end if blurred for dead key / Japanese IME
395 https://bugs.webkit.org/show_bug.cgi?id=164369
396 <rdar://problem/29050439>
398 Reviewed by Ryosuke Niwa.
400 When canceling a composition, make sure that we clear the system IME state.
402 * WebCoreSupport/WebEditorClient.h:
403 * WebCoreSupport/WebEditorClient.mm:
404 (WebEditorClient::canceledComposition):
406 2016-11-04 Said Abou-Hallawa <sabouhallawa@apple.com>
408 Add a setting and preferences to enable/disable async image decoding
409 https://bugs.webkit.org/show_bug.cgi?id=164417
411 Reviewed by Simon Fraser.
413 Hook up the asyncImageDecodingEnabled setting for WebKit1.
415 * WebView/WebPreferenceKeysPrivate.h:
416 * WebView/WebPreferences.mm:
417 (+[WebPreferences initialize]):
418 (-[WebPreferences asyncImageDecodingEnabled]):
419 (-[WebPreferences setAsyncImageDecodingEnabled:]):
420 * WebView/WebPreferencesPrivate.h:
421 * WebView/WebView.mm:
422 (-[WebView _preferencesChanged:]):
424 2016-11-01 Alex Christensen <achristensen@webkit.org>
426 Remove PassRefPtr from DumpRenderTree
427 https://bugs.webkit.org/show_bug.cgi?id=164307
429 Reviewed by Sam Weinig.
431 * WebView/WebGeolocationPosition.mm:
432 (-[WebGeolocationPosition initWithGeolocationPosition:]):
434 2016-11-02 Romain Bellessort <romain.bellessort@crf.canon.fr>
436 [Readable Streams API] Enable creation of ReadableByteStreamController
437 https://bugs.webkit.org/show_bug.cgi?id=164014
439 Reviewed by Youenn Fablet.
441 Added flag for the byte stream part of Readable Streams API.
443 * Configurations/FeatureDefines.xcconfig:
445 2016-11-01 Ryosuke Niwa <rniwa@webkit.org>
447 Remove CUSTOM_ELEMENTS build flag
448 https://bugs.webkit.org/show_bug.cgi?id=164267
450 Reviewed by Antti Koivisto.
452 Removed the build flag.
454 * Configurations/FeatureDefines.xcconfig:
455 * WebView/WebPreferences.mm:
456 (+[WebPreferences initialize]):
457 * WebView/WebView.mm:
458 (-[WebView _preferencesChanged:]):
460 2016-11-01 Eric Carlson <eric.carlson@apple.com>
462 [MediaStream] restrict media capture secure connections
463 https://bugs.webkit.org/show_bug.cgi?id=164234
464 <rdar://problem/28944906>
466 Reviewed by Alex Christensen.
468 * WebView/WebPreferenceKeysPrivate.h:
469 * WebView/WebPreferences.mm:
470 (+[WebPreferences initialize]): Initialize WebKitMediaCaptureRequiresSecureConnectionPreferenceKey.
471 (-[WebPreferences mediaCaptureRequiresSecureConnection]): New.
472 (-[WebPreferences setMediaCaptureRequiresSecureConnection:]): New.
473 * WebView/WebPreferencesPrivate.h:
475 * WebView/WebView.mm:
476 (-[WebView _preferencesChanged:]): Sync mediaCaptureRequiresSecureConnection.
478 2016-10-29 Filip Pizlo <fpizlo@apple.com>
480 JSC should support SharedArrayBuffer
481 https://bugs.webkit.org/show_bug.cgi?id=163986
483 Reviewed by Keith Miller.
485 Support the RuntimeFlag.
487 * WebView/WebPreferencesPrivate.h:
489 2016-10-31 Wenson Hsieh <wenson_hsieh@apple.com>
491 [WK1] Candidate visibility should not update as a result of selection during a dictionary lookup
492 https://bugs.webkit.org/show_bug.cgi?id=164236
493 <rdar://problem/28747712>
495 Reviewed by Beth Dakin.
497 See WebCore ChangeLog for more detail. Sets the Editor's isGettingDictionaryPopupInfo state to true during a
500 * WebCoreSupport/WebEditorClient.mm:
501 (WebEditorClient::respondToChangedSelection):
502 * WebView/WebImmediateActionController.mm:
503 (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
505 2016-10-31 Darin Adler <darin@apple.com>
507 Move ChildNode and ParentNode from ExceptionCode to Exception, add support for ExceptionOr<T&>
508 https://bugs.webkit.org/show_bug.cgi?id=164214
510 Reviewed by Alex Christensen.
512 * DOM/DOMCSSPrimitiveValue.mm:
513 (-[DOMCSSPrimitiveValue getCounterValue]): Updated since return value
515 (-[DOMCSSPrimitiveValue getRectValue]): Ditto.
517 * DOM/DOMDocument.mm:
518 (-[DOMDocument querySelector:]): Updated exception handling.
519 (-[DOMDocument querySelectorAll:]): Ditto.
520 * DOM/DOMDocumentFragment.mm:
521 (-[DOMDocumentFragment querySelector:]): Ditto.
522 (-[DOMDocumentFragment querySelectorAll:]): Ditto.
524 (-[DOMElement querySelector:]): Ditto.
525 (-[DOMElement querySelectorAll:]): Ditto.
527 2016-10-31 Darin Adler <darin@apple.com>
529 Convert Document from ExceptionCode to Exception
530 https://bugs.webkit.org/show_bug.cgi?id=164212
532 Reviewed by Alex Christensen.
534 * DOM/DOMDocument.mm:
535 (-[DOMDocument setXmlVersion:]): Updated exception handling.
536 (-[DOMDocument cookie]): Ditto.
537 (-[DOMDocument setCookie:]): Ditto.
538 (-[DOMDocument setBody:]): Ditto.
539 (-[DOMDocument createElement:]): Ditto.
540 (-[DOMDocument createCDATASection:]): Ditto.
541 (-[DOMDocument createProcessingInstruction:data:]): Ditto.
542 (-[DOMDocument createAttribute:]): Ditto.
543 (-[DOMDocument createEntityReference:]): Ditto.
544 (-[DOMDocument importNode:deep:]): Ditto.
545 (-[DOMDocument createElementNS:qualifiedName:]): Ditto.
546 (-[DOMDocument createAttributeNS:qualifiedName:]): Ditto.
547 (-[DOMDocument getElementsByTagNameNS:localName:]): Ditto.
548 (-[DOMDocument adoptNode:]): Ditto.
549 (-[DOMDocument createEvent:]): Ditto.
551 2016-10-30 Darin Adler <darin@apple.com>
553 Move Element, NamedNodeMap, and DOMStringMap from ExceptionCode to Exception
554 https://bugs.webkit.org/show_bug.cgi?id=164206
556 Reviewed by Chris Dumez.
559 (-[DOMElement setInnerHTML:]): Updated exception handling.
560 (-[DOMElement setOuterHTML:]): Ditto.
561 (-[DOMElement setAttribute:value:]): Ditto.
562 (-[DOMElement setAttributeNode:]): Ditto.
563 (-[DOMElement removeAttributeNode:]): Ditto.
564 (-[DOMElement setAttributeNS:qualifiedName:value:]): Ditto.
565 (-[DOMElement setAttributeNodeNS:]): Ditto.
566 (-[DOMElement matches:]): Ditto.
567 (-[DOMElement closest:]): Ditto.
568 (-[DOMElement webkitMatchesSelector:]): Ditto.
569 * DOM/DOMHTMLElement.mm:
570 (-[DOMHTMLElement insertAdjacentElement:element:]): Ditto.
571 (-[DOMHTMLElement insertAdjacentHTML:html:]): Ditto.
572 (-[DOMHTMLElement insertAdjacentText:text:]): Ditto.
573 * DOM/DOMNamedNodeMap.mm:
574 (-[DOMNamedNodeMap setNamedItem:]): Ditto.
575 (-[DOMNamedNodeMap removeNamedItem:]): Ditto.
576 (-[DOMNamedNodeMap setNamedItemNS:]): Ditto.
577 (-[DOMNamedNodeMap removeNamedItemNS:localName:]): Ditto.
579 2016-10-29 Darin Adler <darin@apple.com>
581 Convert more of DOM from ExceptionCode to Exception
582 https://bugs.webkit.org/show_bug.cgi?id=164173
584 Reviewed by Ryosuke Niwa.
586 * DOM/DOMCharacterData.mm:
587 (-[DOMCharacterData substringData:length:]): Updated since this
588 now uses ExceptionOr.
589 (-[DOMCharacterData insertData:data:]): Ditto.
590 (-[DOMCharacterData deleteData:length:]): Ditto.
591 (-[DOMCharacterData replaceData:length:data:]): Ditto.
593 (-[DOMText splitText:]): Ditto.
594 (-[DOMText replaceWholeText:]): Removed unneeded exception code
595 handling from function that does not throw an exception.
597 2016-10-28 Darin Adler <darin@apple.com>
599 Move all classes in the HTML directory from ExceptionCode to Exception
600 https://bugs.webkit.org/show_bug.cgi?id=163876
602 Reviewed by Sam Weinig.
604 * DOM/DOMCharacterData.mm:
605 (-[DOMCharacterData remove]): Updated exception handling.
606 * DOM/DOMDOMTokenList.mm:
607 (-[DOMDOMTokenList toggle:force:]): Ditto.
608 * DOM/DOMDocumentType.mm:
609 (-[DOMDocumentType remove]): Ditto.
611 (-[DOMElement remove]): Ditto.
613 (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]): Ditto.
614 * DOM/DOMHTMLCanvasElement.mm:
615 (-[DOMHTMLCanvasElement toDataURL:]): Ditto.
616 * DOM/DOMHTMLElement.mm:
617 (-[DOMHTMLElement setInnerText:]): Ditto.
618 (-[DOMHTMLElement setOuterText:]): Ditto.
619 (-[DOMHTMLElement setContentEditable:]): Ditto.
620 * DOM/DOMHTMLInputElement.mm:
621 (-[DOMHTMLInputElement setMaxLength:]): Ditto.
622 (-[DOMHTMLInputElement setValueAsDate:]): Ditto.
623 (-[DOMHTMLInputElement setValueAsNumber:]): Ditto.
624 (-[DOMHTMLInputElement stepUp:]): Ditto.
625 (-[DOMHTMLInputElement stepDown:]): Ditto.
626 (-[DOMHTMLInputElement setRangeText:]): Ditto.
627 (-[DOMHTMLInputElement setRangeText:start:end:selectionMode:]): Ditto.
628 * DOM/DOMHTMLMarqueeElement.mm:
629 (-[DOMHTMLMarqueeElement setLoop:]): Ditto.
630 * DOM/DOMHTMLMediaElement.mm:
631 (-[DOMHTMLMediaElement setCurrentTime:]): Ditto.
632 (-[DOMHTMLMediaElement setVolume:]): Ditto.
633 * DOM/DOMHTMLOptionsCollection.mm:
634 (-[DOMHTMLOptionsCollection setLength:]): Ditto.
635 * DOM/DOMHTMLTableElement.mm:
636 (-[DOMHTMLTableElement setCaption:]): Ditto.
637 (-[DOMHTMLTableElement setTHead:]): Ditto.
638 (-[DOMHTMLTableElement setTFoot:]): Ditto.
639 (-[DOMHTMLTableElement insertRow:]): Ditto.
640 (-[DOMHTMLTableElement deleteRow:]): Ditto.
641 * DOM/DOMHTMLTableRowElement.mm:
642 (-[DOMHTMLTableRowElement insertCell:]): Ditto.
643 (-[DOMHTMLTableRowElement deleteCell:]): Ditto.
644 * DOM/DOMHTMLTableSectionElement.mm:
645 (-[DOMHTMLTableSectionElement insertRow:]): Ditto.
646 (-[DOMHTMLTableSectionElement deleteRow:]): Ditto.
647 * DOM/DOMHTMLTextAreaElement.mm:
648 (-[DOMHTMLTextAreaElement setMaxLength:]): Ditto.
649 (-[DOMHTMLTextAreaElement setRangeText:]): Ditto.
650 (-[DOMHTMLTextAreaElement setRangeText:start:end:selectionMode:]): Ditto.
651 * DOM/DOMHTMLVideoElement.mm:
652 (-[DOMHTMLVideoElement webkitEnterFullscreen]): Ditto.
653 (-[DOMHTMLVideoElement webkitEnterFullScreen]): Changed to call the other named
654 version (lowercase S) instead of repeating the logic from that method.
655 (-[DOMHTMLVideoElement webkitExitFullScreen]): Ditto.
656 * DOM/DOMTimeRanges.mm:
657 (-[DOMTimeRanges start:]): Updated exception handling.
658 (-[DOMTimeRanges end:]): Ditto.
660 2016-10-27 Chris Dumez <cdumez@apple.com>
662 Regression(r203601): Caused crashes in iBooks
663 https://bugs.webkit.org/show_bug.cgi?id=164093
664 <rdar://problem/28745634>
666 Reviewed by Darin Adler.
668 Restore pre-r203601 behavior when calling [DOMNode compareDocumentPosition:nil],
669 which was to return Node::DOCUMENT_POSITION_DISCONNECTED.
672 (-[DOMNode compareDocumentPosition:]):
674 2016-10-27 Wenson Hsieh <wenson_hsieh@apple.com>
676 Support "insertFromDrop" and "deleteByDrag" for the InputEvent spec
677 https://bugs.webkit.org/show_bug.cgi?id=163948
678 <rdar://problem/28921433>
680 Reviewed by Darin Adler.
682 Add support for new drag and drop-related EditAction enum values.
684 * WebCoreSupport/WebEditorClient.mm:
685 (undoNameForEditAction):
687 2016-10-27 Dan Bernstein <mitz@apple.com>
689 Reapplied the configuration changes from r207934 without breaking iOS builds.
691 * Configurations/Base.xcconfig:
692 * Configurations/WebKitLegacy.xcconfig:
694 2016-10-27 Dan Bernstein <mitz@apple.com>
696 Reverted the configuration changes from r207934 because they broke iOS builds not using the Apple-internal SDK.
698 * Configurations/Base.xcconfig:
699 * Configurations/WebKitLegacy.xcconfig:
701 2016-10-26 Dan Bernstein <mitz@apple.com>
703 [Xcode] WebKit fails to build when CLANG_WARN_DOCUMENTATION_COMMENTS is enabled
704 https://bugs.webkit.org/show_bug.cgi?id=164048
706 Reviewed by Tim Horton.
708 * Configurations/Base.xcconfig: Enabled CLANG_WARN_DOCUMENTATION_COMMENTS.
709 * Configurations/WebKitLegacy.xcconfig: Made the compiler treat the icu headers as system
712 * History/WebBackForwardList.h: Fixed parameter name in @param entry.
713 * Misc/WebDownload.h: Removed empty entries.
714 * Misc/WebIconDatabase.h: Remove incorrect @param entries.
715 * Misc/WebQuotaManager.h: Added missing parameter names in @param entries.
716 * WebView/WebFrameLoadDelegate.h: Corrected parameter names in @param entries.
717 * WebView/WebFrameViewPrivate.h: Changed incorrect @result to @abstract.
718 * WebView/WebPolicyDelegate.h: Fixed parameter name and removed incorrect @param entries.
719 * WebView/WebPreferences.h: Changed @method to @property in a couple of places.
720 * WebView/WebResourceLoadDelegate.h: Fixed parameter names.
721 * WebView/WebUIDelegate.h: Filled in two empty @param entries. Added missing parameter name,
722 Fixed a typo and removed empty @discussion entry. Fixed some parameter names.
723 * WebView/WebUIDelegatePrivate.h: Fixed parameter names.
724 * WebView/WebView.h: Changed @method to @property in a couple of places.
725 * WebView/WebViewPrivate.h: Fixed parameter names, changed incorrect @result to @abstract.
727 2016-10-26 Brian Burg <bburg@apple.com>
729 Web Inspector: remove unused bool return value from FrontendChannel::sendMessageToFrontend
730 https://bugs.webkit.org/show_bug.cgi?id=164046
732 Reviewed by Joseph Pecoraro.
734 * WebCoreSupport/WebInspectorClient.h:
736 2016-10-21 Alex Christensen <achristensen@webkit.org>
738 URL::port should return Optional<uint16_t>
739 https://bugs.webkit.org/show_bug.cgi?id=163806
741 Reviewed by Darin Adler.
743 * WebCoreSupport/WebSecurityOrigin.mm:
744 (-[WebSecurityOrigin port]):
746 2016-10-24 Dave Hyatt <hyatt@apple.com>
748 Remove CSSCharsetRule from the CSS OM
749 https://bugs.webkit.org/show_bug.cgi?id=163891
751 Reviewed by Darin Adler.
753 * DOM/DOMCSSCharsetRule.mm:
754 (-[DOMCSSCharsetRule encoding]):
756 2016-10-24 Youenn Fablet <youenn@apple.com>
758 Activate WEB_RTC compilation flags for Mac bots
759 https://bugs.webkit.org/show_bug.cgi?id=163886
761 Reviewed by Eric Carlson.
763 * Configurations/FeatureDefines.xcconfig:
765 2016-10-23 Chris Dumez <cdumez@apple.com>
767 addEventListener() / removeEventListener() should use a union for last parameter
768 https://bugs.webkit.org/show_bug.cgi?id=163863
770 Reviewed by Darin Adler.
772 Cast BOOL to bool to help to compiler construct the new variant-type parameter.
775 (-[DOMNode addEventListener:listener:useCapture:]):
776 (-[DOMNode addEventListener:::]):
777 (-[DOMNode removeEventListener:listener:useCapture:]):
778 (-[DOMNode removeEventListener:::]):
780 2016-10-21 Wenson Hsieh <wenson_hsieh@apple.com>
782 Support (insertFrom|deleteBy)Composition and (insert|delete)CompositionText inputTypes for InputEvents
783 https://bugs.webkit.org/show_bug.cgi?id=163460
784 <rdar://problem/28784142>
786 Reviewed by Darin Adler.
788 Handle new EditAction types for inserting/deleting pending/final compositions.
790 * WebCoreSupport/WebEditorClient.mm:
791 (undoNameForEditAction):
793 2016-10-21 Jeremy Jones <jeremyj@apple.com>
795 Implement basic pointer lock behavior for WebKit and WebKit2.
796 https://bugs.webkit.org/show_bug.cgi?id=162745
798 Reviewed by Simon Fraser.
800 Add basic pointer lock functionality. User permission is not yet implemented.
802 * WebCoreSupport/WebChromeClient.h:
803 * WebCoreSupport/WebChromeClient.mm:
804 (WebChromeClient::requestPointerLock):
805 (WebChromeClient::requestPointerUnlock):
807 2016-10-19 Myles C. Maxfield <mmaxfield@apple.com>
809 [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
810 https://bugs.webkit.org/show_bug.cgi?id=163374
812 Reviewed by Darin Adler.
814 * Configurations/FeatureDefines.xcconfig:
816 2016-10-19 Alex Christensen <achristensen@webkit.org>
819 https://bugs.webkit.org/show_bug.cgi?id=163675
821 Reviewed by Brent Fulgham.
823 * Misc/WebDownload.mm:
824 (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]):
825 * Misc/WebDownloadInternal.h:
826 * WebCoreSupport/WebFrameLoaderClient.mm:
827 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
828 * WebView/WebPreferences.mm:
829 (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
830 * WebView/WebView.mm:
831 (-[WebView scheduleInRunLoop:forMode:]):
832 (-[WebView unscheduleFromRunLoop:forMode:]):
834 2016-10-19 Ryan Haddad <ryanhaddad@apple.com>
836 Unreviewed, rolling out r207557.
838 This change caused animations/font-variations tests to time
839 out on pre-Sierra Macs.
843 "[macOS] [iOS] Disable variation fonts on macOS El Capitan and
845 https://bugs.webkit.org/show_bug.cgi?id=163374
846 http://trac.webkit.org/changeset/207557
848 2016-10-19 Chris Dumez <cdumez@apple.com>
850 Move HTML Interactive Form Validation behind an experimental flag
851 https://bugs.webkit.org/show_bug.cgi?id=163673
853 Reviewed by Daniel Bates.
855 Re-disable HTML Interactive Form Validation by default on Mac WK1.
857 * WebView/WebViewData.mm:
858 (-[WebViewPrivate init]):
860 2016-10-19 Myles C. Maxfield <mmaxfield@apple.com>
862 [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
863 https://bugs.webkit.org/show_bug.cgi?id=163374
865 Reviewed by Darin Adler.
867 * Configurations/FeatureDefines.xcconfig:
869 2016-10-19 Simon Fraser <simon.fraser@apple.com>
871 WebView needs to initialize the visualViewportEnabled Setting from WebKit preferences
872 https://bugs.webkit.org/show_bug.cgi?id=163680
874 Reviewed by Dean Jackson.
876 Add code to set the Setting from WebKit prefs. This code is a mess and needs to be autogenerated.
878 * WebView/WebView.mm:
879 (-[WebView _preferencesChanged:]):
881 2016-10-19 Darin Adler <darin@apple.com>
883 Move XPath from ExceptionCode to Exception
884 https://bugs.webkit.org/show_bug.cgi?id=163656
886 Reviewed by Chris Dumez.
888 * DOM/DOMDocument.mm:
889 (wrap): Added. Helper function for wrapping a resolver.
890 (-[DOMDocument createExpression:resolver:]): Use raiseOnDOMError.
891 (-[DOMDocument evaluate:contextNode:resolver:type:inResult:]): Ditto.
892 * DOM/DOMXPathExpression.mm:
893 (-[DOMXPathExpression evaluate:type:inResult:]): Ditto.
894 * DOM/DOMXPathResult.mm:
895 (-[DOMXPathResult numberValue]): Ditto.
896 (-[DOMXPathResult stringValue]): Ditto.
897 (-[DOMXPathResult booleanValue]): Ditto.
898 (-[DOMXPathResult singleNodeValue]): Ditto.
899 (-[DOMXPathResult snapshotLength]): Ditto.
900 (-[DOMXPathResult iterateNext]): Ditto.
901 (-[DOMXPathResult snapshotItem:]): Ditto.
903 2016-10-18 Sam Weinig <sam@webkit.org>
905 Replace std::experimental::variant with WTF::Variant (or similar)
906 https://bugs.webkit.org/show_bug.cgi?id=163626
908 Reviewed by Chris Dumez.
910 Rename std::experimental::variant, Variant. Move helpers get/holds_alternative/etc.
911 into the WTF namespace.
913 * DOM/DOMHTMLSelectElement.mm:
914 (-[DOMHTMLSelectElement add:before:]):
916 2016-10-18 Simon Fraser <simon.fraser@apple.com>
918 Add a MiniBrowser menu item to apply page scale in WK1 and WK2
919 https://bugs.webkit.org/show_bug.cgi?id=163627
921 Reviewed by Dean Jackson.
923 Add an explanatory comment about viewScaleFactor not really being viewScaleFactor.
925 * WebView/WebViewPrivate.h:
927 2016-10-18 Dean Jackson <dino@apple.com>
929 Remove CSS_SHAPES feature definition. This should always be on.
930 https://bugs.webkit.org/show_bug.cgi?id=163628
931 <rdar://problem/28834613>
933 Reviewed by Tim Horton.
935 * Configurations/FeatureDefines.xcconfig:
937 2016-10-18 Chris Dumez <cdumez@apple.com>
939 Leverage new union type support for HTMLSelectElement.add() / HTMLOptionsCollection.add()
940 https://bugs.webkit.org/show_bug.cgi?id=163608
942 Reviewed by Ryosuke Niwa.
944 Update add() call sites now that it takes std::variant types in.
946 * DOM/DOMHTMLOptionsCollection.mm:
947 (-[DOMHTMLOptionsCollection add:index:]):
948 * DOM/DOMHTMLSelectElement.mm:
949 (-[DOMHTMLSelectElement add:before:]):
951 2016-10-18 Anders Carlsson <andersca@apple.com>
953 Get rid of more WebHistoryItem cruft
954 https://bugs.webkit.org/show_bug.cgi?id=163623
956 Reviewed by Tim Horton.
958 * History/WebHistoryItem.mm:
959 (-[WebHistoryItem initFromDictionaryRepresentation:]):
960 * History/WebHistoryItemPrivate.h:
962 2016-10-18 Wenson Hsieh <wenson_hsieh@apple.com>
964 Showing and hiding candidates list is very distracting after selecting word
965 https://bugs.webkit.org/show_bug.cgi?id=163609
966 <rdar://problem/28747712>
968 Reviewed by Tim Horton.
970 Introduce WebView hooks for mousedown and mouseup. See radar for more details.
972 * WebView/WebHTMLView.mm:
973 (-[WebHTMLView mouseDown:mouseDown:]):
974 (-[WebHTMLView mouseUp:mouseUp:]):
975 * WebView/WebView.mm:
976 (-[WebView prepareForMouseDown]):
977 (-[WebView prepareForMouseUp]):
978 * WebView/WebViewInternal.h:
980 2016-10-17 Anders Carlsson <andersca@apple.com>
982 Move some history specific HistoryItem code to WebHistoryItem
983 https://bugs.webkit.org/show_bug.cgi?id=163567
985 Reviewed by Tim Horton.
987 * History/HistoryPropertyList.mm:
988 (HistoryPropertyListWriter::writeHistoryItem):
989 * History/WebHistory.mm:
990 (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
991 * History/WebHistoryItem.mm:
992 (-[WebHistoryItem initFromDictionaryRepresentation:]):
993 * History/WebHistoryItemInternal.h:
994 * WebCoreSupport/WebFrameLoaderClient.mm:
996 (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
998 2016-10-18 Eric Carlson <eric.carlson@apple.com>
1000 [MediaStream] Resolve constraints and enumerate devices in the UI process
1001 https://bugs.webkit.org/show_bug.cgi?id=162147
1002 <rdar://problem/28803569>
1004 Reviewed by Darin Adler.
1006 * WebCoreSupport/WebUserMediaClient.h:
1007 * WebCoreSupport/WebUserMediaClient.mm:
1008 (AddPermissionCheckToMap):
1009 (RemovePermissionCheckFromMap):
1010 (WebUserMediaClient::pageDestroyed):
1011 (WebUserMediaClient::requestUserMediaAccess):
1012 (WebUserMediaClient::enumerateMediaDevices):
1013 (WebUserMediaClient::cancelMediaDevicesEnumerationRequest):
1014 (-[WebUserMediaPolicyListener allow]):
1015 (-[WebUserMediaPolicyListener deny]):
1016 (-[WebUserMediaPolicyCheckerListener initWithMediaDevicesEnumerationRequest:]):
1017 (-[WebUserMediaPolicyCheckerListener cancelMediaDevicesEnumerationRequest]):
1018 (-[WebUserMediaPolicyCheckerListener allow]):
1019 (-[WebUserMediaPolicyCheckerListener deny]):
1020 (WebUserMediaClient::checkUserMediaPermission): Deleted.
1021 (WebUserMediaClient::cancelUserMediaPermissionCheck): Deleted.
1022 (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]): Deleted.
1023 (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]): Deleted.
1025 2016-10-17 Antti Koivisto <antti@apple.com>
1027 Rename setNeedsStyleRecalc to invalidateStyle
1028 https://bugs.webkit.org/show_bug.cgi?id=163542
1030 Reviewed by Darin Adler.
1032 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1033 (-[WebHostedNetscapePluginView createPluginLayer]):
1034 * Plugins/WebNetscapePluginView.mm:
1035 (-[WebNetscapePluginView createPlugin]):
1037 2016-10-17 Jeremy Jones <jeremyj@apple.com>
1039 Enable keyboard in fullscreen.
1040 https://bugs.webkit.org/show_bug.cgi?id=163146
1042 Reviewed by Jer Noble.
1044 Allow keyboard in fullscreen.
1046 * WebView/WebView.mm:
1047 (-[WebView _supportsFullScreenForElement:withKeyboard:]):
1049 2016-10-17 Chris Dumez <cdumez@apple.com>
1051 Move form.reportValidity() behind InteractiveFormValidation setting
1052 https://bugs.webkit.org/show_bug.cgi?id=163550
1054 Reviewed by Darin Adler.
1056 Enable InteractiveFormValidation setting by default and link it to
1057 RuntimeEnabledFeatures so we can use it in the IDL.
1059 * WebView/WebView.mm:
1060 (-[WebView _preferencesChanged:]):
1061 * WebView/WebViewData.mm:
1062 (-[WebViewPrivate init]):
1064 2016-10-17 Anders Carlsson <andersca@apple.com>
1068 * History/WebBackForwardList.mm:
1069 (-[WebBackForwardList dictionaryRepresentation]):
1071 2016-10-17 Anders Carlsson <andersca@apple.com>
1073 CTTE some of the BackForwardList member functions
1074 https://bugs.webkit.org/show_bug.cgi?id=163555
1076 Reviewed by Dan Bernstein.
1078 * History/BackForwardList.h:
1079 (BackForwardList::entries):
1080 * History/BackForwardList.mm:
1081 (BackForwardList::removeItem):
1082 (BackForwardList::containsItem):
1083 (BackForwardList::entries): Deleted.
1084 * History/WebBackForwardList.mm:
1085 (-[WebBackForwardList removeItem:]):
1086 (-[WebBackForwardList containsItem:]):
1087 (-[WebBackForwardList description]):
1089 2016-10-17 Anders Carlsson <andersca@apple.com>
1091 Remove WEBCORE_EXPORT from BackForwardList, it lives in WebKit now
1092 https://bugs.webkit.org/show_bug.cgi?id=163551
1094 Reviewed by Tim Horton.
1096 * History/BackForwardList.h:
1098 2016-10-16 Darin Adler <darin@apple.com>
1100 Move CSS classes from ExceptionCode to Exception
1101 https://bugs.webkit.org/show_bug.cgi?id=163494
1103 Reviewed by Sam Weinig.
1105 * DOM/DOMCSSMediaRule.mm:
1106 (-[DOMCSSMediaRule insertRule:index:]): Use raiseOnDOMError
1107 the new way to handle ExceptionOr instead of ExceptionCode.
1108 (-[DOMCSSMediaRule deleteRule:]): Ditto.
1109 * DOM/DOMCSSPrimitiveValue.mm:
1110 (-[DOMCSSPrimitiveValue setFloatValue:floatValue:]): Ditto.
1111 (-[DOMCSSPrimitiveValue getFloatValue:]): Ditto.
1112 (-[DOMCSSPrimitiveValue setStringValue:stringValue:]): Ditto.
1113 (-[DOMCSSPrimitiveValue getStringValue]): Ditto.
1114 (-[DOMCSSPrimitiveValue getCounterValue]): Ditto.
1115 (-[DOMCSSPrimitiveValue getRectValue]): Ditto.
1116 (-[DOMCSSPrimitiveValue getRGBColorValue]): Ditto.
1117 * DOM/DOMCSSRule.mm:
1118 (-[DOMCSSRule setCssText:]): Ditto.
1119 * DOM/DOMCSSStyleDeclaration.mm:
1120 (-[DOMCSSStyleDeclaration setCssText:]): Ditto.
1121 (-[DOMCSSStyleDeclaration removeProperty:]): Ditto.
1122 (-[DOMCSSStyleDeclaration setProperty:value:priority:]): Ditto.
1123 * DOM/DOMCSSStyleSheet.mm:
1124 (-[DOMCSSStyleSheet insertRule:index:]): Ditto.
1125 (-[DOMCSSStyleSheet deleteRule:]): Ditto.
1126 (-[DOMCSSStyleSheet addRule:style:index:]): Ditto.
1127 (-[DOMCSSStyleSheet removeRule:]): Ditto.
1128 * DOM/DOMCSSValue.mm:
1129 (-[DOMCSSValue setCssText:]): Ditto.
1130 * DOM/DOMMediaList.mm:
1131 (-[DOMMediaList setMediaText:]): Ditto.
1132 (-[DOMMediaList deleteMedium:]): Ditto.
1133 (-[DOMMediaList appendMedium:]): Ditto.
1135 * DOM/ExceptionHandlers.h: Added an overload of raiseDOMException
1136 that works with a WebCore::Exception&& and overloads of
1137 raiseOnDOMError that work with WebCore::ExceptionOr&&.
1138 * DOM/ExceptionHandlers.mm:
1139 (raiseDOMException): Implemented the new version.
1141 2016-10-15 Dan Bernstein <mitz@apple.com>
1143 REGRESSION (r191699): Contextual menu in Mail compose view doesn’t include any of the standard submenus
1144 https://bugs.webkit.org/show_bug.cgi?id=163492
1145 <rdar://problem/28654799>
1147 Reviewed by Darin Adler.
1149 Test: TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm
1151 * WebView/WebHTMLView.mm:
1152 (createMenuItem): Set the tag for items that have submenus as well.
1154 2016-10-14 Anders Carlsson <andersca@apple.com>
1156 Clean up BackForwardClient
1157 https://bugs.webkit.org/show_bug.cgi?id=163454
1159 Reviewed by Sam Weinig.
1161 * History/BackForwardList.h:
1162 Remove override keywords.
1164 * History/BackForwardList.mm:
1165 (BackForwardList::clearAllPageCaches): Deleted.
1166 Remove this, it's no longer used.
1168 * WebView/WebView.mm:
1169 (-[WebView _clearBackForwardCache]): Deleted.
1170 * WebView/WebViewPrivate.h:
1171 Remove SPI that's no longer used by anyone.
1173 2016-10-13 Anders Carlsson <andersca@apple.com>
1175 Move BackForwardList from WebCore to WebKitLegacy
1176 https://bugs.webkit.org/show_bug.cgi?id=163418
1178 Reviewed by Tim Horton.
1180 * History/BackForwardList.h: Renamed from Source/WebCore/history/BackForwardList.h.
1181 (BackForwardList::create):
1182 (BackForwardList::webView):
1183 * History/BackForwardList.mm: Renamed from Source/WebCore/history/BackForwardList.cpp.
1184 (BackForwardList::BackForwardList):
1185 (BackForwardList::close):
1186 (BackForwardList::containsItem):
1187 * History/WebBackForwardList.mm:
1189 (-[WebBackForwardList initWithBackForwardList:]):
1190 (-[WebBackForwardList setPageCacheSize:]):
1191 (-[WebBackForwardList pageCacheSize]):
1192 * History/WebBackForwardListInternal.h:
1193 * WebCoreSupport/WebFrameLoaderClient.mm:
1194 * WebView/WebFrameView.mm:
1195 * WebView/WebView.mm:
1196 (-[WebView _commonInitializationWithFrameName:groupName:]):
1197 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1199 2016-10-13 Anders Carlsson <andersca@apple.com>
1201 Get rid of the HistoryItemVector typedef
1202 https://bugs.webkit.org/show_bug.cgi?id=163398
1204 Reviewed by Beth Dakin.
1206 Expand the HistoryitemVector typedef instead to make it more clear what types we are dealing with.
1208 * History/WebBackForwardList.mm:
1209 (-[WebBackForwardList dictionaryRepresentation]):
1211 (-[WebBackForwardList backListWithLimit:]):
1212 (-[WebBackForwardList forwardListWithLimit:]):
1213 (-[WebBackForwardList description]):
1214 * History/WebHistoryItem.mm:
1215 (-[WebHistoryItem description]):
1217 2016-10-12 Chris Dumez <cdumez@apple.com>
1219 [Web IDL] Drop support for legacy [ConstructorConditional=*]
1220 https://bugs.webkit.org/show_bug.cgi?id=163368
1222 Reviewed by Ryosuke Niwa.
1224 Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag.
1226 * Configurations/FeatureDefines.xcconfig:
1228 2016-10-12 Beth Dakin <bdakin@apple.com>
1230 Adobe Contribute CS 6.5 Trial crashes on launch
1231 https://bugs.webkit.org/show_bug.cgi?id=163365
1233 <rdar://problem/28732731>
1235 Reviewed by Tim Horton.
1237 * Carbon/CarbonWindowFrame.m:
1238 (-[CarbonWindowFrame contentFill]):
1240 2016-10-11 Daniel Bates <dabates@apple.com>
1242 Attempt to fix the Apple Internal Mac build following r207159
1243 (https://bugs.webkit.org/show_bug.cgi?id=163244)
1245 * WebView/WebView.mm:
1246 (shouldRequireUserGestureToLoadVideo):
1248 2016-10-11 Daniel Bates <dabates@apple.com>
1250 REGRESSION (r198251): -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO
1251 https://bugs.webkit.org/show_bug.cgi?id=163259
1252 <rdar://problem/28680515>
1254 Reviewed by Jer Noble.
1256 In WebKit1 on iOS we want to require user action to load and play videos by default and
1257 allow an embedding app to change this behavior via -[UIWebView setMediaPlaybackRequiresUserAction:].
1258 Following r198251, -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO and videos
1259 can load and play without being initiated by a user action.
1261 * WebView/WebPreferences.mm:
1262 (+[WebPreferences initialize]): Initialize the default value of the deprecated preference
1263 WebKitRequiresUserGestureForMediaPlaybackPreferenceKey to YES on iOS. The value of this
1264 preference takes precedence over the values of its replacement preferences
1265 WebKitRequiresUserGestureForVideoPlaybackPreferenceKey and WebKitRequiresUserGestureForAudioPlaybackPreferenceKey.
1267 2016-10-11 Daniel Bates <dabates@apple.com>
1269 [iOS] REGRESSION (r197953): User gesture required to load video in iOS 9-built apps
1270 https://bugs.webkit.org/show_bug.cgi?id=163244
1271 <rdar://problem/27250015>
1273 Reviewed by Jer Noble.
1275 Enable or disable the Setting::requiresUserGestureToLoadVideo() in legacy WebKit depending
1276 on the version of iOS SDK that the app was linked against. We require a user gesture to
1277 begin loading a video as of iOS 10.
1279 * WebView/WebView.mm:
1280 (shouldRequireUserGestureToLoadVideo):
1281 (-[WebView _preferencesChanged:]): Modified to pass the WebKit requiresUserGestureToLoadVideo
1282 preference to WebCore.
1284 2016-10-11 Alex Christensen <achristensen@webkit.org>
1286 Remove dead networking code
1287 https://bugs.webkit.org/show_bug.cgi?id=163263
1289 Reviewed by Daniel Bates.
1291 * Misc/WebDownload.mm:
1292 (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]): Deleted.
1293 * Misc/WebDownloadInternal.h:
1294 * WebCoreSupport/WebFrameLoaderClient.mm:
1295 (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1296 * WebView/WebPreferences.mm:
1297 (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
1298 * WebView/WebView.mm:
1299 (-[WebView scheduleInRunLoop:forMode:]):
1300 (-[WebView unscheduleFromRunLoop:forMode:]):
1302 2016-10-10 Zan Dobersek <zdobersek@igalia.com>
1304 Add ENABLE_ENCRYPTED_MEDIA configuration option
1305 https://bugs.webkit.org/show_bug.cgi?id=163219
1307 Reviewed by Darin Adler.
1309 * Configurations/FeatureDefines.xcconfig:
1310 Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
1311 to enable or disable the new EME implementation at build-time.
1313 2016-10-10 Darin Adler <darin@apple.com>
1315 Move NotificationCenter from legacy to new DOM exceptions
1316 https://bugs.webkit.org/show_bug.cgi?id=163217
1318 Reviewed by Chris Dumez.
1320 * WebView/WebView.mm:
1321 (-[WebView _notificationIDForTesting:]): Pass reference to page rather than pointer.
1323 2016-10-09 Wenson Hsieh <wenson_hsieh@apple.com>
1325 Support InputEvent.inputType for the new InputEvent spec
1326 https://bugs.webkit.org/show_bug.cgi?id=163025
1327 <rdar://problem/28658092>
1329 Reviewed by Darin Adler.
1331 Accounts for some changes to the EditAction enum in nameForEditAction. See WebCore ChangeLog
1332 entry for more details.
1334 * WebCoreSupport/WebEditorClient.mm:
1335 (undoNameForEditAction):
1337 2016-10-06 Darin Adler <darin@apple.com>
1339 Next step on moving to modern way to return DOM exceptions
1340 https://bugs.webkit.org/show_bug.cgi?id=163016
1342 Reviewed by Ryosuke Niwa.
1344 * DOM/DOMDOMImplementation.mm:
1345 (-[DOMImplementation createDocumentType:publicId:systemId:]): Updated for
1346 name change from takeReturnValue to releaseReturnValue.
1347 (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
1349 2016-10-07 Simon Fraser <simon.fraser@apple.com>
1351 [WK1 Mac] Fix repaints of fixed-background elements in layer-backed WebViews
1352 https://bugs.webkit.org/show_bug.cgi?id=163154
1353 rdar://problem/28674216
1355 Reviewed by Tim Horton.
1357 r55159 added code to counteract AppKit's adjustment of dirty regions during scrolling,
1358 by offsetting the dirty rect in -setNeedsDisplayInRect: if the call happens during
1359 the NSViewBoundsDidChangeNotification handling.
1361 However, AppKit only does dirty region adjustment in the code path that blits ("copy
1362 on scroll"), so r55159 produces incorrect behavior in, for example, layer-backed views.
1364 Fix by overriding -[NSClipView _canCopyOnScrollForDeltaX:deltaY:] to know if a single
1365 scroll is going to blit, and only do adjustments in -setNeedsDisplayInRect: if it is.
1367 * WebView/WebClipView.h:
1368 * WebView/WebClipView.mm:
1369 (-[WebClipView _immediateScrollToPoint:]):
1370 (-[WebClipView _canCopyOnScrollForDeltaX:deltaY:]):
1371 (-[WebClipView currentScrollIsBlit]):
1372 * WebView/WebHTMLView.mm:
1373 (-[WebHTMLView setNeedsDisplayInRect:]):
1374 (-[WebHTMLView drawRect:]):
1376 2016-10-06 Youenn Fablet <youenn@apple.com>
1378 CachedResource client handling methods should take reference
1379 https://bugs.webkit.org/show_bug.cgi?id=163014
1381 Reviewed by Alex Christensen.
1383 * WebView/WebHTMLView.mm:
1384 (promisedDataClient):
1386 2016-10-05 Myles C. Maxfield <mmaxfield@apple.com>
1388 Put variation fonts work behind a compile-time flag
1389 https://bugs.webkit.org/show_bug.cgi?id=162949
1391 Reviewed by Simon Fraser.
1393 * Configurations/FeatureDefines.xcconfig:
1395 2016-10-05 Zan Dobersek <zdobersek@igalia.com>
1397 Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
1398 https://bugs.webkit.org/show_bug.cgi?id=162903
1400 Reviewed by Alex Christensen.
1402 Rename build guards for the remaining implementation of the legacy EME API
1403 to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
1404 of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
1406 * Configurations/FeatureDefines.xcconfig:
1407 * WebView/WebPreferences.mm:
1408 (+[WebPreferences initialize]):
1409 * WebView/WebView.mm:
1410 (-[WebView _preferencesChanged:]):
1412 2016-10-04 Said Abou-Hallawa <sabouhallawa@apple.com>
1414 The dragged image should be the current frame only of the animated image
1415 https://bugs.webkit.org/show_bug.cgi?id=162109
1417 Reviewed by Tim Horton.
1420 (-[DOMElement image]): Call the Image function with its new name.
1421 (-[DOMElement _imageTIFFRepresentation]): Ditto.
1422 * Misc/WebElementDictionary.mm:
1423 (-[WebElementDictionary _image]): Call the Image function with its new name.
1424 * Misc/WebIconDatabase.mm:
1425 (-[WebIconDatabase defaultIconWithSize:]): Call snapshotNSImage() to create the icon image.
1426 (webGetNSImage): Call the Image function with its new name.
1427 * WebCoreSupport/WebContextMenuClient.mm:
1428 (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Call snapshotNSImage() instead of nsImage()..
1429 (WebContextMenuClient::contextMenuForEvent): Ditto.
1430 * WebView/WebHTMLView.mm:
1431 (-[WebHTMLView pasteboard:provideDataForType:]): Call the Image function with its new name.
1433 2016-10-02 Ryan Haddad <ryanhaddad@apple.com>
1435 Unreviewed, rolling out r206683.
1437 This change caused API test WebKit2.FindMatches to fail on
1442 "The dragged image should be the current frame only of the
1444 https://bugs.webkit.org/show_bug.cgi?id=162109
1445 http://trac.webkit.org/changeset/206683
1447 2016-09-30 Said Abou-Hallawa <sabouhallawa@apple.com>
1449 The dragged image should be the current frame only of the animated image
1450 https://bugs.webkit.org/show_bug.cgi?id=162109
1452 Reviewed by Tim Horton.
1455 (-[DOMElement image]): Call the Image function with its new name.
1456 (-[DOMElement _imageTIFFRepresentation]): Ditto.
1457 * Misc/WebElementDictionary.mm:
1458 (-[WebElementDictionary _image]): Call the Image function with its new name.
1459 * Misc/WebIconDatabase.mm:
1460 (-[WebIconDatabase defaultIconWithSize:]): Call currentFrameNSImage() to create the icon image.
1461 (webGetNSImage): Call the Image function with its new name.
1462 * WebCoreSupport/WebContextMenuClient.mm:
1463 (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Call currentFrameNSImage() instead of nsImage()..
1464 (WebContextMenuClient::contextMenuForEvent): Ditto.
1465 * WebView/WebHTMLView.mm:
1466 (-[WebHTMLView pasteboard:provideDataForType:]): Call the Image function with its new name.
1468 2016-09-27 Jer Noble <jer.noble@apple.com>
1470 Remove deprecated ENCRYPTED_MEDIA implementation.
1471 https://bugs.webkit.org/show_bug.cgi?id=161010
1473 Remove ENABLE_ENCRYPTED_MEDIA.
1475 Reviewed by Eric Carlson.
1477 * Configurations/FeatureDefines.xcconfig:
1479 2016-09-26 Daniel Bates <dabates@apple.com>
1481 Rename IOS_TEXT_AUTOSIZING to TEXT_AUTOSIZING
1482 https://bugs.webkit.org/show_bug.cgi?id=162365
1484 Reviewed by Simon Fraser.
1486 * Configurations/FeatureDefines.xcconfig:
1487 * WebView/WebFrame.mm:
1488 * WebView/WebPreferences.mm:
1489 (+[WebPreferences initialize]):
1490 * WebView/WebView.mm:
1491 (-[WebView _preferencesChanged:]):
1493 2016-09-25 Antti Koivisto <antti@apple.com>
1495 AuthorStyleSheets shouldn't trigger synchronous style resolutions
1496 https://bugs.webkit.org/show_bug.cgi?id=162532
1498 Reviewed by Darin Adler.
1500 * WebView/WebHTMLView.mm:
1501 (-[WebHTMLView reapplyStyles]):
1502 (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
1504 2016-09-24 Antti Koivisto <antti@apple.com>
1506 Move stylesheet change logic from Document to AuthorStyleSheets
1507 https://bugs.webkit.org/show_bug.cgi?id=162488
1509 Reviewed by Andreas Kling.
1511 * WebView/WebHTMLView.mm:
1512 (-[WebHTMLView reapplyStyles]):
1513 (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
1515 2016-09-23 Caitlin Potter <caitp@igalia.com>
1517 [JSC] Implement parsing of Async Functions
1518 https://bugs.webkit.org/show_bug.cgi?id=161409
1520 Reviewed by Yusuke Suzuki.
1522 * Configurations/FeatureDefines.xcconfig:
1524 2016-09-23 Commit Queue <commit-queue@webkit.org>
1526 Unreviewed, rolling out r206311.
1527 https://bugs.webkit.org/show_bug.cgi?id=162495
1529 Broke internal iOS build (Requested by anttik on #webkit).
1533 "Move stylesheet change logic from Document to
1535 https://bugs.webkit.org/show_bug.cgi?id=162488
1536 http://trac.webkit.org/changeset/206311
1538 2016-09-23 Antoine Quint <graouts@apple.com>
1540 Add a new runtime flag for work on modern media controls (off by default)
1541 https://bugs.webkit.org/show_bug.cgi?id=162420
1542 <rdar://problem/27989489>
1544 Reviewed by Eric Carlson.
1546 * WebView/WebPreferenceKeysPrivate.h:
1547 * WebView/WebPreferences.mm:
1548 (-[WebPreferences modernMediaControlsEnabled]):
1549 (-[WebPreferences setModernMediaControlsEnabled:]):
1550 * WebView/WebPreferencesPrivate.h:
1551 * WebView/WebView.mm:
1552 (-[WebView _preferencesChanged:]):
1554 2016-09-21 Anders Carlsson <andersca@apple.com>
1556 Support openPaymentSetup API on ApplePaySession object
1557 https://bugs.webkit.org/show_bug.cgi?id=162357
1558 rdar://problem/26776939
1560 Reviewed by Tim Horton.
1562 Add openPaymentSetup stub.
1564 * WebCoreSupport/WebPaymentCoordinatorClient.h:
1565 * WebCoreSupport/WebPaymentCoordinatorClient.mm:
1566 (WebPaymentCoordinatorClient::openPaymentSetup):
1568 2016-09-19 Daniel Bates <dabates@apple.com>
1570 Remove ENABLE(TEXT_AUTOSIZING) automatic text size adjustment code
1571 https://bugs.webkit.org/show_bug.cgi?id=162167
1573 Reviewed by Simon Fraser.
1575 * Configurations/FeatureDefines.xcconfig:
1577 2016-09-19 Joseph Pecoraro <pecoraro@apple.com>
1579 Web Inspector: Bring the inspected page's window forward when activating element search
1580 https://bugs.webkit.org/show_bug.cgi?id=162114
1581 <rdar://problem/28349357>
1583 Reviewed by Brian Burg.
1585 * WebCoreSupport/WebInspectorClient.mm:
1586 (WebInspectorClient::didSetSearchingForNode):
1587 When element search is activated bring the window
1588 containing the inspected page to the foreground.
1590 2016-09-15 Brady Eidson <beidson@apple.com>
1592 WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources).
1593 <rdar://problem/27681261> and https://bugs.webkit.org/show_bug.cgi?id=162043
1595 Reviewed by Brent Fulgham.
1597 * WebCoreSupport/WebFrameLoaderClient.h:
1598 * WebCoreSupport/WebFrameLoaderClient.mm:
1599 (WebFrameLoaderClient::dispatchDidCommitLoad):
1601 2016-09-15 Anders Carlsson <andersca@apple.com>
1603 This was supposed to be committed with the previous patch!
1605 * Plugins/WebBasePluginPackage.mm:
1606 (pathByResolvingSymlinksAndAliases): Deleted.
1608 2016-09-15 Anders Carlsson <andersca@apple.com>
1610 Replace use of Carbon file system APIs in plug-in loading
1611 https://bugs.webkit.org/show_bug.cgi?id=162040
1612 rdar://problem/6017896
1614 Reviewed by Sam Weinig.
1616 * Plugins/WebBasePluginPackage.mm:
1617 (-[WebBasePluginPackage initWithPath:]):
1618 Use -[NSString stringByResolvingSymlinksInPath] directly here. We already check for duplicate bundle IDs, so there's no need to try
1619 to resolve aliases as well (and the modern WebKit plug-in implementation doesn't do this).
1621 2016-09-15 Beth Dakin <bdakin@apple.com>
1623 Need hasMarkedText on Mac
1624 https://bugs.webkit.org/show_bug.cgi?id=162026
1626 rdar://problem/28272353
1628 Reviewed by Anders Carlsson.
1630 * WebView/WebHTMLViewInternal.h:
1632 2016-09-12 Dean Jackson <dino@apple.com>
1634 Replace RGBA32 with Color in member variables
1635 https://bugs.webkit.org/show_bug.cgi?id=161856
1636 <rdar://problem/28254324>
1638 Reviewed by Simon Fraser.
1640 In preparation for the Color class to become more than
1641 just a 4-byte RGBA value, I went through a few places
1642 that were using the RGBA32 type directly, and replaced
1643 them with Color. This will make some objects a little
1644 bigger e.g. BorderValue and its friends.
1646 I mostly looked at the places that were using RGBA32 as
1647 a member variable. There is still a lot of RGBA32 use
1648 around the project, in particular the CSS parser.
1650 There should be no behaviour change.
1652 * Misc/WebKitNSStringExtras.mm:
1653 (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Explicitly
1654 call a Color constructor, rather than passing an RGBA32.
1656 2016-09-13 Chris Dumez <cdumez@apple.com>
1658 Drop support for <isindex>
1659 https://bugs.webkit.org/show_bug.cgi?id=7139
1661 Reviewed by Ryosuke Niwa.
1663 Drop references to isindex.
1665 * WebCoreSupport/WebEditorClient.mm:
1666 (attributesForAttributedStringConversion):
1667 * WebView/WebHTMLView.mm:
1668 (+[WebHTMLView _excludedElementsForAttributedStringConversion]):
1670 2016-09-12 Chris Dumez <cdumez@apple.com>
1672 Switch remaining users of Document::inPageCache() to pageCacheState()
1673 https://bugs.webkit.org/show_bug.cgi?id=161865
1675 Reviewed by Darin Adler.
1677 Switch remaining users of Document::inPageCache() to pageCacheState() as
1678 the former one is confusing (given that it returns true while the
1679 pagehide event is being fired).
1681 * WebView/WebHTMLView.mm:
1682 (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]):
1683 (-[WebHTMLView setNeedsLayout:]):
1684 (-[WebHTMLView setNeedsToApplyStyles:]):
1686 2016-09-09 Tim Horton <timothy_horton@apple.com>
1688 Text replacement candidates don't always overwrite the entire original string
1689 https://bugs.webkit.org/show_bug.cgi?id=161779
1690 <rdar://problem/28033492>
1692 Reviewed by Simon Fraser.
1694 * WebCoreSupport/WebEditorClient.mm:
1695 (WebEditorClient::requestCandidatesForSelection):
1696 Make use of the shared implementation of contextRangeForCandidateRequest.
1698 2016-09-08 Said Abou-Hallawa <sabouhallawa@apple.com>
1700 Move the BitmapImage platform dependent code to a new file named NativeImage[CG|Cairo].cpp
1701 https://bugs.webkit.org/show_bug.cgi?id=158684
1703 Reviewed by Simon Fraser.
1706 (-[DOMNode getPreviewSnapshotImage:andRects:]):
1708 (+[WebCache imageForURL:]):
1709 Replace BitmapImage::getCGImageRef() with BitmapImage::nativeImage().
1711 2016-09-07 Joseph Pecoraro <pecoraro@apple.com>
1713 [Mac] Address some clang static analyzer warnings in WebKit
1714 https://bugs.webkit.org/show_bug.cgi?id=161597
1716 Reviewed by Darin Adler.
1718 * Misc/WebIconDatabase.h:
1719 Remove unused instance variable. It has not been used since r16005 (2006)!
1721 * Misc/WebSharingServicePickerController.mm:
1722 (-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
1725 * WebCoreSupport/WebSelectionServiceController.mm:
1726 (WebSelectionServiceController::hasRelevantSelectionServices):
1727 Address attachment and cell leak.
1729 * WebView/WebFullScreenController.h:
1730 * WebView/WebImmediateActionController.h:
1731 Remove unused instance variables.
1733 2016-09-07 Simon Fraser <simon.fraser@apple.com>
1735 Enable the <meter> element on iOS
1736 https://bugs.webkit.org/show_bug.cgi?id=161714
1737 rdar://problem/8978410
1739 Reviewed by Tim Horton.
1741 Define ENABLE_METER_ELEMENT unconditionally now.
1743 * Configurations/FeatureDefines.xcconfig:
1745 2016-09-07 Mark Lam <mark.lam@apple.com>
1747 Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
1748 https://bugs.webkit.org/show_bug.cgi?id=161498
1750 Reviewed by Geoffrey Garen.
1752 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1753 (WebKit::NetscapePluginInstanceProxy::evaluate):
1754 (WebKit::NetscapePluginInstanceProxy::invoke):
1755 (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1756 (WebKit::NetscapePluginInstanceProxy::construct):
1757 (WebKit::NetscapePluginInstanceProxy::getProperty):
1758 (WebKit::NetscapePluginInstanceProxy::setProperty):
1759 (WebKit::NetscapePluginInstanceProxy::removeProperty):
1760 (WebKit::NetscapePluginInstanceProxy::hasProperty):
1761 (WebKit::NetscapePluginInstanceProxy::hasMethod):
1762 (WebKit::NetscapePluginInstanceProxy::enumerate):
1763 * WebView/WebView.mm:
1764 (aeDescFromJSValue):
1766 2016-09-07 Youenn Fablet <youenn@apple.com>
1768 [Streams API] Separate compile flag for ReadableStream and WritableStream
1769 https://bugs.webkit.org/show_bug.cgi?id=161044
1771 Reviewed by Alex Christensen.
1773 Moving from STREAMS_API to READABLE_STREAM_API and WRITABLE_STREAM_API compilation flags.
1775 * Configurations/FeatureDefines.xcconfig:
1777 2016-09-06 Chris Dumez <cdumez@apple.com>
1779 Add support for input.minLength / textArea.minLength
1780 https://bugs.webkit.org/show_bug.cgi?id=161644
1782 Reviewed by Darin Adler.
1784 Update ObjC bindings to reflect method renaming.
1786 * DOM/DOMHTMLInputElement.mm:
1787 (-[DOMHTMLInputElement maxLength]):
1788 (-[DOMHTMLInputElement setMaxLength:]):
1789 * DOM/DOMHTMLTextAreaElement.mm:
1790 (-[DOMHTMLTextAreaElement maxLength]):
1791 (-[DOMHTMLTextAreaElement setMaxLength:]):
1793 2016-09-06 Dan Bernstein <mitz@apple.com>
1795 <rdar://problem/8064563> Ugly NSLog in DOMInternal.mm
1797 Rubber-stamped by Anders Carlsson.
1799 * DOM/DOMInternal.mm:
1800 (-[WebScriptObject _initializeScriptDOMNodeImp]): Removed useless call to NSLog.
1802 2016-09-06 Ryan Haddad <ryanhaddad@apple.com>
1804 Unreviewed, rolling out r205407.
1806 Not the correct way to implement this functionality
1810 "Consult with the FrameLoaderClient about whether or not
1811 content extensions should be enabled when loading this URL."
1812 https://bugs.webkit.org/show_bug.cgi?id=161441
1813 http://trac.webkit.org/changeset/205407
1815 2016-09-05 Darin Adler <darin@apple.com>
1817 More bindings improvements, particularly things not needed for JavaScript bindings
1818 https://bugs.webkit.org/show_bug.cgi?id=161572
1820 Reviewed by Sam Weinig.
1822 * DOM/DOMDOMImplementation.mm:
1823 (-[DOMImplementation hasFeature:version:]): Call SVGTests::hasFeatureForLegacyBindings
1824 instead of DOMImplementation::hasFeature. Also removed JSMainThreadNullState
1825 since this does not do anything that can invoke JavaScript.
1827 * DOM/DOMDocument.mm:
1828 (-[DOMDocument defaultCharset]): Call defaultCharsetForLegacyBindings. Also removed
1829 JSMainThreadNullState.
1831 * DOM/DOMDocumentType.mm:
1832 (-[DOMDocumentType entities]): Changed to simply return nil; same behavior as before,
1833 but with no dependency on WebCore. Also removed JSMainThreadNullState.
1834 (-[DOMDocumentType notations]): Ditto.
1835 (-[DOMDocumentType internalSubset]): Ditto, except empty string rather than nil.
1838 (-[DOMNode isSupported:version:]): Call SVGTests::hasFeatureForLegacyBindings
1839 instead of Node::isSupportedForBindings. Also removed JSMainThreadNullState.
1841 2016-09-04 Joseph Pecoraro <pecoraro@apple.com>
1843 Remove unnecessary RetainPtr.
1845 Review comments on earlier change.
1847 * WebView/WebImmediateActionController.mm:
1848 (-[WebImmediateActionController _defaultAnimationController]):
1850 2016-09-03 Darin Adler <darin@apple.com>
1852 Streamline DOMImplementation, and move it to our new DOM exception system
1853 https://bugs.webkit.org/show_bug.cgi?id=161295
1855 Reviewed by Ryosuke Niwa.
1857 * DOM/DOMDOMImplementation.mm:
1858 (unwrap): Added. Use this instead of the IMPL macro.
1859 (-[DOMImplementation dealloc]): Updated to use unwrap.
1860 (-[DOMImplementation hasFeature:version:]): Ditto.
1861 (-[DOMImplementation createDocumentType:publicId:systemId:]): Updated to work with
1863 (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
1864 (-[DOMImplementation createCSSStyleSheet:media:]): Removed exception logic since
1865 this function can no longer raise an exception.
1866 (-[DOMImplementation createHTMLDocument:]): Updated to use unwrap.
1867 (-[DOMImplementation hasFeature::]): Changed to call the non-deprecated version
1868 rather than duplicating its implementation. Also moved into the category as defined
1870 (-[DOMImplementation createDocumentType:::]): Ditto.
1871 (-[DOMImplementation createDocument:::]): Ditto.
1872 (-[DOMImplementation createCSSStyleSheet::]): Ditto.
1874 * DOM/DOMDocument.mm: Removed unneeded include of DOMImplementation.h.
1875 (-[DOMDocument setXmlStandalone:]): Updated since setXMLStandalone no longer can
1878 * WebView/WebFrame.mm:
1879 (-[WebFrame _canProvideDocumentSource]): Updated to use isTextMIMEType in its new
1880 location in MIMETypeRegistry instead of in DOMImplementation.
1882 2016-09-03 Brian Weinstein <bweinstein@apple.com>
1884 Implement a stub version of FrameLoaderClient::shouldUseContentExtensionsForURL.
1885 https://bugs.webkit.org/show_bug.cgi?id=16144
1887 Reviewed by Darin Adler.
1889 * WebCoreSupport/WebFrameLoaderClient.h:
1891 2016-09-02 Beth Dakin <bdakin@apple.com>
1893 Need to updateEditorState if an element change edit-ability without changing
1895 https://bugs.webkit.org/show_bug.cgi?id=161546
1897 rdar://problem/27806012
1899 Reviewed by Ryosuke Niwa.
1901 Every time WebEditorClient::respondToChangedSelection is called, we now save
1902 whether the last state was contentEditable. That way in
1903 updateEditorStateAfterLayoutIfNeeded() we can assess whether or not edit-ability
1906 * WebCoreSupport/WebEditorClient.h:
1907 * WebCoreSupport/WebEditorClient.mm:
1908 (WebEditorClient::respondToChangedSelection):
1909 (WebEditorClient:: updateEditorStateAfterLayoutIfEditabilityChanged):
1911 2016-09-02 Joseph Pecoraro <pecoraro@apple.com>
1913 [Mac] RetainPtr misuse, AnimationController leaks
1914 https://bugs.webkit.org/show_bug.cgi?id=161552
1916 Reviewed by Tim Horton.
1918 * WebView/WebImmediateActionController.mm:
1919 (-[WebImmediateActionController _defaultAnimationController]):
1921 2016-07-08 Jer Noble <jer.noble@apple.com>
1923 Refactor WebPlaybackSessionModelMediaElement to be client based.
1924 https://bugs.webkit.org/show_bug.cgi?id=159580
1926 Reviewed by Eric Carlson.
1928 No longer necessary to tell the models and interfaces about each other.
1930 * WebView/WebView.mm:
1931 (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
1932 (-[WebView _clearPlaybackControlsManager]):
1934 2016-09-01 Dan Bernstein <mitz@apple.com>
1938 * Configurations/FeatureDefines.xcconfig:
1940 2016-09-01 Myles C. Maxfield <mmaxfield@apple.com>
1942 Clean up TextRun-related code
1943 https://bugs.webkit.org/show_bug.cgi?id=161473
1945 Reviewed by Simon Fraser.
1947 Remove unused #includes.
1949 * WebCoreSupport/WebDragClient.mm:
1950 * WebView/WebView.mm:
1952 2016-08-31 Keith Rollin <krollin@apple.com>
1954 WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
1955 https://bugs.webkit.org/show_bug.cgi?id=160969
1956 <rdar://problem/26068734>
1958 Reviewed by Simon Fraser.
1960 Enable subsystem- and channel-related data and functions when using
1961 RELEASE_LOG macros. Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL,
1962 and LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
1964 * Misc/WebKitLogging.h:
1965 * Misc/WebKitLogging.m:
1966 * WebView/WebView.mm:
1967 (-[WebView _commonInitializationWithFrameName:groupName:]):
1969 2016-08-31 Brady Eidson <beidson@apple.com>
1971 WK2 Gamepad provider on iOS.
1972 https://bugs.webkit.org/show_bug.cgi?id=161412
1974 Reviewed by Tim Horton.
1976 * Configurations/FeatureDefines.xcconfig:
1978 * WebView/WebView.mm:
1979 (WebKitInitializeGamepadProviderIfNecessary):
1981 2016-08-30 Mark Lam <mark.lam@apple.com>
1983 Introduce the ThrowScope and force every throw site to instantiate a ThrowScope.
1984 https://bugs.webkit.org/show_bug.cgi?id=161171
1986 Reviewed by Filip Pizlo and Geoffrey Garen.
1988 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1989 (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
1990 * Plugins/Hosted/ProxyInstance.mm:
1991 (WebKit::ProxyInstance::invokeMethod):
1993 2016-08-28 Andreas Kling <akling@apple.com>
1995 document.title setter can't throw.
1996 <https://webkit.org/b/161302>
1998 Reviewed by Antti Koivisto.
2000 * DOM/DOMDocument.mm:
2001 (-[DOMDocument setTitle:]):
2003 2016-08-28 Andreas Kling <akling@apple.com>
2005 Clean up some .text attribute setters that don't throw.
2006 <https://webkit.org/b/161292>
2008 Reviewed by Darin Adler.
2010 * DOM/DOMHTMLTitleElement.mm:
2011 (-[DOMHTMLTitleElement setText:]):
2013 2016-08-26 Sam Weinig <sam@webkit.org>
2015 Remove support for ENABLE_LEGACY_WEB_AUDIO
2016 https://bugs.webkit.org/show_bug.cgi?id=161262
2018 Reviewed by Anders Carlsson.
2020 * Configurations/FeatureDefines.xcconfig:
2021 Remove ENABLE_LEGACY_WEB_AUDIO
2023 2016-08-25 Anders Carlsson <andersca@apple.com>
2025 Re-export DOMException NSStrings after r204717
2026 https://bugs.webkit.org/show_bug.cgi?id=161200
2027 <rdar://problem/27959937>
2029 Reviewed by Alex Christensen.
2031 * DOM/ExceptionHandlers.mm:
2032 (raiseDOMException):
2035 2016-08-22 Darin Adler <darin@apple.com>
2037 Move Objective-C DOM bindings from WebCore to legacy WebKit
2038 https://bugs.webkit.org/show_bug.cgi?id=160654
2040 Reviewed by Alex Christensen.
2042 * DOM: Added lots of files to the directory.
2043 The files are just as they were in bindings/objc except that the paths of includes
2044 have been updated as needed, and the code no longer is defined inside the WebCore
2045 namespace, requring changes to various functions and their call sites. Also removed
2046 all the WEBCORE_EXPORT since we export differently here in legacy WebKit.
2048 * DOM/DOMInternal.h: Moved. Replaced createDOMWrapper with initializeDOMWrapperHooks.
2049 * DOM/DOMUtility.mm: Moved.
2050 (createDOMWrapper): Simplified to use toWrapped and not do unneeded namespace tricks.
2051 (disconnectWindowWrapper): Added.
2052 (initializeDOMWrapperHooks): Added.
2054 * MigrateHeaders.make: Removed all the internal headers since they are now just
2055 normal project headers. Added the "DOM" directory to the VPATH. Some of the headers
2056 from WebCore are still being migrated, so we can't remove WebCorePrivateHeaders yet.
2058 * WebCoreSupport/WebEditorClient.h: Updated to return RefPtr<DocumentFragment>.
2060 * WebCoreSupport/WebEditorClient.mm:
2061 (WebEditorClient::documentFragmentFromDelegate): Use RefPtr.
2063 * WebKit.exp: Added exports for all the classes that used to use WEBCORE_EXPORT to
2064 be exported from WebCore.
2066 * WebView/WebFrame.mm:
2067 (-[WebFrame innerLineHeight:]): Moved code from WebCore::Frame::innerLineHeight here.
2068 No longer depend on whether this node happens to be in this frame. Also removed
2069 unneeded null check since a node's document can't be null.
2071 * WebView/WebHTMLView.mm: Removed uneeded include of ExceptionHandlers.h, which
2072 is now here in WebKitLegacy instead of WebCore. But no need to include it at all.
2074 * WebView/WebView.mm:
2075 (-[WebView _commonInitializationWithFrameName:groupName:]): Call
2076 initializeDOMWrapperHooks so WebScriptObject can create DOM binding wrappers when
2077 making a script object for a DOM object, rather than just a generic script object.
2078 (+[WebView enableWebThread]): Added a call to WebCoreObjCDeallocOnWebThread here for
2079 DOMObject along with the other classes. This was done in WebCore before, but DOMObject is now
2080 defined here in legacy WebKit.
2081 (-[WebView styleAtSelectionStart]): Moved code from WebCore::Frame::styleAtSelectionStart here.
2082 Replaced incorrect code that called "new PropertySetCSSStyleDeclaration" with a misleading comment
2083 about reference counting; that code was leaking all the style declarations. Instead use
2084 MutableStyleProperties::ensureCSSStyleDeclaration, which is designed for this purpose.
2086 2016-08-22 Youenn Fablet <youenn@apple.com>
2088 [Fetch API] Activate fetch api runtime flag by default
2089 https://bugs.webkit.org/show_bug.cgi?id=160452
2091 Reviewed by Alex Christensen.
2093 * WebView/WebPreferences.mm:
2094 (+[WebPreferences initialize]):
2096 2016-08-21 Alex Christensen <achristensen@webkit.org>
2098 Use Document& instead of Document* when getting cookies
2099 https://bugs.webkit.org/show_bug.cgi?id=161011
2101 Reviewed by Darin Adler.
2103 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2104 (WebKit::NetscapePluginInstanceProxy::getCookies):
2105 (WebKit::NetscapePluginInstanceProxy::setCookies):
2106 * Plugins/WebNetscapePluginView.mm:
2107 (-[WebNetscapePluginView getVariable:forURL:value:length:]):
2108 (-[WebNetscapePluginView setVariable:forURL:value:length:]):
2110 2016-08-16 Simon Fraser <simon.fraser@apple.com>
2112 Rename didLayout(LayoutMilestones) to didReachLayoutMilestone(), and related WK2 functions
2113 https://bugs.webkit.org/show_bug.cgi?id=160923
2115 Reviewed by Tim Horton.
2117 * WebCoreSupport/WebFrameLoaderClient.h:
2118 * WebCoreSupport/WebFrameLoaderClient.mm:
2119 (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
2120 (WebFrameLoaderClient::dispatchDidLayout): Deleted.
2122 2016-08-18 Daniel Bates <dabates@apple.com>
2124 Ld warns of non-existent PrivateFrameworks directory when building WebKit with the public iOS 9.3 SDK
2125 https://bugs.webkit.org/show_bug.cgi?id=160979
2127 Rubber-stamped by Simon Fraser.
2129 Only add the SDK PrivateFrameworks directory to the FRAMEWORK_SEARCH_PATH when building for
2130 iOS Simulator, building with an iOS SDK that does not support text-based stubs, or building
2131 an Apple-internal build.
2133 * Configurations/WebKitLegacy.xcconfig:
2135 2016-08-18 Anders Carlsson <andersca@apple.com>
2137 Move an NPAPI-only function from WebCore to WebKit
2138 https://bugs.webkit.org/show_bug.cgi?id=160967
2140 Reviewed by Sam Weinig.
2142 * Plugins/WebNetscapePluginView.h:
2143 * Plugins/WebNetscapePluginView.mm:
2144 (-[WebNetscapePluginView getVariable:value:]):
2145 (-[WebNetscapePluginView _destroyPlugin]):
2147 2016-08-18 Rawinder Singh <rawinder.singh-webkit@cisra.canon.com.au>
2149 [web-animations] Add Animatable, AnimationEffect, KeyframeEffect and Animation interface
2150 https://bugs.webkit.org/show_bug.cgi?id=156096
2152 Reviewed by Dean Jackson.
2155 - Setup interface for enabling runtime flag for Web animations through preferences.
2157 * WebView/WebPreferenceKeysPrivate.h:
2158 * WebView/WebPreferences.mm:
2159 (+[WebPreferences initialize]):
2160 (-[WebPreferences webAnimationsEnabled]):
2161 (-[WebPreferences setWebAnimationsEnabled:]):
2162 * WebView/WebPreferencesPrivate.h:
2163 * WebView/WebView.mm:
2164 (-[WebView _preferencesChanged:]):
2166 2016-08-17 Anders Carlsson <andersca@apple.com>
2168 Remove a couple of unused WKSI function pointers
2169 https://bugs.webkit.org/show_bug.cgi?id=160946
2171 Reviewed by Dan Bernstein.
2173 * WebCoreSupport/WebSystemInterface.mm:
2174 (InitWebCoreSystemInterface): Deleted.
2176 2016-08-16 Daniel Bates <dabates@apple.com>
2178 WKSI static library should be named by major iOS revision, not individual updates
2179 https://bugs.webkit.org/show_bug.cgi?id=160727
2180 <rdar://problem/22274848>
2182 Reviewed by Alexey Proskuryakov.
2184 * Configurations/Base.xcconfig:
2185 * Configurations/DebugRelease.xcconfig:
2186 * Configurations/WebKitLegacy.xcconfig:
2188 2016-08-16 Darin Adler <darin@apple.com>
2190 [Cocoa] Remove dependency on Objective-C bindings in WebKit2 editing code
2191 https://bugs.webkit.org/show_bug.cgi?id=160891
2193 Reviewed by Anders Carlsson.
2195 * WebCoreSupport/WebEditorClient.h: Removed documentFragmentFromAttributedString.
2197 * WebCoreSupport/WebEditorClient.mm:
2198 (attributesForAttributedStringConversion): Replaced the
2199 createExcludedElementsForAttributedStringConversion function with this one.
2200 No good reason to keep the array around instead of the dictionary.
2201 (_WebCreateFragment): Renamed from documentFragmentFromAttributedString.
2202 This is now a global function exported so it can be called by WebCore with
2203 a different way of returning its value.
2205 * WebKit.exp: Added _WebCreateFragment.
2207 * WebView/WebHTMLView.mm:
2208 (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2209 Removed long-ago-obsolete workaround for Radar bug 5052369.
2211 2016-08-15 Anders Carlsson <andersca@apple.com>
2217 2016-08-15 Anders Carlsson <andersca@apple.com>
2221 * Configurations/WebKitLegacy.xcconfig:
2224 2016-08-15 Anders Carlsson <andersca@apple.com>
2226 Remove OldWebAssertions.c
2227 https://bugs.webkit.org/show_bug.cgi?id=160862
2229 Reviewed by Dan Bernstein.
2231 These functions were used by an old version of iWeb. The latest version of iWeb no longer uses them.
2233 * Misc/OldWebAssertions.c: Removed.
2234 (WebReportAssertionFailure): Deleted.
2235 (WebReportError): Deleted.
2237 2016-08-15 Anders Carlsson <andersca@apple.com>
2239 Remove WebKeyGenerator
2240 https://bugs.webkit.org/show_bug.cgi?id=160854
2242 Reviewed by Dan Bernstein.
2244 This SPI class is no longer used by Safari.
2246 * WebCoreSupport/WebKeyGenerator.h: Removed.
2247 * WebCoreSupport/WebKeyGenerator.mm: Removed.
2248 (+[WebKeyGenerator sharedGenerator]): Deleted.
2249 (toWebCertificateParseResult): Deleted.
2250 (-[WebKeyGenerator addCertificatesToKeychainFromData:]): Deleted.
2251 * WebView/WebFrameView.mm:
2253 2016-08-15 Daniel Bates <dabates@apple.com>
2255 Cannot build WebKit for iOS device using Xcode 7.3/iOS 9.3 public SDK due to missing
2256 private frameworks and libraries
2257 https://bugs.webkit.org/show_bug.cgi?id=155931
2258 <rdar://problem/25807989>
2260 Reviewed by Dan Bernstein.
2262 Add directory WebKitLibraries/WebKitPrivateFrameworkStubs/iOS/X to the framework search path
2263 where X is the major version of the active iOS SDK.
2265 * Configurations/WebKitLegacy.xcconfig:
2267 2016-08-15 Simon Fraser <simon.fraser@apple.com>
2269 Add a setting and preferences to enable visual viewport mode
2270 https://bugs.webkit.org/show_bug.cgi?id=160843
2272 Reviewed by Sam Weinig.
2274 Hook up the visualViewportEnabled setting for WebKit1.
2276 * WebView/WebPreferenceKeysPrivate.h:
2277 * WebView/WebPreferences.mm:
2278 (+[WebPreferences initialize]):
2279 (-[WebPreferences visualViewportEnabled]):
2280 (-[WebPreferences setVisualViewportEnabled:]):
2281 * WebView/WebPreferencesPrivate.h:
2283 2016-08-15 Joseph Pecoraro <pecoraro@apple.com>
2285 Remove unused includes of wtf headers
2286 https://bugs.webkit.org/show_bug.cgi?id=160839
2288 Reviewed by Alex Christensen.
2290 * History/BinaryPropertyList.cpp:
2291 * History/WebBackForwardList.mm:
2292 * History/WebHistoryItemInternal.h:
2293 * Misc/WebNSFileManagerExtras.mm:
2294 * Plugins/Hosted/NetscapePluginHostProxy.h:
2295 * WebCoreSupport/WebPlatformStrategies.mm:
2296 * WebCoreSupport/WebSelectionServiceController.mm:
2297 * WebCoreSupport/WebUserMediaClient.h:
2299 2016-08-12 Anders Carlsson <andersca@apple.com>
2301 Move the plug-in and WebGL blacklist code to WebCore
2302 https://bugs.webkit.org/show_bug.cgi?id=160831
2304 Reviewed by Sam Weinig.
2306 Adopt the plug-in and WebGL blacklist code from WebCore instead of using the code from WebKitSystemInterface.
2308 * WebCoreSupport/WebFrameLoaderClient.mm:
2309 (shouldBlockPlugin):
2310 (WebFrameLoaderClient::createPlugin):
2311 (WebFrameLoaderClient::createJavaAppletWidget):
2313 (WebFrameLoaderClient::webGLPolicyForURL):
2314 (WebFrameLoaderClient::resolveWebGLPolicyForURL):
2316 2016-08-14 Daniel Bates <dabates@apple.com>
2318 Fix compiler errors when building iOS WebKit using the iOS 10 beta SDK
2319 https://bugs.webkit.org/show_bug.cgi?id=160725
2321 Reviewed by Sam Weinig.
2323 OSAtomicCompareAndSwap32() has been deprecated as of the iOS 10 beta SDK. For now,
2324 silence the complier warning.
2326 * WebView/WebView.mm:
2327 (-[WebView _dispatchTileDidDraw:]):
2329 2016-08-12 Joseph Pecoraro <pecoraro@apple.com>
2331 Remove always true JSC::Debugger::needPauseHandling virtual method
2332 https://bugs.webkit.org/show_bug.cgi?id=160822
2334 Reviewed by Mark Lam.
2336 * WebView/WebScriptDebugger.h:
2338 2016-08-11 Chris Dumez <cdumez@apple.com>
2340 Regression(r204268): Mail crashes when trying to compose an email
2341 https://bugs.webkit.org/show_bug.cgi?id=160775
2343 Reviewed by Anders Carlsson.
2345 Properly initialize PageConfiguration.pluginInfoProvider in
2346 [WebView initSimpleHTMLDocumentWithStyle] to avoid a null
2347 dereference in Mail when trying to compose an email.
2349 * WebView/WebView.mm:
2350 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2352 2016-08-10 Simon Fraser <simon.fraser@apple.com>
2354 Sort the feature flags in the FEATURE_DEFINES lines
2355 https://bugs.webkit.org/show_bug.cgi?id=160742
2357 Reviewed by Anders Carlsson.
2359 * Configurations/FeatureDefines.xcconfig:
2361 2016-08-09 Alex Christensen <achristensen@webkit.org>
2363 Move NetworkStorageSession management to WebCore
2364 https://bugs.webkit.org/show_bug.cgi?id=160173
2366 Reviewed by Brady Eidson.
2368 * WebCoreSupport/WebFrameNetworkingContext.mm:
2369 (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2370 (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
2371 * WebCoreSupport/WebPlatformStrategies.mm:
2372 * WebView/WebView.mm:
2374 2016-08-09 Anders Carlsson <andersca@apple.com>
2376 Instantiate WebKit plug-ins at layout time, instead of at style resolution time
2377 https://bugs.webkit.org/show_bug.cgi?id=160715
2379 Reviewed by Tim Horton.
2381 * WebCoreSupport/WebFrameLoaderClient.mm:
2382 (WebFrameLoaderClient::objectContentType):
2384 2016-08-09 George Ruan <gruan@apple.com>
2386 Implement functionality of media capture on iOS
2387 https://bugs.webkit.org/show_bug.cgi?id=158945
2388 <rdar://problem/26893343>
2390 Reviewed by Tim Horton.
2392 * Configurations/FeatureDefines.xcconfig: Enable Media Capture feature
2395 2016-08-09 Anders Carlsson <andersca@apple.com>
2397 Get rid of PluginStrategy
2398 https://bugs.webkit.org/show_bug.cgi?id=160696
2400 Reviewed by Dan Bernstein.
2402 * WebCoreSupport/WebPlatformStrategies.h:
2403 * WebCoreSupport/WebPlatformStrategies.mm:
2404 (WebPlatformStrategies::createPluginStrategy): Deleted.
2405 * WebCoreSupport/WebPluginInfoProvider.h:
2406 * WebCoreSupport/WebPluginInfoProvider.mm:
2407 (WebPluginInfoProvider::setPluginLoadClientPolicy): Deleted.
2408 (WebPluginInfoProvider::clearPluginClientPolicies): Deleted.
2410 2016-08-09 Anders Carlsson <andersca@apple.com>
2412 Move plug-in enumeration from WebPlatformStrategies to WebPluginInfoProvider
2413 https://bugs.webkit.org/show_bug.cgi?id=160694
2415 Reviewed by Dan Bernstein.
2417 * WebCoreSupport/WebPlatformStrategies.h:
2418 * WebCoreSupport/WebPlatformStrategies.mm:
2419 (WebPlatformStrategies::createPluginStrategy):
2420 (WebPlatformStrategies::refreshPlugins): Deleted.
2421 (WebPlatformStrategies::getPluginInfo): Deleted.
2422 (WebPlatformStrategies::getWebVisiblePluginInfo): Deleted.
2423 (WebPlatformStrategies::setPluginLoadClientPolicy): Deleted.
2424 (WebPlatformStrategies::clearPluginClientPolicies): Deleted.
2425 * WebCoreSupport/WebPluginInfoProvider.mm:
2426 (WebPluginInfoProvider::refreshPlugins):
2427 (WebPluginInfoProvider::getPluginInfo):
2428 (WebPluginInfoProvider::getWebVisiblePluginInfo):
2430 2016-08-08 Anders Carlsson <andersca@apple.com>
2432 Add a new PluginInfoProvider class, to replace PluginStrategy
2433 https://bugs.webkit.org/show_bug.cgi?id=160670
2435 Reviewed by Sam Weinig.
2437 Add a new WebPluginInfoProvider - it just calls through to the plug-in strategy for now.
2439 * WebCoreSupport/WebPluginInfoProvider.h: Added.
2440 * WebCoreSupport/WebPluginInfoProvider.mm: Added.
2441 (WebPluginInfoProvider::singleton):
2442 (WebPluginInfoProvider::WebPluginInfoProvider):
2443 (WebPluginInfoProvider::~WebPluginInfoProvider):
2444 (WebPluginInfoProvider::refreshPlugins):
2445 (WebPluginInfoProvider::getPluginInfo):
2446 (WebPluginInfoProvider::getWebVisiblePluginInfo):
2447 (WebPluginInfoProvider::setPluginLoadClientPolicy):
2448 (WebPluginInfoProvider::clearPluginClientPolicies):
2449 * WebView/WebView.mm:
2450 (-[WebView _commonInitializationWithFrameName:groupName:]):
2452 2016-08-02 Enrica Casucci <enrica@apple.com>
2454 Allow building with content filtering disabled.
2455 https://bugs.webkit.org/show_bug.cgi?id=160454
2457 Reviewed by Simon Fraser.
2459 * Configurations/FeatureDefines.xcconfig:
2460 * WebCoreSupport/WebFrameLoaderClient.h:
2461 * WebCoreSupport/WebFrameLoaderClient.mm:
2462 (WebFrameLoaderClient::blockedByContentFilterError):
2464 2016-08-02 Anders Carlsson <andersca@apple.com>
2466 Remove more unused/uninstalled Objective-C DOM bindings
2467 https://bugs.webkit.org/show_bug.cgi?id=160464
2469 Reviewed by Darin Adler.
2471 Stop installing unused headers.
2473 * MigrateHeaders.make:
2475 2016-08-01 Anders Carlsson <andersca@apple.com>
2477 Bring back a file - it needs to be copied by WebCore.
2479 * MigrateHeaders.make:
2481 2016-08-01 Anders Carlsson <andersca@apple.com>
2483 Remove another file.
2485 * MigrateHeaders.make:
2487 2016-08-01 Anders Carlsson <andersca@apple.com>
2491 * MigrateHeaders.make:
2493 2016-08-01 Anders Carlsson <andersca@apple.com>
2495 Freeze all the DOMHTML* Objective-C bindings
2496 https://bugs.webkit.org/show_bug.cgi?id=160424
2498 Reviewed by Tim Horton.
2500 Don't migrate DOMHTMLEmbedElementPrivate.h - it was just an empty header.
2502 * MigrateHeaders.make:
2504 2016-07-28 Myles C. Maxfield <mmaxfield@apple.com>
2506 Remove deprecated SPI for video inline / fullscreen controls
2507 https://bugs.webkit.org/show_bug.cgi?id=160318
2509 Reviewed by Tim Horton.
2511 * WebView/WebPreferenceKeysPrivate.h:
2512 * WebView/WebPreferences.mm:
2513 (+[WebPreferences initialize]): Deleted.
2514 (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]): Deleted.
2515 (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]): Deleted.
2516 (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]): Deleted.
2517 (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]): Deleted.
2518 * WebView/WebPreferencesPrivate.h:
2519 * WebView/WebView.mm:
2520 (-[WebView _preferencesChanged:]): Deleted.
2522 2016-07-28 Anders Carlsson <andersca@apple.com>
2524 Move a Mail.app workaround closer to where it's actually needed
2525 https://bugs.webkit.org/show_bug.cgi?id=160317
2527 Reviewed by Tim Horton.
2529 * WebCoreSupport/WebFrameLoaderClient.mm:
2530 (WebFrameLoaderClient::dispatchWillSendRequest):
2531 * WebView/WebFrame.mm:
2532 (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Deleted.
2534 2016-07-28 Anders Carlsson <andersca@apple.com>
2536 Use a RetainPtr in WebFrameLoaderClient::assignIdentifierToInitialRequest
2537 https://bugs.webkit.org/show_bug.cgi?id=160315
2539 Reviewed by Tim Horton.
2541 * WebCoreSupport/WebFrameLoaderClient.mm:
2542 (WebFrameLoaderClient::assignIdentifierToInitialRequest):
2544 2016-07-26 Simon Fraser <simon.fraser@apple.com>
2546 Fix the Windows debug build.
2548 WebResourceLoadScheduler's logging was a holdover from it being in WebCore,
2549 and prior to r203749 WebKit was actually using a WebCore log channel.
2551 For some reason this doesn't build on Windows debug, so just remove
2552 this logging for now.
2554 * Misc/WebKitLogging.h:
2556 2016-07-26 Myles C. Maxfield <mmaxfield@apple.com>
2558 [iPhone] Playing a video on tudou.com plays only sound, no video
2559 https://bugs.webkit.org/show_bug.cgi?id=160178
2560 <rdar://problem/27535468>
2562 Reviewed by Eric Carlson and Dan Bernstein.
2564 * WebView/WebPreferenceKeysPrivate.h:
2565 * WebView/WebPreferences.mm:
2566 (+[WebPreferences initialize]):
2567 (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]):
2568 (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]):
2569 * WebView/WebPreferencesPrivate.h:
2570 * WebView/WebView.mm:
2571 (-[WebView _preferencesChanged:]):
2573 2016-07-26 Simon Fraser <simon.fraser@apple.com>
2575 Allow LOG macros to be used outside the namespace, and other logging cleanup
2576 https://bugs.webkit.org/show_bug.cgi?id=160216
2578 Reviewed by Anders Carlsson.
2580 Fix some issues with the LOG macros.
2582 First, they were not usable outside the WebKit namespace in WebKit2 code. Fix by moving
2583 its log channels outside of the namespace (they are protected by a unique prefix anyway).
2585 Second, allow LOG_WITH_STREAM to be used in WebKit2 by moving that and a helper macro
2586 into LogMacros.h, which is exported from WebCore as a private header.
2588 Third, split the Logging.h header into two. Logging.h remains for framework-internal
2589 log channels and log macros. Add LogInitialization.h which is external, and used to
2590 initialize the channels.
2592 Finally unify "initializeLogChannels" and "initializeLoggingChannels" terminology everywhere.
2594 * Misc/WebKitLogging.h:
2595 * Misc/WebKitLogging.m:
2596 * WebView/WebView.mm:
2597 (-[WebView _commonInitializationWithFrameName:groupName:]):
2599 2016-07-21 Myles C. Maxfield <mmaxfield@apple.com>
2601 Remove support for deprecated SPI inlineMediaPlaybackRequiresPlaysInlineAttribute
2602 https://bugs.webkit.org/show_bug.cgi?id=160066
2604 Reviewed by Dean Jackson.
2606 * WebView/WebPreferenceKeysPrivate.h:
2607 * WebView/WebPreferences.mm:
2608 (+[WebPreferences initialize]): Deleted.
2609 (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]): Deleted.
2610 (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]): Deleted.
2611 * WebView/WebPreferencesPrivate.h:
2612 * WebView/WebView.mm:
2613 (-[WebView _preferencesChanged:]): Deleted.
2615 2016-07-21 Myles C. Maxfield <mmaxfield@apple.com>
2617 [iPhone] Playing a video on tudou.com plays only sound, no video
2618 https://bugs.webkit.org/show_bug.cgi?id=159967
2619 <rdar://problem/26964090>
2621 Reviewed by Jon Lee, Jeremy Jones, and Anders Carlsson.
2623 Add the two preferences to WebPreferences.
2625 * WebView/WebPreferenceKeysPrivate.h:
2626 * WebView/WebPreferences.mm:
2627 (+[WebPreferences initialize]):
2628 (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]):
2629 (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]):
2630 (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]):
2631 (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]):
2632 * WebView/WebPreferencesPrivate.h:
2633 * WebView/WebView.mm:
2634 (-[WebView _preferencesChanged:]):
2636 2016-07-20 Commit Queue <commit-queue@webkit.org>
2638 Unreviewed, rolling out r203471.
2639 https://bugs.webkit.org/show_bug.cgi?id=160003
2641 many iOS-simulator tests are failing (Requested by litherum on
2646 "[iPhone] Playing a video on tudou.com plays only sound, no
2648 https://bugs.webkit.org/show_bug.cgi?id=159967
2649 http://trac.webkit.org/changeset/203471
2651 2016-07-20 Myles C. Maxfield <mmaxfield@apple.com>
2653 [iPhone] Playing a video on tudou.com plays only sound, no video
2654 https://bugs.webkit.org/show_bug.cgi?id=159967
2655 <rdar://problem/26964090>
2657 Reviewed by Jon Lee.
2659 Add the two preferences to WebPreferences.
2661 * WebView/WebPreferenceKeysPrivate.h:
2662 * WebView/WebPreferences.mm:
2663 (+[WebPreferences initialize]):
2664 (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]):
2665 (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]):
2666 (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]):
2667 (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]):
2668 * WebView/WebPreferencesPrivate.h:
2669 * WebView/WebView.mm:
2670 (-[WebView _preferencesChanged:]):
2672 2016-07-19 Andy Estes <aestes@apple.com>
2674 Move WebKitErrorFrameLoadBlockedByContentFilter from WebKitErrors.h to WebKitErrorsPrivate.h
2675 https://bugs.webkit.org/show_bug.cgi?id=159956
2677 Reviewed by Dan Bernstein.
2679 * Misc/WebKitErrors.h: Moved definition of WebKitErrorFrameLoadBlockedByContentFilter from here ...
2680 * Misc/WebKitErrorsPrivate.h: to here.
2682 2016-07-18 Anders Carlsson <andersca@apple.com>
2684 WebKit nightly fails to build on macOS Sierra
2685 https://bugs.webkit.org/show_bug.cgi?id=159902
2686 rdar://problem/27365672
2688 Reviewed by Tim Horton.
2690 * icu/unicode/ucurr.h: Added.
2691 Add ucurr.h from ICU.
2693 2016-07-17 Sam Weinig <sam@webkit.org>
2695 [WebKit API] Add SPI to track multiple navigations caused by a single user gesture
2696 <rdar://problem/26554137>
2697 https://bugs.webkit.org/show_bug.cgi?id=159856
2699 Reviewed by Dan Bernstein.
2701 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2702 (WebKit::NetscapePluginInstanceProxy::evaluate):
2703 * Plugins/WebNetscapePluginView.mm:
2704 (-[WebNetscapePluginView sendEvent:isDrawRect:]):
2705 Update for new UserGestureIndicator interface.
2707 2016-07-16 Ryosuke Niwa <rniwa@webkit.org>
2709 Rename fastGetAttribute to attributeWithoutSynchronization
2710 https://bugs.webkit.org/show_bug.cgi?id=159852
2712 Reviewed by Darin Adler.
2714 * WebView/WebHTMLRepresentation.mm:
2715 (matchLabelsAgainstElement):
2717 2016-07-15 Chris Dumez <cdumez@apple.com>
2719 Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible
2720 https://bugs.webkit.org/show_bug.cgi?id=159793
2722 Reviewed by Ryosuke Niwa.
2724 Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible, for performance.
2726 * WebView/WebHTMLRepresentation.mm:
2727 (matchLabelsAgainstElement):
2729 2016-07-14 Alex Christensen <achristensen@webkit.org>
2731 Use SocketProvider to create SocketStreamHandles
2732 https://bugs.webkit.org/show_bug.cgi?id=159774
2734 Reviewed by Brady Eidson.
2736 * Misc/WebSocketProvider.h: Removed.
2737 * Misc/WebSocketProvider.mm: Removed.
2738 * WebView/WebView.mm:
2739 (-[WebView _commonInitializationWithFrameName:groupName:]):
2740 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2742 2016-07-14 Csaba Osztrogonác <ossy@webkit.org>
2744 Fix the !ENABLE(WEB_SOCKETS) build after r202930
2745 https://bugs.webkit.org/show_bug.cgi?id=159768
2747 Reviewed by Alex Christensen.
2749 * Misc/WebSocketProvider.h:
2751 2016-07-13 Beth Dakin <bdakin@apple.com>
2753 Add more candidate tests
2754 https://bugs.webkit.org/show_bug.cgi?id=159730
2756 Reviewed by Tim Horton.
2758 Move shouldRequestCandidates from WebViewInternal to WebViewPrivate so that
2759 we can use it in tests.
2760 * WebView/WebViewInternal.h:
2761 * WebView/WebViewPrivate.h:
2763 2016-07-13 Enrica Casucci <enrica@apple.com>
2765 Update supported platforms in xcconfig files to match the sdk names.
2766 https://bugs.webkit.org/show_bug.cgi?id=159728
2768 Reviewed by Tim Horton.
2770 * Configurations/Base.xcconfig:
2772 2016-07-12 Gyuyoung Kim <gyuyoung.kim@webkit.org>
2774 Remove ENABLE_CSS3_TEXT_LINE_BREAK flag
2775 https://bugs.webkit.org/show_bug.cgi?id=159671
2777 Reviewed by Csaba Osztrogonác.
2779 ENABLE_CSS3_TEXT_LINE_BREAK feature was implemented without guards.
2780 https://bugs.webkit.org/show_bug.cgi?id=89235
2782 So this guard can be removed in build scripts.
2784 * Configurations/FeatureDefines.xcconfig:
2786 2016-07-11 Gyuyoung Kim <gyuyoung.kim@webkit.org>
2788 Purge PassRefPtr in platform/efl and platform/mac
2789 https://bugs.webkit.org/show_bug.cgi?id=159548
2791 Reviewed by Alex Christensen.
2793 Remove all use of PassRefPtr and clean up unnecessary tabs and spaces.
2795 * WebCoreSupport/WebPlatformStrategies.h:
2796 * WebCoreSupport/WebPlatformStrategies.mm:
2797 (WebPlatformStrategies::setBufferForType):
2799 2016-07-11 Enrica Casucci <enrica@apple.com>
2801 Add synthetic click origin to WKNavigationAction.
2802 https://bugs.webkit.org/show_bug.cgi?id=159584
2803 rdar://problem/25610422
2805 Reviewed by Tim Horton.
2807 * WebView/WebFrame.mm:
2808 (-[WebFrame _dragSourceEndedAt:operation:]):
2809 * WebView/WebPDFView.mm:
2810 (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2812 2016-07-11 Anders Carlsson <andersca@apple.com>
2814 Able to open multiple payment sheets in Safari at the same time
2815 https://bugs.webkit.org/show_bug.cgi?id=159637
2816 rdar://problem/26411339
2818 Reviewed by Beth Dakin.
2820 Update for WebCore changes.
2822 * WebCoreSupport/WebPaymentCoordinatorClient.h:
2823 * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2824 (WebPaymentCoordinatorClient::showPaymentUI):
2826 2016-07-08 Andy Estes <aestes@apple.com>
2828 [Content Filtering] Load blocked pages more like other error pages are loaded
2829 https://bugs.webkit.org/show_bug.cgi?id=159485
2830 <rdar://problem/26014076>
2832 Reviewed by Brady Eidson.
2834 * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter.
2835 * Misc/WebKitErrors.m:
2836 (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter.
2837 * WebCoreSupport/WebFrameLoaderClient.h:
2838 * WebCoreSupport/WebFrameLoaderClient.mm:
2839 (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter.
2841 2016-07-08 Commit Queue <commit-queue@webkit.org>
2843 Unreviewed, rolling out r202944.
2844 https://bugs.webkit.org/show_bug.cgi?id=159570
2846 caused some tests to crash under GuardMalloc (Requested by
2851 "[Content Filtering] Load blocked pages more like other error
2853 https://bugs.webkit.org/show_bug.cgi?id=159485
2854 http://trac.webkit.org/changeset/202944
2856 2016-07-08 Jiewen Tan <jiewen_tan@apple.com>
2858 Define DYLD_MACOSX_VERSION_10_12
2859 https://bugs.webkit.org/show_bug.cgi?id=159525
2860 <rdar://problem/26250296>
2862 Reviewed by Brent Fulgham.
2864 * WebView/WebView.mm:
2865 (shouldConvertInvalidURLsToBlank):
2866 Replace 0x000A0C00 with DYLD_MACOSX_VERSION_10_12.
2868 2016-07-07 Beth Dakin <bdakin@apple.com>
2870 API Test DoNotLeakWebView.ViewThatLoadsEditableArea times out on macOS Sierra
2871 https://bugs.webkit.org/show_bug.cgi?id=159532
2873 rdar://problem/27177179
2875 Reviewed by Tim Horton.
2877 * WebView/WebView.mm:
2878 (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
2879 (-[WebView forceRequestCandidatesForTesting]):
2880 (-[WebView shouldRequestCandidates]):
2881 * WebView/WebViewPrivate.h:
2883 2016-07-07 Andy Estes <aestes@apple.com>
2885 [Content Filtering] Load blocked pages more like other error pages are loaded
2886 https://bugs.webkit.org/show_bug.cgi?id=159485
2887 <rdar://problem/26014076>
2889 Reviewed by Brady Eidson.
2891 * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter.
2892 * Misc/WebKitErrors.m:
2893 (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter.
2894 * WebCoreSupport/WebFrameLoaderClient.h:
2895 * WebCoreSupport/WebFrameLoaderClient.mm:
2896 (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter.
2898 2016-07-07 Alex Christensen <achristensen@webkit.org>
2900 Use SocketProvider to create WebSocketChannels
2901 https://bugs.webkit.org/show_bug.cgi?id=158776
2903 Reviewed by Brent Fulgham.
2905 * Misc/WebSocketProvider.mm: Copied from Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp.
2906 (WebSocketProvider::createWebSocketChannel):
2907 (WebCore::ThreadableWebSocketChannel::create): Deleted.
2908 * Misc/WebSocketProvider.h:
2909 * WebView/WebView.mm:
2910 (-[WebView _commonInitializationWithFrameName:groupName:]):
2911 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2913 2016-07-06 Benjamin Poulain <bpoulain@apple.com>
2915 [JSC] Unify how we throw TypeError from C++
2916 https://bugs.webkit.org/show_bug.cgi?id=159500
2918 Reviewed by Saam Barati.
2920 * Plugins/Hosted/ProxyInstance.mm:
2921 (WebKit::ProxyInstance::invokeMethod):
2923 2016-07-01 Youenn Fablet <youennf@gmail.com>
2925 Add a runtime flag for DOM iterators
2926 https://bugs.webkit.org/show_bug.cgi?id=159300
2928 Reviewed by Alex Christensen.
2930 * WebView/WebPreferenceKeysPrivate.h:
2931 * WebView/WebPreferences.mm:
2932 (-[WebPreferences DOMIteratorEnabled]):
2933 (-[WebPreferences setDOMIteratorEnabled:]):
2934 * WebView/WebPreferencesPrivate.h:
2935 * WebView/WebView.mm:
2936 (-[WebView _preferencesChanged:]):
2938 2016-06-30 Jiewen Tan <jiewen_tan@apple.com>
2940 Create a generic "linked-on-or-after" check for new CSP Rules
2941 https://bugs.webkit.org/show_bug.cgi?id=159322
2942 <rdar://problem/27117220>
2944 Reviewed by Brent Fulgham.
2946 * WebView/WebView.mm:
2947 (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol):
2949 2016-06-30 Anders Carlsson <andersca@apple.com>
2951 Mail crashes on launch at WebCore::PaymentCoordinator::~PaymentCoordinator() + 20
2952 https://bugs.webkit.org/show_bug.cgi?id=159306
2953 rdar://problem/27092107
2955 Reviewed by Tim Horton.
2957 * WebView/WebView.mm:
2958 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2959 Create a WebPaymentCoordinatorClient. Remove an unneeded #import.
2961 (-[WebView _commonInitializationWithFrameName:groupName:]):
2962 Remove an unneeded #import.
2964 2016-06-27 Anders Carlsson <andersca@apple.com>
2966 WebKit::WebPaymentCoordinator leak
2967 https://bugs.webkit.org/show_bug.cgi?id=159168
2968 rdar://problem/26929772
2970 Reviewed by Beth Dakin.
2972 Update for WebCore changes.
2974 * WebCoreSupport/WebPaymentCoordinatorClient.h:
2975 * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2976 (WebPaymentCoordinatorClient::paymentCoordinatorDestroyed):
2977 (WebPaymentCoordinatorClient::mainFrameDestroyed): Deleted.
2979 2016-06-27 Tim Horton <timothy_horton@apple.com>
2981 REGRESSION (r189052): Clipping occurs when using context menu to Look Up words within the Dictionary app
2982 https://bugs.webkit.org/show_bug.cgi?id=159184
2983 <rdar://problem/26370206>
2985 Reviewed by Beth Dakin.
2987 * WebView/WebHTMLView.mm:
2988 (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2989 * WebView/WebImmediateActionController.h:
2990 * WebView/WebImmediateActionController.mm:
2991 (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
2992 (-[WebImmediateActionController _animationControllerForText]):
2993 (dictionaryPopupInfoForRange): Deleted.
2994 WebImmediateActionController's code to make a DictionaryPopupInfo and TextIndicator
2995 from a Range in WebKit1 is much better than WebHTMLView's; use it in both cases.
2997 2016-06-24 Jer Noble <jer.noble@apple.com>
2999 Playback controls refer to wrong element when playing multiple items in a page.
3000 https://bugs.webkit.org/show_bug.cgi?id=159076
3001 <rdar://problem/26953532>
3003 Reviewed by Beth Dakin.
3005 clearPlaybackControlsManager() no longer takes a parameter.
3007 * WebCoreSupport/WebChromeClient.h:
3008 * WebCoreSupport/WebChromeClient.mm:
3009 (WebChromeClient::clearPlaybackControlsManager):
3010 * WebView/WebView.mm:
3011 (-[WebView _clearPlaybackControlsManager]): Renamed from _clearPlaybackControlsManagerForMediaElement:.
3012 * WebView/WebViewInternal.h:
3014 2016-06-23 Alex Christensen <achristensen@webkit.org>
3016 Remove unused didCancelAuthenticationChallenge
3017 https://bugs.webkit.org/show_bug.cgi?id=158819
3019 Reviewed by David Kilzer.
3021 * Misc/WebDownload.mm:
3022 (-[WebDownloadInternal download:didCancelAuthenticationChallenge:]): Deleted.
3023 * WebCoreSupport/WebFrameLoaderClient.h:
3024 * WebCoreSupport/WebFrameLoaderClient.mm:
3025 (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge): Deleted.
3026 * WebView/WebDelegateImplementationCaching.h:
3027 * WebView/WebView.mm:
3028 (-[WebView _cacheResourceLoadDelegateImplementations]):
3030 2016-06-23 John Wilander <wilander@apple.com>
3032 Enable window.open() for existing versions of Secret Society app
3033 https://bugs.webkit.org/show_bug.cgi?id=159049
3034 <rdar://problem/26528349>
3036 Reviewed by Andy Estes.
3038 The Secret Society Hidden Mystery app has a broken version check treating iOS 10
3039 as iOS 1 on iPads. Therefore it believes it can use window.open() in a tap
3040 handler. We should allow the existing versions of the app to do this to not break
3043 * WebView/WebView.mm:
3044 (shouldAllowWindowOpenWithoutUserGesture):
3046 (shouldConvertInvalidURLsToBlank):
3047 Changed hex number to constant DYLD_IOS_VERSION_10_0.
3049 2016-06-22 Anders Carlsson <andersca@apple.com>
3051 Move the WebKitLegacy Apple Pay code to the open source repository
3052 https://bugs.webkit.org/show_bug.cgi?id=159035
3054 Reviewed by Tim Horton.
3056 * WebCoreSupport/WebPaymentCoordinatorClient.h: Added.
3057 * WebCoreSupport/WebPaymentCoordinatorClient.mm: Added.
3058 (WebPaymentCoordinatorClient::WebPaymentCoordinatorClient):
3059 (WebPaymentCoordinatorClient::~WebPaymentCoordinatorClient):
3060 (WebPaymentCoordinatorClient::supportsVersion):
3061 (WebPaymentCoordinatorClient::canMakePayments):
3062 (WebPaymentCoordinatorClient::canMakePaymentsWithActiveCard):
3063 (WebPaymentCoordinatorClient::showPaymentUI):
3064 (WebPaymentCoordinatorClient::completeMerchantValidation):
3065 (WebPaymentCoordinatorClient::completeShippingMethodSelection):
3066 (WebPaymentCoordinatorClient::completeShippingContactSelection):
3067 (WebPaymentCoordinatorClient::completePaymentMethodSelection):
3068 (WebPaymentCoordinatorClient::completePaymentSession):
3069 (WebPaymentCoordinatorClient::abortPaymentSession):
3070 (WebPaymentCoordinatorClient::mainFrameDestroyed):
3071 * WebKitAdditions.mm: Removed.
3072 * WebView/WebView.mm:
3073 (-[WebView _commonInitializationWithFrameName:groupName:]):
3075 2016-06-21 Anders Carlsson <andersca@apple.com>
3079 * Configurations/FeatureDefines.xcconfig:
3081 2016-06-21 Anders Carlsson <andersca@apple.com>
3083 Begin moving the Apple Pay code to the open source repository
3084 https://bugs.webkit.org/show_bug.cgi?id=158998
3086 Reviewed by Tim Horton.
3088 * Configurations/FeatureDefines.xcconfig:
3089 Add ENABLE_APPLE_PAY.
3091 2016-06-20 Simon Fraser <simon.fraser@apple.com>
3093 Focus event dispatched in iframe causes parent document to scroll incorrectly
3094 https://bugs.webkit.org/show_bug.cgi?id=158629
3095 rdar://problem/26521616
3097 Reviewed by Tim Horton.
3099 Pass SelectionRevealMode::Reveal in existing code.
3101 * WebView/WebFrame.mm:
3102 (-[WebFrame _scrollDOMRangeToVisible:]):
3103 (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
3104 (-[WebFrame revealSelectionAtExtent:]):
3105 * WebView/WebHTMLView.mm:
3106 (-[WebHTMLView jumpToSelection:]):
3107 (-[WebHTMLView centerSelectionInVisibleArea:]):
3109 2016-06-21 Amir Alavi <aalavi@apple.com>
3111 Upstream WKHTTPCookiesForURL from WebKitSystemInterface to OpenSource
3112 https://bugs.webkit.org/show_bug.cgi?id=158967
3114 Reviewed by Brent Fulgham.
3116 * WebCoreSupport/WebSystemInterface.mm:
3117 (InitWebCoreSystemInterface): Deleted.
3119 2016-06-20 Commit Queue <commit-queue@webkit.org>
3121 Unreviewed, rolling out r202243.
3122 https://bugs.webkit.org/show_bug.cgi?id=158972
3124 Broke Windows build and iOS tests (Requested by ap on
3129 "Focus event dispatched in iframe causes parent document to
3131 https://bugs.webkit.org/show_bug.cgi?id=158629
3132 http://trac.webkit.org/changeset/202243
3134 2016-06-20 Simon Fraser <simon.fraser@apple.com>
3136 Focus event dispatched in iframe causes parent document to scroll incorrectly
3137 https://bugs.webkit.org/show_bug.cgi?id=158629
3138 rdar://problem/26521616
3140 Reviewed by Tim Horton.
3142 Pass SelectionRevealMode::Reveal in existing code.
3144 * WebView/WebFrame.mm:
3145 (-[WebFrame _scrollDOMRangeToVisible:]):
3146 (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
3147 (-[WebFrame revealSelectionAtExtent:]):
3148 * WebView/WebHTMLView.mm:
3149 (-[WebHTMLView jumpToSelection:]):
3150 (-[WebHTMLView centerSelectionInVisibleArea:]):
3152 2016-06-20 Keith Rollin <krollin@apple.com>
3154 Remove RefPtr::release() and change calls sites to use WTFMove()
3155 https://bugs.webkit.org/show_bug.cgi?id=158369
3157 Reviewed by Chris Dumez.
3159 RefPtr::release() releases its managed pointer awkwardly. It's more
3160 direct and clearer to use WTFMove to transfer ownership of the managed
3163 As part of this cleanup, also change a lot of explicit data types to
3166 * Plugins/Hosted/NetscapePluginHostManager.mm:
3167 (WebKit::NetscapePluginHostManager::instantiatePlugin):
3168 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3169 (WebKit::NetscapePluginInstanceProxy::create):
3170 (WebKit::NetscapePluginInstanceProxy::loadRequest):
3171 (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
3172 * WebCoreSupport/WebFrameLoaderClient.mm:
3173 (-[WebFramePolicyListener receivedPolicyDecision:]):
3174 * WebCoreSupport/WebSecurityOrigin.mm:
3175 (-[WebSecurityOrigin initWithURL:]):
3176 * WebView/WebArchive.mm:
3177 (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
3178 (-[WebArchive initWithData:]):
3179 * WebView/WebDataSource.mm:
3180 (-[WebDataSource mainResource]):
3181 * WebView/WebFrame.mm:
3182 (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
3184 2016-06-15 Alexey Proskuryakov <ap@apple.com>
3186 +[WebHTMLRepresentation supportedMIMETypes] leaks
3187 https://bugs.webkit.org/show_bug.cgi?id=158683
3189 Reviewed by Darin Adler.
3191 The problem occurred when chaining newArrayByConcatenatingArrays calls.
3193 Also refactored the code to avoid returning NSMutableArrays disguised as NSArrays,
3194 and removed __unsafe_unretained modifiers that were added in http://trac.webkit.org/r149453
3195 for no apparent reason.
3197 * WebView/WebHTMLRepresentation.mm:
3198 (newArrayWithStrings):
3199 (+[WebHTMLRepresentation supportedMIMETypes]):
3200 (+[WebHTMLRepresentation supportedMediaMIMETypes]):
3201 (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
3202 (+[WebHTMLRepresentation supportedImageMIMETypes]):
3203 (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
3204 (newArrayByConcatenatingArrays): Deleted.
3206 2016-06-15 Dean Jackson <dino@apple.com>
3208 RTL <select> forms are misplaced
3209 https://bugs.webkit.org/show_bug.cgi?id=158810
3210 <rdar://problem/24847541>
3212 Reviewed by Eric Carlson.
3214 AppKit made a change in Sierra that causes popup menus
3215 to snap to a different point when the system language is RTL.
3216 We need to be more explicit about what directionality
3217 we want, and override the location of the popup based
3218 on the text direction.
3220 I also made a small tweak to the fudge offsets we use
3221 in order to make button text and menu text to be
3224 Unfortunately since this is just about the location
3225 of the popup menu, it's unable to be tested in our
3226 current infrastructure.
3228 * WebCoreSupport/PopupMenuMac.mm:
3229 (PopupMenuMac::show):
3231 2016-06-15 Chris Dumez <cdumez@apple.com>
3233 Drop some unnecessary header includes
3234 https://bugs.webkit.org/show_bug.cgi?id=158788
3236 Reviewed by Alexey Proskuryakov.
3238 Drop some unnecessary header includes in headers to speed up build time.
3240 * WebCoreSupport/WebFrameLoaderClient.mm:
3242 2016-06-15 Romain Bellessort <romain.bellessort@crf.canon.fr>
3244 Enabling Shadow DOM for all platforms
3245 https://bugs.webkit.org/show_bug.cgi?id=158738
3247 Reviewed by Ryosuke Niwa.
3249 Removed Shadow DOM from options (enabled by default)
3251 * Configurations/FeatureDefines.xcconfig:
3252 * WebView/WebPreferences.mm:
3253 * WebView/WebView.mm:
3255 2016-06-15 Antti Koivisto <antti@apple.com>
3257 Vary:Cookie validation doesn't work in private browsing
3258 https://bugs.webkit.org/show_bug.cgi?id=158616
3259 <rdar://problem/26755067>
3261 Reviewed by Andreas Kling.
3263 * WebCoreSupport/WebFrameNetworkingContext.h:
3264 (WebFrameNetworkingContext::create):
3265 * WebCoreSupport/WebFrameNetworkingContext.mm:
3267 (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
3269 Expose the private browsing session.
3271 (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
3272 * WebCoreSupport/WebPlatformStrategies.h:
3273 * WebCoreSupport/WebPlatformStrategies.mm:
3274 (WebPlatformStrategies::cookieRequestHeaderFieldValue):
3276 Implement SessionID version of the function.
3278 (WebPlatformStrategies::getRawCookies):
3280 2016-06-13 Alex Christensen <achristensen@webkit.org>
3282 Add WebSocketProvider stub
3283 https://bugs.webkit.org/show_bug.cgi?id=158702
3285 Reviewed by Brady Eidson.
3287 * Misc/WebSocketProvider.h: Added.
3288 * WebView/WebView.mm:
3289 (-[WebView _commonInitializationWithFrameName:groupName:]):
3290 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3292 2016-06-10 Alex Christensen <achristensen@webkit.org>
3294 Introduce WTF::UniqueRef
3295 https://bugs.webkit.org/show_bug.cgi?id=158596
3297 Reviewed by Brady Eidson.
3299 * WebView/WebView.mm:
3300 (-[WebView _commonInitializationWithFrameName:groupName:]):
3301 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3303 2016-06-09 Alex Christensen <achristensen@webkit.org>
3305 Clean up EditorClient lifetime
3306 https://bugs.webkit.org/show_bug.cgi?id=158588
3308 Reviewed by Anders Carlsson.
3310 * WebCoreSupport/WebEditorClient.h:
3311 * WebCoreSupport/WebEditorClient.mm:
3312 (WebEditorClient::WebEditorClient):
3313 (WebEditorClient::pageDestroyed): Deleted.
3314 * WebView/WebView.mm:
3315 (-[WebView _commonInitializationWithFrameName:groupName:]):
3316 (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3318 2016-06-09 Andy Estes <aestes@apple.com>
3320 Define printing{Minimum,Maximum}ShrinkFactor in only one place
3321 https://bugs.webkit.org/show_bug.cgi?id=158580
3323 Reviewed by Tim Horton.
3325 * WebView/WebHTMLView.mm: Initialized _WebHTMLViewPrintingMinimumShrinkFactor and
3326 _WebHTMLViewPrintingMaximumShrinkFactor with PrintContext::minimumShrinkFactor() and
3327 PrintContext::maximumShrinkFactor() instead of with duplicated float literals.
3329 2016-06-09 Commit Queue <commit-queue@webkit.org>
3331 Unreviewed, rolling out r201810.
3332 https://bugs.webkit.org/show_bug.cgi?id=158563
3334 breaks build without ENABLE_WEB_ANIMATION (Requested by
3335 mcatanzaro on #webkit).
3339 "[web-animations] Add Animatable, AnimationEffect,
3340 KeyframeEffect and Animation interface"
3341 https://bugs.webkit.org/show_bug.cgi?id=156096
3342 http://trac.webkit.org/changeset/201810
3344 2016-06-08 Rawinder Singh <rawinder.singh-webkit@cisra.canon.com.au>
3346 [web-animations] Add Animatable, AnimationEffect, KeyframeEffect and Animation interface
3347 https://bugs.webkit.org/show_bug.cgi?id=156096
3349 Reviewed by Dean Jackson.
3352 - Setup interface for enabling runtime flag for Web animations through preferences.
3354 * WebView/WebPreferenceKeysPrivate.h:
3355 * WebView/WebPreferences.mm:
3356 (+[WebPreferences initialize]):
3357 (-[WebPreferences webAnimationsEnabled]):
3358 (-[WebPreferences setWebAnimationsEnabled:]):
3359 * WebView/WebPreferencesPrivate.h:
3360 * WebView/WebView.mm:
3361 (-[WebView _preferencesChanged:]):
3363 2016-06-07 David Kilzer <ddkilzer@apple.com>
3365 [iOS WK1] Remove unused -_webkit_unescapedQueryValue and -_webkit_queryKeysAndValues NSString category methods
3366 <https://webkit.org/b/158485>
3367 <rdar://problem/16960445>
3369 Reviewed by Dan Bernstein.
3371 * Misc/WebNSURLExtras.h:
3372 (-[NSString _webkit_unescapedQueryValue]): Deleted declaration.
3373 (-[NSString _webkit_queryKeysAndValues]): Deleted declaration.
3374 * Misc/WebNSURLExtras.mm:
3375 (-[NSString _webkit_unescapedQueryValue]): Deleted.
3376 (-[NSString _webkit_queryKeysAndValues]): Deleted.
3378 2016-06-07 Alex Christensen <achristensen@webkit.org>
3380 Adopt [PDFView documentScrollView]
3381 https://bugs.webkit.org/show_bug.cgi?id=158454
3382 rdar://problem/25875390
3384 Reviewed by Tim Horton.
3386 * WebView/PDFViewSPI.h: Added.
3387 * WebView/WebPDFView.mm:
3388 (-[WebPDFView _clipViewForPDFDocumentView]):
3390 2016-06-05 Anders Carlsson <andersca@apple.com>
3392 Attempt to fix plug-in hangs by adding back empty slots for the removed messages.
3394 * Plugins/Hosted/WebKitPluginClient.defs:
3395 * Plugins/Hosted/WebKitPluginHost.defs:
3397 2016-06-04 Anders Carlsson <andersca@apple.com>
3399 Remove NPSPI that is no longer used
3400 https://bugs.webkit.org/show_bug.cgi?id=158384
3402 Reviewed by Sam Weinig.
3404 * Configurations/WebKitLegacy.xcconfig:
3405 * Plugins/Hosted/NetscapePluginHostProxy.mm:
3406 (WKPCCheckIfAllowedToLoadURL): Deleted.
3407 (WKPCCancelCheckIfAllowedToLoadURL): Deleted.
3408 (WKPCResolveURL): Deleted.
3409 * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3410 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3411 (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Deleted.
3412 (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURL): Deleted.
3413 (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL): Deleted.
3414 (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
3415 (WebKit::NetscapePluginInstanceProxy::resolveURL): Deleted.
3416 * Plugins/Hosted/WebHostedNetscapePluginView.h:
3417 * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3418 (-[WebHostedNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
3419 (-[WebHostedNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
3420 * Plugins/Hosted/WebKitPluginClient.defs:
3421 * Plugins/WebBaseNetscapePluginView.h:
3422 * Plugins/WebBaseNetscapePluginView.mm:
3423 (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]): Deleted.
3424 * Plugins/WebNetscapeContainerCheckContextInfo.h: Removed.
3425 * Plugins/WebNetscapeContainerCheckContextInfo.mm: Removed.
3426 (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]): Deleted.
3427 (-[WebNetscapeContainerCheckContextInfo checkRequestID]): Deleted.
3428 (-[WebNetscapeContainerCheckContextInfo callback]): Deleted.
3429 (-[WebNetscapeContainerCheckContextInfo context]): Deleted.
3430 * Plugins/WebNetscapeContainerCheckPrivate.h: Removed.
3431 * Plugins/WebNetscapeContainerCheckPrivate.mm: Removed.
3432 (browserContainerCheckFuncs): Deleted.
3433 * Plugins/WebNetscapePluginView.h:
3434 * Plugins/WebNetscapePluginView.mm:
3435 (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]): Deleted.
3436 (-[WebNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
3437 (-[WebNetscapePluginView cancelCheckIfAllowedToLoadURL:]): Deleted.
3438 (-[WebNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
3439 (-[WebNetscapePluginView fini]): Deleted.
3440 (-[WebNetscapePluginView getVariable:value:]): Deleted.
3441 (-[WebNetscapePluginView resolveURL:forTarget:]): Deleted.
3443 (WKN_CheckIfAllowedToLoadURL): Deleted.
3444 (WKN_CancelCheckIfAllowedToLoadURL): Deleted.
3445 (WKN_ResolveURL): Deleted.
3447 2016-06-04 Anders Carlsson <andersca@apple.com>
3449 Temporary build fix. (This function is going away).
3451 * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3452 (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
3453 * Plugins/Hosted/WebKitPluginHost.defs:
3455 2016-06-03 Chris Dumez <cdumez@apple.com>
3457 Unreviewed, roll out r196633 as it broke PageCache on iOS for WebKit.org
3458 <rdar://problem/26521101>
3460 * WebCoreSupport/WebVisitedLinkStore.mm:
3461 (WebVisitedLinkStore::removeAllVisitedLinks):
3462 (WebVisitedLinkStore::removeVisitedLink):
3463 (WebVisitedLinkStore::addVisitedLinkHash):
3465 2016-06-02 Youenn Fablet <youenn.fablet@crf.canon.fr>
3467 Add WebIDL special operation support: serializer
3468 https://bugs.webkit.org/show_bug.cgi?id=156293
3470 Reviewed by Darin Adler.
3472 * Plugins/Hosted/HostedNetscapePluginStream.mm:
3473 (WebKit::HostedNetscapePluginStream::start):
3474 * Plugins/WebNetscapePluginStream.mm:
3475 (WebNetscapePluginStream::start):
3477 2016-05-31 Darin Adler <darin@apple.com>
3479 Audit RenderObject casts and fix problems and style issues found
3480 https://bugs.webkit.org/show_bug.cgi?id=158221
3482 Reviewed by Chris Dumez.
3484 * Misc/WebNSPasteboardExtras.mm:
3485 (imageFromElement): Use auto and tighten the logic a bit.
3486 (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
3487 Use auto and added a comment about this not using imageFromElement.
3489 * Plugins/WebBaseNetscapePluginView.mm:
3490 (-[WebBaseNetscapePluginView _windowClipRect]): Consistently cast to
3491 RenderEmbeddedObject, which is the class used for renderers for plug-ins.
3492 (-[WebBaseNetscapePluginView inFlatteningPaint]): Ditto.
3493 (-[WebBaseNetscapePluginView invalidatePluginContentRect:]): Ditto.
3494 (-[WebBaseNetscapePluginView actualVisibleRectInWindow]): Ditto.
3496 * WebCoreSupport/WebFrameLoaderClient.mm:
3497 (WebFrameLoaderClient::createPlugin): Changed code so it does a null check
3498 rather than assuming the renderer is non-null.
3499 (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
3501 2016-05-31 Yusuke Suzuki <utatane.tea@gmail.com>
3503 Unreviewed, roll out r201481, r201523: 0.3% regression in Octane code-load
3504 https://bugs.webkit.org/show_bug.cgi?id=158249
3506 * WebView/WebPreferencesPrivate.h:
3508 2016-05-27 Chris Dumez <cdumez@apple.com>
3510 callOnMainThread() should not copy captured lambda variables
3511 https://bugs.webkit.org/show_bug.cgi?id=158166
3513 Reviewed by Brady Eidson.
3515 callOnMainThread() should not copy captured lambda variables. This
3516 function is usually called cross-thread with a lambda and copying
3517 the lambda (and its captured variables) can lead to thread-safety
3520 This patch updates callOnMainThread() to take a NoncopyableFunction&&
3521 in parameter instead of a std::function. The call sites of
3522 callOnMainThread() have also been updated to use C++14's lambda
3523 capture with initializer.
3525 * Storage/WebDatabaseManagerClient.mm:
3526 (DidModifyOriginData::dispatchToMainThread):
3527 (DidModifyOriginData::DidModifyOriginData): Deleted.
3528 * Storage/WebStorageTrackerClient.mm:
3529 (WebStorageTrackerClient::dispatchDidModifyOrigin):
3531 2016-05-27 Caitlin Potter <caitp@igalia.com>
3533 [JSC] implement async functions proposal
3534 https://bugs.webkit.org/show_bug.cgi?id=156147
3536 Reviewed by Yusuke Suzuki.
3538 * WebView/WebPreferencesPrivate.h:
3540 2016-05-26 Darin Adler <darin@apple.com>
3542 Media queries and platform screen modernization and streamlining
3543 https://bugs.webkit.org/show_bug.cgi?id=158067
3545 Reviewed by Alex Christensen.
3547 * WebView/WebFrame.mm:
3548 (-[WebFrame _dragSourceEndedAt:operation:]): Updated to use the new version of
3549 globalPoint, which returns an NSPoint.
3551 2016-05-26 Myles C. Maxfield <mmaxfield@apple.com>
3555 Rubber stamped by Lucas Forschler.
3557 * Configurations/DebugRelease.xcconfig:
3559 2016-05-24 Beth Dakin <bdakin@apple.com>