REGRESSION (r232040): Cursor jumping in Safari text fields
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2018-06-28  Aditya Keerthi  <akeerthi@apple.com>
2
3         REGRESSION (r232040): Cursor jumping in Safari text fields
4         https://bugs.webkit.org/show_bug.cgi?id=187142
5         <rdar://problem/41397577>
6
7         Reviewed by Tim Horton.
8
9         r232040 enabled click events to fire on nodes that are already being edited in
10         iOS. This resulted FrameSelection::setSelection being called twice. One call
11         originated from the UIWKTextInteractionAssistant, which snaps the caret to word
12         boundaries. The other call originates from handleMousePressEvent in EventHandler,
13         and uses character boundaries. Consequently, we see the caret jumping around.
14
15         To fix this issue, an early return was added in the handleMousePressEvent
16         codepath, which prevents FrameSelection::setSelection from being called when
17         clicking on a node that is already being edited. This ensures that the
18         UIWKTextInteractionAssistant codepath is the only influence on the caret position.
19
20         Test: fast/events/ios/click-selectionchange-once.html
21
22         * page/EventHandler.cpp:
23         (WebCore::EventHandler::handleMousePressEventSingleClick):
24
25 2018-06-28  Chris Dumez  <cdumez@apple.com>
26
27         Fix encoding / decoding issues in ResourceLoadStatistics
28         https://bugs.webkit.org/show_bug.cgi?id=186890
29
30         Reviewed by Brent Fulgham.
31
32         * loader/ResourceLoadStatistics.cpp:
33         (WebCore::encodeHashCountedSet):
34         (WebCore::encodeHashSet):
35         Do not return early if the container we're trying to encode is empty. Instead,
36         have the encoder encode an empty array. This is important for encoding / decoding
37         to be fully symmetric. Otherwise, when trying to decode one of these empty containers,
38         the decoder would fail (silently since we were ignoring decoding errors). Worse, the
39         decoder might succeed but actually be decoding the *next* container in the file, since
40         we have several HashCountedSets / HashSets encoded one after another.
41
42         (WebCore::decodeHashCountedSet):
43         (WebCore::decodeHashSet):
44         Return a boolean to indicate if the decoding suceeded or not.
45
46         (WebCore::ResourceLoadStatistics::decode):
47         Check for container decoding errors and return false when decoding fails.
48         Otherwise, we would just silently keep going.
49
50 2018-06-28  Sihui Liu  <sihui_liu@apple.com>
51
52         Cookie API: cookie creation time is wrong
53         https://bugs.webkit.org/show_bug.cgi?id=187101
54
55         Reviewed by Geoffrey Garen.
56
57         Covered by API test: WebKit.WKHTTPCookieStoreCreationTime.
58
59         * platform/network/cocoa/CookieCocoa.mm:
60         (WebCore::Cookie::operator NSHTTPCookie * _Nullable  const):
61
62 2018-06-28  Zalan Bujtas  <zalan@apple.com>
63
64         [LFC] Add Display::Box::nonCollapsedMarginBox for verification purposes.
65         https://bugs.webkit.org/show_bug.cgi?id=187140
66
67         Reviewed by Antti Koivisto.
68
69         * layout/FormattingContext.cpp:
70         (WebCore::Layout::FormattingContext::computeFloatingHeightAndMargin const):
71         (WebCore::Layout::FormattingContext::computeOutOfFlowHorizontalGeometry const):
72         * layout/Verification.cpp:
73         (WebCore::Layout::outputMismatchingBoxInformationIfNeeded):
74         * layout/blockformatting/BlockFormattingContext.cpp:
75         (WebCore::Layout::BlockFormattingContext::computeInFlowHeightAndMargin const):
76         * layout/displaytree/DisplayBox.cpp:
77         (WebCore::Display::Box::nonCollapsedMarginBox const):
78         * layout/displaytree/DisplayBox.h:
79         (WebCore::Display::Box::setVerticalNonCollapsedMargin):
80
81 2018-06-28  Zalan Bujtas  <zalan@apple.com>
82
83         [LFC] The margin bottom of the document element does not collapse with its last inflow child's bottom margin.
84         https://bugs.webkit.org/show_bug.cgi?id=187135
85
86         Reviewed by Antti Koivisto.
87
88         * layout/blockformatting/BlockFormattingContext.h:
89         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
90         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowNonReplacedHeightAndMargin):
91         * layout/blockformatting/BlockMarginCollapse.cpp:
92         (WebCore::Layout::BlockFormattingContext::MarginCollapse::marginBottom):
93         (WebCore::Layout::BlockFormattingContext::MarginCollapse::isMarginBottomCollapsedWithParent):
94         (WebCore::Layout::BlockFormattingContext::MarginCollapse::collapsedMarginBottomFromLastChild):
95
96 2018-06-28  Dirk Schulze  <krit@webkit.org>
97
98         [css-masking] Update clip-path box mapping to unified box
99         https://bugs.webkit.org/show_bug.cgi?id=185797
100
101         Reviewed by Simon Fraser.
102
103         The box mapping for fill-box, stroke-box, view-box on HTML elements
104         and content-box, padding-box, margin-box, border-box for SVG elements
105         was aligned with the transform-box CSS property.
106
107         Furthermore, the keywords fill changed to fill-box and stroke changed
108         to stroke-box.
109
110         https://drafts.fxtf.org/css-masking-1/#typedef-geometry-box
111
112         Update the -webkit-clip-path property.
113
114         Tests: svg/clip-path/clip-path-shape-border-box-expected.svg
115                svg/clip-path/clip-path-shape-border-box.svg
116                svg/clip-path/clip-path-shape-content-box-expected.svg
117                svg/clip-path/clip-path-shape-content-box.svg
118                svg/clip-path/clip-path-shape-margin-box-expected.svg
119                svg/clip-path/clip-path-shape-margin-box.svg
120                svg/clip-path/clip-path-shape-padding-box-expected.svg
121                svg/clip-path/clip-path-shape-padding-box.svg
122
123         * css/CSSPrimitiveValueMappings.h:
124         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
125         (WebCore::CSSPrimitiveValue::operator CSSBoxType const):
126         * css/CSSValueKeywords.in:
127         * css/StyleBuilderConverter.h:
128         (WebCore::StyleBuilderConverter::convertClipPath):
129         * css/parser/CSSPropertyParser.cpp:
130         (WebCore::consumeBasicShapeOrBox):
131         * rendering/RenderBlock.cpp:
132         (WebCore::RenderBlock::nodeAtPoint):
133         * rendering/RenderLayer.cpp:
134         (WebCore::computeReferenceBox):
135         * rendering/shapes/BoxShape.cpp:
136         (WebCore::computeRoundedRectForBoxShape):
137         * rendering/shapes/ShapeOutsideInfo.cpp:
138         (WebCore::ShapeOutsideInfo::setReferenceBoxLogicalSize):
139         (WebCore::ShapeOutsideInfo::logicalTopOffset const):
140         (WebCore::ShapeOutsideInfo::logicalLeftOffset const):
141         * rendering/style/RenderStyleConstants.h:
142         * rendering/svg/SVGRenderingContext.cpp:
143         (WebCore::SVGRenderingContext::prepareToRenderSVGContent):
144
145 2018-06-27  Timothy Hatcher  <timothy@apple.com>
146
147         Don't expose new semantic -apple-system color keywords on iOS.
148         https://bugs.webkit.org/show_bug.cgi?id=187080
149         rdar://problem/41505699
150
151         Reviewed by Tim Horton.
152
153         * DerivedSources.make: Use gnu++14, since gnu++17 is giving errors on macOS 10.12.
154         * css/CSSValueKeywords.in: Define new semantic colors only on macOS.
155
156 2018-06-27  Zalan Bujtas  <zalan@apple.com>
157
158         [LFC] Compute both the collapsed and the non-collapsed margin values.
159         https://bugs.webkit.org/show_bug.cgi?id=187129
160
161         Reviewed by Antti Koivisto.
162
163         For validation purposes only at this point.
164
165         * layout/FormattingContext.cpp:
166         (WebCore::Layout::FormattingContext::computeFloatingHeightAndMargin const):
167         (WebCore::Layout::FormattingContext::computeOutOfFlowVerticalGeometry const):
168         * layout/FormattingContext.h:
169         * layout/FormattingContextGeometry.cpp:
170         (WebCore::Layout::FormattingContext::Geometry::outOfFlowNonReplacedVerticalGeometry):
171         (WebCore::Layout::FormattingContext::Geometry::outOfFlowReplacedVerticalGeometry):
172         (WebCore::Layout::FormattingContext::Geometry::floatingNonReplacedHeightAndMargin):
173         (WebCore::Layout::FormattingContext::Geometry::inlineReplacedHeightAndMargin):
174         * layout/blockformatting/BlockFormattingContext.cpp:
175         (WebCore::Layout::BlockFormattingContext::computeInFlowHeightAndMargin const):
176         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
177         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowNonReplacedHeightAndMargin):
178         * layout/blockformatting/BlockMarginCollapse.cpp:
179         (WebCore::Layout::isMarginTopCollapsedWithParent):
180         (WebCore::Layout::BlockFormattingContext::MarginCollapse::collapsedMarginTopFromFirstChild):
181         (WebCore::Layout::BlockFormattingContext::MarginCollapse::marginTop):
182
183 2018-06-27  Zalan Bujtas  <zalan@apple.com>
184
185         [LFC] Align inFlowNonReplacedHeightAndMargin() style with the rest of the compute functions.
186         https://bugs.webkit.org/show_bug.cgi?id=187126
187
188         Reviewed by Antti Koivisto.
189
190         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
191         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowNonReplacedHeightAndMargin):
192
193 2018-06-27  Yusuke Suzuki  <utatane.tea@gmail.com>
194
195         [GTK][WPE] Use LazyNeverDestroyed<XErrorTrapper> to remove static initializers
196         https://bugs.webkit.org/show_bug.cgi?id=187089
197
198         Reviewed by Michael Catanzaro.
199
200         Do not allow copying since XErrorTrapper's logic relies on the address of XErrorTrapper.
201
202         * platform/graphics/x11/XErrorTrapper.h:
203
204 2018-06-27  Zalan Bujtas  <zalan@apple.com>
205
206         [LFC] Align inFlowNonReplacedWidthAndMargin() style with the rest of the compute functions.
207         https://bugs.webkit.org/show_bug.cgi?id=187124
208
209         Reviewed by Antti Koivisto.
210
211         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
212         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowNonReplacedWidthAndMargin):
213
214 2018-06-27  Dirk Schulze  <krit@webkit.org>
215
216         -webkit-clip-path wrong offset for clipPath references
217         https://bugs.webkit.org/show_bug.cgi?id=129246
218
219         Reviewed by Simon Fraser.
220
221         Compute the correct offset for reference clip-paths by reusing
222         some of the logic from basic shapes.
223         Makes reference based clip-path interoperable and follows the
224         spec.
225
226         Test: css3/masking/clip-path-reference-2.html
227
228         * rendering/RenderLayer.cpp:
229         (WebCore::computeReferenceBox):
230         (WebCore::RenderLayer::computeClipPath const):
231         (WebCore::RenderLayer::setupClipPath):
232
233 2018-06-27  Antti Koivisto  <antti@apple.com>
234
235         Don't invoke post resolution callbacks when resolving computed style
236         https://bugs.webkit.org/show_bug.cgi?id=187113
237         <rdar://problem/41365766>
238
239         Reviewed by Geoff Garen.
240
241         Post-resolution callbacks should only be invoked when we resolve the full document style,
242         not when resolving computed style for a single element.
243
244         Tests: fast/dom/object-computed-style-event.html
245
246         * dom/Document.cpp:
247         (WebCore::Document::styleForElementIgnoringPendingStylesheets):
248         * dom/Element.cpp:
249         (WebCore::Element::resolveComputedStyle):
250
251         Also ref the ancestor stack to be safe.
252
253         * style/StyleTreeResolver.cpp:
254         (WebCore::Style::PostResolutionCallbackDisabler::PostResolutionCallbackDisabler):
255         (WebCore::Style::PostResolutionCallbackDisabler::~PostResolutionCallbackDisabler):
256
257         Add an option to not drain the callback queue on destruction. In this mode we
258         just block network loads.
259
260         * style/StyleTreeResolver.h:
261
262 2018-06-27  Timothy Hatcher  <timothy@apple.com>
263
264         Find on page selection color isn't adapted for dark mode.
265         https://bugs.webkit.org/show_bug.cgi?id=187072
266         rdar://problem/40354841
267
268         Reviewed by Tim Horton.
269
270         * page/mac/TextIndicatorWindow.mm:
271         (-[WebTextIndicatorView initWithFrame:textIndicator:margin:offset:]): Use [NSColor findHighlightColor].
272         * platform/mac/LocalDefaultSystemAppearance.h:
273         (WebCore::LocalDefaultSystemAppearance::usingDarkAppearance const): Added.
274         * platform/mac/LocalDefaultSystemAppearance.mm:
275         (WebCore::LocalDefaultSystemAppearance::LocalDefaultSystemAppearance): Set m_usingDarkAppearance.
276         * rendering/InlineTextBox.cpp:
277         (WebCore::InlineTextBox::paintPlatformDocumentMarkers): Use TextPaintPhase::Decoration since this
278         matches step three of InlineTextBox::paint ("Paint fancy decorations"). This allows TextMatch to
279         paint a forground and not end up painting during this "fancy decorations" phase.
280         (WebCore::InlineTextBox::resolveStyleForMarkedText): Set the fillColor for TextMarker to force a
281         dark text color which will draw over the yellow highlight.
282         (WebCore::InlineTextBox::collectMarkedTextsForDocumentMarkers): Added support for TextPaintPhase::Decoration.
283         Seperate DocumentMarker::TelephoneNumber and DocumentMarker::TextMatch. Have DocumentMarker::TextMatch
284         support Forground and Background phases.
285         * rendering/RenderTheme.cpp:
286         (WebCore::RenderTheme::platformColorsDidChange):
287         (WebCore::RenderTheme::activeTextSearchHighlightColor const): Added. Call the platfrom version.
288         (WebCore::RenderTheme::inactiveTextSearchHighlightColor const): Added. Ditto.
289         (WebCore::RenderTheme::platformActiveTextSearchHighlightColor const): Added StyleColor::Options.
290         (WebCore::RenderTheme::platformInactiveTextSearchHighlightColor const): Ditto.
291         * rendering/RenderTheme.h:
292         * rendering/RenderThemeMac.h:
293         * rendering/RenderThemeMac.mm:
294         (WebCore::RenderThemeMac::platformActiveTextSearchHighlightColor const): Added.
295         (WebCore::RenderThemeMac::platformInactiveTextSearchHighlightColor const): Added.
296         (WebCore::RenderThemeMac::platformColorsDidChange): Clear new color caches.
297         (WebCore::RenderThemeMac::systemColor const): Cache system colors by light and dark mode.
298
299 2018-06-27  Chris Dumez  <cdumez@apple.com>
300
301         Crash under SWServer::unregisterServiceWorkerClient()
302         https://bugs.webkit.org/show_bug.cgi?id=187115
303         <rdar://problem/41539197>
304
305         Reviewed by Youenn Fablet.
306
307         Connections are usually destroyed before their SWServer. However, as per crash traces, it is possible
308         for SWServers to get destroyed while they still have connections. When this happens, the connections
309         (which are owned by the SWServer) get destroyed with other SWServer data members. In turn, the
310         connection destructor tries to unregister its clients from the server that is currently being destroyed.
311
312         To address the issue, the SWServer destructor now destroys remaining connections early, before SWServer's
313         other data members get destroyed.
314
315         * workers/service/server/SWServer.cpp:
316         (WebCore::SWServer::~SWServer):
317
318 2018-06-27  Youenn Fablet  <youenn@apple.com>
319
320         NetworkLoadChecker should not need to hard ref NetworkConnectionToWebProcess
321         https://bugs.webkit.org/show_bug.cgi?id=186551
322
323         Reviewed by Daniel Bates.
324
325         No change of behavior.
326         Add a way to set the client receiving any CSP warning/error notification.
327
328         * page/csp/ContentSecurityPolicy.h:
329         (WebCore::ContentSecurityPolicy::setClient):
330
331 2018-06-27  Zalan Bujtas  <zalan@apple.com>
332
333         [LFC] Do not collapse margin with the parent when element has border/padding.
334         https://bugs.webkit.org/show_bug.cgi?id=187114
335
336         Reviewed by Antti Koivisto.
337
338         * layout/blockformatting/BlockFormattingContext.cpp:
339         (WebCore::Layout::BlockFormattingContext::layout const):
340         * layout/blockformatting/BlockMarginCollapse.cpp:
341         (WebCore::Layout::isMarginTopCollapsedWithParent):
342         (WebCore::Layout::BlockFormattingContext::MarginCollapse::collapsedMarginTopFromFirstChild):
343         (WebCore::Layout::BlockFormattingContext::MarginCollapse::marginTop):
344
345 2018-06-27  Simon Fraser  <simon.fraser@apple.com>
346
347         Fix Windows build after r233268.
348
349         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
350         (PlatformCALayerWin::hasContents const):
351         * platform/graphics/ca/win/PlatformCALayerWin.h:
352
353 2018-06-27  Zalan Bujtas  <zalan@apple.com>
354
355         [LFC] Out-of-flow positioned element's height depends on its containing block's height.
356         https://bugs.webkit.org/show_bug.cgi?id=187082
357
358         Reviewed by Antti Koivisto.
359
360         We can't really compute the final height of an out-of-flow element until after its containing block's height is computed.
361
362         * layout/FormattingContext.cpp:
363         (WebCore::Layout::FormattingContext::layoutOutOfFlowDescendants const):
364         * layout/FormattingContext.h:
365         * layout/LayoutContext.cpp:
366         (WebCore::Layout::LayoutContext::updateLayout):
367         (WebCore::Layout::LayoutContext::layoutFormattingContextSubtree):
368         * layout/LayoutContext.h:
369         * layout/blockformatting/BlockFormattingContext.cpp:
370         (WebCore::Layout::BlockFormattingContext::layout const):
371         * layout/layouttree/LayoutContainer.h:
372         (WebCore::Layout::Container::outOfFlowDescendants const):
373         (WebCore::Layout::Container::outOfFlowDescendants): Deleted.
374
375 2018-06-27  Youenn Fablet  <youenn@apple.com>
376
377         Disable content blockers in NetworkLoadChecker except for ping loads
378         https://bugs.webkit.org/show_bug.cgi?id=187083
379         <rdar://problem/41440083>
380
381         Reviewed by Chris Dumez.
382
383         Add internals API to reload a frame without content extensions.
384
385         Test: http/tests/contentextensions/reload-without-contentextensions.html
386
387         * testing/Internals.cpp:
388         (WebCore::Internals::reloadWithoutContentExtensions):
389         * testing/Internals.h:
390         * testing/Internals.idl:
391
392 2018-06-27  Simon Fraser  <simon.fraser@apple.com>
393
394         https://hackernoon.com/ uses lots of layer backing store
395         https://bugs.webkit.org/show_bug.cgi?id=186909
396         rdar://problem/40257540
397
398         Reviewed by Tim Horton.
399         
400         The existing "backing store detached" logic, which was used to eliminate backing store
401         for compositing layers outside the viewport, had a number of bugs that allowed layers
402         to have backing store when they should not.
403         
404         Specifically, any code path that ended up in setNeedsDisplay{InRect}() in PlatformCALayer
405         could trigger backing store creation on layers that should have never had any.
406         
407         Rather than monkeypatch all the GraphicsLayerCA call sites that call setNeedsDisplay{InRect}(),
408         just bail early from the PlatformCALayer* methods that trigger repaints.
409         
410         Tests didn't catch this because they just dumped the state of the backingStoreAttached flag. To fix this,
411         create backingStoreAttachedForTesting() which also tests whether the layer has contents.
412
413         Test: compositing/backing/backing-store-attachment-outside-viewport.html
414
415         * platform/graphics/GraphicsLayer.cpp:
416         (WebCore::GraphicsLayer::dumpProperties const):
417         (showGraphicsLayerTree):
418         * platform/graphics/GraphicsLayer.h:
419         (WebCore::GraphicsLayer::backingStoreAttachedForTesting const):
420         * platform/graphics/GraphicsLayerClient.h:
421         * platform/graphics/ca/GraphicsLayerCA.cpp:
422         (WebCore::GraphicsLayerCA::backingStoreAttachedForTesting const):
423         (WebCore::GraphicsLayerCA::setNeedsDisplay):
424         * platform/graphics/ca/GraphicsLayerCA.h:
425         * platform/graphics/ca/PlatformCALayer.h:
426         * platform/graphics/ca/cocoa/PlatformCALayerCocoa.h:
427         * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
428         (PlatformCALayerCocoa::setNeedsDisplay):
429         (PlatformCALayerCocoa::setNeedsDisplayInRect):
430         (PlatformCALayerCocoa::hasContents const):
431
432 2018-06-27  David Kilzer  <ddkilzer@apple.com>
433
434         Fix clang static analyzer warnings: Branch condition evaluates to a garbage value
435         <https://webkit.org/b/186968>
436
437         Reviewed by Zalan Bujtas.
438
439         This patch changes two stack-allocated `bool` variables into
440         `std::optional<bool>` since the functions that set the variable
441         may return early without setting it.  It also changes one
442         stack-allocated pointer to be initialized to `nullptr`.
443
444         * animation/AnimationTimeline.cpp:
445         (WebCore::AnimationTimeline::updateCSSTransitionsForElement):
446         Update for change to CSSPropertyAnimation::getPropertyAtIndex()
447         argument type.
448
449         * editing/ios/EditorIOS.mm:
450         (WebCore::Editor::writeImageToPasteboard): Initialize
451         `cachedImage` stack pointer to nullptr since getImage() has an
452         early return that doesn't set `cachedImage`.
453         * editing/mac/EditorMac.mm:
454         (WebCore::Editor::writeImageToPasteboard): Ditto.
455
456         * page/animation/CSSPropertyAnimation.cpp:
457         (WebCore::CSSPropertyAnimation::getPropertyAtIndex):
458         * page/animation/CSSPropertyAnimation.h:
459         (WebCore::CSSPropertyAnimation::getPropertyAtIndex):
460         - Change method to take `std::optional<bool>` instead of `bool`
461           as second argument since the method may return early without
462           setting `isShorthand`.
463
464         * page/animation/CompositeAnimation.cpp:
465         (WebCore::CompositeAnimation::updateTransitions): Update for
466         change to CSSPropertyAnimation::getPropertyAtIndex() argument
467         type.
468
469         * rendering/InlineFlowBox.cpp:
470         (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Also
471         rename local `emphasisMarkIsOver` to `emphasisMarkIsAbove` to
472         match other call sites.
473         (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
474         (WebCore::InlineFlowBox::computeOverAnnotationAdjustment const):
475         (WebCore::InlineFlowBox::computeUnderAnnotationAdjustment const):
476         - Update for change to InlineTextBox::emphasisMarkExistsAndIsAbove()
477           argument type.
478         * rendering/InlineTextBox.cpp:
479         (WebCore::InlineTextBox::emphasisMarkExistsAndIsAbove const):
480         - Change method to take `std::optional<bool>` instead of `bool`
481           as second argument since the method may return early without
482           setting `above`.
483         (WebCore::InlineTextBox::paintMarkedTextForeground):
484         - Update for change to InlineTextBox::emphasisMarkExistsAndIsAbove()
485           argument type.
486         * rendering/InlineTextBox.h:
487         (WebCore::InlineTextBox::emphasisMarkExistsAndIsAbove const):
488         - Change method to take `std::optional<bool>` instead of `bool`.
489
490 2018-06-27  Zalan Bujtas  <zalan@apple.com>
491
492         [LFC] Move formatting context root layout logic to a dedicated function.
493         https://bugs.webkit.org/show_bug.cgi?id=187097
494
495         Reviewed by Antti Koivisto.
496
497         * layout/blockformatting/BlockFormattingContext.cpp:
498         (WebCore::Layout::BlockFormattingContext::layout const):
499         (WebCore::Layout::BlockFormattingContext::layoutFormattingContextRoot const):
500         * layout/blockformatting/BlockFormattingContext.h:
501
502 2018-06-27  Zalan Bujtas  <zalan@apple.com>
503
504         [LFC] Compute static position for out-of-flow elements only when required.
505         https://bugs.webkit.org/show_bug.cgi?id=187096
506
507         Reviewed by Antti Koivisto.
508
509         Computing static position for out-of-flow elements could be somewhat expensive, so let's not do it unless we actually need it.
510
511         * layout/FormattingContextGeometry.cpp:
512         (WebCore::Layout::staticVerticalPositionForOutOfFlowPositioned):
513         (WebCore::Layout::staticHorizontalPositionForOutOfFlowPositioned):
514         (WebCore::Layout::FormattingContext::Geometry::outOfFlowNonReplacedVerticalGeometry):
515         (WebCore::Layout::FormattingContext::Geometry::outOfFlowNonReplacedHorizontalGeometry):
516         (WebCore::Layout::FormattingContext::Geometry::outOfFlowReplacedVerticalGeometry):
517         (WebCore::Layout::FormattingContext::Geometry::outOfFlowReplacedHorizontalGeometry):
518         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
519         (WebCore::Layout::BlockFormattingContext::Geometry::staticPosition):
520         (WebCore::Layout::BlockFormattingContext::Geometry::staticPositionForOutOfFlowPositioned): Deleted.
521
522 2018-06-27  Nan Wang  <n_wang@apple.com>
523
524         AX: [iOS] Remove the ability to set keyboard focus when VoiceOver takes focus
525         https://bugs.webkit.org/show_bug.cgi?id=187076
526
527         Reviewed by Chris Fleizach.
528
529         We shouldn't set keyboard focus when assistive technology takes focus since
530         this is causing website incompatibility issues by causing focus to be lost.
531
532         Test: accessibility/ios-simulator/accessibility-focus-do-not-set-focus.html
533
534         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
535         (-[WebAccessibilityObjectWrapper accessibilityElementDidBecomeFocused]):
536
537 2018-06-21  Emilio Cobos Álvarez  <emilio@crisal.io>
538
539         Move clearChildNeedsStyleRecalc into resetStyleForNonRenderedDescendants.
540         https://bugs.webkit.org/show_bug.cgi?id=186881
541
542         Reviewed by Antti Koivisto.
543
544         Every caller does this already.
545
546         No new tests, no change in behavior.
547
548         * style/StyleTreeResolver.cpp:
549         (WebCore::Style::resetStyleForNonRenderedDescendants):
550         (WebCore::Style::TreeResolver::resolveComposedTree):
551
552 2018-06-27  Tomas Popela  <tpopela@redhat.com>
553
554         [GStreamer] Coverity scan issues
555         https://bugs.webkit.org/show_bug.cgi?id=187087
556
557         Reviewed by Xabier Rodriguez-Calvar.
558
559         Fix uninitialized members.
560
561         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
562         * platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
563         * platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.h:
564
565 2018-06-27  Zan Dobersek  <zdobersek@igalia.com>
566
567         [GCrypt] Move definitions of GCryptUtilities helpers into a separate source file
568         https://bugs.webkit.org/show_bug.cgi?id=187033
569
570         Reviewed by Michael Catanzaro.
571
572         Move the GCryptUtilities helpers that operate on libgcrypt values and
573         constants into a separate source file. This limits a bit the amount of
574         inlining the compiler might feel compelled to do, and the resulting
575         shared library is 8kB smaller in size.
576
577         * crypto/gcrypt/GCryptUtilities.cpp: Copied from Source/WebCore/crypto/gcrypt/GCryptUtilities.h.
578         (WebCore::hmacAlgorithm):
579         (WebCore::digestAlgorithm):
580         (WebCore::hashCryptoDigestAlgorithm):
581         (WebCore::mpiLength):
582         (WebCore::mpiData):
583         (WebCore::mpiZeroPrefixedData):
584         (WebCore::mpiSignedData):
585         * crypto/gcrypt/GCryptUtilities.h:
586         (WebCore::hmacAlgorithm): Deleted.
587         (WebCore::digestAlgorithm): Deleted.
588         (WebCore::hashCryptoDigestAlgorithm): Deleted.
589         (WebCore::mpiLength): Deleted.
590         (WebCore::mpiData): Deleted.
591         (WebCore::mpiZeroPrefixedData): Deleted.
592         (WebCore::mpiSignedData): Deleted.
593         * platform/SourcesGCrypt.txt:
594
595 2018-06-26  Yusuke Suzuki  <utatane.tea@gmail.com>
596
597         [JSC] Pass VM& to functions more
598         https://bugs.webkit.org/show_bug.cgi?id=186241
599
600         Reviewed by Mark Lam.
601
602         * bindings/js/JSCustomElementRegistryCustom.cpp:
603         (WebCore::JSCustomElementRegistry::define):
604
605 2018-06-26  Simon Fraser  <simon.fraser@apple.com>
606
607         CSSGradientValue's color stops vector wastes 12KB on theverge.com
608         https://bugs.webkit.org/show_bug.cgi?id=186988
609
610         Reviewed by Sam Weinig.
611
612         Shrink the color stops vector when we're done parsing the stops.
613
614         * css/CSSGradientValue.h:
615         (WebCore::CSSGradientValue::doneAddingStops):
616         * css/parser/CSSPropertyParserHelpers.cpp:
617         (WebCore::CSSPropertyParserHelpers::consumeDeprecatedGradient):
618         (WebCore::CSSPropertyParserHelpers::consumeGradientColorStops):
619         (WebCore::CSSPropertyParserHelpers::consumeAngularGradientColorStops):
620
621 2018-06-25  Yusuke Suzuki  <utatane.tea@gmail.com>
622
623         Remove static initializers more
624         https://bugs.webkit.org/show_bug.cgi?id=186969
625
626         Reviewed by Michael Catanzaro.
627
628         This patch removes static initializers more. They typically exists in GTK port.
629
630         No behavior change.
631
632         * Sources.txt:
633         * WebCore.xcodeproj/project.pbxproj:
634         * page/ResourceUsageData.cpp: Removed.
635         * page/ResourceUsageData.h:
636         Remove ResourceUsageData constructors since default constructors are enough.
637
638         (WebCore::MemoryCategoryInfo::MemoryCategoryInfo):
639         * platform/gtk/PasteboardHelper.cpp:
640         (WebCore::markupPrefix):
641         (WebCore::removeMarkupPrefix):
642         (WebCore::PasteboardHelper::fillSelectionData):
643         Use NeverDestroyed<> and static functions.
644
645         * platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp:
646         (WebCore::defaultVolumeCapability):
647         (WebCore::GStreamerAudioCaptureSource::capabilities const):
648         CapabilityValueOrRange's constructor is not constexpr.
649
650         * platform/network/soup/SoupNetworkSession.cpp:
651         (WebCore::initialAcceptLanguages):
652         (WebCore::proxySettings):
653         (WebCore::SoupNetworkSession::SoupNetworkSession):
654         (WebCore::SoupNetworkSession::setupProxy):
655         (WebCore::SoupNetworkSession::setProxySettings):
656         (WebCore::SoupNetworkSession::setInitialAcceptLanguages):
657         Use NeverDestroyed<> and static functions.
658
659 2018-06-26  Daniel Bates  <dabates@apple.com>
660
661         REGRESSION (r231479): Unable to buy Odeon cinema tickets in STP (bogus 'X-Frame-Options' to 'SAMEORIGIN')
662         https://bugs.webkit.org/show_bug.cgi?id=186090
663         <rdar://problem/40692595>
664
665         Reviewed by Andy Estes.
666
667         Fix up Content Security Policy logic for checking the frame ancestors now that we
668         exclude the frame that initiated the load request.
669
670         Test: http/tests/security/XFrameOptions/cross-origin-iframe-post-form-to-parent-same-origin-x-frame-options-page-allow.html
671
672         * page/csp/ContentSecurityPolicy.cpp:
673         (WebCore::ContentSecurityPolicy::allowFrameAncestors const): 
674         * page/csp/ContentSecurityPolicyDirectiveList.cpp:
675         (WebCore::checkFrameAncestors):
676
677 2018-06-26  Chris Dumez  <cdumez@apple.com>
678
679         Simplify NetworkStorageSession::getAllStorageAccessEntries()
680         https://bugs.webkit.org/show_bug.cgi?id=187016
681
682         Reviewed by Youenn Fablet.
683
684         Iterate over the HashMaps' values instead of iterating over their keys and then looking them
685         up in the HashMap.
686
687         * platform/network/cf/NetworkStorageSessionCFNet.cpp:
688         (WebCore::NetworkStorageSession::getAllStorageAccessEntries const):
689
690 2018-06-26  Eric Carlson  <eric.carlson@apple.com>
691
692         [Mac] AirPlay picker uses incorrect theme in Dark mode
693         https://bugs.webkit.org/show_bug.cgi?id=187054
694         <rdar://problem/41291093>
695
696         Reviewed by Timothy Hatcher.
697
698         * Modules/mediasession/WebMediaSessionManager.cpp:
699         (WebCore::WebMediaSessionManager::showPlaybackTargetPicker): Add useDefaultAppearance parameter.
700         * Modules/mediasession/WebMediaSessionManager.h:
701
702         * platform/graphics/MediaPlaybackTargetPicker.cpp:
703         (WebCore::MediaPlaybackTargetPicker::showPlaybackTargetPicker): Ditto.
704         * platform/graphics/MediaPlaybackTargetPicker.h:
705
706         * platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.h:
707         * platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:
708         (WebCore::MediaPlaybackTargetPickerMac::showPlaybackTargetPicker): Choose theme based on
709         useDefaultAppearance parameter.
710
711         * platform/mock/MediaPlaybackTargetPickerMock.cpp:
712         (WebCore::MediaPlaybackTargetPickerMock::showPlaybackTargetPicker): Log parameter.
713         * platform/mock/MediaPlaybackTargetPickerMock.h:
714
715 2018-06-26  Thibault Saunier  <tsaunier@igalia.com>
716
717         [GStreamer] Do not forget to set stream on track switching
718         https://bugs.webkit.org/show_bug.cgi?id=187049
719
720         Reviewed by Philippe Normand.
721
722         This was an overlooked issue introduced in Bug #186678
723
724         This is already tested, but we currently run only tests against playbin2
725
726         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
727         (WebCore::MediaPlayerPrivateGStreamer::enableTrack):
728
729 2018-06-26  Zalan Bujtas  <zalan@apple.com>
730
731         [LFC] Fixed positioning is a subcategory of absolute positioning.
732         https://bugs.webkit.org/show_bug.cgi?id=187043
733
734         Reviewed by Antti Koivisto.
735
736         https://www.w3.org/TR/CSS22/visuren.html#absolute-positioning
737         References in this specification to an absolutely positioned element (or its box) imply that the element's 'position'
738         property has the value 'absolute' or 'fixed'.
739
740         * layout/layouttree/LayoutBox.cpp:
741         (WebCore::Layout::Box::isAbsolutelyPositioned const):
742         * layout/layouttree/LayoutBox.h:
743         (WebCore::Layout::Box::isOutOfFlowPositioned const):
744
745 2018-06-26  Commit Queue  <commit-queue@webkit.org>
746
747         Unreviewed, rolling out r233143.
748         https://bugs.webkit.org/show_bug.cgi?id=187046
749
750         broke media/video-ended-event-negative-playback.html
751         (Requested by philn on #webkit).
752
753         Reverted changeset:
754
755         "[GStreamer] Remove useless workaround"
756         https://bugs.webkit.org/show_bug.cgi?id=186921
757         https://trac.webkit.org/changeset/233143
758
759 2018-06-25  Zalan Bujtas  <zalan@apple.com>
760
761         [LFC] Computed height for in-flow non-replaced should not include padding and border.
762         https://bugs.webkit.org/show_bug.cgi?id=187031
763
764         Reviewed by Antti Koivisto.
765
766         In certain cases the height of a non-replaced in-flow box is computed using the bottom position of its last in-flow child.
767         The in-flow child's bottom position is in the coordinate system of the containing block's border box (border box's top left is 0, 0) ->
768         it includes both the (top) border and the padding of the containing block.
769
770         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
771         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowNonReplacedHeightAndMargin):
772
773 2018-06-26  Zan Dobersek  <zdobersek@igalia.com>
774
775         Crash in WebAnimation::runPendingPlayTask
776         https://bugs.webkit.org/show_bug.cgi?id=186189
777
778         Reviewed by Carlos Garcia Campos.
779
780         Avoid crashes on nullopt std::optional dereference in the
781         runPendingPlayTask() and runPendingPauseTask() methods of the
782         WebAnimation class by defaulting to a Seconds(0) value.
783
784         In both cases the std::optional value is the current time retrieved from
785         the associated DocumentTimeline object. But there's no guarantee that
786         the timeline is active and the resulting time value is resolved (i.e.
787         not nullopt). Dereferencing the nullopt Seconds value doesn't cause a
788         problem on configurations still building as C++14 and the fallback
789         std::optional implementation provided by WTF -- no signal is raised, and
790         a 0 value is returned. Configurations building as C++17 on the other
791         hand use the stdlib-provided std::optional that does raise a signal on
792         invalid access, leading to crashes.
793
794         The default-to-Seconds(0) solution avoids crashes on configurations
795         that build with C++17 support enabled, and thus match configurations
796         that are still using WTF's std::optional. This still doesn't address the
797         underlying problem of retrieving current time from an inactive document
798         timeline and using it as ready time for the pending play/pause task
799         execution.
800
801         runPendingPlayTask() change addresses crashes in the following tests:
802         - fast/animation/css-animation-resuming-when-visible.html
803         - fast/animation/css-animation-resuming-when-visible-with-style-change.html
804         - imported/w3c/web-platform-tests/web-animations/interfaces/Animatable/animate-no-browsing-context.html
805         - imported/w3c/web-platform-tests/web-animations/interfaces/Animatable/getAnimations.html
806
807         runPendingPauseTask() change addresses crashes in the following tests:
808         - animations/multiple-animations-timing-function.html
809
810         * animation/WebAnimation.cpp:
811         (WebCore::WebAnimation::runPendingPlayTask):
812         (WebCore::WebAnimation::runPendingPauseTask):
813
814 2018-06-26  Antoine Quint  <graouts@apple.com>
815
816         [Web Animations] Show the feature as "Supported in Preview"
817         https://bugs.webkit.org/show_bug.cgi?id=187037
818
819         Reviewed by Dean Jackson.
820
821         Web Animations are enabled by default in STP.
822
823         * features.json:
824
825 2018-06-26  Miguel Gomez  <magomez@igalia.com>
826
827         [GTK] Many webpages can crash the browser in WebCore::CoordinatedGraphicsLayer::transformedVisibleRect
828         https://bugs.webkit.org/show_bug.cgi?id=179304
829
830         Reviewed by Michael Catanzaro.
831
832         When adding new CoordinatedGraphicsLayers to the tree, check that they have the appropriate
833         CompositingCoordinator. If that's not the case, set the appropriate one to the layer and its
834         children and set the state of those layers so they are rendered properly.
835
836         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
837         (WebCore::CoordinatedGraphicsLayer::addChild):
838         (WebCore::CoordinatedGraphicsLayer::addChildAtIndex):
839         (WebCore::CoordinatedGraphicsLayer::addChildAbove):
840         (WebCore::CoordinatedGraphicsLayer::addChildBelow):
841         (WebCore::CoordinatedGraphicsLayer::replaceChild):
842         (WebCore::CoordinatedGraphicsLayer::setCoordinatorIncludingSubLayersIfNeeded):
843         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
844
845 2018-06-25  Keith Rollin  <krollin@apple.com>
846
847         Adjust WEBCORE_EXPORT annotations for LTO
848         https://bugs.webkit.org/show_bug.cgi?id=186944
849         <rdar://problem/41384880>
850
851         Reviewed by David Kilzer.
852
853         Adjust a number of places that result in WebKit's
854         'check-for-weak-vtables-and-externals' script reporting weak external
855         symbols:
856
857             ERROR: WebCore has a weak external symbol in it (/Volumes/Data/dev/webkit/OpenSource/WebKitBuild/Release/WebCore.framework/Versions/A/WebCore)
858             ERROR: A weak external symbol is generated when a symbol is defined in multiple compilation units and is also marked as being exported from the library.
859             ERROR: A common cause of weak external symbols is when an inline function is listed in the linker export file.
860             ...
861
862         These cases are caused by inline methods being marked with WTF_EXPORT
863         (or related macro) or with an inline function being in a class marked
864         as such, and when enabling LTO builds.
865
866         For the most part, address these by removing the WEBCORE_EXPORT
867         annotation from inline methods. In some cases, move the implementation
868         out-of-line because it's the class that has the WEBCORE_EXPORT on it
869         and removing the annotation from the class would be too disruptive.
870         Finally, in other cases, move the implementation out-of-line because
871         check-for-weak-vtables-and-externals still complains when keeping the
872         implementation inline and removing the annotation; this seems to
873         typically (but not always) happen with destructors.
874
875         No new tests. There is no changed functionality. Only the annotation
876         and treatment of inline methods are altered.
877
878         * animation/AnimationTimeline.h:
879         (WebCore::AnimationTimeline::pause):
880         * page/CacheStorageProvider.h:
881         (): Deleted.
882         * page/scrolling/ScrollingTree.h:
883         (WebCore::ScrollingTree::reportSynchronousScrollingReasonsChanged):
884         (WebCore::ScrollingTree::reportExposedUnfilledArea):
885         * platform/audio/PlatformMediaSessionManager.h:
886         (WebCore::PlatformMediaSessionManager::hasActiveNowPlayingSession const):
887         (WebCore::PlatformMediaSessionManager::lastUpdatedNowPlayingTitle const):
888         (WebCore::PlatformMediaSessionManager::lastUpdatedNowPlayingDuration const):
889         (WebCore::PlatformMediaSessionManager::lastUpdatedNowPlayingElapsedTime const):
890         (WebCore::PlatformMediaSessionManager::lastUpdatedNowPlayingInfoUniqueIdentifier const):
891         (WebCore::PlatformMediaSessionManager::registeredAsNowPlayingApplication const):
892         * platform/audio/mac/CARingBuffer.cpp:
893         (WebCore::CARingBuffer::~CARingBuffer):
894         * platform/audio/mac/CARingBuffer.h:
895         (WebCore::CARingBuffer::~CARingBuffer): Deleted.
896         * platform/cocoa/VideoFullscreenModelVideoElement.h:
897         * platform/gamepad/GamepadProvider.h:
898         * platform/graphics/GraphicsLayer.h:
899         (WebCore::GraphicsLayer::displayListAsText const):
900         (WebCore::GraphicsLayer::setIsTrackingDisplayListReplay):
901         (WebCore::GraphicsLayer::isTrackingDisplayListReplay const):
902         (WebCore::GraphicsLayer::replayDisplayListAsText const):
903         * platform/mac/PlaybackSessionInterfaceMac.h:
904         * platform/mediastream/RealtimeMediaSourceCenter.h:
905         (WebCore::RealtimeMediaSourceCenter::setAudioFactory):
906         (WebCore::RealtimeMediaSourceCenter::unsetAudioFactory):
907         * platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
908         (WebCore::LibWebRTCProvider::setActive):
909         (WebCore::LibWebRTCProvider::createDecoderFactory):
910         (WebCore::LibWebRTCProvider::createEncoderFactory):
911         (WebCore::LibWebRTCProvider::disableEnumeratingAllNetworkInterfaces):
912         (WebCore::LibWebRTCProvider::enableEnumeratingAllNetworkInterfaces):
913         * platform/mediastream/libwebrtc/LibWebRTCProvider.h:
914         * platform/network/ResourceHandleClient.h:
915         (WebCore::ResourceHandleClient::willCacheResponseAsync):
916         * testing/MockGamepadProvider.h:
917         * workers/service/server/SWServer.h:
918         (WebCore::SWServer::Connection::~Connection):
919
920 2018-06-25  Zalan Bujtas  <zalan@apple.com>
921
922         [LFC] Adjust static position for out-of-flow positioned boxes.
923         https://bugs.webkit.org/show_bug.cgi?id=187000
924
925         Reviewed by Antti Koivisto.
926
927         The static position of an out-of-flow positioned box is the the position where box would go
928         if it was in-flow positioned. This position needs to the resolved in the containing block's coordinate system.
929
930         * layout/blockformatting/BlockFormattingContext.h:
931         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
932         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowReplacedWidthAndMargin):
933         (WebCore::Layout::BlockFormattingContext::Geometry::staticPositionForOutOfFlowPositioned):
934         (WebCore::Layout::BlockFormattingContext::Geometry::staticPosition):
935
936 2018-06-25  Brady Eidson  <beidson@apple.com>
937
938         Remove RELEASE_ASSERT added in r230875.
939         <rdar://problem/40860061> and https://bugs.webkit.org/show_bug.cgi?id=187022
940
941         Reviewed by Brent Fulgham.
942
943         There's actually more than one way for a network session to be destroyed, and that can happen
944         asynchronously and unpredictably.
945
946         And the request to start up a WebSocket and do its handshake is also asynchronous and unpredictable
947  
948         It's an expected race.
949
950         If the NetworkStorageSession cannot be found then the WebSocket handshake should just fail.
951
952         * platform/network/SocketStreamHandleImpl.cpp:
953         (WebCore::cookieDataForHandshake): If the NetworkStorageSession cannot be found, return std::nullopt.
954         (WebCore::SocketStreamHandleImpl::platformSendHandshake): If the cookieData is null, fail the handshake.
955
956 2018-06-25  Wenson Hsieh  <wenson_hsieh@apple.com>
957
958         [iPad apps on macOS] Web process crashes when attempting to play embedded YouTube video in News
959         https://bugs.webkit.org/show_bug.cgi?id=187011
960         <rdar://problem/40906808>
961
962         Reviewed by Tim Horton.
963
964         Disable remote media commands when running iOS WebKit on macOS. The iOS flavor of RemoteCommandListener
965         currently throws an exception when attempting to soft-link the MediaPlayer framework, which prevents video from
966         being played altogether. For a followup tracking touch bar integration in iOS WebKit on macOS, see:
967         <rdar://problem/39164732>.
968
969         Manually tested by playing a YouTube video in News.
970
971         * platform/RemoteCommandListener.cpp:
972         * platform/ios/RemoteCommandListenerIOS.h:
973         * platform/ios/RemoteCommandListenerIOS.mm:
974
975 2018-06-25  Keith Rollin  <krollin@apple.com>
976         Unreviewed, rolling out r233087.
977
978         Causes 5% Mac PLT regression.
979
980         Reverted changeset:
981
982         "Recalc styles every time defaultAppearance changes."
983         https://bugs.webkit.org/show_bug.cgi?id=186866
984         https://trac.webkit.org/changeset/233087
985
986 2018-06-25  Brent Fulgham  <bfulgham@apple.com>
987
988         REGRESSION(r229722): WebKitLegacy clients can crash when loading alternate page
989         https://bugs.webkit.org/show_bug.cgi?id=187008
990         
991         Reviewed by Chris Dumez.
992
993         The new call to 'clearProvisionalLoadForPolicyCheck' added in r229722 broke loading
994         behavior in WebKitLegacy.
995
996         1. We can now enter 'cancelPolicyCheckIfNeeded' without a Frame loader, in what appears
997            to be a recursive call during the load cancellation (the 'm_waitingForContentPolicy'
998            and 'm_waitingForNavigationPolicy' have already been nulled). It seems like we should
999            return early here, or perhaps just move the RELEASE_ASSERT inside the case where we
1000            have an active policy check happening.
1001
1002         2. We also enter FrameLoader::checkContentPolicy without an active document loader. We
1003            should recognize this case and handle it, rather than trying to dereference a nullptr
1004            document loader.
1005
1006         * loader/DocumentLoader.cpp:
1007         (WebCore::DocumentLoader::cancelPolicyCheckIfNeeded): Move the RELEASE_ASSERT inside the
1008         conditional where the frameLoader is actually used.
1009         * loader/FrameLoader.cpp:
1010         (WebCore::FrameLoader::checkContentPolicy): Recognize that the activeDocumentLoader may
1011         be nullptr at this point, and take appropriate action (rather than crashing).
1012
1013 2018-06-25  Simon Fraser  <simon.fraser@apple.com>
1014
1015         MatchedPropertiesCacheItem wastes 388KB of vector capacity on nytimes.com
1016         https://bugs.webkit.org/show_bug.cgi?id=186990
1017
1018         Reviewed by Antti Koivisto.
1019
1020         MatchedPropertiesCacheItem.matchedProperties was appended to, so it allocated capacity
1021         in 16-size chunks. Instead, assign to it so it only allocates as much capacity as is needed.
1022         Copy-constructing is more wasteful, since it copies the 64-chunk size from the right-hand side.
1023
1024         * css/StyleResolver.cpp:
1025         (WebCore::StyleResolver::addToMatchedPropertiesCache):
1026         * css/StyleResolver.h:
1027         (WebCore::StyleResolver::MatchedPropertiesCacheItem::MatchedPropertiesCacheItem):
1028
1029 2018-06-25  Chris Dumez  <cdumez@apple.com>
1030
1031         Null dereference crash un ApplicationCacheGroup::startLoadingEntry()
1032         https://bugs.webkit.org/show_bug.cgi?id=187012
1033         <rdar://problem/40793716>
1034
1035         Reviewed by Youenn Fablet.
1036
1037         m_entryLoader can be null because ApplicationCacheResourceLoader::create() return null when
1038         CachedResourceLoader::requestRawResource() fails synchronously. In such case, the completion
1039         handler gets called with a ApplicationCacheResourceLoader::Error::CannotRequestResource error.
1040
1041         To address the issue, we capture the request's URL in the lambda and use it instead of trying
1042         to get the URL from the loader's resource.
1043
1044         * loader/appcache/ApplicationCacheGroup.cpp:
1045         (WebCore::ApplicationCacheGroup::startLoadingEntry):
1046
1047 2018-06-25  Ross Kirsling  <ross.kirsling@sony.com>
1048
1049         REGRESSION (r233140): Windows build failure due to incomplete FrameView and RenderBox types
1050         https://bugs.webkit.org/show_bug.cgi?id=186997
1051
1052         * animation/KeyframeEffectReadOnly.cpp:
1053
1054 2018-06-25  Antoine Quint  <graouts@apple.com>
1055
1056         REGRESSION: hardware-accelerated animation fails on inline element
1057         https://bugs.webkit.org/show_bug.cgi?id=186981
1058         <rdar://problem/41418697>
1059
1060         Reviewed by Dean Jackson.
1061
1062         Ensure we only queue accelerated actions when we have a renderer so we don't attempt
1063         to start an accelerated animation too soon.
1064
1065         Test: webanimations/opacity-animation-yields-compositing-span.html
1066
1067         * animation/KeyframeEffectReadOnly.cpp:
1068         (WebCore::KeyframeEffectReadOnly::updateAcceleratedAnimationState):
1069
1070 2018-06-25  David Kilzer  <ddkilzer@apple.com>
1071
1072         REGRESSION (r233140): v2: Windows build failure due to incomplete DocumentAnimationScheduler type
1073         <https://webkit.org/b/186997>
1074
1075         * dom/Document.cpp:
1076         (WebCore::Document::prepareForDestruction):
1077         (WebCore::Document::windowScreenDidChange):
1078         * dom/Document.h:
1079         - DocumentAnimationScheduler is behind the
1080           USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) macro, which
1081           is disabled on Windows.
1082         - This also reverts my fix in r233144 since it didn't work.
1083
1084 2018-06-25  Youenn Fablet  <youenn@apple.com>
1085
1086         Add API to control mock media devices
1087         https://bugs.webkit.org/show_bug.cgi?id=186958
1088
1089         Reviewed by Eric Carlson.
1090
1091         Refactor code to introduce a MockDevice structure that can be used in multiple processes.
1092         Update mock sources and center to use MockDevice.
1093         Add API to update mock media devices.
1094
1095         Make MediaDevices an ActiveDOMObject so that it does not get collected when ondevicechange is set.
1096
1097          Test: fast/mediastream/device-change-event-2.html
1098
1099         * Modules/mediastream/MediaDevices.cpp:
1100         (WebCore::MediaDevices::MediaDevices):
1101         (WebCore::MediaDevices::stop):
1102         (WebCore::MediaDevices::scheduledEventTimerFired):
1103         (WebCore::MediaDevices::hasPendingActivity const):
1104         (WebCore::MediaDevices::activeDOMObjectName const):
1105         (WebCore::MediaDevices::canSuspendForDocumentSuspension const):
1106         * Modules/mediastream/MediaDevices.h:
1107         * Modules/mediastream/MediaDevices.idl:
1108         * WebCore.xcodeproj/project.pbxproj:
1109         * platform/mediastream/RealtimeMediaSourceCenter.h:
1110         * platform/mock/MockMediaDevice.h: Added.
1111         (WebCore::MockMicrophoneProperties::encode const):
1112         (WebCore::MockMicrophoneProperties::decode):
1113         (WebCore::MockCameraProperties::encode const):
1114         (WebCore::MockCameraProperties::decode):
1115         (WebCore::MockDisplayProperties::encode const):
1116         (WebCore::MockDisplayProperties::decode):
1117         (WebCore::MockMediaDevice::isMicrophone const):
1118         (WebCore::MockMediaDevice::isCamera const):
1119         (WebCore::MockMediaDevice::isDisplay const):
1120         (WebCore::MockMediaDevice::type const):
1121         (WebCore::MockMediaDevice::encode const):
1122         (WebCore::MockMediaDevice::decodeMockMediaDevice):
1123         (WebCore::MockMediaDevice::decode):
1124         * platform/mock/MockRealtimeAudioSource.cpp:
1125         (WebCore::MockRealtimeAudioSource::startProducingData):
1126         * platform/mock/MockRealtimeMediaSource.cpp:
1127         (WebCore::defaultDevices):
1128         (WebCore::devices):
1129         (WebCore::deviceMap):
1130         (WebCore::deviceListForDevice):
1131         (WebCore::MockRealtimeMediaSource::createCaptureDevice):
1132         (WebCore::MockRealtimeMediaSource::resetDevices):
1133         (WebCore::MockRealtimeMediaSource::setDevices):
1134         (WebCore::MockRealtimeMediaSource::addDevice):
1135         (WebCore::MockRealtimeMediaSource::removeDevice):
1136         (WebCore::MockRealtimeMediaSource::captureDeviceWithPersistentID):
1137         (WebCore::MockRealtimeMediaSource::audioDevices):
1138         (WebCore::MockRealtimeMediaSource::videoDevices):
1139         (WebCore::MockRealtimeMediaSource::displayDevices):
1140         (WebCore::MockRealtimeMediaSource::MockRealtimeMediaSource):
1141         (WebCore::MockRealtimeMediaSource::initializeCapabilities):
1142         (WebCore::MockRealtimeMediaSource::initializeSettings):
1143         (WebCore::MockRealtimeMediaSource::settings const):
1144         (WebCore::MockRealtimeMediaSource::supportedConstraints):
1145         * platform/mock/MockRealtimeMediaSource.h:
1146         (WebCore::MockRealtimeMediaSource::device const):
1147         * platform/mock/MockRealtimeMediaSourceCenter.cpp:
1148         (WebCore::MockRealtimeMediaSourceCenter::singleton):
1149         (WebCore::MockRealtimeMediaSourceCenter::setMockRealtimeMediaSourceCenterEnabled):
1150         (WebCore::MockRealtimeMediaSourceCenter::setDevices):
1151         (WebCore::MockRealtimeMediaSourceCenter::addDevice):
1152         (WebCore::MockRealtimeMediaSourceCenter::removeDevice):
1153         * platform/mock/MockRealtimeMediaSourceCenter.h:
1154         * platform/mock/MockRealtimeVideoSource.cpp:
1155         (WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource):
1156         (WebCore::MockRealtimeVideoSource::initializeCapabilities):
1157         (WebCore::MockRealtimeVideoSource::drawText):
1158         (WebCore::MockRealtimeVideoSource::generateFrame):
1159         * platform/mock/MockRealtimeVideoSource.h:
1160         (WebCore::MockRealtimeVideoSource::mockCamera const):
1161         (WebCore::MockRealtimeVideoSource::mockScreen const):
1162
1163 2018-06-25  Simon Fraser  <simon.fraser@apple.com>
1164
1165         AutoTableLayout wastes 52KB of Vector capacity on nytimes.com
1166         https://bugs.webkit.org/show_bug.cgi?id=186710
1167
1168         Reviewed by Zalan Bujtas.
1169         
1170         Call resizeToFit() to only allocate enough capacity for the number of columns.
1171
1172         * rendering/AutoTableLayout.cpp:
1173         (WebCore::AutoTableLayout::fullRecalc):
1174         (WebCore::AutoTableLayout::insertSpanCell): Whitespace fix.
1175         * rendering/AutoTableLayout.h:
1176
1177 2018-06-25  Zalan Bujtas  <zalan@apple.com>
1178
1179         [LFC] Adjust static position with containing block's content box top/left
1180         https://bugs.webkit.org/show_bug.cgi?id=186999
1181
1182         Reviewed by Antti Koivisto.
1183
1184         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
1185         (WebCore::Layout::BlockFormattingContext::Geometry::staticPosition):
1186         * layout/displaytree/DisplayBox.cpp:
1187         (WebCore::Display::Box::contentBox const):
1188         * layout/displaytree/DisplayBox.h:
1189         (WebCore::Display::Box::contentBoxTop const):
1190         (WebCore::Display::Box::contentBoxLeft const):
1191
1192 2018-06-25  David Kilzer  <ddkilzer@apple.com>
1193
1194         REGRESSION (r233140): Windows build failure due to incomplete DocumentAnimationScheduler type
1195         <https://webkit.org/b/186997>
1196
1197         * dom/Document.cpp:
1198         * dom/Document.h:
1199         - Attempt to fix Windows build failure by moving include of
1200           DocumentAnimationScheduler.h from Document.cpp to Document.h.
1201
1202 2018-06-25  Philippe Normand  <pnormand@igalia.com>
1203
1204         [GStreamer] Remove useless workaround
1205         https://bugs.webkit.org/show_bug.cgi?id=186921
1206
1207         Reviewed by Xabier Rodriguez-Calvar.
1208
1209         In bug 67407 a workaround was added for GStreamer 0.10. With 1.x
1210         the media/video-reverse-play-duration.html test passes without any
1211         workaround needed. The other test mentioned in that bug was
1212         removed, it seems.
1213
1214         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1215         (WebCore::MediaPlayerPrivateGStreamer::currentMediaTime const):
1216
1217 2018-06-24  Tomas Popela  <tpopela@redhat.com>
1218
1219         Unreviewed, address Darin's comment
1220         https://bugs.webkit.org/show_bug.cgi?id=186757
1221
1222         * page/linux/ResourceUsageThreadLinux.cpp:
1223         (WebCore::cpuPeriod):
1224
1225 2018-06-25  Antoine Quint  <graouts@apple.com>
1226
1227         [Web Animations] Make imported/mozilla/css-animations/test_animation-pausing.html pass reliably
1228         https://bugs.webkit.org/show_bug.cgi?id=183826
1229         <rdar://problem/40997412>
1230
1231         Reviewed by Dean Jackson.
1232
1233         The CSS Animations Level 2 specification defines that calling pause() on a CSSAnimation object is "sticky"
1234         until a call to play() is made, meaning that any changes to the running state via the CSS animation-play-state
1235         property is overridden by the stickiness of the pause() call. In this patch we add an m_stickyPaused flag which
1236         is set in API calls to pause() and play(). While this flag is true, changes to the animation-play-state property
1237         to the "running" value are ignored.
1238
1239         * animation/CSSAnimation.cpp:
1240         (WebCore::CSSAnimation::syncPropertiesWithBackingAnimation):
1241         (WebCore::CSSAnimation::bindingsPlay):
1242         (WebCore::CSSAnimation::bindingsPause):
1243         * animation/CSSAnimation.h:
1244
1245 2018-06-25  Antoine Quint  <graouts@apple.com>
1246
1247         [Web Animations] Ensure animations are updated prior to requestAnimationFrame callbacks
1248         https://bugs.webkit.org/show_bug.cgi?id=186997
1249         <rdar://problem/41419414>
1250
1251         Reviewed by Dean Jackson.
1252
1253         Some sub-tests of imported/mozilla/css-animations/test_animation-pausing.html clearly expect that animations
1254         would be resolved prior to firing a requestAnimationFrame() callback, as the HTML5 event loop mandates. But until
1255         now, both DocumentTimeline and ScriptedAnimationController would make calls to DisplayRefreshMonitorManager::scheduleAnimation()
1256         that were not coordinated and so the order in which the DocumentTimeline and ScriptedAnimationController callbacks
1257         were performed was not guaranteed.
1258
1259         In this patch we add a new DocumentAnimationScheduler class which is created by a Document to manage this specific
1260         situation. Now DocumentTimeline and ScriptedAnimationController use this supporting object instead of being their
1261         own DisplayRefreshMonitorClient and call scheduleWebAnimationsResolution() and scheduleScriptedAnimationResolution()
1262         respectively to indicate the need to schedule an animation through the DisplayRefreshMonitorManager to serve the specific
1263         needs of either, or both, classes. Then DocumentAnimationScheduler ensures that Web Animations resolution happens
1264         prior to requestAnimationFrame callbacks when both are scheduled.
1265
1266         In the future we should be able to move more code from DocumentTimeline and ScriptedAnimationController over to
1267         DocumentAnimationScheduler, such as support for throttling and using a timer-based fallback, but this patch provides
1268         the minimal functionality required to provide a sounder foundation.
1269
1270         * Modules/webvr/VRDisplay.cpp:
1271         (WebCore::VRDisplay::requestAnimationFrame):
1272         * Sources.txt:
1273         * WebCore.xcodeproj/project.pbxproj:
1274         * animation/DocumentAnimationScheduler.cpp: Added.
1275         (WebCore::DocumentAnimationScheduler::create):
1276         (WebCore::DocumentAnimationScheduler::DocumentAnimationScheduler):
1277         (WebCore::DocumentAnimationScheduler::detachFromDocument):
1278         (WebCore::DocumentAnimationScheduler::scheduleWebAnimationsResolution):
1279         (WebCore::DocumentAnimationScheduler::scheduleScriptedAnimationResolution):
1280         (WebCore::DocumentAnimationScheduler::displayRefreshFired):
1281         (WebCore::DocumentAnimationScheduler::windowScreenDidChange):
1282         (WebCore::DocumentAnimationScheduler::createDisplayRefreshMonitor const):
1283         * animation/DocumentAnimationScheduler.h: Copied from Source/WebCore/animation/CSSAnimation.h.
1284         * animation/DocumentTimeline.cpp:
1285         (WebCore::DocumentTimeline::create):
1286         (WebCore::DocumentTimeline::DocumentTimeline):
1287         (WebCore::DocumentTimeline::scheduleAnimationResolution):
1288         (WebCore::DocumentTimeline::windowScreenDidChange): Deleted.
1289         (WebCore::DocumentTimeline::createDisplayRefreshMonitor const): Deleted.
1290         * animation/DocumentTimeline.h:
1291         * dom/Document.cpp:
1292         (WebCore::Document::prepareForDestruction):
1293         (WebCore::Document::windowScreenDidChange):
1294         (WebCore::Document::requestAnimationFrame):
1295         (WebCore::Document::animationScheduler):
1296         (WebCore::Document::timeline):
1297         * dom/Document.h:
1298         * dom/ScriptedAnimationController.cpp:
1299         (WebCore::ScriptedAnimationController::ScriptedAnimationController):
1300         (WebCore::ScriptedAnimationController::scheduleAnimation):
1301         (WebCore::ScriptedAnimationController::documentAnimationSchedulerDidFire):
1302         (WebCore::ScriptedAnimationController::windowScreenDidChange): Deleted.
1303         (WebCore::ScriptedAnimationController::displayRefreshFired): Deleted.
1304         (WebCore::ScriptedAnimationController::createDisplayRefreshMonitor const): Deleted.
1305         * dom/ScriptedAnimationController.h:
1306         (WebCore::ScriptedAnimationController::create):
1307
1308 2018-06-25  Zan Dobersek  <zdobersek@igalia.com>
1309
1310         [GCrypt] Zero-prefix (if necessary) output of RSA-based encryption and signing operations
1311         https://bugs.webkit.org/show_bug.cgi?id=186967
1312
1313         Reviewed by Michael Catanzaro.
1314
1315         Output for RSA-based encryption and signing operations should match the
1316         length of the RSA key. The way we retrieve the MPI data means libgcrypt
1317         can ignore the high-bit zero values and leave us with a valid result
1318         that's shorter in length compared to the RSA key. For instance, if the
1319         output MPI fits into 2040 bits while a 2048-bit key was used we'll end
1320         up with MPI data that will be fitted into a 255-byte Vector, one byte
1321         short of the expected output length.
1322
1323         To avoid this, mpiZeroPrefixedData() is now used when retrieving output
1324         of these RSA operations, and the value of the key size in bytes is
1325         passed to it. This efficiently prepares the output Vector and then
1326         copies the MPI data into it, respecting the MPI data length as well as
1327         the desired length of the output.
1328
1329         No new tests -- relevant tests are now stable (i.e. not sporadically
1330         failing anymore), associated expectations are removed.
1331
1332         * crypto/gcrypt/CryptoAlgorithmECDHGCrypt.cpp:
1333         (WebCore::gcryptDerive): Also use mpiZeroPrefixedData().
1334         * crypto/gcrypt/CryptoAlgorithmRSAES_PKCS1_v1_5GCrypt.cpp:
1335         (WebCore::gcryptEncrypt):
1336         (WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformEncrypt):
1337         * crypto/gcrypt/CryptoAlgorithmRSASSA_PKCS1_v1_5GCrypt.cpp:
1338         (WebCore::gcryptSign):
1339         (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::platformSign):
1340         * crypto/gcrypt/CryptoAlgorithmRSA_OAEPGCrypt.cpp:
1341         (WebCore::gcryptEncrypt):
1342         (WebCore::CryptoAlgorithmRSA_OAEP::platformEncrypt):
1343         * crypto/gcrypt/CryptoAlgorithmRSA_PSSGCrypt.cpp:
1344         (WebCore::gcryptSign):
1345         (WebCore::CryptoAlgorithmRSA_PSS::platformSign):
1346         * crypto/gcrypt/GCryptUtilities.h:
1347         (WebCore::mpiZeroPrefixedData):
1348
1349 2018-06-24  Simon Fraser  <simon.fraser@apple.com>
1350
1351         Fix the DUMP_NODE_STATISTICS code so that it compiles
1352         https://bugs.webkit.org/show_bug.cgi?id=186982
1353
1354         Reviewed by Anders Carlsson.
1355
1356         The DUMP_NODE_STATISTICS code had bitrotted. ENTITY_NODE no longer exists.
1357         liveNodeSet needs to be a static function with a NeverDestroyed<>.
1358
1359         * dom/Node.cpp:
1360         (WebCore::Node::dumpStatistics):
1361         (WebCore::Node::trackForDebugging):
1362         (WebCore::Node::~Node):
1363
1364 2018-06-24  Simon Fraser  <simon.fraser@apple.com>
1365
1366         Fix the composition underline to be transformed by -apple-color-filter
1367         https://bugs.webkit.org/show_bug.cgi?id=186983
1368         rdar://problem/40515558
1369
1370         Reviewed by Zalan Bujtas.
1371         
1372         Transform the composition underline color with the color filter.
1373
1374         Test: css3/color-filters/color-filter-composition-underline-color.html
1375
1376         * rendering/InlineTextBox.cpp:
1377         (WebCore::InlineTextBox::paintCompositionUnderline const):
1378
1379 2018-06-23  Zalan Bujtas  <zalan@apple.com>
1380
1381         [Mail] Use the Mail Viewer width as the base for resolving horizontal viewport units
1382         https://bugs.webkit.org/show_bug.cgi?id=186585
1383         <rdar://problem/30685325>
1384
1385         Reviewed by Tim Horton.
1386
1387         Use the existing "override viewport size for viewport units" mechanism to compute the preferred
1388         viewport unit values for the Mail Viewer html content. 
1389
1390         Test: fast/dynamic/mail-autosize-viewport-unit.html
1391
1392         * page/FrameView.cpp:
1393         (WebCore::FrameView::FrameView):
1394         (WebCore::FrameView::enableAutoSizeMode):
1395         (WebCore::FrameView::clearViewportSizeOverrideForCSSViewportUnits):
1396         (WebCore::FrameView::setViewportSizeForCSSViewportUnits):
1397         (WebCore::FrameView::overrideViewportSizeForCSSViewportUnits):
1398         (WebCore::FrameView::viewportSizeForCSSViewportUnits const):
1399         * page/FrameView.h:
1400
1401 2018-06-23  Zalan Bujtas  <zalan@apple.com>
1402
1403         [LFC] Relatively positioned renderer needs offsetting for validation
1404         https://bugs.webkit.org/show_bug.cgi?id=186959
1405
1406         Reviewed by Antti Koivisto.
1407
1408         * layout/FormattingContextGeometry.cpp:
1409         (WebCore::Layout::FormattingContext::Geometry::outOfFlowNonReplacedVerticalGeometry):
1410         * layout/Verification.cpp:
1411         (WebCore::Layout::outputMismatchingBoxInformationIfNeeded):
1412
1413 2018-06-23  Zalan Bujtas  <zalan@apple.com>
1414
1415         [LFC] Miscellaneous fixes to fix simple absolute positioning.
1416         https://bugs.webkit.org/show_bug.cgi?id=186962
1417
1418         Reviewed by Antti Koivisto.
1419
1420         1. Collect out-of-flow formatting root descendants.
1421         2. Remove invalid and redundant ASSERTs
1422           invalid because the assertion is missing border, padding etc.
1423           redundant becasue we assert on geometry correctness in validateGeometryConstraintsAfterLayout.  
1424
1425         * layout/FormattingContext.cpp:
1426         (WebCore::Layout::FormattingContext::computeOutOfFlowHorizontalGeometry const):
1427         (WebCore::Layout::FormattingContext::computeOutOfFlowVerticalGeometry const):
1428         (WebCore::Layout::FormattingContext::layoutOutOfFlowDescendants const):
1429         * layout/layouttree/LayoutContainer.cpp:
1430         (WebCore::Layout::Container::addOutOfFlowDescendant):
1431         (WebCore::Layout::Container::setOutOfFlowDescendants): Deleted.
1432         * layout/layouttree/LayoutContainer.h:
1433         * layout/layouttree/LayoutTreeBuilder.cpp:
1434         (WebCore::Layout::TreeBuilder::createSubTree):
1435
1436 2018-06-23  Yusuke Suzuki  <utatane.tea@gmail.com>
1437
1438         [WTF] Add user-defined literal for ASCIILiteral
1439         https://bugs.webkit.org/show_bug.cgi?id=186839
1440
1441         Reviewed by Darin Adler.
1442
1443         No behavior change.
1444
1445         * Modules/applicationmanifest/ApplicationManifestParser.cpp:
1446         (WebCore::ApplicationManifestParser::parseManifest):
1447         (WebCore::ApplicationManifestParser::logManifestPropertyNotAString):
1448         (WebCore::ApplicationManifestParser::logManifestPropertyInvalidURL):
1449         (WebCore::ApplicationManifestParser::logDeveloperWarning):
1450         (WebCore::ApplicationManifestParser::parseStartURL):
1451         (WebCore::ApplicationManifestParser::parseDisplay):
1452         (WebCore::ApplicationManifestParser::parseName):
1453         (WebCore::ApplicationManifestParser::parseDescription):
1454         (WebCore::ApplicationManifestParser::parseShortName):
1455         (WebCore::ApplicationManifestParser::parseScope):
1456         * Modules/beacon/NavigatorBeacon.cpp:
1457         (WebCore::NavigatorBeacon::logError):
1458         (WebCore::NavigatorBeacon::sendBeacon):
1459         * Modules/cache/DOMCache.cpp:
1460         (WebCore::DOMCache::requestFromInfo):
1461         (WebCore::DOMCache::addAll):
1462         (WebCore::DOMCache::put):
1463         * Modules/cache/DOMCacheEngine.cpp:
1464         (WebCore::DOMCacheEngine::errorToException):
1465         * Modules/credentialmanagement/BasicCredential.cpp:
1466         (WebCore::BasicCredential::type const):
1467         * Modules/credentialmanagement/CredentialsContainer.cpp:
1468         (WebCore::CredentialsContainer::get):
1469         (WebCore::CredentialsContainer::store):
1470         (WebCore::CredentialsContainer::isCreate):
1471         (WebCore::CredentialsContainer::preventSilentAccess const):
1472         * Modules/entriesapi/DOMFileSystem.cpp:
1473         (WebCore::DOMFileSystem::root):
1474         (WebCore::validatePathIsExpectedType):
1475         (WebCore::resolveRelativeVirtualPath):
1476         (WebCore::DOMFileSystem::getEntry):
1477         * Modules/entriesapi/FileSystemDirectoryEntry.cpp:
1478         (WebCore::FileSystemDirectoryEntry::getEntry):
1479         * Modules/entriesapi/FileSystemDirectoryReader.cpp:
1480         (WebCore::FileSystemDirectoryReader::readEntries):
1481         * Modules/fetch/FetchBody.cpp:
1482         (WebCore::FetchBody::consumeAsStream):
1483         * Modules/fetch/FetchBodyConsumer.cpp:
1484         (WebCore::FetchBodyConsumer::loadingFailed):
1485         * Modules/fetch/FetchBodyOwner.cpp:
1486         (WebCore::FetchBodyOwner::arrayBuffer):
1487         (WebCore::FetchBodyOwner::blob):
1488         (WebCore::FetchBodyOwner::consumeOnceLoadingFinished):
1489         (WebCore::FetchBodyOwner::formData):
1490         (WebCore::FetchBodyOwner::json):
1491         (WebCore::FetchBodyOwner::text):
1492         (WebCore::FetchBodyOwner::blobLoadingFailed):
1493         (WebCore::FetchBodyOwner::consumeBodyAsStream):
1494         * Modules/fetch/FetchHeaders.cpp:
1495         (WebCore::canWriteHeader):
1496         * Modules/fetch/FetchLoader.cpp:
1497         (WebCore::FetchLoader::startLoadingBlobURL):
1498         (WebCore::FetchLoader::start):
1499         * Modules/fetch/FetchRequest.cpp:
1500         (WebCore::setMethod):
1501         (WebCore::computeReferrer):
1502         (WebCore::buildOptions):
1503         (WebCore::FetchRequest::initializeOptions):
1504         (WebCore::FetchRequest::initializeWith):
1505         (WebCore::FetchRequest::setBody):
1506         (WebCore::FetchRequest::referrer const):
1507         (WebCore::FetchRequest::clone):
1508         * Modules/fetch/FetchResponse.cpp:
1509         (WebCore::FetchResponse::create):
1510         (WebCore::FetchResponse::redirect):
1511         (WebCore::FetchResponse::clone):
1512         (WebCore::FetchResponse::BodyLoader::didFail):
1513         * Modules/fetch/FetchResponse.h:
1514         * Modules/geolocation/GeoNotifier.cpp:
1515         (WebCore::GeoNotifier::timerFired):
1516         * Modules/geolocation/Geolocation.cpp:
1517         (WebCore::Geolocation::startRequest):
1518         (WebCore::Geolocation::requestUsesCachedPosition):
1519         (WebCore::Geolocation::makeCachedPositionCallbacks):
1520         (WebCore::Geolocation::setIsAllowed):
1521         (WebCore::Geolocation::cancelRequests):
1522         (WebCore::Geolocation::handlePendingPermissionNotifiers):
1523         * Modules/indexeddb/IDBCursor.cpp:
1524         (WebCore::IDBCursor::update):
1525         (WebCore::IDBCursor::advance):
1526         (WebCore::IDBCursor::continuePrimaryKey):
1527         (WebCore::IDBCursor::continueFunction):
1528         (WebCore::IDBCursor::deleteFunction):
1529         * Modules/indexeddb/IDBDatabase.cpp:
1530         (WebCore::IDBDatabase::createObjectStore):
1531         (WebCore::IDBDatabase::transaction):
1532         (WebCore::IDBDatabase::deleteObjectStore):
1533         * Modules/indexeddb/IDBFactory.cpp:
1534         (WebCore::IDBFactory::open):
1535         (WebCore::IDBFactory::openInternal):
1536         (WebCore::IDBFactory::deleteDatabase):
1537         (WebCore::IDBFactory::cmp):
1538         * Modules/indexeddb/IDBIndex.cpp:
1539         (WebCore::IDBIndex::setName):
1540         (WebCore::IDBIndex::openCursor):
1541         (WebCore::IDBIndex::openKeyCursor):
1542         (WebCore::IDBIndex::count):
1543         (WebCore::IDBIndex::doCount):
1544         (WebCore::IDBIndex::get):
1545         (WebCore::IDBIndex::doGet):
1546         (WebCore::IDBIndex::getKey):
1547         (WebCore::IDBIndex::doGetKey):
1548         (WebCore::IDBIndex::getAll):
1549         (WebCore::IDBIndex::getAllKeys):
1550         * Modules/indexeddb/IDBKeyData.cpp:
1551         (WebCore::IDBKeyData::loggingString const):
1552         * Modules/indexeddb/IDBKeyRangeData.cpp:
1553         (WebCore::IDBKeyRangeData::loggingString const):
1554         * Modules/indexeddb/IDBObjectStore.cpp:
1555         (WebCore::IDBObjectStore::setName):
1556         (WebCore::IDBObjectStore::openCursor):
1557         (WebCore::IDBObjectStore::openKeyCursor):
1558         (WebCore::IDBObjectStore::get):
1559         (WebCore::IDBObjectStore::getKey):
1560         (WebCore::IDBObjectStore::putOrAdd):
1561         (WebCore::IDBObjectStore::doDelete):
1562         (WebCore::IDBObjectStore::deleteFunction):
1563         (WebCore::IDBObjectStore::clear):
1564         (WebCore::IDBObjectStore::createIndex):
1565         (WebCore::IDBObjectStore::index):
1566         (WebCore::IDBObjectStore::deleteIndex):
1567         (WebCore::IDBObjectStore::count):
1568         (WebCore::IDBObjectStore::doCount):
1569         (WebCore::IDBObjectStore::getAll):
1570         (WebCore::IDBObjectStore::getAllKeys):
1571         * Modules/indexeddb/IDBRequest.cpp:
1572         (WebCore::IDBRequest::result const):
1573         (WebCore:: const):
1574         (WebCore::IDBRequest::uncaughtExceptionInEventHandler):
1575         * Modules/indexeddb/IDBTransaction.cpp:
1576         (WebCore::IDBTransaction::objectStore):
1577         (WebCore::IDBTransaction::abort):
1578         (WebCore::IDBTransaction::putOrAddOnServer):
1579         * Modules/indexeddb/server/IDBServer.cpp:
1580         (WebCore::IDBServer::IDBServer::performGetAllDatabaseNames):
1581         * Modules/indexeddb/server/MemoryIDBBackingStore.cpp:
1582         (WebCore::IDBServer::MemoryIDBBackingStore::deleteRange):
1583         (WebCore::IDBServer::MemoryIDBBackingStore::addRecord):
1584         (WebCore::IDBServer::MemoryIDBBackingStore::getRecord):
1585         (WebCore::IDBServer::MemoryIDBBackingStore::getAllRecords):
1586         (WebCore::IDBServer::MemoryIDBBackingStore::getIndexRecord):
1587         (WebCore::IDBServer::MemoryIDBBackingStore::getCount):
1588         (WebCore::IDBServer::MemoryIDBBackingStore::openCursor):
1589         (WebCore::IDBServer::MemoryIDBBackingStore::iterateCursor):
1590         * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
1591         (WebCore::IDBServer::SQLiteIDBBackingStore::createAndPopulateInitialDatabaseInfo):
1592         (WebCore::IDBServer::SQLiteIDBBackingStore::extractExistingDatabaseInfo):
1593         (WebCore::IDBServer::SQLiteIDBBackingStore::databaseNameFromEncodedFilename):
1594         (WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
1595         (WebCore::IDBServer::SQLiteIDBBackingStore::beginTransaction):
1596         (WebCore::IDBServer::SQLiteIDBBackingStore::abortTransaction):
1597         (WebCore::IDBServer::SQLiteIDBBackingStore::commitTransaction):
1598         (WebCore::IDBServer::SQLiteIDBBackingStore::createObjectStore):
1599         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteObjectStore):
1600         (WebCore::IDBServer::SQLiteIDBBackingStore::renameObjectStore):
1601         (WebCore::IDBServer::SQLiteIDBBackingStore::clearObjectStore):
1602         (WebCore::IDBServer::SQLiteIDBBackingStore::createIndex):
1603         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedHasIndexRecord):
1604         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedPutIndexRecord):
1605         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteIndex):
1606         (WebCore::IDBServer::SQLiteIDBBackingStore::renameIndex):
1607         (WebCore::IDBServer::SQLiteIDBBackingStore::keyExistsInObjectStore):
1608         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteUnusedBlobFileRecords):
1609         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteRecord):
1610         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteRange):
1611         (WebCore::IDBServer::SQLiteIDBBackingStore::updateAllIndexesForAddRecord):
1612         (WebCore::IDBServer::SQLiteIDBBackingStore::addRecord):
1613         (WebCore::IDBServer::SQLiteIDBBackingStore::getBlobRecordsForObjectStoreRecord):
1614         (WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):
1615         (WebCore::IDBServer::SQLiteIDBBackingStore::getAllObjectStoreRecords):
1616         (WebCore::IDBServer::SQLiteIDBBackingStore::getAllIndexRecords):
1617         (WebCore::IDBServer::SQLiteIDBBackingStore::getIndexRecord):
1618         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedGetIndexRecordForOneKey):
1619         (WebCore::IDBServer::SQLiteIDBBackingStore::getCount):
1620         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedGetKeyGeneratorValue):
1621         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedSetKeyGeneratorValue):
1622         (WebCore::IDBServer::SQLiteIDBBackingStore::generateKeyNumber):
1623         (WebCore::IDBServer::SQLiteIDBBackingStore::revertGeneratedKeyNumber):
1624         (WebCore::IDBServer::SQLiteIDBBackingStore::maybeUpdateKeyGeneratorNumber):
1625         (WebCore::IDBServer::SQLiteIDBBackingStore::openCursor):
1626         (WebCore::IDBServer::SQLiteIDBBackingStore::iterateCursor):
1627         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteBackingStore):
1628         * Modules/indexeddb/server/SQLiteIDBTransaction.cpp:
1629         (WebCore::IDBServer::SQLiteIDBTransaction::begin):
1630         (WebCore::IDBServer::SQLiteIDBTransaction::commit):
1631         (WebCore::IDBServer::SQLiteIDBTransaction::abort):
1632         * Modules/indexeddb/server/UniqueIDBDatabase.cpp:
1633         (WebCore::IDBServer::UniqueIDBDatabase::deleteObjectStore):
1634         (WebCore::IDBServer::UniqueIDBDatabase::renameObjectStore):
1635         (WebCore::IDBServer::UniqueIDBDatabase::deleteIndex):
1636         (WebCore::IDBServer::UniqueIDBDatabase::renameIndex):
1637         (WebCore::IDBServer::UniqueIDBDatabase::performPutOrAdd):
1638         (WebCore::IDBServer::UniqueIDBDatabase::commitTransaction):
1639         (WebCore::IDBServer::UniqueIDBDatabase::abortTransaction):
1640         * Modules/indexeddb/shared/IDBError.h:
1641         (WebCore::IDBError::userDeleteError):
1642         * Modules/indexeddb/shared/IDBTransactionInfo.cpp:
1643         (WebCore::IDBTransactionInfo::loggingString const):
1644         * Modules/mediastream/CanvasCaptureMediaStreamTrack.cpp:
1645         (WebCore::CanvasCaptureMediaStreamTrack::Source::canvasChanged):
1646         * Modules/mediastream/PeerConnectionBackend.cpp:
1647         (WebCore::PeerConnectionBackend::addIceCandidate):
1648         * Modules/mediastream/UserMediaRequest.cpp:
1649         (WebCore::UserMediaRequest::deny):
1650         * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
1651         (WebCore::LibWebRTCMediaEndpoint::doSetLocalDescription):
1652         * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
1653         (WebCore::LibWebRTCPeerConnectionBackend::doAddIceCandidate):
1654         * Modules/paymentrequest/PaymentRequest.cpp:
1655         (WebCore::checkAndCanonicalizeTotal):
1656         (WebCore::PaymentRequest::create):
1657         * Modules/quota/DOMWindowQuota.cpp:
1658         (WebCore::DOMWindowQuota::webkitStorageInfo const):
1659         * Modules/webaudio/AudioBufferSourceNode.cpp:
1660         (WebCore::AudioBufferSourceNode::looping):
1661         (WebCore::AudioBufferSourceNode::setLooping):
1662         * Modules/webaudio/AudioNode.cpp:
1663         (WebCore::AudioNode::channelCountMode):
1664         (WebCore::AudioNode::channelInterpretation):
1665         * Modules/webaudio/MediaStreamAudioSource.cpp:
1666         (WebCore::MediaStreamAudioSource::MediaStreamAudioSource):
1667         * Modules/webauthn/AuthenticatorManager.cpp:
1668         (WebCore::AuthenticatorManagerInternal::produceClientDataJson):
1669         (WebCore::AuthenticatorManagerInternal::initTimeoutTimer):
1670         (WebCore::AuthenticatorManager::create const):
1671         (WebCore::AuthenticatorManager::discoverFromExternalSource const):
1672         (WebCore::AuthenticatorManager::isUserVerifyingPlatformAuthenticatorAvailable const):
1673         * Modules/webauthn/cocoa/LocalAuthenticator.mm:
1674         (WebCore::LocalAuthenticator::makeCredential):
1675         (WebCore::LocalAuthenticator::getAssertion):
1676         * Modules/webdatabase/DatabaseTracker.cpp:
1677         (WebCore::DatabaseTracker::usage):
1678         * Modules/websockets/WebSocket.cpp:
1679         (WebCore::WebSocket::connect):
1680         (WebCore::WebSocket::close):
1681         (WebCore::WebSocket::binaryType const):
1682         * Modules/websockets/WebSocketHandshake.cpp:
1683         (WebCore::WebSocketHandshake::readStatusLine):
1684         (WebCore::WebSocketHandshake::readHTTPHeaders):
1685         (WebCore::WebSocketHandshake::checkResponseHeaders):
1686         * Modules/webvr/VRDisplay.cpp:
1687         (WebCore::VRDisplay::requestPresent):
1688         (WebCore::VRDisplay::exitPresent):
1689         * accessibility/AccessibilityObject.cpp:
1690         (WebCore::AccessibilityObject::defaultLiveRegionStatusForRole):
1691         (WebCore::AccessibilityObject::invalidStatus const):
1692         * accessibility/AccessibilityRenderObject.cpp:
1693         (WebCore::AccessibilityRenderObject::textUnderElement const):
1694         * bindings/js/JSCustomElementInterface.cpp:
1695         (WebCore::constructCustomElementSynchronously):
1696         * bindings/js/JSCustomElementRegistryCustom.cpp:
1697         (WebCore::getCustomElementCallback):
1698         (WebCore::validateCustomElementNameAndThrowIfNeeded):
1699         (WebCore::JSCustomElementRegistry::define):
1700         * bindings/js/JSCustomXPathNSResolver.cpp:
1701         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
1702         * bindings/js/JSDOMConstructorBase.cpp:
1703         (WebCore::callThrowTypeError):
1704         * bindings/js/JSDOMConstructorBase.h:
1705         (WebCore::JSDOMConstructorBase::className):
1706         * bindings/js/JSDOMConstructorNotConstructable.h:
1707         (WebCore::JSDOMConstructorNotConstructable::callThrowTypeError):
1708         * bindings/js/JSDOMExceptionHandling.cpp:
1709         (WebCore::createDOMException):
1710         (WebCore::throwSequenceTypeError):
1711         (WebCore::throwNonFiniteTypeError):
1712         * bindings/js/JSDOMIterator.h:
1713         (WebCore::iteratorForEach):
1714         (WebCore::IteratorTraits>::next):
1715         * bindings/js/JSDOMWindowBase.cpp:
1716         (WebCore::isResponseCorrect):
1717         (WebCore::handleResponseOnStreamingAction):
1718         (WebCore::JSDOMWindowBase::compileStreaming):
1719         (WebCore::JSDOMWindowBase::instantiateStreaming):
1720         * bindings/js/JSDOMWindowCustom.cpp:
1721         (WebCore::JSDOMWindow::preventExtensions):
1722         (WebCore::JSDOMWindow::toStringName):
1723         * bindings/js/JSHTMLElementCustom.cpp:
1724         (WebCore::constructJSHTMLElement):
1725         * bindings/js/JSLocationCustom.cpp:
1726         (WebCore::JSLocation::preventExtensions):
1727         (WebCore::JSLocation::toStringName):
1728         * bindings/js/JSReadableStreamPrivateConstructors.cpp:
1729         (WebCore::constructJSReadableStreamDefaultController):
1730         (WebCore::constructJSReadableByteStreamController):
1731         (WebCore::constructJSReadableStreamBYOBRequest):
1732         * bindings/js/JSRemoteDOMWindowCustom.cpp:
1733         (WebCore::JSRemoteDOMWindow::preventExtensions):
1734         (WebCore::JSRemoteDOMWindow::toStringName):
1735         * bindings/js/ReadableStreamDefaultController.cpp:
1736         (WebCore::ReadableStreamDefaultController::invoke):
1737         * bindings/js/ScriptModuleLoader.cpp:
1738         (WebCore::resolveModuleSpecifier):
1739         (WebCore::ScriptModuleLoader::resolve):
1740         (WebCore::ScriptModuleLoader::fetch):
1741         (WebCore::ScriptModuleLoader::evaluate):
1742         (WebCore::ScriptModuleLoader::importModule):
1743         (WebCore::ScriptModuleLoader::notifyFinished):
1744         * bindings/js/SerializedScriptValue.cpp:
1745         (WebCore::maybeThrowExceptionIfSerializationFailed):
1746         * bindings/js/WorkerScriptController.cpp:
1747         (WebCore::WorkerScriptController::evaluate):
1748         * bindings/scripts/CodeGeneratorJS.pm:
1749         (GenerateDefaultValue):
1750         (GenerateConstructorHelperMethods):
1751         (GenerateCallTracer):
1752         * bindings/scripts/test/JS/JSInterfaceName.cpp:
1753         (WebCore::JSInterfaceNameConstructor::initializeProperties):
1754         * bindings/scripts/test/JS/JSMapLike.cpp:
1755         (WebCore::JSMapLikeConstructor::initializeProperties):
1756         * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp:
1757         (WebCore::JSReadOnlyMapLikeConstructor::initializeProperties):
1758         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
1759         (WebCore::JSTestActiveDOMObjectConstructor::initializeProperties):
1760         * bindings/scripts/test/JS/JSTestCEReactions.cpp:
1761         (WebCore::JSTestCEReactionsConstructor::initializeProperties):
1762         * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp:
1763         (WebCore::JSTestCEReactionsStringifierConstructor::initializeProperties):
1764         * bindings/scripts/test/JS/JSTestCallTracer.cpp:
1765         (WebCore::JSTestCallTracerConstructor::initializeProperties):
1766         (WebCore::jsTestCallTracerTestAttributeInterfaceGetter):
1767         (WebCore::setJSTestCallTracerTestAttributeInterfaceSetter):
1768         (WebCore::jsTestCallTracerTestAttributeSpecifiedGetter):
1769         (WebCore::setJSTestCallTracerTestAttributeSpecifiedSetter):
1770         (WebCore::jsTestCallTracerTestAttributeWithVariantGetter):
1771         (WebCore::setJSTestCallTracerTestAttributeWithVariantSetter):
1772         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationInterfaceBody):
1773         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationSpecifiedBody):
1774         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithArgumentsBody):
1775         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithNullableArgumentBody):
1776         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithVariantArgumentBody):
1777         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithNullableVariantArgumentBody):
1778         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithOptionalVariantArgumentBody):
1779         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithDefaultVariantArgumentBody):
1780         * bindings/scripts/test/JS/JSTestCallbackInterface.cpp:
1781         (WebCore::JSTestCallbackInterfaceConstructor::initializeProperties):
1782         * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp:
1783         (WebCore::JSTestClassWithJSBuiltinConstructorConstructor::initializeProperties):
1784         * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
1785         (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::initializeProperties):
1786         * bindings/scripts/test/JS/JSTestDOMJIT.cpp:
1787         (WebCore::JSTestDOMJITConstructor::initializeProperties):
1788         * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp:
1789         (WebCore::JSTestEnabledBySettingConstructor::initializeProperties):
1790         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
1791         (WebCore::JSTestEventConstructorConstructor::initializeProperties):
1792         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
1793         (WebCore::JSTestEventTargetConstructor::initializeProperties):
1794         * bindings/scripts/test/JS/JSTestException.cpp:
1795         (WebCore::JSTestExceptionConstructor::initializeProperties):
1796         * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
1797         (WebCore::JSTestGenerateIsReachableConstructor::initializeProperties):
1798         * bindings/scripts/test/JS/JSTestGlobalObject.cpp:
1799         (WebCore::JSTestGlobalObjectConstructor::initializeProperties):
1800         * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp:
1801         (WebCore::JSTestIndexedSetterNoIdentifierConstructor::initializeProperties):
1802         * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp:
1803         (WebCore::JSTestIndexedSetterThrowingExceptionConstructor::initializeProperties):
1804         * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp:
1805         (WebCore::JSTestIndexedSetterWithIdentifierConstructor::initializeProperties):
1806         * bindings/scripts/test/JS/JSTestInterface.cpp:
1807         (WebCore::JSTestInterfaceConstructor::construct):
1808         (WebCore::JSTestInterfaceConstructor::initializeProperties):
1809         * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp:
1810         (WebCore::JSTestInterfaceLeadingUnderscoreConstructor::initializeProperties):
1811         * bindings/scripts/test/JS/JSTestIterable.cpp:
1812         (WebCore::JSTestIterableConstructor::initializeProperties):
1813         * bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
1814         (WebCore::JSTestJSBuiltinConstructorConstructor::initializeProperties):
1815         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
1816         (WebCore::JSTestMediaQueryListListenerConstructor::initializeProperties):
1817         * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp:
1818         (WebCore::JSTestNamedAndIndexedSetterNoIdentifierConstructor::initializeProperties):
1819         * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp:
1820         (WebCore::JSTestNamedAndIndexedSetterThrowingExceptionConstructor::initializeProperties):
1821         * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp:
1822         (WebCore::JSTestNamedAndIndexedSetterWithIdentifierConstructor::initializeProperties):
1823         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
1824         (WebCore::JSTestNamedConstructorConstructor::initializeProperties):
1825         (WebCore::JSTestNamedConstructorNamedConstructor::construct):
1826         (WebCore::JSTestNamedConstructorNamedConstructor::initializeProperties):
1827         * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp:
1828         (WebCore::JSTestNamedDeleterNoIdentifierConstructor::initializeProperties):
1829         * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp:
1830         (WebCore::JSTestNamedDeleterThrowingExceptionConstructor::initializeProperties):
1831         * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp:
1832         (WebCore::JSTestNamedDeleterWithIdentifierConstructor::initializeProperties):
1833         * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp:
1834         (WebCore::JSTestNamedDeleterWithIndexedGetterConstructor::initializeProperties):
1835         * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp:
1836         (WebCore::JSTestNamedGetterCallWithConstructor::initializeProperties):
1837         * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp:
1838         (WebCore::JSTestNamedGetterNoIdentifierConstructor::initializeProperties):
1839         * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp:
1840         (WebCore::JSTestNamedGetterWithIdentifierConstructor::initializeProperties):
1841         * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp:
1842         (WebCore::JSTestNamedSetterNoIdentifierConstructor::initializeProperties):
1843         * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp:
1844         (WebCore::JSTestNamedSetterThrowingExceptionConstructor::initializeProperties):
1845         * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp:
1846         (WebCore::JSTestNamedSetterWithIdentifierConstructor::initializeProperties):
1847         * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp:
1848         (WebCore::JSTestNamedSetterWithIndexedGetterConstructor::initializeProperties):
1849         * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp:
1850         (WebCore::JSTestNamedSetterWithIndexedGetterAndSetterConstructor::initializeProperties):
1851         * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp:
1852         (WebCore::JSTestNamedSetterWithOverrideBuiltinsConstructor::initializeProperties):
1853         * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp:
1854         (WebCore::JSTestNamedSetterWithUnforgablePropertiesConstructor::initializeProperties):
1855         * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp:
1856         (WebCore::JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltinsConstructor::initializeProperties):
1857         * bindings/scripts/test/JS/JSTestNode.cpp:
1858         (WebCore::JSTestNodeConstructor::initializeProperties):
1859         * bindings/scripts/test/JS/JSTestObj.cpp:
1860         (WebCore::convertDictionary<TestObj::Dictionary>):
1861         (WebCore::JSTestObjConstructor::initializeProperties):
1862         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringAndDefaultValueBody):
1863         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
1864         (WebCore::JSTestOverloadedConstructorsConstructor::initializeProperties):
1865         * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp:
1866         (WebCore::JSTestOverloadedConstructorsWithSequenceConstructor::initializeProperties):
1867         * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
1868         (WebCore::JSTestOverrideBuiltinsConstructor::initializeProperties):
1869         * bindings/scripts/test/JS/JSTestPluginInterface.cpp:
1870         (WebCore::JSTestPluginInterfaceConstructor::initializeProperties):
1871         * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp:
1872         (WebCore::JSTestPromiseRejectionEventConstructor::initializeProperties):
1873         * bindings/scripts/test/JS/JSTestSerialization.cpp:
1874         (WebCore::JSTestSerializationConstructor::initializeProperties):
1875         * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp:
1876         (WebCore::JSTestSerializationIndirectInheritanceConstructor::initializeProperties):
1877         * bindings/scripts/test/JS/JSTestSerializationInherit.cpp:
1878         (WebCore::JSTestSerializationInheritConstructor::initializeProperties):
1879         * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp:
1880         (WebCore::JSTestSerializationInheritFinalConstructor::initializeProperties):
1881         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
1882         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::initializeProperties):
1883         * bindings/scripts/test/JS/JSTestStringifier.cpp:
1884         (WebCore::JSTestStringifierConstructor::initializeProperties):
1885         * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp:
1886         (WebCore::JSTestStringifierAnonymousOperationConstructor::initializeProperties):
1887         * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp:
1888         (WebCore::JSTestStringifierNamedOperationConstructor::initializeProperties):
1889         * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp:
1890         (WebCore::JSTestStringifierOperationImplementedAsConstructor::initializeProperties):
1891         * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp:
1892         (WebCore::JSTestStringifierOperationNamedToStringConstructor::initializeProperties):
1893         * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp:
1894         (WebCore::JSTestStringifierReadOnlyAttributeConstructor::initializeProperties):
1895         * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp:
1896         (WebCore::JSTestStringifierReadWriteAttributeConstructor::initializeProperties):
1897         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
1898         (WebCore::JSTestTypedefsConstructor::initializeProperties):
1899         * bridge/c/c_instance.cpp:
1900         (JSC::Bindings::CInstance::invokeMethod):
1901         (JSC::Bindings::CInstance::invokeDefaultMethod):
1902         (JSC::Bindings::CInstance::invokeConstruct):
1903         (JSC::Bindings::CInstance::stringValue const):
1904         (JSC::Bindings::CInstance::toJSPrimitive const):
1905         * bridge/objc/objc_instance.mm:
1906         (ObjcInstance::invokeMethod):
1907         * bridge/objc/objc_runtime.mm:
1908         (JSC::Bindings::ObjcArray::setValueAt const):
1909         * contentextensions/ContentExtensionsBackend.cpp:
1910         (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad):
1911         * crypto/SubtleCrypto.cpp:
1912         (WebCore::rejectWithException):
1913         (WebCore::SubtleCrypto::encrypt):
1914         (WebCore::SubtleCrypto::decrypt):
1915         (WebCore::SubtleCrypto::sign):
1916         (WebCore::SubtleCrypto::verify):
1917         (WebCore::SubtleCrypto::deriveKey):
1918         (WebCore::SubtleCrypto::deriveBits):
1919         (WebCore::SubtleCrypto::exportKey):
1920         (WebCore::SubtleCrypto::wrapKey):
1921         (WebCore::SubtleCrypto::unwrapKey):
1922         * crypto/keys/CryptoKeyEC.cpp:
1923         (WebCore::CryptoKeyEC::algorithm const):
1924         * css/CSSInheritedValue.cpp:
1925         (WebCore::CSSInheritedValue::customCSSText const):
1926         * css/CSSInitialValue.cpp:
1927         (WebCore::CSSInitialValue::customCSSText const):
1928         * css/CSSKeyframesRule.cpp:
1929         (WebCore::CSSKeyframesRule::insertRule):
1930         * css/CSSRevertValue.cpp:
1931         (WebCore::CSSRevertValue::customCSSText const):
1932         * css/CSSStyleSheet.h:
1933         * css/CSSUnsetValue.cpp:
1934         (WebCore::CSSUnsetValue::customCSSText const):
1935         * css/CSSValueList.cpp:
1936         (WebCore::CSSValueList::customCSSText const):
1937         * css/DOMMatrixReadOnly.cpp:
1938         (WebCore::DOMMatrixReadOnly::validateAndFixup):
1939         (WebCore::DOMMatrixReadOnly::toFloat32Array const):
1940         (WebCore::DOMMatrixReadOnly::toFloat64Array const):
1941         (WebCore::DOMMatrixReadOnly::toString const):
1942         * css/DeprecatedCSSOMValueList.cpp:
1943         (WebCore::DeprecatedCSSOMValueList::cssText const):
1944         * css/FontFace.cpp:
1945         (WebCore::FontFace::create):
1946         (WebCore::FontFace::unicodeRange const):
1947         (WebCore::FontFace::featureSettings const):
1948         * css/MediaQuery.cpp:
1949         (WebCore::MediaQuery::serialize const):
1950         * css/PropertySetCSSStyleDeclaration.cpp:
1951         (WebCore::PropertySetCSSStyleDeclaration::getPropertyPriority):
1952         * css/WebKitCSSMatrix.cpp:
1953         (WebCore::WebKitCSSMatrix::toString const):
1954         * css/parser/MediaQueryParser.cpp:
1955         (WebCore::MediaQueryParser::commitMediaQuery):
1956         * dom/CDATASection.cpp:
1957         (WebCore::CDATASection::nodeName const):
1958         * dom/Comment.cpp:
1959         (WebCore::Comment::nodeName const):
1960         * dom/DOMException.cpp:
1961         (WebCore::DOMException::description const):
1962         (WebCore::DOMException::create):
1963         * dom/DOMException.h:
1964         (WebCore::DOMException::name):
1965         (WebCore::DOMException::message):
1966         * dom/DOMImplementation.cpp:
1967         (WebCore::DOMImplementation::createHTMLDocument):
1968         * dom/DataTransfer.cpp:
1969         (WebCore::DataTransfer::DataTransfer):
1970         (WebCore::DataTransfer::types const):
1971         (WebCore::DataTransfer::createForInputEvent):
1972         (WebCore::DataTransfer::dropEffect const):
1973         (WebCore::DataTransfer::effectAllowed const):
1974         * dom/DataTransferItem.cpp:
1975         (WebCore::DataTransferItem::kind const):
1976         * dom/Document.cpp:
1977         (WebCore::Document::suggestedMIMEType const):
1978         (WebCore::Document::contentType const):
1979         (WebCore::Document::nodeName const):
1980         (WebCore::Document::writeln):
1981         (WebCore::Document::canNavigate):
1982         (WebCore::Document::designMode const):
1983         (WebCore::Document::requestFullScreenForElement):
1984         * dom/DocumentFragment.cpp:
1985         (WebCore::DocumentFragment::nodeName const):
1986         * dom/InlineStyleSheetOwner.cpp:
1987         (WebCore::InlineStyleSheetOwner::createSheet):
1988         * dom/MouseEvent.cpp:
1989         (WebCore::MouseEvent::initMouseEventQuirk):
1990         * dom/ScriptElement.cpp:
1991         (WebCore::ScriptElement::requestModuleScript):
1992         * dom/ScriptElementCachedScriptFetcher.cpp:
1993         (WebCore::ScriptElementCachedScriptFetcher::requestModuleScript const):
1994         * dom/ScriptExecutionContext.cpp:
1995         (WebCore::ScriptExecutionContext::dispatchErrorEvent):
1996         * dom/ScriptedAnimationController.cpp:
1997         (WebCore::throttlingReasonsToString):
1998         * dom/Text.cpp:
1999         (WebCore::Text::nodeName const):
2000         * dom/TextEncoder.cpp:
2001         (WebCore::TextEncoder::encoding const):
2002         * dom/Traversal.cpp:
2003         (WebCore::NodeIteratorBase::acceptNode):
2004         * editing/EditCommand.cpp:
2005         (WebCore::inputTypeNameForEditingAction):
2006         * editing/Editing.cpp:
2007         (WebCore::createTabSpanElement):
2008         * editing/Editor.cpp:
2009         (WebCore::createDataTransferForClipboardEvent):
2010         * editing/EditorCommand.cpp:
2011         (WebCore::executeInsertBacktab):
2012         (WebCore::executeInsertLineBreak):
2013         (WebCore::executeInsertNewline):
2014         (WebCore::executeInsertTab):
2015         (WebCore::executeJustifyCenter):
2016         (WebCore::executeJustifyFull):
2017         (WebCore::executeJustifyLeft):
2018         (WebCore::executeJustifyRight):
2019         (WebCore::executeStrikethrough):
2020         (WebCore::executeSubscript):
2021         (WebCore::executeSuperscript):
2022         (WebCore::executeToggleBold):
2023         (WebCore::executeToggleItalic):
2024         (WebCore::executeUnderline):
2025         (WebCore::executeUnscript):
2026         (WebCore::stateBold):
2027         (WebCore::stateItalic):
2028         (WebCore::stateStrikethrough):
2029         (WebCore::stateSubscript):
2030         (WebCore::stateSuperscript):
2031         (WebCore::stateUnderline):
2032         (WebCore::stateJustifyCenter):
2033         (WebCore::stateJustifyFull):
2034         (WebCore::stateJustifyLeft):
2035         (WebCore::stateJustifyRight):
2036         (WebCore::Editor::Command::value const):
2037         * editing/SmartReplace.cpp:
2038         (WebCore::getSmartSet):
2039         * fileapi/FileCocoa.mm:
2040         (WebCore::File::computeNameAndContentTypeForReplacedFile):
2041         * html/BaseCheckableInputType.cpp:
2042         (WebCore::BaseCheckableInputType::saveFormControlState const):
2043         * html/BaseChooserOnlyDateAndTimeInputType.cpp:
2044         (WebCore::BaseChooserOnlyDateAndTimeInputType::updateInnerTextValue):
2045         * html/ColorInputType.cpp:
2046         (WebCore::ColorInputType::fallbackValue const):
2047         * html/DOMFormData.cpp:
2048         (WebCore::DOMFormData::createFileEntry):
2049         * html/FTPDirectoryDocument.cpp:
2050         (WebCore::processFilesizeString):
2051         (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
2052         * html/HTMLAnchorElement.cpp:
2053         (WebCore::HTMLAnchorElement::relList const):
2054         (WebCore::HTMLAnchorElement::isSystemPreviewLink const):
2055         * html/HTMLAppletElement.cpp:
2056         (WebCore::HTMLAppletElement::HTMLAppletElement):
2057         (WebCore::HTMLAppletElement::updateWidget):
2058         * html/HTMLCanvasElement.cpp:
2059         (WebCore::toEncodingMimeType):
2060         (WebCore::HTMLCanvasElement::toDataURL):
2061         (WebCore::HTMLCanvasElement::captureStream):
2062         * html/HTMLElement.cpp:
2063         (WebCore::HTMLElement::contentEditable const):
2064         * html/HTMLFormControlElement.cpp:
2065         (WebCore::shouldAutofocus):
2066         * html/HTMLHtmlElement.cpp:
2067         (WebCore::HTMLHtmlElement::insertedByParser):
2068         * html/HTMLKeygenElement.cpp:
2069         (WebCore::HTMLKeygenElement::keytype const):
2070         * html/HTMLMediaElement.cpp:
2071         (WebCore::HTMLMediaElement::canPlayType const):
2072         (WebCore::stringForNetworkState):
2073         (WebCore::HTMLMediaElement::preload const):
2074         (WebCore::HTMLMediaElement::ensureMediaControlsInjectedScript):
2075         * html/HTMLObjectElement.cpp:
2076         (WebCore::mapDataParamToSrc):
2077         * html/HTMLPlugInElement.cpp:
2078         (WebCore::HTMLPlugInElement::setReplacement):
2079         * html/ImageData.cpp:
2080         (WebCore::ImageData::create):
2081         * html/ImageDocument.cpp:
2082         (WebCore::ImageDocument::createDocumentStructure):
2083         * html/ImageInputType.cpp:
2084         (WebCore::ImageInputType::appendFormData const):
2085         * html/PluginDocument.cpp:
2086         (WebCore::PluginDocumentParser::createDocumentStructure):
2087         * html/canvas/WebGL2RenderingContext.cpp:
2088         (WebCore::WebGL2RenderingContext::getExtension):
2089         (WebCore::WebGL2RenderingContext::getSupportedExtensions):
2090         (WebCore::WebGL2RenderingContext::getParameter):
2091         * html/canvas/WebGLCompressedTextureASTC.cpp:
2092         (WebCore::WebGLCompressedTextureASTC::WebGLCompressedTextureASTC):
2093         (WebCore::WebGLCompressedTextureASTC::getSupportedProfiles):
2094         (WebCore::WebGLCompressedTextureASTC::supported):
2095         (WebCore::m_isLDRSupported): Deleted.
2096         * html/canvas/WebGLRenderingContext.cpp:
2097         (WebCore::WebGLRenderingContext::getExtension):
2098         (WebCore::WebGLRenderingContext::getSupportedExtensions):
2099         (WebCore::WebGLRenderingContext::getParameter):
2100         * html/canvas/WebGLRenderingContextBase.cpp:
2101         (WebCore::WebGLRenderingContextBase::create):
2102         (WebCore::WebGLRenderingContextBase::enableSupportedExtension):
2103         * html/canvas/WebGLRenderingContextBase.h:
2104         * html/canvas/WebGPUEnums.cpp:
2105         (WebCore::web3DCompareFunctionName):
2106         * html/parser/HTMLParserIdioms.cpp:
2107         (WebCore::parseCORSSettingsAttribute):
2108         * html/parser/HTMLPreloadScanner.cpp:
2109         (WebCore::TokenPreloadScanner::initiatorFor):
2110         * html/parser/HTMLResourcePreloader.cpp:
2111         (WebCore::PreloadRequest::resourceRequest):
2112         * html/parser/HTMLTreeBuilder.cpp:
2113         (WebCore::HTMLTreeBuilder::insertPhoneNumberLink):
2114         * html/track/DataCue.cpp:
2115         (WebCore::DataCue::toJSONString const):
2116         * html/track/InbandGenericTextTrack.cpp:
2117         (WebCore::InbandGenericTextTrack::updateCueFromCueData):
2118         * html/track/TextTrackCue.cpp:
2119         (WebCore::TextTrackCue::toJSON const):
2120         * html/track/TextTrackCueGeneric.cpp:
2121         (WebCore::TextTrackCueGeneric::toJSONString const):
2122         * html/track/TrackBase.cpp:
2123         (WebCore::TrackBase::setLanguage):
2124         * html/track/VTTCue.cpp:
2125         (WebCore::VTTCue::toJSON const):
2126         * inspector/CommandLineAPIModule.cpp:
2127         (WebCore::CommandLineAPIModule::CommandLineAPIModule):
2128         * inspector/InspectorCanvas.cpp:
2129         (WebCore::InspectorCanvas::getCanvasContentAsDataURL):
2130         (WebCore::InspectorCanvas::indexForData):
2131         (WebCore::InspectorCanvas::buildInitialState):
2132         (WebCore::InspectorCanvas::buildArrayForCanvasGradient):
2133         (WebCore::InspectorCanvas::buildArrayForCanvasPattern):
2134         * inspector/InspectorFrontendClient.h:
2135         (WebCore::InspectorFrontendClient::debuggableType):
2136         * inspector/InspectorFrontendClientLocal.cpp:
2137         (WebCore::InspectorFrontendClientLocal::openInNewTab):
2138         * inspector/InspectorFrontendHost.cpp:
2139         (WebCore::InspectorFrontendHost::userInterfaceLayoutDirection):
2140         (WebCore::InspectorFrontendHost::platform):
2141         (WebCore::InspectorFrontendHost::port):
2142         * inspector/InspectorOverlay.cpp:
2143         (WebCore::InspectorOverlay::setIndicating):
2144         (WebCore::InspectorOverlay::drawPaintRects):
2145         (WebCore::InspectorOverlay::drawRulers):
2146         (WebCore::appendPathSegment):
2147         * inspector/InspectorStyleSheet.h:
2148         (WebCore::InspectorCSSId::InspectorCSSId):
2149         * inspector/TimelineRecordFactory.cpp:
2150         (WebCore::TimelineRecordFactory::createGenericRecord):
2151         (WebCore::TimelineRecordFactory::createFunctionCallData):
2152         (WebCore::TimelineRecordFactory::createConsoleProfileData):
2153         (WebCore::TimelineRecordFactory::createProbeSampleData):
2154         (WebCore::TimelineRecordFactory::createEventDispatchData):
2155         (WebCore::TimelineRecordFactory::createGenericTimerData):
2156         (WebCore::TimelineRecordFactory::createTimerInstallData):
2157         (WebCore::TimelineRecordFactory::createEvaluateScriptData):
2158         (WebCore::TimelineRecordFactory::createTimeStampData):
2159         (WebCore::TimelineRecordFactory::createAnimationFrameData):
2160         (WebCore::TimelineRecordFactory::createPaintData):
2161         (WebCore::TimelineRecordFactory::appendLayoutRoot):
2162         * inspector/WebInjectedScriptHost.cpp:
2163         (WebCore::WebInjectedScriptHost::subtype):
2164         (WebCore::jsStringForPaymentRequestState):
2165         (WebCore::WebInjectedScriptHost::getInternalProperties):
2166         * inspector/agents/InspectorApplicationCacheAgent.cpp:
2167         (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
2168         * inspector/agents/InspectorCSSAgent.cpp:
2169         (WebCore::InspectorCSSAgent::InspectorCSSAgent):
2170         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
2171         (WebCore::InspectorCSSAgent::createStyleSheet):
2172         (WebCore::InspectorCSSAgent::addRule):
2173         (WebCore::InspectorCSSAgent::elementForId):
2174         (WebCore::InspectorCSSAgent::assertStyleSheetForId):
2175         * inspector/agents/InspectorCanvasAgent.cpp:
2176         (WebCore::InspectorCanvasAgent::InspectorCanvasAgent):
2177         (WebCore::InspectorCanvasAgent::requestNode):
2178         (WebCore::InspectorCanvasAgent::requestContent):
2179         (WebCore::InspectorCanvasAgent::resolveCanvasContext):
2180         (WebCore::InspectorCanvasAgent::startRecording):
2181         (WebCore::InspectorCanvasAgent::stopRecording):
2182         (WebCore::InspectorCanvasAgent::requestShaderSource):
2183         (WebCore::InspectorCanvasAgent::updateShader):
2184         (WebCore::InspectorCanvasAgent::setShaderProgramDisabled):
2185         (WebCore::InspectorCanvasAgent::setShaderProgramHighlighted):
2186         (WebCore::InspectorCanvasAgent::assertInspectorCanvas):
2187         (WebCore::InspectorCanvasAgent::assertInspectorProgram):
2188         * inspector/agents/InspectorDOMAgent.cpp:
2189         (WebCore::InspectorDOMAgent::InspectorDOMAgent):
2190         (WebCore::InspectorDOMAgent::assertNode):
2191         (WebCore::InspectorDOMAgent::assertDocument):
2192         (WebCore::InspectorDOMAgent::assertElement):
2193         (WebCore::InspectorDOMAgent::assertEditableNode):
2194         (WebCore::InspectorDOMAgent::assertEditableElement):
2195         (WebCore::InspectorDOMAgent::getDocument):
2196         (WebCore::InspectorDOMAgent::pushNodeToFrontend):
2197         (WebCore::InspectorDOMAgent::requestChildNodes):
2198         (WebCore::InspectorDOMAgent::querySelector):
2199         (WebCore::InspectorDOMAgent::querySelectorAll):
2200         (WebCore::InspectorDOMAgent::releaseBackendNodeIds):
2201         (WebCore::InspectorDOMAgent::setAttributesAsText):
2202         (WebCore::InspectorDOMAgent::removeNode):
2203         (WebCore::InspectorDOMAgent::setOuterHTML):
2204         (WebCore::InspectorDOMAgent::insertAdjacentHTML):
2205         (WebCore::InspectorDOMAgent::setNodeValue):
2206         (WebCore::InspectorDOMAgent::setEventListenerDisabled):
2207         (WebCore::InspectorDOMAgent::performSearch):
2208         (WebCore::InspectorDOMAgent::getSearchResults):
2209         (WebCore::InspectorDOMAgent::highlightConfigFromInspectorObject):
2210         (WebCore::InspectorDOMAgent::highlightQuad):
2211         (WebCore::InspectorDOMAgent::highlightSelector):
2212         (WebCore::InspectorDOMAgent::highlightNode):
2213         (WebCore::InspectorDOMAgent::highlightNodeList):
2214         (WebCore::InspectorDOMAgent::moveTo):
2215         (WebCore::InspectorDOMAgent::focus):
2216         (WebCore::InspectorDOMAgent::setInspectedNode):
2217         (WebCore::InspectorDOMAgent::resolveNode):
2218         (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend):
2219         (WebCore::InspectorDOMAgent::pushNodeByBackendIdToFrontend):
2220         * inspector/agents/InspectorDOMDebuggerAgent.cpp:
2221         (WebCore::InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent):
2222         (WebCore::InspectorDOMDebuggerAgent::setBreakpoint):
2223         (WebCore::InspectorDOMDebuggerAgent::removeBreakpoint):
2224         (WebCore::domTypeName):
2225         (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded):
2226         * inspector/agents/InspectorDOMStorageAgent.cpp:
2227         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
2228         (WebCore::InspectorDOMStorageAgent::getDOMStorageItems):
2229         (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
2230         (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
2231         (WebCore::InspectorDOMStorageAgent::findStorageArea):
2232         * inspector/agents/InspectorDatabaseAgent.cpp:
2233         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
2234         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
2235         * inspector/agents/InspectorIndexedDBAgent.cpp:
2236         (WebCore::Inspector::idbKeyRangeFromKeyRange):
2237         (WebCore::InspectorIndexedDBAgent::InspectorIndexedDBAgent):
2238         (WebCore::InspectorIndexedDBAgent::requestData):
2239         * inspector/agents/InspectorLayerTreeAgent.cpp:
2240         (WebCore::InspectorLayerTreeAgent::InspectorLayerTreeAgent):
2241         (WebCore::InspectorLayerTreeAgent::layersForNode):
2242         (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
2243         * inspector/agents/InspectorMemoryAgent.cpp:
2244         (WebCore::InspectorMemoryAgent::InspectorMemoryAgent):
2245         * inspector/agents/InspectorNetworkAgent.cpp:
2246         (WebCore::InspectorNetworkAgent::InspectorNetworkAgent):
2247         (WebCore::InspectorNetworkAgent::getResponseBody):
2248         (WebCore::InspectorNetworkAgent::loadResource):
2249         (WebCore::InspectorNetworkAgent::resolveWebSocket):
2250         (WebCore::InspectorNetworkAgent::createTextDecoder):
2251         (WebCore::InspectorNetworkAgent::searchInRequest):
2252         * inspector/agents/InspectorPageAgent.cpp:
2253         (WebCore::InspectorPageAgent::resourceContent):
2254         (WebCore::InspectorPageAgent::InspectorPageAgent):
2255         (WebCore::InspectorPageAgent::navigate):
2256         (WebCore::InspectorPageAgent::assertFrame):
2257         (WebCore::InspectorPageAgent::assertDocumentLoader):
2258         (WebCore::InspectorPageAgent::snapshotNode):
2259         (WebCore::InspectorPageAgent::snapshotRect):
2260         (WebCore::InspectorPageAgent::archive):
2261         * inspector/agents/InspectorTimelineAgent.cpp:
2262         (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
2263         (WebCore::InspectorTimelineAgent::setInstruments):
2264         (WebCore::InspectorTimelineAgent::startFromConsole):
2265         (WebCore::InspectorTimelineAgent::stopFromConsole):
2266         (WebCore::InspectorTimelineAgent::didCompleteRecordEntry):
2267         * inspector/agents/InspectorWorkerAgent.cpp:
2268         (WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
2269         (WebCore::InspectorWorkerAgent::initialized):
2270         (WebCore::InspectorWorkerAgent::sendMessageToWorker):
2271         * inspector/agents/WebConsoleAgent.cpp:
2272         (WebCore::WebConsoleAgent::setLoggingChannelLevel):
2273         * inspector/agents/page/PageDebuggerAgent.cpp:
2274         (WebCore::PageDebuggerAgent::injectedScriptForEval):
2275         * inspector/agents/page/PageNetworkAgent.cpp:
2276         (WebCore::PageNetworkAgent::scriptExecutionContext):
2277         * inspector/agents/page/PageRuntimeAgent.cpp:
2278         (WebCore::PageRuntimeAgent::injectedScriptForEval):
2279         * inspector/agents/worker/ServiceWorkerAgent.cpp:
2280         (WebCore::ServiceWorkerAgent::ServiceWorkerAgent):
2281         * inspector/agents/worker/WorkerDebuggerAgent.cpp:
2282         (WebCore::WorkerDebuggerAgent::injectedScriptForEval):
2283         * inspector/agents/worker/WorkerRuntimeAgent.cpp:
2284         (WebCore::WorkerRuntimeAgent::injectedScriptForEval):
2285         * loader/ContentFilter.cpp:
2286         (WebCore::ContentFilter::handleProvisionalLoadFailure):
2287         * loader/CrossOriginAccessControl.cpp:
2288         (WebCore::passesAccessControlCheck):
2289         (WebCore::validatePreflightResponse):
2290         * loader/CrossOriginPreflightChecker.cpp:
2291         (WebCore::CrossOriginPreflightChecker::notifyFinished):
2292         (WebCore::CrossOriginPreflightChecker::doPreflight):
2293         * loader/DocumentLoader.cpp:
2294         (WebCore::isRemoteWebArchive):
2295         (WebCore::DocumentLoader::startIconLoading):
2296         * loader/DocumentThreadableLoader.cpp:
2297         (WebCore::DocumentThreadableLoader::reportRedirectionWithBadScheme):
2298         (WebCore::DocumentThreadableLoader::reportContentSecurityPolicyError):
2299         (WebCore::DocumentThreadableLoader::reportCrossOriginResourceSharingError):
2300         (WebCore::DocumentThreadableLoader::reportIntegrityMetadataError):
2301         * loader/FormSubmission.cpp:
2302         (WebCore::FormSubmission::Attributes::parseEncodingType):
2303         * loader/FormSubmission.h:
2304         (WebCore::FormSubmission::Attributes::methodString):
2305         * loader/FrameLoader.cpp:
2306         (WebCore::FrameLoader::initForSynthesizedDocument):
2307         (WebCore::FrameLoader::loadURLIntoChildFrame):
2308         (WebCore::FrameLoader::defaultSubstituteDataForURL):
2309         (WebCore::FrameLoader::addHTTPUpgradeInsecureRequestsIfNeeded):
2310         (WebCore::FrameLoader::dispatchBeforeUnloadEvent):
2311         * loader/LinkLoader.cpp:
2312         (WebCore::LinkLoader::preconnectIfNeeded):
2313         * loader/NavigationScheduler.cpp:
2314         (WebCore::NavigationScheduler::scheduleLocationChange):
2315         * loader/PingLoader.cpp:
2316         (WebCore::PingLoader::sendViolationReport):
2317         * loader/ResourceLoadStatistics.cpp:
2318         (WebCore::ResourceLoadStatistics::primaryDomain):
2319         (WebCore::ResourceLoadStatistics::areDomainsAssociated):
2320         * loader/ResourceLoader.cpp:
2321         (WebCore::ResourceLoader::loadDataURL):
2322         (WebCore::ResourceLoader::didBlockAuthenticationChallenge):
2323         * loader/SubresourceLoader.cpp:
2324         (WebCore::SubresourceLoader::willSendRequestInternal):
2325         (WebCore::SubresourceLoader::checkRedirectionCrossOriginAccessControl):
2326         * loader/ThreadableLoader.cpp:
2327         (WebCore::ThreadableLoader::logError):
2328         * loader/appcache/ApplicationCacheGroup.cpp:
2329         (WebCore::ApplicationCacheGroup::abort):
2330         (WebCore::ApplicationCacheGroup::didFinishLoadingEntry):
2331         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
2332         (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
2333         * loader/appcache/ApplicationCacheHost.cpp:
2334         (WebCore::ApplicationCacheHost::createFileURL):
2335         * loader/appcache/ManifestParser.cpp:
2336         (WebCore::parseManifest):
2337         * loader/archive/ArchiveFactory.cpp:
2338         (WebCore::createArchiveMIMETypesMap):
2339         * loader/cache/CachedResource.cpp:
2340         (WebCore::CachedResource::load):
2341         * loader/cache/CachedResourceLoader.cpp:
2342         (WebCore::CachedResourceLoader::canRequest):
2343         (WebCore::CachedResourceLoader::requestResource):
2344         * loader/cache/CachedResourceRequest.cpp:
2345         (WebCore::acceptHeaderValueFromType):
2346         (WebCore::CachedResourceRequest::updateAcceptEncodingHeader):
2347         * loader/cache/CachedScript.cpp:
2348         (WebCore::CachedScript::CachedScript):
2349         * loader/cache/MemoryCache.cpp:
2350         (WebCore::MemoryCache::getOriginsWithCache):
2351         * loader/soup/ResourceLoaderSoup.cpp:
2352         (WebCore::ResourceLoader::loadGResource):
2353         * page/DOMSelection.cpp:
2354         (WebCore::DOMSelection::type const):
2355         * page/DOMWindow.cpp:
2356         (WebCore::DOMWindow::close):
2357         (WebCore::DOMWindow::addEventListener):
2358         (WebCore::DOMWindow::createWindow):
2359         * page/DebugPageOverlays.cpp:
2360         (WebCore::touchEventRegionColors):
2361         * page/DiagnosticLoggingKeys.cpp:
2362         (WebCore::DiagnosticLoggingKeys::mediaLoadedKey):
2363         (WebCore::DiagnosticLoggingKeys::mediaLoadingFailedKey):
2364         (WebCore::DiagnosticLoggingKeys::memoryCacheEntryDecisionKey):
2365         (WebCore::DiagnosticLoggingKeys::memoryCacheUsageKey):
2366         (WebCore::DiagnosticLoggingKeys::missingValidatorFieldsKey):
2367         (WebCore::DiagnosticLoggingKeys::pluginLoadedKey):
2368         (WebCore::DiagnosticLoggingKeys::pluginLoadingFailedKey):
2369         (WebCore::DiagnosticLoggingKeys::postPageBackgroundingCPUUsageKey):
2370         (WebCore::DiagnosticLoggingKeys::postPageBackgroundingMemoryUsageKey):
2371         (WebCore::DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey):
2372         (WebCore::DiagnosticLoggingKeys::postPageLoadCPUUsageKey):
2373         (WebCore::DiagnosticLoggingKeys::postPageLoadMemoryUsageKey):
2374         (WebCore::DiagnosticLoggingKeys::provisionalLoadKey):
2375         (WebCore::DiagnosticLoggingKeys::pageContainsPluginKey):
2376         (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey):
2377         (WebCore::DiagnosticLoggingKeys::pageContainsMediaEngineKey):
2378         (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOneMediaEngineKey):
2379         (WebCore::DiagnosticLoggingKeys::pageLoadedKey):
2380         (WebCore::DiagnosticLoggingKeys::playedKey):
2381         (WebCore::DiagnosticLoggingKeys::engineFailedToLoadKey):
2382         (WebCore::DiagnosticLoggingKeys::entryRightlyNotWarmedUpKey):
2383         (WebCore::DiagnosticLoggingKeys::entryWronglyNotWarmedUpKey):
2384         (WebCore::DiagnosticLoggingKeys::navigationKey):
2385         (WebCore::DiagnosticLoggingKeys::needsRevalidationKey):
2386         (WebCore::DiagnosticLoggingKeys::networkCacheKey):
2387         (WebCore::DiagnosticLoggingKeys::networkCacheFailureReasonKey):
2388         (WebCore::DiagnosticLoggingKeys::networkCacheUnusedReasonKey):
2389         (WebCore::DiagnosticLoggingKeys::networkCacheReuseFailureKey):
2390         (WebCore::DiagnosticLoggingKeys::networkKey):
2391         (WebCore::DiagnosticLoggingKeys::networkProcessCrashedKey):
2392         (WebCore::DiagnosticLoggingKeys::neverSeenBeforeKey):
2393         (WebCore::DiagnosticLoggingKeys::noKey):
2394         (WebCore::DiagnosticLoggingKeys::noCacheKey):
2395         (WebCore::DiagnosticLoggingKeys::noStoreKey):
2396         (WebCore::DiagnosticLoggingKeys::nonVisibleStateKey):
2397         (WebCore::DiagnosticLoggingKeys::notInMemoryCacheKey):
2398         (WebCore::DiagnosticLoggingKeys::pageCacheKey):
2399         (WebCore::DiagnosticLoggingKeys::pageCacheFailureKey):
2400         (WebCore::DiagnosticLoggingKeys::noDocumentLoaderKey):
2401         (WebCore::DiagnosticLoggingKeys::noLongerInCacheKey):
2402         (WebCore::DiagnosticLoggingKeys::otherKey):
2403         (WebCore::DiagnosticLoggingKeys::mainDocumentErrorKey):
2404         (WebCore::DiagnosticLoggingKeys::mainResourceKey):
2405         (WebCore::DiagnosticLoggingKeys::isErrorPageKey):
2406         (WebCore::DiagnosticLoggingKeys::isExpiredKey):
2407         (WebCore::DiagnosticLoggingKeys::isReloadIgnoringCacheDataKey):
2408         (WebCore::DiagnosticLoggingKeys::loadingKey):
2409         (WebCore::DiagnosticLoggingKeys::hasPluginsKey):
2410         (WebCore::DiagnosticLoggingKeys::httpsNoStoreKey):
2411         (WebCore::DiagnosticLoggingKeys::imageKey):
2412         (WebCore::DiagnosticLoggingKeys::inMemoryCacheKey):
2413         (WebCore::DiagnosticLoggingKeys::inactiveKey):
2414         (WebCore::DiagnosticLoggingKeys::internalErrorKey):
2415         (WebCore::DiagnosticLoggingKeys::invalidSessionIDKey):
2416         (WebCore::DiagnosticLoggingKeys::isAttachmentKey):
2417         (WebCore::DiagnosticLoggingKeys::isConditionalRequestKey):
2418         (WebCore::DiagnosticLoggingKeys::isDisabledKey):
2419         (WebCore::DiagnosticLoggingKeys::noCurrentHistoryItemKey):
2420         (WebCore::DiagnosticLoggingKeys::quirkRedirectComingKey):
2421         (WebCore::DiagnosticLoggingKeys::rawKey):
2422         (WebCore::DiagnosticLoggingKeys::redirectKey):
2423         (WebCore::DiagnosticLoggingKeys::isLoadingKey):
2424         (WebCore::DiagnosticLoggingKeys::documentLoaderStoppingKey):
2425         (WebCore::DiagnosticLoggingKeys::domainCausingCrashKey):
2426         (WebCore::DiagnosticLoggingKeys::domainCausingEnergyDrainKey):
2427         (WebCore::DiagnosticLoggingKeys::domainCausingJetsamKey):
2428         (WebCore::DiagnosticLoggingKeys::simulatedPageCrashKey):
2429         (WebCore::DiagnosticLoggingKeys::exceededActiveMemoryLimitKey):
2430         (WebCore::DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey):
2431         (WebCore::DiagnosticLoggingKeys::exceededBackgroundCPULimitKey):
2432         (WebCore::DiagnosticLoggingKeys::domainVisitedKey):
2433         (WebCore::DiagnosticLoggingKeys::cannotSuspendActiveDOMObjectsKey):
2434         (WebCore::DiagnosticLoggingKeys::cpuUsageKey):
2435         (WebCore::DiagnosticLoggingKeys::createSharedBufferFailedKey):
2436         (WebCore::DiagnosticLoggingKeys::activeInForegroundTabKey):
2437         (WebCore::DiagnosticLoggingKeys::activeInBackgroundTabOnlyKey):
2438         (WebCore::DiagnosticLoggingKeys::applicationCacheKey):
2439         (WebCore::DiagnosticLoggingKeys::applicationManifestKey):
2440         (WebCore::DiagnosticLoggingKeys::audioKey):
2441         (WebCore::DiagnosticLoggingKeys::backNavigationDeltaKey):
2442         (WebCore::DiagnosticLoggingKeys::canCacheKey):
2443         (WebCore::DiagnosticLoggingKeys::cacheControlNoStoreKey):
2444         (WebCore::DiagnosticLoggingKeys::cachedResourceRevalidationKey):
2445         (WebCore::DiagnosticLoggingKeys::cachedResourceRevalidationReasonKey):
2446         (WebCore::DiagnosticLoggingKeys::deniedByClientKey):
2447         (WebCore::DiagnosticLoggingKeys::deviceMotionKey):
2448         (WebCore::DiagnosticLoggingKeys::deviceOrientationKey):
2449         (WebCore::DiagnosticLoggingKeys::diskCacheKey):
2450         (WebCore::DiagnosticLoggingKeys::diskCacheAfterValidationKey):
2451         (WebCore::DiagnosticLoggingKeys::reloadKey):
2452         (WebCore::DiagnosticLoggingKeys::replaceKey):
2453         (WebCore::DiagnosticLoggingKeys::retrievalRequestKey):
2454         (WebCore::DiagnosticLoggingKeys::resourceLoadedKey):
2455         (WebCore::DiagnosticLoggingKeys::resourceResponseSourceKey):
2456         (WebCore::DiagnosticLoggingKeys::retrievalKey):
2457         (WebCore::DiagnosticLoggingKeys::revalidatingKey):
2458         (WebCore::DiagnosticLoggingKeys::reloadFromOriginKey):
2459         (WebCore::DiagnosticLoggingKeys::reloadRevalidatingExpiredKey):
2460         (WebCore::DiagnosticLoggingKeys::sameLoadKey):
2461         (WebCore::DiagnosticLoggingKeys::scriptKey):
2462         (WebCore::DiagnosticLoggingKeys::serviceWorkerKey):
2463         (WebCore::DiagnosticLoggingKeys::streamingMedia):
2464         (WebCore::DiagnosticLoggingKeys::styleSheetKey):
2465         (WebCore::DiagnosticLoggingKeys::successfulSpeculativeWarmupWithRevalidationKey):
2466         (WebCore::DiagnosticLoggingKeys::successfulSpeculativeWarmupWithoutRevalidationKey):
2467         (WebCore::DiagnosticLoggingKeys::svgDocumentKey):
2468         (WebCore::DiagnosticLoggingKeys::synchronousMessageFailedKey):
2469         (WebCore::DiagnosticLoggingKeys::telemetryPageLoadKey):
2470         (WebCore::DiagnosticLoggingKeys::timedOutKey):
2471         (WebCore::DiagnosticLoggingKeys::canceledLessThan2SecondsKey):
2472         (WebCore::DiagnosticLoggingKeys::canceledLessThan5SecondsKey):
2473         (WebCore::DiagnosticLoggingKeys::canceledLessThan20SecondsKey):
2474         (WebCore::DiagnosticLoggingKeys::canceledMoreThan20SecondsKey):
2475         (WebCore::DiagnosticLoggingKeys::failedLessThan2SecondsKey):
2476         (WebCore::DiagnosticLoggingKeys::failedLessThan5SecondsKey):
2477         (WebCore::DiagnosticLoggingKeys::failedLessThan20SecondsKey):
2478         (WebCore::DiagnosticLoggingKeys::failedMoreThan20SecondsKey):
2479         (WebCore::DiagnosticLoggingKeys::occurredKey):
2480         (WebCore::DiagnosticLoggingKeys::succeededLessThan2SecondsKey):
2481         (WebCore::DiagnosticLoggingKeys::succeededLessThan5SecondsKey):
2482         (WebCore::DiagnosticLoggingKeys::succeededLessThan20SecondsKey):
2483         (WebCore::DiagnosticLoggingKeys::succeededMoreThan20SecondsKey):
2484         (WebCore::DiagnosticLoggingKeys::uncacheableStatusCodeKey):
2485         (WebCore::DiagnosticLoggingKeys::underMemoryPressureKey):
2486         (WebCore::DiagnosticLoggingKeys::unknownEntryRequestKey):
2487         (WebCore::DiagnosticLoggingKeys::unlikelyToReuseKey):
2488         (WebCore::DiagnosticLoggingKeys::unsupportedHTTPMethodKey):
2489         (WebCore::DiagnosticLoggingKeys::unsuspendableDOMObjectKey):
2490         (WebCore::DiagnosticLoggingKeys::unusedKey):
2491         (WebCore::DiagnosticLoggingKeys::unusedReasonCredentialSettingsKey):
2492         (WebCore::DiagnosticLoggingKeys::unusedReasonErrorKey):
2493         (WebCore::DiagnosticLoggingKeys::unusedReasonMustRevalidateNoValidatorKey):
2494         (WebCore::DiagnosticLoggingKeys::unusedReasonNoStoreKey):
2495         (WebCore::DiagnosticLoggingKeys::unusedReasonRedirectChainKey):
2496         (WebCore::DiagnosticLoggingKeys::unusedReasonReloadKey):
2497         (WebCore::DiagnosticLoggingKeys::unusedReasonTypeMismatchKey):
2498         (WebCore::DiagnosticLoggingKeys::usedKey):
2499         (WebCore::DiagnosticLoggingKeys::userZoomActionKey):
2500         (WebCore::DiagnosticLoggingKeys::varyingHeaderMismatchKey):
2501         (WebCore::DiagnosticLoggingKeys::videoKey):
2502         (WebCore::DiagnosticLoggingKeys::visibleNonActiveStateKey):
2503         (WebCore::DiagnosticLoggingKeys::visibleAndActiveStateKey):
2504         (WebCore::DiagnosticLoggingKeys::wastedSpeculativeWarmupWithRevalidationKey):
2505         (WebCore::DiagnosticLoggingKeys::wastedSpeculativeWarmupWithoutRevalidationKey):
2506         (WebCore::DiagnosticLoggingKeys::webViewKey):
2507         (WebCore::DiagnosticLoggingKeys::yesKey):
2508         (WebCore::DiagnosticLoggingKeys::expiredKey):
2509         (WebCore::DiagnosticLoggingKeys::fontKey):
2510         (WebCore::DiagnosticLoggingKeys::prunedDueToMemoryPressureKey):
2511         (WebCore::DiagnosticLoggingKeys::prunedDueToMaxSizeReached):
2512         (WebCore::DiagnosticLoggingKeys::prunedDueToProcessSuspended):
2513         (WebCore::WebCore::DiagnosticLoggingKeys::notHTTPFamilyKey):
2514         (WebCore::WebCore::DiagnosticLoggingKeys::webGLStateKey):
2515         (WebCore::DiagnosticLoggingKeys::memoryUsageToDiagnosticLoggingKey):
2516         (WebCore::DiagnosticLoggingKeys::foregroundCPUUsageToDiagnosticLoggingKey):
2517         (WebCore::DiagnosticLoggingKeys::backgroundCPUUsageToDiagnosticLoggingKey):
2518         (WebCore::DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey):
2519         * page/DisabledAdaptations.cpp:
2520         (WebCore::watchAdaptationName):
2521         * page/EventHandler.cpp:
2522         (WebCore::EventHandler::handlePasteGlobalSelection):
2523         (WebCore::convertDragOperationToDropZoneOperation):
2524         * page/EventSource.cpp:
2525         (WebCore::EventSource::EventSource):
2526         * page/History.cpp:
2527         (WebCore::History::stateObjectAdded):
2528         * page/NavigatorBase.cpp:
2529         (WebCore::NavigatorBase::appName):
2530         (WebCore::NavigatorBase::appCodeName):
2531         * page/Page.cpp:
2532         (WebCore::Page::logNavigation):
2533         * page/PageDebuggable.cpp:
2534         (WebCore::PageDebuggable::url const):
2535         * page/PageSerializer.cpp:
2536         (WebCore::PageSerializer::serializeCSSStyleSheet):
2537         * page/PerformanceMark.h:
2538         * page/PerformanceMeasure.h:
2539         * page/PerformanceObserver.cpp:
2540         (WebCore::PerformanceObserver::observe):
2541         * page/PerformanceResourceTiming.cpp:
2542         (WebCore::PerformanceResourceTiming::PerformanceResourceTiming):
2543         * page/PerformanceUserTiming.cpp:
2544         (WebCore::restrictedMarkFunction):
2545         * page/PointerLockController.cpp:
2546         (WebCore::PointerLockController::requestPointerLock):
2547         * page/PrintContext.cpp:
2548         (WebCore::PrintContext::pageProperty):
2549         * page/SecurityOrigin.cpp:
2550         (WebCore::SecurityOrigin::toString const):
2551         * page/SecurityOriginData.cpp:
2552         (WebCore::SecurityOriginData::toString const):
2553         (WebCore::SecurityOriginData::databaseIdentifier const):
2554         * page/cocoa/ResourceUsageOverlayCocoa.mm:
2555         (WebCore::gcTimerString):
2556         * page/csp/ContentSecurityPolicy.cpp:
2557         (WebCore::ContentSecurityPolicy::reportViolation const):
2558         (WebCore::ContentSecurityPolicy::reportUnsupportedDirective const):
2559         * page/linux/ResourceUsageOverlayLinux.cpp:
2560         (WebCore::cpuUsageString):
2561         (WebCore::gcTimerString):
2562         * platform/ContentType.cpp:
2563         (WebCore::ContentType::codecsParameter):
2564         (WebCore::ContentType::profilesParameter):
2565         * platform/Decimal.cpp:
2566         (WebCore::Decimal::toString const):
2567         * platform/MIMETypeRegistry.cpp:
2568         (WebCore::initializeSupportedImageMIMETypes):
2569         (WebCore::typesForCommonExtension):
2570         (WebCore::initializeUnsupportedTextMIMETypes):
2571         (WebCore::MIMETypeRegistry::getNormalizedMIMEType):
2572         * platform/SchemeRegistry.cpp:
2573         (WebCore::SchemeRegistry::canServiceWorkersHandleURLScheme):
2574         * platform/URL.cpp:
2575         (WebCore::mimeTypeFromDataURL):
2576         * platform/UserAgentQuirks.cpp:
2577         (WebCore::UserAgentQuirks::stringForQuirk):
2578         * platform/cocoa/KeyEventCocoa.mm:
2579         (WebCore::keyForCharCode):
2580         * platform/cocoa/NetworkExtensionContentFilter.mm:
2581         (WebCore::NetworkExtensionContentFilter::unblockHandler const):
2582         * platform/cocoa/ParentalControlsContentFilter.mm:
2583         (WebCore::ParentalControlsContentFilter::unblockHandler const):
2584         * platform/cocoa/PasteboardCocoa.mm:
2585         (WebCore::Pasteboard::fileContentState):
2586         * platform/cocoa/RuntimeApplicationChecksCocoa.mm:
2587         (WebCore::MacApplication::isSafari):
2588         (WebCore::MacApplication::isAppleMail):
2589         (WebCore::MacApplication::isIBooks):
2590         (WebCore::MacApplication::isITunes):
2591         (WebCore::MacApplication::isMicrosoftMessenger):
2592         (WebCore::MacApplication::isAdobeInstaller):
2593         (WebCore::MacApplication::isAOLInstantMessenger):
2594         (WebCore::MacApplication::isMicrosoftMyDay):
2595         (WebCore::MacApplication::isMicrosoftOutlook):
2596         (WebCore::MacApplication::isQuickenEssentials):
2597         (WebCore::MacApplication::isAperture):
2598         (WebCore::MacApplication::isVersions):
2599         (WebCore::MacApplication::isHRBlock):
2600         (WebCore::MacApplication::isIAdProducer):
2601         (WebCore::MacApplication::isSolidStateNetworksDownloader):
2602         (WebCore::IOSApplication::isMobileMail):
2603         (WebCore::IOSApplication::isMobileSafari):
2604         (WebCore::IOSApplication::isWebBookmarksD):
2605         (WebCore::IOSApplication::isDumpRenderTree):
2606         (WebCore::IOSApplication::isMobileStore):
2607         (WebCore::IOSApplication::isSpringBoard):
2608         (WebCore::IOSApplication::isWebApp):
2609         (WebCore::IOSApplication::isIBooks):
2610         (WebCore::IOSApplication::isIBooksStorytime):
2611         (WebCore::IOSApplication::isTheSecretSocietyHiddenMystery):
2612         (WebCore::IOSApplication::isCardiogram):
2613         (WebCore::IOSApplication::isNike):
2614         * platform/cocoa/UserAgentCocoa.mm:
2615         (WebCore::userAgentBundleVersion):
2616         * platform/gamepad/cocoa/GameControllerGamepad.mm:
2617         (WebCore::GameControllerGamepad::setupAsExtendedGamepad):
2618         (WebCore::GameControllerGamepad::setupAsGamepad):
2619         * platform/graphics/InbandTextTrackPrivateClient.h:
2620         (WebCore::GenericCueData::toJSONString const):
2621         * platform/graphics/avfoundation/CDMFairPlayStreaming.cpp:
2622         (WebCore::CDMFactoryFairPlayStreaming::supportsKeySystem):
2623         * platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
2624         (WebCore::isEqual):
2625         (WebCore::CDMInstanceFairPlayStreamingAVFObjC::updateLicense):
2626         (WebCore::CDMInstanceFairPlayStreamingAVFObjC::keySystem const):
2627         * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:
2628         (WebCore::CDMSessionAVContentKeySession::generateKeyRequest):
2629         * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm:
2630         (WebCore::CDMSessionAVStreamSession::generateKeyRequest):
2631         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2632         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
2633         * platform/graphics/ca/GraphicsLayerCA.cpp:
2634         (WebCore::propertyIdToString):
2635         * platform/graphics/ca/TileController.cpp:
2636         (WebCore::TileController::tileGridContainerLayerName):
2637         (WebCore::TileController::zoomedOutTileGridContainerLayerName):
2638         * platform/graphics/cg/ImageBufferCG.cpp:
2639         (WebCore::ImageBuffer::toDataURL const):
2640         (WebCore::dataURL):
2641         * platform/graphics/cv/VideoTextureCopierCV.cpp:
2642         (WebCore::VideoTextureCopierCV::initializeContextObjects):
2643         (WebCore::VideoTextureCopierCV::initializeUVContextObjects):
2644         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
2645         (WebCore::MediaPlayerPrivateGStreamerBase::handleSyncMessage):
2646         (WebCore::MediaPlayerPrivateGStreamerBase::initializationDataEncountered):
2647         * platform/graphics/iso/ISOVTTCue.cpp:
2648         (WebCore::ISOWebVTTCue::toJSONString const):
2649         * platform/graphics/nicosia/NicosiaPaintingEngineThreaded.cpp:
2650         (Nicosia::PaintingEngineThreaded::PaintingEngineThreaded):
2651         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
2652         (WebCore::Extensions3DOpenGLCommon::initializeAvailableExtensions):
2653         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2654         (WebCore::GraphicsContext3D::getUnmangledInfoLog):
2655         * platform/graphics/texmap/TextureMapperContextAttributes.cpp:
2656         (WebCore::TextureMapperContextAttributes::get):
2657         * platform/graphics/win/ImageBufferDirect2D.cpp:
2658         (WebCore::ImageBuffer::toDataURL const):
2659         (WebCore::ImageDataToDataURL):
2660         * platform/gtk/PasteboardGtk.cpp:
2661         (WebCore::Pasteboard::typesForLegacyUnsafeBindings):
2662         * platform/gtk/PasteboardHelper.cpp:
2663         * platform/gtk/PlatformKeyboardEventGtk.cpp:
2664         (WebCore::PlatformKeyboardEvent::keyValueForGdkKeyCode):
2665         (WebCore::PlatformKeyboardEvent::keyCodeForHardwareKeyCode):
2666         * platform/image-decoders/bmp/BMPImageDecoder.h:
2667         * platform/image-decoders/gif/GIFImageDecoder.h:
2668         * platform/image-decoders/ico/ICOImageDecoder.h:
2669         * platform/image-decoders/jpeg/JPEGImageDecoder.h:
2670         * platform/image-decoders/png/PNGImageDecoder.h:
2671         * platform/image-decoders/webp/WEBPImageDecoder.h:
2672         * platform/ios/Device.cpp:
2673         (WebCore::deviceName):
2674         * platform/ios/PasteboardIOS.mm:
2675         (WebCore::Pasteboard::addHTMLClipboardTypesForCocoaType):
2676         * platform/ios/PlatformEventFactoryIOS.mm:
2677         (WebCore::keyForKeyEvent):
2678         (WebCore::codeForKeyEvent):
2679         * platform/ios/PlatformPasteboardIOS.mm:
2680         (WebCore::safeTypeForDOMToReadAndWriteForPlatformType):
2681         * platform/mac/PasteboardMac.mm:
2682         (WebCore::Pasteboard::read):
2683         (WebCore::Pasteboard::addHTMLClipboardTypesForCocoaType):
2684         * platform/mac/PlatformEventFactoryMac.mm:
2685         (WebCore::keyForKeyEvent):
2686         (WebCore::codeForKeyEvent):
2687         * platform/mac/PlatformPasteboardMac.mm:
2688         (WebCore::safeTypeForDOMToReadAndWriteForPlatformType):
2689         * platform/mediastream/MediaConstraints.cpp:
2690         (WebCore::addDefaultVideoConstraints):
2691         * platform/mediastream/PeerMediaDescription.h:
2692         * platform/mediastream/RealtimeMediaSource.cpp:
2693         (WebCore::RealtimeMediaSource::applyConstraints):
2694         * platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp:
2695         (WebCore::DisplayCaptureManagerCocoa::screenCaptureDeviceWithPersistentID):
2696         * platform/mock/MockRealtimeMediaSource.cpp:
2697         (WebCore::deviceMap):
2698         (WebCore::MockRealtimeMediaSource::audioDevices):
2699         (WebCore::MockRealtimeMediaSource::videoDevices):
2700         (WebCore::MockRealtimeMediaSource::displayDevices):
2701         * platform/mock/MockRealtimeVideoSource.cpp:
2702         (WebCore::MockRealtimeVideoSource::drawText):
2703         * platform/network/BlobRegistryImpl.cpp:
2704         (WebCore::BlobRegistryImpl::writeBlobsToTemporaryFiles):
2705         * platform/network/DataURLDecoder.cpp:
2706         (WebCore::DataURLDecoder::parseMediaType):
2707         * platform/network/FormData.cpp:
2708         (WebCore::FormData::appendMultiPartFileValue):
2709         * platform/network/HTTPParsers.cpp:
2710         (WebCore::parseHTTPRequestLine):
2711         (WebCore::parseHTTPHeader):
2712         (WebCore::normalizeHTTPMethod):
2713         * platform/network/ResourceRequestBase.cpp:
2714         (WebCore::ResourceRequestBase::redirectedRequest const):
2715         * platform/network/ResourceRequestBase.h:
2716         (WebCore::ResourceRequestBase::ResourceRequestBase):
2717         * platform/network/curl/ResourceHandleCurl.cpp:
2718         (WebCore::ResourceHandle::handleDataURL):
2719         * platform/network/curl/SynchronousLoaderClientCurl.cpp:
2720         (WebCore::SynchronousLoaderClient::platformBadResponseError):
2721         * platform/network/win/DownloadBundleWin.cpp:
2722         (WebCore::DownloadBundle::fileExtension):
2723         * platform/sql/SQLiteDatabase.cpp:
2724         (WebCore::SQLiteDatabase::open):
2725         (WebCore::SQLiteDatabase::setFullsync):
2726         (WebCore::SQLiteDatabase::maximumSize):
2727         (WebCore::SQLiteDatabase::pageSize):
2728         (WebCore::SQLiteDatabase::freeSpaceSize):
2729         (WebCore::SQLiteDatabase::totalSize):
2730         (WebCore::SQLiteDatabase::clearAllTables):
2731         (WebCore::SQLiteDatabase::runVacuumCommand):
2732         (WebCore::SQLiteDatabase::runIncrementalVacuumCommand):
2733         (WebCore::SQLiteDatabase::turnOnIncrementalAutoVacuum):
2734         * platform/sql/SQLiteFileSystem.cpp:
2735         (WebCore::SQLiteFileSystem::deleteDatabaseFile):
2736         * platform/text/LocaleICU.cpp:
2737         (WebCore::LocaleICU::dateFormat):
2738         (WebCore::getFormatForSkeleton):
2739         * platform/text/LocaleNone.cpp:
2740         (WebCore::LocaleNone::dateFormat):
2741         (WebCore::LocaleNone::monthFormat):
2742         (WebCore::LocaleNone::shortMonthFormat):
2743         (WebCore::LocaleNone::timeFormat):
2744         (WebCore::LocaleNone::shortTimeFormat):
2745         (WebCore::LocaleNone::dateTimeFormatWithSeconds):
2746         (WebCore::LocaleNone::dateTimeFormatWithoutSeconds):
2747         * platform/text/LocaleToScriptMappingDefault.cpp:
2748         (WebCore::scriptNameToCode):
2749         (WebCore::localeToScriptCodeForFontSelection):
2750         * platform/text/TextEncodingRegistry.cpp:
2751         (WebCore::defaultTextEncodingNameForSystemLanguage):
2752         * platform/win/FileSystemWin.cpp:
2753         (WebCore::FileSystem::bundleName):
2754         * platform/wpe/RenderThemeWPE.cpp:
2755         (WebCore::RenderThemeWPE::mediaControlsStyleSheet):
2756         * rendering/RenderMenuList.cpp:
2757         (RenderMenuList::setText):
2758         * rendering/RenderThemeIOS.mm:
2759         (WebCore::RenderThemeIOS::extraDefaultStyleSheet):
2760         * svg/SVGComponentTransferFunctionElement.h:
2761         (WebCore::SVGPropertyTraits<ComponentTransferType>::toString):
2762         * svg/SVGFEColorMatrixElement.h:
2763         (WebCore::SVGPropertyTraits<ColorMatrixType>::toString):
2764         * svg/SVGFECompositeElement.h:
2765         (WebCore::SVGPropertyTraits<CompositeOperationType>::toString):
2766         * svg/SVGFEConvolveMatrixElement.h:
2767         (WebCore::SVGPropertyTraits<EdgeModeType>::toString):
2768         * svg/SVGFEDisplacementMapElement.h:
2769         (WebCore::SVGPropertyTraits<ChannelSelectorType>::toString):
2770         * svg/SVGFEMorphologyElement.h:
2771         (WebCore::SVGPropertyTraits<MorphologyOperatorType>::toString):
2772         * svg/SVGFETurbulenceElement.h:
2773         (WebCore::SVGPropertyTraits<SVGStitchOptions>::toString):
2774         (WebCore::SVGPropertyTraits<TurbulenceType>::toString):
2775         * svg/SVGGradientElement.h:
2776         (WebCore::SVGPropertyTraits<SVGSpreadMethodType>::toString):
2777         * svg/SVGLocatable.cpp:
2778         (WebCore::SVGLocatable::getTransformToElement):
2779         * svg/SVGMarkerTypes.h:
2780         (WebCore::SVGPropertyTraits<SVGMarkerUnitsType>::toString):
2781         * svg/SVGMatrixValue.h:
2782         * svg/SVGSVGElement.cpp:
2783         (WebCore::SVGSVGElement::SVGSVGElement):
2784         (WebCore::SVGSVGElement::parseAttribute):
2785         * svg/SVGTextContentElement.h:
2786         (WebCore::SVGPropertyTraits<SVGLengthAdjustType>::toString):
2787         * svg/SVGTextPathElement.h:
2788         (WebCore::SVGPropertyTraits<SVGTextPathMethodType>::toString):
2789         (WebCore::SVGPropertyTraits<SVGTextPathSpacingType>::toString):
2790         * svg/SVGToOTFFontConversion.cpp:
2791         (WebCore::SVGToOTFFontConverter::appendCFFTable):
2792         * svg/SVGUnitTypes.h:
2793         (WebCore::SVGPropertyTraits<SVGUnitTypes::SVGUnitType>::toString):
2794         * svg/SVGUseElement.cpp:
2795         (WebCore::SVGUseElement::toClipPath):
2796         * svg/graphics/SVGImage.cpp:
2797         (WebCore::SVGImage::filenameExtension const):
2798         * testing/InternalSettings.cpp:
2799         (WebCore::InternalSettings::userInterfaceDirectionPolicy):
2800         (WebCore::InternalSettings::systemLayoutDirection):
2801         * testing/Internals.cpp:
2802         (WebCore::Internals::areSVGAnimationsPaused const):
2803         (WebCore::Internals::accessKeyModifiers const):
2804         (WebCore::Internals::setMediaDeviceState):
2805         (WebCore::Internals::audioSessionCategory const):
2806         (WebCore::Internals::systemPreviewRelType):
2807         * testing/MockCDMFactory.cpp:
2808         (WebCore::MockCDM::sanitizeResponse const):
2809         (WebCore::MockCDMInstance::updateLicense):
2810         * testing/MockContentFilter.cpp:
2811         (WebCore::MockContentFilter::unblockRequestDeniedScript const):
2812         * testing/MockCredentialsMessenger.cpp:
2813         (WebCore::MockCredentialsMessenger::~MockCredentialsMessenger):
2814         (WebCore::MockCredentialsMessenger::makeCredential):
2815         (WebCore::MockCredentialsMessenger::getAssertion):
2816         * testing/MockPaymentCoordinator.cpp:
2817         (WebCore::MockPaymentCoordinator::showPaymentUI):
2818         * workers/WorkerRunLoop.cpp:
2819         (WebCore::WorkerRunLoop::debuggerMode):
2820         * workers/WorkerScriptLoader.cpp:
2821         (WebCore::WorkerScriptLoader::loadSynchronously):
2822         (WebCore::WorkerScriptLoader::createResourceRequest):
2823         (WebCore::WorkerScriptLoader::didReceiveData):
2824         * workers/service/ExtendableEvent.cpp:
2825         (WebCore::ExtendableEvent::waitUntil):
2826         * workers/service/FetchEvent.cpp:
2827         (WebCore::FetchEvent::~FetchEvent):
2828         (WebCore::FetchEvent::respondWith):
2829         (WebCore::FetchEvent::promiseIsSettled):
2830         * workers/service/SWClientConnection.cpp:
2831         (WebCore::SWClientConnection::clearPendingJobs):
2832         * workers/service/ServiceWorker.cpp:
2833         (WebCore::ServiceWorker::postMessage):
2834         * workers/service/ServiceWorkerClients.cpp:
2835         (WebCore::ServiceWorkerClients::openWindow):
2836         (WebCore::ServiceWorkerClients::claim):
2837         * workers/service/ServiceWorkerContainer.cpp:
2838         (WebCore::ServiceWorkerContainer::addRegistration):
2839         (WebCore::ServiceWorkerContainer::getRegistration):
2840         (WebCore::ServiceWorkerContainer::startScriptFetchForJob):
2841         * workers/service/ServiceWorkerJob.cpp:
2842         (WebCore::ServiceWorkerJob::fetchScriptWithContext):
2843         (WebCore::ServiceWorkerJob::didReceiveResponse):
2844         * workers/service/ServiceWorkerRegistration.cpp:
2845         (WebCore::ServiceWorkerRegistration::update):
2846         * workers/service/ServiceWorkerWindowClient.cpp:
2847         (WebCore::ServiceWorkerWindowClient::focus):
2848         (WebCore::ServiceWorkerWindowClient::navigate):
2849         * workers/service/context/ServiceWorkerDebuggable.h:
2850         * workers/service/context/ServiceWorkerFetch.cpp:
2851         (WebCore::ServiceWorkerFetch::dispatchFetchEvent):
2852         * workers/service/server/RegistrationDatabase.cpp:
2853         (WebCore::RegistrationDatabase::doPushChanges):
2854         (WebCore::RegistrationDatabase::importRecords):
2855         * workers/service/server/SWServerJobQueue.cpp:
2856         (WebCore::SWServerJobQueue::runRegisterJob):
2857         (WebCore::SWServerJobQueue::runUnregisterJob):
2858         (WebCore::SWServerJobQueue::runUpdateJob):
2859         * xml/XMLErrors.cpp:
2860         (WebCore::createXHTMLParserErrorHeader):
2861         (WebCore::XMLErrors::insertErrorMessageBlock):
2862         * xml/XMLHttpRequest.cpp:
2863         (WebCore::XMLHttpRequest::send):
2864         (WebCore::XMLHttpRequest::responseMIMEType const):
2865         * xml/XMLTreeViewer.cpp:
2866         (WebCore::XMLTreeViewer::transformDocumentToTreeView):
2867         * xml/XPathPredicate.cpp:
2868         (WebCore::XPath::evaluatePredicate):
2869         * xml/XPathValue.cpp:
2870         (WebCore::XPath::Value::toString const):
2871         * xml/parser/CharacterReferenceParserInlines.h:
2872         (WebCore::consumeCharacterReference):
2873
2874 2018-06-22  Youenn Fablet  <youenn@apple.com>
2875
2876         Disable WebSocket in WatchOS
2877         https://bugs.webkit.org/show_bug.cgi?id=186931
2878         <rdar://problem/39584458>
2879
2880         Reviewed by Wenson Hsieh.
2881
2882         Add a runtime flag to enable/disable WebSocket.
2883         By default, flag is on for all platforms except for WatchOS.
2884
2885         Test: fast/dom/Window/watchos/websocket/watchos/no-websocket-in-watchos.html
2886
2887         * Modules/websockets/WebSocket.idl:
2888         * page/RuntimeEnabledFeatures.cpp:
2889         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
2890         * page/RuntimeEnabledFeatures.h:
2891         (WebCore::RuntimeEnabledFeatures::setWebSocketEnabled):
2892         (WebCore::RuntimeEnabledFeatures::webSocketEnabled const):
2893
2894 2018-06-22  Woodrow Wang  <woodrow_wang@apple.com>
2895
2896         SubresourceLoader::didFail() should only log message if state is Initialized
2897         https://bugs.webkit.org/show_bug.cgi?id=185124
2898
2899         Reviewed by Daniel Bates.
2900
2901         Functionality does not change. Moved console logging to be 
2902         after checking state of subresource loader. We only need to 
2903         log if the state is initialized. This is consistent with other
2904         functions in the file. We can also remove a null check for the 
2905         frame pointer (m_frame). The superclass ResourceLoader constructor
2906         takes an lvalue reference and initializes m_frame, ensuring
2907         m_frame cannot be null. It is only set to null by 
2908         ResourceLoader::releaseResources(), which is only called after the 
2909         resource finishes loading or fails to load. Thus, in didFail(), 
2910         m_frame must be non-null when we're logging and up until the end of the function.  
2911
2912         * loader/SubresourceLoader.cpp:
2913         (WebCore::SubresourceLoader::didFail):
2914
2915 2018-06-22  Timothy Hatcher  <timothy@apple.com>
2916
2917         Corner of two scroll bars is white with dark mode enabled.
2918         https://bugs.webkit.org/show_bug.cgi?id=186819
2919         rdar://problem/40434350
2920
2921         Reviewed by Tim Horton.
2922
2923         * Configurations/WebCore.xcconfig:
2924         * WebCore.xcodeproj/project.pbxproj:
2925         * inspector/InspectorOverlay.cpp:
2926         (WebCore::InspectorOverlay::paint): Added LocalDefaultSystemAppearance.
2927         * page/Page.h:
2928         * platform/ScrollView.cpp:
2929         (WebCore::ScrollView::paintScrollCorner): Dropped ScrollView argument.
2930         * platform/ScrollbarTheme.h:
2931         (WebCore::ScrollbarTheme::paintScrollCorner): Ditto.
2932         * platform/ScrollbarThemeComposite.cpp:
2933         (WebCore::ScrollbarThemeComposite::paintScrollCorner): Deleted. Default is the same.
2934         * platform/ScrollbarThemeComposite.h:
2935         * platform/mac/LocalDefaultSystemAppearance.h:
2936         * platform/mac/LocalDefaultSystemAppearance.mm:
2937         (WebCore::LocalDefaultSystemAppearance::LocalDefaultSystemAppearance): Added recursion early return.
2938         (WebCore::LocalDefaultSystemAppearance::~LocalDefaultSystemAppearance): Ditto.
2939         * platform/mac/ScrollbarThemeMac.h:
2940         * platform/mac/ScrollbarThemeMac.mm:
2941         (WebCore::ScrollbarThemeMac::paintScrollCorner): Added.
2942         * rendering/RenderLayer.cpp:
2943         (WebCore::RenderLayer::paintScrollCorner): Call ScrollbarTheme::paintScrollCorner.
2944         * rendering/RenderLayerBacking.cpp:
2945         (WebCore::RenderLayerBacking::paintContents): Added LocalDefaultSystemAppearance.
2946         * rendering/RenderLayerCompositor.cpp:
2947         (WebCore::RenderLayerCompositor::paintContents): Added LocalDefaultSystemAppearance.
2948         * rendering/RenderScrollbarTheme.cpp:
2949         (WebCore::RenderScrollbarTheme::paintScrollCorner): Call ScrollbarTheme::paintScrollCorner.
2950         * rendering/RenderScrollbarTheme.h:
2951         * svg/graphics/SVGImage.cpp:
2952         (WebCore::SVGImage::draw): Added LocalDefaultSystemAppearance.
2953
2954 2018-06-22  Tim Horton  <timothy_horton@apple.com>
2955
2956         Make it possible to add a border around loading or failed-to-load images
2957         https://bugs.webkit.org/show_bug.cgi?id=186614
2958         <rdar://problem/39050152>
2959
2960         Reviewed by Zalan Bujtas.
2961
2962         Tests: http/tests/images/loading-image-border.html
2963                http/tests/images/loading-image-no-border.html
2964
2965         * rendering/RenderImage.cpp:
2966         (WebCore::RenderImage::paintIncompleteImageOutline):
2967         (WebCore::RenderImage::paintReplaced):
2968         * rendering/RenderImage.h:
2969         Factor the missing-image outline out, and - if desired - paint it in
2970         cases where the image is still loading or otherwise pending, not just
2971         when the image fails to load.
2972
2973         * page/Settings.yaml:
2974         * testing/InternalSettings.cpp:
2975         (WebCore::InternalSettings::Backup::Backup):
2976         (WebCore::InternalSettings::Backup::restoreTo):
2977         (WebCore::InternalSettings::setIncompleteImageBorderEnabled):
2978         * testing/InternalSettings.h:
2979         * testing/InternalSettings.idl:
2980         Add and expose a setting to enable the feature.
2981
2982 2018-06-22  Brady Eidson  <beidson@apple.com>
2983
2984         WKURLSchemeHandler doesn't handle sync XHR.
2985         <rdar://problem/40955884> and https://bugs.webkit.org/show_bug.cgi?id=186902
2986
2987         Reviewed by Chris Dumez.
2988
2989         * English.lproj/Localizable.strings:
2990
2991 2018-06-22  Jer Noble  <jer.noble@apple.com>
2992
2993         [Fullscreen] Restore ASSERT_NOT_REACHED() checks in exit fullscreen handler after r231924
2994         https://bugs.webkit.org/show_bug.cgi?id=186945
2995         <rdar://problem/37277469>
2996
2997         Reviewed by Simon Fraser.
2998
2999         * platform/ios/VideoFullscreenInterfaceAVKit.mm:
3000         (VideoFullscreenInterfaceAVKit::exitFullscreen):
3001         (VideoFullscreenInterfaceAVKit::exitFullscreenHandler):
3002         (VideoFullscreenInterfaceAVKit::cleanupFullscreen):
3003
3004 2018-06-22  Per Arne Vollan  <pvollan@apple.com>
3005
3006         Unreviewed build fix on Windows.
3007
3008         * testing/Internals.h:
3009
3010 2018-06-22  Youenn Fablet  <youenn@apple.com>
3011
3012         Incoming G722 doesn't work
3013         https://bugs.webkit.org/show_bug.cgi?id=186307
3014         <rdar://problem/40809745>
3015
3016         Reviewed by Eric Carlson.
3017
3018         WebRTC backends usually does the following:
3019         - Initially call RealtimeIncomingAudioSource with 16KHz data
3020         - Switch to 48KHz when actual data is decoded.
3021         We added a check that was discarding any 16KHz data, but in case of G722, the data remains as 16KHz and is then never read.
3022         The solution is to remove the check that discards 16KHz information.
3023         We then need to fix a bug in AudioTrackPrivateMediaStreamCocoa that was preventing proper handling of change of audio data configuration.
3024
3025         Test: webrtc/audio-peer-connection-g722.html
3026
3027         * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp:
3028         (WebCore::AudioTrackPrivateMediaStreamCocoa::audioSamplesAvailable):
3029         * platform/mediastream/mac/RealtimeIncomingAudioSourceCocoa.cpp:
3030         (WebCore::RealtimeIncomingAudioSourceCocoa::OnData):
3031
3032 2018-06-22  Timothy Hatcher  <timothy@apple.com>
3033
3034         Recalc styles every time defaultAppearance changes.
3035         https://bugs.webkit.org/show_bug.cgi?id=186866
3036         rdar://problem/41309805
3037
3038         Reviewed by Tim Horton.
3039
3040         * page/Page.cpp:
3041         (WebCore::Page::setUseSystemAppearance): Added. Recalc styles and update system colors.
3042         (WebCore::Page::setDefaultAppearance): Added. Ditto.
3043         * page/Page.h:
3044         (WebCore::Page::setUseSystemAppearance): Deleted impl.
3045         (WebCore::Page::setDefaultAppearance): Deleted impl.
3046
3047 2018-06-22  Thibault Saunier  <tsaunier@igalia.com>
3048
3049         [GStreamer] Avoid sending SELECT_STREAM events when nothing changed
3050         https://bugs.webkit.org/show_bug.cgi?id=186678
3051
3052         Reviewed by Philippe Normand.
3053
3054         This avoid extra work in decodebin3 and should work around a crash
3055         in decodebin3 when we send spurious SELECT_STREAM in the mediastream
3056         layout tests.
3057
3058         GStreamer was also missing safe guards in the GstStream APIs which have been
3059         added in gstreamer core in 8833ca942ea21c58c0f63822f0e2b61695b39447
3060         "stream: Add some missing API safe guards".
3061
3062         Should fix following flakes:
3063           - fast/mediastream/MediaStream-video-element-track-stop.html
3064           - fast/mediastream/change-tracks-media-stream-being-played.html
3065
3066         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3067         (WebCore::MediaPlayerPrivateGStreamer::enableTrack):
3068
3069 2018-06-22  Michael Catanzaro  <mcatanzaro@igalia.com>
3070
3071         REGRESSION(r230950): [GTK] WebKit::CoordinatedBackingStoreTile::setBackBuffer(): WebKitWebProcess killed by SIGSEGV (ASSERTION FAILED: it != m_tiles.end())
3072         https://bugs.webkit.org/show_bug.cgi?id=186206
3073
3074         Unreviewed manual rollout of r230950
3075
3076         * platform/graphics/texmap/TextureMapperLayer.h:
3077         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
3078         (WebCore::CoordinatedGraphicsLayer::shouldHaveBackingStore const):
3079
3080 2018-06-20  Darin Adler  <darin@apple.com>
3081
3082         [Cocoa] Use the isDirectory: variants of NSURL methods more to eliminate unnecessary file system activity
3083         https://bugs.webkit.org/show_bug.cgi?id=186875
3084
3085         Reviewed by Anders Carlsson.
3086
3087         * platform/cocoa/ThemeCocoa.mm:
3088         (WebCore::passKitBundle): Use isDirectory:YES when creating a URL pointing to a framework,
3089         since frameworks are directories.
3090
3091 2018-06-22  Miguel Gomez  <magomez@igalia.com>
3092
3093         [WPE][ThreadedRendering] WPE crashes rendering SVG content when using ThreadedRendering
3094         https://bugs.webkit.org/show_bug.cgi?id=186914
3095
3096         Reviewed by Carlos Garcia Campos.
3097
3098         Add GraphicsContextImpl::clipToImageBuffer() to the interface and the implementors. Forward
3099         the call to GraphicsContext::clipToImageBuffer() to the implementation if possible in the
3100         cairo case.
3101
3102         Covered by existent tests.
3103
3104         * platform/graphics/GraphicsContextImpl.h:
3105         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3106         (WebCore::GraphicsContext::clipToImageBuffer):
3107         * platform/graphics/cairo/GraphicsContextImplCairo.cpp:
3108         (WebCore::GraphicsContextImplCairo::clipToImageBuffer):
3109         * platform/graphics/cairo/GraphicsContextImplCairo.h:
3110         * platform/graphics/displaylists/DisplayListRecorder.cpp:
3111         (WebCore::DisplayList::Recorder::clipToImageBuffer):
3112         * platform/graphics/displaylists/DisplayListRecorder.h:
3113         * platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp:
3114         (Nicosia::CairoOperationRecorder::clipToImageBuffer):
3115         * platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.h:
3116
3117 2018-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
3118
3119         [CMake] Generated sources depending on SelectorPseudoClassAndCompatibilityElementMap.in are not regenerated
3120         https://bugs.webkit.org/show_bug.cgi?id=186911
3121
3122         Reviewed by Michael Catanzaro.
3123
3124         This is causing test fullscreen/fullscreen-env.html to fail since it was added in r233066 in the bots that
3125         didn't start a clean build. The problem is that the CMake command to generate
3126         SelectorPseudoClassAndCompatibilityElementMap.cpp doesn't depend on
3127         SelectorPseudoClassAndCompatibilityElementMap.in.
3128
3129         * CMakeLists.txt:
3130
3131 2018-06-22  Miguel Gomez  <magomez@igalia.com>
3132
3133         [WPE][ThreadedRendering] WPE crashes rendering some pieces of text when using ThreadedRendering
3134         https://bugs.webkit.org/show_bug.cgi?id=186886
3135
3136         Reviewed by Žan Doberšek.
3137
3138         Modify DisplayList DrawGlyphs element to use a GraphicsContext for replaying. To do so, modify
3139         GraphicsContext::drawGlyphs() API so it doesn't require a FontCascade, and update all the calls
3140         to it.
3141
3142         Covered by existent tests.
3143
3144         * platform/graphics/FontCascade.cpp:
3145         (WebCore::FontCascade::drawGlyphBuffer const):
3146         * platform/graphics/GraphicsContext.cpp:
3147         (WebCore::GraphicsContext::drawGlyphs):
3148         * platform/graphics/GraphicsContext.h:
3149         * platform/graphics/displaylists/DisplayListItems.cpp:
3150         (WebCore::DisplayList::DrawGlyphs::apply const):
3151         * rendering/mathml/MathOperator.cpp:
3152         (WebCore::MathOperator::paintGlyph):
3153         (WebCore::MathOperator::paint):
3154         * rendering/mathml/RenderMathMLToken.cpp:
3155         (WebCore::RenderMathMLToken::paint):
3156
3157 2018-06-15  Jer Noble  <jer.noble@apple.com>
3158
3159         Address fullscreen api CSS env feedback
3160         https://bugs.webkit.org/show_bug.cgi?id=186684
3161
3162         Reviewed by Simon Fraser.
3163
3164         Test: fullscreen/fullscreen-env.html
3165
3166         + Update the phishing alert text to be more explicit about the specific threats
3167           phishing sites represent.
3168         + Make the top inset static, rather than dynamic.
3169         + Add bottom, left, and right insets for completeness.
3170         + Set the fullscreen animation duration as well as delay.
3171         + Notify the page when the controls show and hide.
3172
3173         * English.lproj/Localizable.strings:
3174         * css/CSSSelector.cpp:
3175         (WebCore::CSSSelector::selectorText const):
3176         * css/CSSSelector.h:
3177         * css/SelectorChecker.cpp:
3178         (WebCore::SelectorChecker::checkOne const):
3179         * css/SelectorCheckerTestFunctions.h:
3180         (WebCore::matchesFullScreenControlsHiddenPseudoClass):
3181         * css/SelectorPseudoClassAndCompatibilityElementMap.in:
3182         * cssjit/SelectorCompiler.cpp:
3183         (WebCore::SelectorCompiler::addPseudoClassType):
3184         * dom/ConstantPropertyMap.cpp:
3185         (WebCore::ConstantPropertyMap::nameForProperty const):
3186         (WebCore::ConstantPropertyMap::updateConstantsForFullscreenInsets):
3187         (WebCore::ConstantPropertyMap::didChangeFullscreenInsets):
3188         (WebCore::ConstantPropertyMap::setFullscreenAutoHideDuration):
3189         (WebCore::ConstantPropertyMap::setFullscreenInsetTop): Deleted.
3190         * dom/ConstantPropertyMap.h:
3191         * dom/Document.cpp:
3192         (WebCore::Document::areFullscreenControlsHidden const):
3193         (WebCore::Document::setFullscreenControlsHidden):
3194         * dom/Document.h:
3195         * page/Page.cpp:
3196         (WebCore::Page::setFullscreenInsets):
3197         (WebCore::Page::setFullscreenAutoHideDuration):
3198         (WebCore::Page::setFullscreenControlsHidden):
3199         (WebCore::Page::setFullscreenInsetTop): Deleted.
3200         * page/Page.h:
3201         (WebCore::Page::fullscreenInsets const):
3202         * testing/Internals.cpp:
3203         (WebCore::Internals::resetToConsistentState):
3204         (WebCore::Internals::setFullscreenInsets):
3205         (WebCore::Internals::setFullscreenAutoHideDuration):
3206         (WebCore::Internals::setFullscreenControlsHidden):
3207         (WebCore::Internals::setFullscreenInsetTop): Deleted.
3208         * testing/Internals.h:
3209         * testing/Internals.idl:
3210
3211 2018-06-21  Jer Noble  <jer.noble@apple.com>
3212
3213         [Fullscreen] Page sometimes ends up with an incorrect zoom level after entering fullscreen
3214         https://bugs.webkit.org/show_bug.cgi?id=186822
3215
3216         Reviewed by Simon Fraser.
3217
3218         * dom/Document.cpp:
3219         (WebCore::Document::setOverrideViewportArguments):
3220         (WebCore::Document::updateViewportArguments):
3221         * dom/Document.h:
3222
3223 2018-06-20  Said Abou-Hallawa  <sabouhallawa@apple.com>
3224
3225         RenderSVGInline has to be inline always regardless of its css display value
3226         https://bugs.webkit.org/show_bug.cgi?id=186656
3227
3228         Reviewed by Zalan Bujtas.
3229
3230         According to https://www.w3.org/TR/SVG2/text.html#TextLayout, the <text>
3231         element has to be laid out as if it were a block element and any <tspan>,
3232         <textPath>, <a> and <tref> descendants were inline elements.
3233
3234         If a css rule, which contains the property "display: block;", is applied
3235         to any of children of a <text> element, this property has to be ignored.
3236
3237         We currently ignore this property in RenderSVGInline::updateFromStyle()
3238         by forcing setInline(true). But we do not do the same thing in 
3239         RenderTreeBuilder::normalizeTreeAfterStyleChange(). In fact we allow
3240         making the children of the <text> element to be non-inline. This puts
3241         the render tree in weired state and causes many assertions to fire while
3242         laying out RenderSVGText. 
3243
3244         Test: svg/dom/svg-inline-text-display-block-crash.html
3245
3246         * rendering/updating/RenderTreeBuilder.cpp:
3247         (WebCore::RenderTreeBuilder::normalizeTreeAfterStyleChange):
3248
3249 2018-06-20  Zalan Bujtas  <zalan@apple.com>
3250
3251         Do not reuse generated inline renderer for the first letter.
3252         https://bugs.webkit.org/show_bug.cgi?id=186657
3253         <rdar://problem/41157892>
3254
3255         Reviewed by Simon Fraser.
3256
3257         When the first letter pseudo element is present, we construct a dedicated subtree for its content like this:
3258
3259         <div><span>foobar</span></div> -> with ::first-letter on the <div>
3260         DIV RenderBlock
3261             SPAN RenderInline
3262                 RenderInline (generated wrapper for the first letter content)
3263                     RenderText (fist letter content)
3264                 RenderText (remaining text content)
3265
3266         "display: contents" on the <span> forces us not to construct a RenderInline for the <span> (or just come up with a wrapper at best).
3267         FirstLetter::createRenderers logic needs to check for such cases and pick the correct parent for the first letter subtree accordingly.
3268
3269         Test: fast/text/first-letter-with-display-contents-crash.html
3270               imported/w3c/web-platform-tests/css/css-display/display-contents-first-letter-002.html is not crashing anymore either.
3271
3272         * rendering/updating/RenderTreeBuilderFirstLetter.cpp:
3273         (WebCore::RenderTreeBuilder::FirstLetter::createRenderers):
3274
3275 2018-06-21  Chris Dumez  <cdumez@apple.com>
3276
3277         JSPerformanceObserverCallback creates a GC strongly-referenced Function that is never cleaned up
3278         https://bugs.webkit.org/show_bug.cgi?id=186873
3279         <rdar://problem/41271574>
3280
3281         Reviewed by Simon Fraser.
3282
3283         Add [IsWeakCallback] to PerformanceObserverCallback interface so that the generated
3284         JSPerformanceObserverCallback uses a JSC::Weak instead of a JSC::Strong to store the
3285         js function. To keep the function alive, add [JSCustomMarkFunction] to PerformanceObserver
3286         interface and have its visitAdditionalChildren() visit the callback's js function.
3287         Finally, because we want the callback to still be called even if the JS does not keep
3288         the PerformanceObserver wrapper alive, add [CustomIsReachable] to PerformanceObserver
3289         interface and have its isReachableFromOpaqueRoots() return true if the observer is
3290         registered (i.e. it may need to call the callback in the future).
3291
3292         I have confirmed locally, that the Performance / PerformanceObserver / Document
3293         objects properly get destroyed if I navigate away from a page that had a performance
3294         observer and trigger a memory pressure warning. Also,
3295         `notifyutil -p com.apple.WebKit.showAllDocuments` no longer shows the old document.
3296
3297         Tests: performance-api/performance-observer-callback-after-gc.html
3298                performance-api/performance-observer-no-document-leak.html
3299
3300         * Sources.txt:
3301         * WebCore.xcodeproj/project.pbxproj:
3302         * bindings/js/JSPerformanceObserverCustom.cpp: Added.
3303         (WebCore::JSPerformanceObserver::visitAdditionalChildren):
3304         (WebCore::JSPerformanceObserverOwner::isReachableFromOpaqueRoots):
3305         * bindings/js/ScriptController.cpp:
3306         * page/PerformanceObserver.cpp:
3307         (WebCore::PerformanceObserver::disassociate):
3308         * page/PerformanceObserver.h:
3309         (WebCore::PerformanceObserver::isRegistered const):
3310         (WebCore::PerformanceObserver::callback):
3311         * page/PerformanceObserver.idl:
3312         * page/PerformanceObserverCallback.h:
3313         * page/PerformanceObserverCallback.idl:
3314
3315 2018-06-20  Antoine Quint  <graouts@apple.com>
3316
3317         [Web Animations] Make imported/mozilla/css-animations/test_animation-ready.html pass reliably
3318         https://bugs.webkit.org/show_bug.cgi?id=183830
3319         <rdar://problem/40997539>
3320
3321         Reviewed by Dean Jackson.
3322
3323         The CSS Animations Level 2 spec explains how the Web Animations API and CSS Animations interact and requires
3324         pending styles changes on the target element of a CSS Animation to be flushed when using a Web Animations API
3325         on it in order to ensure that any animation- CSS property is accounted for.
3326
3327         * animation/CSSAnimation.cpp:
3328         (WebCore::CSSAnimation::bindingsStartTime const):
3329         (WebCore::CSSAnimation::setBindingsStartTime):
3330         (WebCore::CSSAnimation::bindingsCurrentTime const):
3331         (WebCore::CSSAnimation::setBindingsCurrentTime):
3332         (WebCore::CSSAnimation::bindingsPlayState const):
3333         (WebCore::CSSAnimation::bindingsPending const):
3334         (WebCore::CSSAnimation::bindingsReady):
3335         (WebCore::CSSAnimation::bindingsFinished):
3336         (WebCore::CSSAnimation::bindingsPlay):
3337         (WebCore::CSSAnimation::bindingsPause):
3338         (WebCore::CSSAnimation::flushPendingStyleChanges const):
3339         * animation/CSSAnimation.h:
3340         * animation/WebAnimation.h:
3341         (WebCore::WebAnimation::bindingsPlayState const):
3342         (WebCore::WebAnimation::bindingsPending const):
3343         (WebCore::WebAnimation::bindingsReady):
3344         (WebCore::WebAnimation::bindingsFinished):
3345         (WebCore::WebAnimation::bindingsPlay):
3346         (WebCore::WebAnimation::bindingsPause):
3347         * animation/WebAnimation.idl:
3348
3349 2018-06-21  Jer Noble  <jer.noble@apple.com>
3350
3351         [Fullscreen] Suspend page (and pause video) while phishing warning is presented
3352         https://bugs.webkit.org/show_bug.cgi?id=186856
3353         <rdar://problem/41212444>
3354
3355         Reviewed by Tim Horton.
3356
3357         Pause the media element when the page is suspended, and unpause when the page resumes.
3358
3359         * html/HTMLMediaElement.cpp:
3360         (WebCore::HTMLMediaElement::HTMLMediaElement):
3361         (WebCore::HTMLMediaElement::suspend):
3362         (WebCore::HTMLMediaElement::resume):
3363         * html/HTMLMediaElement.h:
3364
3365 2018-06-21  Michael Catanzaro  <mcatanzaro@igalia.com>
3366
3367         Bad optional access in WebCore::ContentSecurityPolicySource::portMatches
3368         https://bugs.webkit.org/show_bug.cgi?id=186535
3369
3370         Reviewed by Daniel Bates.
3371
3372         Make sure the ports have explicit values before dereferencing them.
3373
3374         This is hard to test. If the layout test script-src-parsing-implicit-and-explicit-port-number
3375         continues to pass for WebKitLegacy, then I have at least probably not broken anything. To
3376         reproduce the crash in a layout test that I can run, I think I would need to implement
3377         internals.registerDefaultPortForProtocol for modern WebKit, which is too much work for this
3378         crash. Otherwise, we'd need to run the test server on port 80, which would be unfriendly.
3379
3380         * page/csp/ContentSecurityPolicySource.cpp:
3381         (WebCore::ContentSecurityPolicySource::portMatches const):
3382
3383 2018-06-21  Fujii Hironori  <Hironori.Fujii@sony.com>
3384
3385         [GStreamer] ASSERTION FAILED: end.isValid() in PlatformTimeRanges::add
3386         https://bugs.webkit.org/show_bug.cgi?id=186880
3387
3388         Reviewed by Xabier Rodriguez-Calvar.
3389
3390         Bug 180253 has added assertions the arugments `start` and `end` is
3391         valid MediaTime in PlatformTimeRanges::add. Since then, some
3392         LayoutTests fail due to the assertion failure.
3393
3394         The invalid MediaTime is added into the PlatformTimeRanges in
3395         MediaPlayerPrivateGStreamer::buffered. Before adding MediaTime,
3396         original implementation checks MediaTime::operator bool() returns