Changeset 293922 in webkit
- Timestamp:
- May 6, 2022, 2:03:27 PM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r293921 r293922 1 2022-05-06 Gabriel Nava Marino <gnavamarino@apple.com> 2 3 null ptr deref in WebCore::Frame::setPrinting 4 https://bugs.webkit.org/show_bug.cgi?id=240173 5 6 Reviewed by Wenson Hsieh. 7 8 Check m_doc in Frame::setPrinting before access, as it is a RefPtr that can become null. 9 10 * page/Frame.cpp: 11 (WebCore::Frame::setPrinting): 12 1 13 2022-05-05 Ben Nham <nham@apple.com> 2 14 -
trunk/Source/WebCore/page/Frame.cpp
r293326 r293922 603 603 void Frame::setPrinting(bool printing, const FloatSize& pageSize, const FloatSize& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot shouldAdjustViewSize) 604 604 { 605 if (!view() )605 if (!view() || !document()) 606 606 return; 607 607 // In setting printing, we should not validate resources already cached for the document.
Note:
See TracChangeset
for help on using the changeset viewer.