Diff
Modified: branches/safari-609.1.13-branch/LayoutTests/ChangeLog (253770 => 253771)
--- branches/safari-609.1.13-branch/LayoutTests/ChangeLog 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/LayoutTests/ChangeLog 2019-12-19 19:23:56 UTC (rev 253771)
@@ -1,7 +1,3 @@
-2019-12-18 Alan Coon <[email protected]>
-
- Revert r253493. rdar://problem/58028534
-
2019-12-14 Per Arne Vollan <[email protected]>
[iOS] Deny mach lookup access to "*.viewservice" in the WebContent process
Modified: branches/safari-609.1.13-branch/LayoutTests/imported/w3c/ChangeLog (253770 => 253771)
--- branches/safari-609.1.13-branch/LayoutTests/imported/w3c/ChangeLog 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/LayoutTests/imported/w3c/ChangeLog 2019-12-19 19:23:56 UTC (rev 253771)
@@ -1,7 +1,3 @@
-2019-12-18 Alan Coon <[email protected]>
-
- Revert r253493. rdar://problem/58028534
-
2019-12-13 Chris Dumez <[email protected]>
Implement PostMessageOptions for postMessage
Modified: branches/safari-609.1.13-branch/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt (253770 => 253771)
--- branches/safari-609.1.13-branch/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3-expected.txt 2019-12-19 19:23:56 UTC (rev 253771)
@@ -4,5 +4,5 @@
submit
-FAIL <button> should have the same double-submit protection as <input type=submit> assert_unreached: Frame1 should not get navigated by this test. Reached unreachable code
+PASS <button> should have the same double-submit protection as <input type=submit>
Modified: branches/safari-609.1.13-branch/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt (253770 => 253771)
--- branches/safari-609.1.13-branch/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt 2019-12-19 19:23:56 UTC (rev 253771)
@@ -4,5 +4,5 @@
-FAIL default submit action should supersede onclick submit() assert_unreached: Frame1 should not get navigated by this test. Reached unreachable code
+PASS default submit action should supersede onclick submit()
Modified: branches/safari-609.1.13-branch/LayoutTests/platform/mac/TestExpectations (253770 => 253771)
--- branches/safari-609.1.13-branch/LayoutTests/platform/mac/TestExpectations 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/LayoutTests/platform/mac/TestExpectations 2019-12-19 19:23:56 UTC (rev 253771)
@@ -1961,4 +1961,3 @@
webkit.org/b/204820 [ Catalina+ ] fast/text/emoji-gender-8.html [ ImageOnlyFailure ]
webkit.org/b/204820 [ Catalina+ ] fast/text/emoji-gender-9.html [ ImageOnlyFailure ]
-webkit.org/b/205164 imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-3.html [ Pass Failure ]
\ No newline at end of file
Modified: branches/safari-609.1.13-branch/Source/WebCore/ChangeLog (253770 => 253771)
--- branches/safari-609.1.13-branch/Source/WebCore/ChangeLog 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/Source/WebCore/ChangeLog 2019-12-19 19:23:56 UTC (rev 253771)
@@ -1,7 +1,3 @@
-2019-12-18 Alan Coon <[email protected]>
-
- Revert r253493. rdar://problem/58028534
-
2019-12-16 Alan Coon <[email protected]>
Revert r253499. rdar://problem/57990824
@@ -1963,22 +1959,99 @@
Implementation of the <br> quirk includes zeroing its height. This has no layout or rendering effects,
it exists purely to maintain render tree dump output for tests.
- This patch removes this behavior bu������ ��������������\x80?\xF8��������������\x82 ����\xD3\xE4K\xBF����������\xE0\x90\x93-������\xB8\xF9����-������\xB9\xF9����-������\xBA\xF9��������@����������������\xA8\xD7B-������\xF0k����\xB9\xF9����Ϳ������\xF5k����\xBA\xF9������\x9CNR_������\xF6k����\xB8\xF9������������������������������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������\xF4S\xF5?\x80��EU?\xE1Y\xD5O\x84\xF2\x97\xDA\xFC������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\xBB\xFD\xD9q-����������h\xC3��\xDC$������-������\xBB\xF9����-������\xBC\xF9����-������\xBD\xF9����\x93����D����������������\x9CNR_������\xF6k����\xBB\xF9������u
-\xDE)������\xFCk����\xBC\xF9������\xE7\x8C\xEF\xCE������fl����\xBD\xF9��������������������������������������������������������������������������.������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������\xF0[\xF50?\x80\xC0\xC4U?\x91\xC7\xD5O\x84\xFA\x97T\xFE������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ����}?O8����������8\xC7��\xE4$������-������\xBE\xF9����-������\xBF\xF9����-������\xC0\xF9����\x93����D����������������\x9CNR_������\xF6k����\xBE\xF9������u
-\xDE)������\xFCk����\xBF\xF9������\xE7\x8C\xEF\xCE������fl����\xC0\xF9��������������������������������������������������������������������������.������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������\xFCv\xF54?\x80\x80uW?\xC1\xF3\xD5O\xFA\x97\xEE}��������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ����}?O8����������8\xC7��\xE4$������-������\xC1\xF9����-������\xC2\xF9����-������\xC3\xF9��������@����������������\xA8\xD7B-������\xF0k����\xC2\xF9����Ϳ������\xF5k����\xC3\xF9������\x9CNR_������\xF6k����\xC1\xF9������������������������������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������h\x92\xF58?\x80@,Y?\xB1S\xD6Oߗ\xDE[������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\xBB\xFD\xD9q-����������8\xC5��\xDC$(������-������\xC4\xF9����-������\xC5\xF9����-������\xC6\xF9����-������\xC7\xF9����-������\xC8\xF9����-������\
xC9\xF9����-������\xCA\xF9����-������\xCB\xF9����=����\xA0����������������Ó������l����\xC6\xF9����\x82_\xC5\xF7������l����\xCA\xF9������s\xDC3?������l����\xCB\xF9������\x94\xFBޕ������l����\xC9\xF9������u
-\xDE)������\xFCk����\xC5\xF9������\xA8\xD7B-������\xF0k����\xC7\xF9������\x9CNR_������\xF6k����\xC4\xF9������\xEF\x9F\xC6a������l����\xC8\xF9������������������������������������������,������?������R����������������������e������������������������������x����������������������\x8B������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������p\x9A\xF5<?\x80\xC0\xACY?\x81\xD7\xD6Oԗ\xE8������������������\x82����\x80 �������� ��\x80����������������\xFE\xE0�� ������������\x82����\xFC\xD5MA=����������\xE0dp$(������-������\xCC\xF9����-������\xCD\xF9����-������\xCE\xF9����-������\xCF\xF9����-������\xD0\xF9����-������\xD1\xF9����-������\xD2\xF9����-������\xD3\xF9����=����\xA0����������������\x82_\xC5\xF7������l����\xD2\xF9������s\xDC3?������l����\xD3\xF9������\x94\xFBޕ������l����\xD1\xF9������u
-\xDE)������\xFCk����\xCD\xF9������\xA8\xD7B-������\xF0k����\xCF\xF9������|������l����\xCE\xF9����\x9CNR_������\xF6k����\xCC\xF9������\xEF\x9F\xC6a������l����\xD0\xF9������������������������������������������������.������A����������������������T������������������������������g����������������������\x8B������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������d\xBB\xF5P?\x80��\xBC[?a[\xD7O\x84\xF4\x97\xC6\xDF��������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\x99\xDC\xFB\xF6����������8Y\xDC\x89����-������\xD4\xF9����-������\xD5\xF9����-������\xD6\xF9����\x93����D����������������\x9CNR_������\xF6k����\xD4\xF9������u
-\xDE)������\xFCk����\xD5\xF9������FL*I������gl����\xD6\xF9������������������������������������������������������������������.��������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������`\xDC\xF5T?\x80\xC0\xC7]?\x81\xC9\xD7O\x84{\x97b\x90������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80O\xD6-����������\xC7��\xE4$������-������\xD7\xF9����-������\xD8\xF9����-������\xD9\xF9��������@����������������\xA8\xD7B-������\xF0k����\xD8\xF9����Ϳ������\xF5k����\xD9\xF9������\x9CNR_������\xF6k����\xD7\xF9������������������������������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������\xC0\xF7\xF5X?\x80\xC0}_?\xE9\xD7O|\x97~\x9C������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\xBB\xFD\xD9q-����������8\xC5��\xDC$������-������\xDA\xF9����-������\xDB\xF9����-������\xDC\xF9��������@����������������\x9CNR_������\xF
6k����\xDA\xF9������u
-\xDE)������\xFCk����\xDB\xF9����m\xB1\x80������Hl����\xDC\xF9������������������������������������������������������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������h\xFF\xF5\?\x80@\xFC_?qU\xD8O\xBF\x97B\xB8������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\x94\xF9\xB3����������8\xC5��\xDC$������-������\xDD\xF9����-������\xDE\xF9����-������\xDF\xF9��������@����������������\xA8\xD7B-������\xF0k����\xDE\xF9����Ϳ������\xF5k����\xDF\xF9������\x9CNR_������\xF6k����\xDD\xF9������������������������������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������\xC0\xF6p?\x80\xC0\xADa?u\xD8O\x84\xBF\x97\xE4\x91��������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\xBB\xFD\xD9q-����������8\xC5��\xDC$������-������\xE0\xF9����-������\xE1\xF9����-������\xE2\xF9��������@����������������\xA8\xD7B-��
����\xF0k����\xE1\xF9����Ϳ������\xF5k����\xE2\xF9������\x9CNR_������\xF6k����\xE0\xF9������������������������������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������l2\xF6t?\x80\x80,c?\xC1\xD3\xD8O\x84ؗ\xE0;������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\
x82 ��\x80\xBB\xFD\xD9q-����������8\xC5��\xDC$������-������\xE3\xF9����-������\xE4\xF9����-������\xE5\xF9����-������\xE6\xF9����-������\xE7\xF9����-������\xE8\xF9����4����x����������������V\xFA\xF1.������0l����\xE7\xF9������\xA8\xD7B-������\xF0k����\xE4\xF9����Ϳ������\xF5k����\xE5\xF9������)\xCAP������2l����\xE6\xF9������\x9CNR_������\xF6k����\xE3\xF9������=|(\x91������Il����\xE8\xF9������������������������������������������������������������������������������������?����������������������R������e����������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������P:\xF6x?\x80\xC0\xA6c?A\xFF\xD8Oؗ\xCEx������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\xCD\xF7\xBB����������8\xFD��\x8C\x89����-������\xE9\xF9����-������\xEA\xF9����-������\xEB\xF9��������@����������������\xA8\xD7B-������\xF0k����\xEA\xF9����Ϳ������\xF5k����\xEB\xF9������\x9CNR_������\xF6k����\xE9\xF9��������������������
����������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������\xF0T\xF6|?\x80\xC0Te?\xD1]\xD9Oݗț��������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\xBB\xFD\xD9q-����������\xC5��\xDC$������-������\xEC\xF9����-������\xED\xF9����-������\xEE\xF9��������@����������
������\xA8\xD7B-������\xF0k����\xED\xF9����Ϳ������\xF5k����\xEE\xF9������\x9CNR_������\xF6k����\xEC\xF9������������������������������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������\xC4\\xF6\x90?\x80��\xCEe?!}\xD9Oٗ\xC2v��������������\x80����\x80 ���� ���������� ��������������\x80?\xF8��������������\x82 ��\x80\xBB\xFD\xD9q-����������8\xC5��\xDC$������-������\xEF\xF9����-������\xF0\xF9����-������\xF1\xF9��������@����������������\xA8\xD7B-������\xF0k����\xF0\xF9����Ϳ������\xF5k����\xF1\xF9������\x9CNR_������\xF6k����\xEF\xF9������������������������������������������������,������������������������������\x83\xD2\xE85��\x82\x99���� ��\xC0������`��������Xt\xF6\x94?\x80@Gg?q\xDB\xD9O\x84ݗave separate IsoSubspace for this.
+ This patch removes this behavior but maintains the render tree dump output on the RenderTreeAsText
+ level (thus avoiding giant test rebasing), and makes it easier to get the same output from all paths.
+ * rendering/InlineBox.cpp:
+ (WebCore::InlineBox::logicalHeight const):
+ (WebCore::InlineBox::baselinePosition const):
+ (WebCore::InlineBox::lineHeight const):
+
+ Remove the hack from line boxes.
+
+ * rendering/RenderLineBreak.cpp:
+ (WebCore::RenderLineBreak::boundingBoxForRenderTreeDump const):
+
+ Add special bounding box code for this case.
+ This can be removed in future with a test rebase.
+
+ * rendering/RenderLineBreak.h:
+ * rendering/RenderTreeAsText.cpp:
+ (WebCore::RenderTreeAsText::writeRenderObject):
+ * rendering/SimpleLineLayoutResolver.cpp:
+ (WebCore::SimpleLineLayout::RunResolver::Run::rect const):
+
+ Remove the hack from simple lines.
+
+ (WebCore::SimpleLineLayout::RunResolver::RunResolver):
+ * rendering/SimpleLineLayoutResolver.h:
+ (WebCore::SimpleLineLayout::RunResolver::Run::baselineOffset const):
+ (WebCore::SimpleLineLayout::RunResolver::Iterator::atBegin const):
+ * rendering/line/LineLayoutTraversal.h:
+ (WebCore::LineLayoutTraversal::Box::baselineOffset const):
+ (WebCore::LineLayoutTraversal::Box::isHorizontal const):
+ (WebCore::LineLayoutTraversal::Box::useLineBreakBoxRenderTreeDumpQuirk const):
+ * rendering/line/LineLayoutTraversalComplexPath.h:
+ (WebCore::LineLayoutTraversal::ComplexPath::isHorizontal const):
+ (WebCore::LineLayoutTraversal::ComplexPath::baselineOffset const):
+ (WebCore::LineLayoutTraversal::ComplexPath::useLineBreakBoxRenderTreeDumpQuirk const):
+ * rendering/line/LineLayoutTraversalDisplayRunPath.h:
+ (WebCore::LineLayoutTraversal::DisplayRunPath::baselineOffset const):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::isHorizontal const):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::useLineBreakBoxRenderTreeDumpQuirk const):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::isLastOnLine const):
+ (WebCore::LineLayoutTraversal::DisplayRunPath::lineBox const):
+ * rendering/line/LineLayoutTraversalSimplePath.h:
+ (WebCore::LineLayoutTraversal::SimplePath::baselineOffset const):
+ (WebCore::LineLayoutTraversal::SimplePath::isHorizontal const):
+ (WebCore::LineLayoutTraversal::SimplePath::useLineBreakBoxRenderTreeDumpQuirk const):
+
+2019-12-10 Antti Koivisto <[email protected]>
+
+ [LFC][Integration] Output hyphen strings
+ https://bugs.webkit.org/show_bug.cgi?id=205058
+
+ Reviewed by Zalan Bujtas.
+
+ * rendering/line/LineLayoutTraversalDisplayRunPath.h:
+ (WebCore::LineLayoutTraversal::DisplayRunPath::hasHyphen const):
+
+2019-12-10 Zalan Bujtas <[email protected]>
+
+ [LFC][IFC] Fix fast/text/simple-line-layout-hyphenation-constrains.html
+ https://bugs.webkit.org/show_bug.cgi?id=205048
+ <rdar://problem/57780425>
+
+ Reviewed by Antti Koivisto.
+
+ Remove this hack for now and come up with a more sensible fix later if it breaks some tests.
+
+ * layout/inlineformatting/InlineLineBreaker.cpp:
+ (WebCore::Layout::LineBreaker::tryBreakingTextRun const):
+
+2019-12-10 Zalan Bujtas <[email protected]>
+
+ [LFC][IFC] Fix fast/text/basic/005.html
+ https://bugs.webkit.org/show_bug.cgi?id=205047
+ <rdar://problem/57780017>
+
+ Reviewed by Antti Koivisto.
+
+ Remove the code that triggers the assert on negative word-spacing.
+ Trimming is safe with negative values (and any negative trimmed width special handing should be in LineBreaker).
+
+ * layout/inlineformatting/InlineLineBuilder.cpp:
+ (WebCore::Layout::LineBuilder::TrimmableContent::append):
+
+2019-12-10 Yusuke Suzuki <[email protected]>
+
+ [JSC] Put JSArray in IsoSubspace
+ https://bugs.webkit.org/show_bug.cgi?id=205049
+
+ Reviewed by Mark Lam.
+
+ RuntimeArray is inheriting JSArray. We should have separate IsoSubspace for this.
+
* bindings/js/WebCoreJSClientData.cpp:
(WebCore::JSVMClientData::JSVMClientData):
* bindings/js/WebCoreJSClientData.h:
Modified: branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.cpp (253770 => 253771)
--- branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.cpp 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.cpp 2019-12-19 19:23:56 UTC (rev 253771)
@@ -358,7 +358,11 @@
auto protectedThis = makeRef(*this); // Form submission can execute arbitary _javascript_.
auto shouldLockHistory = processingUserGesture ? LockHistory::No : LockHistory::Yes;
- frame->loader().submitForm(FormSubmission::create(*this, m_attributes, event, shouldLockHistory, formSubmissionTrigger));
+ auto formSubmission = FormSubmission::create(*this, m_attributes, event, shouldLockHistory, formSubmissionTrigger);
+ if (m_plannedFormSubmission)
+ m_plannedFormSubmission->cancel();
+ m_plannedFormSubmission = makeWeakPtr(formSubmission.get());
+ frame->loader().submitForm(WTFMove(formSubmission));
if (needButtonActivation && firstSuccessfulSubmitButton)
firstSuccessfulSubmitButton->setActivatedSubmit(false);
Modified: branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.h (253770 => 253771)
--- branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.h 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.h 2019-12-19 19:23:56 UTC (rev 253771)
@@ -181,6 +181,7 @@
Vector<FormAssociatedElement*> m_associatedElements;
Vector<WeakPtr<HTMLImageElement>> m_imageElements;
WeakHashSet<HTMLFormControlElement> m_invalidAssociatedFormControls;
+ WeakPtr<FormSubmission> m_plannedFormSubmission;
bool m_wasUserSubmitted { false };
bool m_isSubmittingOrPreparingForSubmission { false };
Modified: branches/safari-609.1.13-branch/Source/WebCore/loader/FormSubmission.h (253770 => 253771)
--- branches/safari-609.1.13-branch/Source/WebCore/loader/FormSubmission.h 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/Source/WebCore/loader/FormSubmission.h 2019-12-19 19:23:56 UTC (rev 253771)
@@ -33,6 +33,7 @@
#include "FormState.h"
#include "FrameLoaderTypes.h"
#include <wtf/URL.h>
+#include <wtf/WeakPtr.h>
namespace WebCore {
@@ -40,9 +41,9 @@
class FormData;
class FrameLoadRequest;
-class FormSubmission : public RefCounted<FormSubmission> {
+class FormSubmission : public RefCounted<FormSubmission>, public CanMakeWeakPtr<FormSubmission> {
public:
- enum class Method { Get, Post };
+ enum class Method : bool { Get, Post };
class Attributes {
public:
@@ -96,11 +97,15 @@
void setReferrer(const String& referrer) { m_referrer = referrer; }
void setOrigin(const String& origin) { m_origin = origin; }
+ void cancel() { m_wasCancelled = true; }
+ bool wasCancelled() const { return m_wasCancelled; }
+
private:
FormSubmission(Method, const URL& action, const String& target, const String& contentType, Ref<FormState>&&, Ref<FormData>&&, const String& boundary, LockHistory, Event*);
// FIXME: Hold an instance of Attributes instead of individual members.
Method m_method;
+ bool m_wasCancelled { false };
URL m_action;
String m_target;
String m_contentType;
Modified: branches/safari-609.1.13-branch/Source/WebCore/loader/NavigationScheduler.cpp (253770 => 253771)
--- branches/safari-609.1.13-branch/Source/WebCore/loader/NavigationScheduler.cpp 2019-12-19 19:20:26 UTC (rev 253770)
+++ branches/safari-609.1.13-branch/Source/WebCore/loader/NavigationScheduler.cpp 2019-12-19 19:23:56 UTC (rev 253771)
@@ -277,6 +277,9 @@
void fire(Frame& frame) override
{
+ if (m_submission->wasCancelled())
+ return;
+
UserGestureIndicator gestureIndicator(userGestureToForward());
// The submitForm function will find a target frame before using the redirection timer.