Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bf1992ed4abebc8f879d1802126d3a552e44953d
      
https://github.com/WebKit/WebKit/commit/bf1992ed4abebc8f879d1802126d3a552e44953d
  Author: Alan Baradlay <[email protected]>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    A LayoutTests/fast/dynamic/input-crash-after-style-change-expected.txt
    A LayoutTests/fast/dynamic/input-crash-after-style-change.html
    M Source/WebCore/rendering/RenderTextControlSingleLine.cpp

  Log Message:
  -----------
  Crash in WebCore::TextControlInnerTextElement::renderer; 
WebCore::RenderTextControlSingleLine::styleDidChange;
https://bugs.webkit.org/show_bug.cgi?id=305442

Reviewed by Simon Fraser.

innerTextRenderer may be null_ptr when 
RenderTextControlSingleLine::styleDidChange is called.

Test: fast/dynamic/input-crash-after-style-change.html

* LayoutTests/TestExpectations:
* LayoutTests/fast/dynamic/input-crash-after-style-change-expected.txt: Added.
* LayoutTests/fast/dynamic/input-crash-after-style-change.html: Added.
* Source/WebCore/rendering/RenderTextControlSingleLine.cpp:
(WebCore::RenderTextControlSingleLine::layout):
(WebCore::RenderTextControlSingleLine::styleDidChange):
(WebCore::RenderTextControlSingleLine::innerTextElementHasNonVisibleOverflow 
const):
(WebCore::RenderTextControlSingleLine::preferredContentLogicalWidth const):
(WebCore::RenderTextControlSingleLine::autoscroll):
(WebCore::RenderTextControlSingleLine::scrollWidth const):
(WebCore::RenderTextControlSingleLine::scrollHeight const):
(WebCore::RenderTextControlSingleLine::scrollLeft const):
(WebCore::RenderTextControlSingleLine::scrollTop const):
(WebCore::RenderTextControlSingleLine::setScrollPosition):
(WebCore::RenderTextControlSingleLine::scroll):
(WebCore::RenderTextControlSingleLine::logicalScroll):

Canonical link: https://commits.webkit.org/305574@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to