Diff
Modified: branches/safari-609.1.13-branch/LayoutTests/ChangeLog (253771 => 253772)
--- branches/safari-609.1.13-branch/LayoutTests/ChangeLog 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/LayoutTests/ChangeLog 2019-12-19 19:24:01 UTC (rev 253772)
@@ -1,3 +1,7 @@
+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 (253771 => 253772)
--- branches/safari-609.1.13-branch/LayoutTests/imported/w3c/ChangeLog 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/LayoutTests/imported/w3c/ChangeLog 2019-12-19 19:24:01 UTC (rev 253772)
@@ -1,3 +1,7 @@
+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 (253771 => 253772)
--- 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)
+++ 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:24:01 UTC (rev 253772)
@@ -4,5 +4,5 @@
submit
-PASS <button> should have the same double-submit protection as <input type=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
Modified: branches/safari-609.1.13-branch/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/form-double-submit-expected.txt (253771 => 253772)
--- 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)
+++ 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:24:01 UTC (rev 253772)
@@ -4,5 +4,5 @@
-PASS default submit action should supersede onclick submit()
+FAIL default submit action should supersede onclick submit() assert_unreached: Frame1 should not get navigated by this test. Reached unreachable code
Modified: branches/safari-609.1.13-branch/LayoutTests/platform/mac/TestExpectations (253771 => 253772)
--- branches/safari-609.1.13-branch/LayoutTests/platform/mac/TestExpectations 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/LayoutTests/platform/mac/TestExpectations 2019-12-19 19:24:01 UTC (rev 253772)
@@ -1961,3 +1961,4 @@
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 (253771 => 253772)
--- branches/safari-609.1.13-branch/Source/WebCore/ChangeLog 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/Source/WebCore/ChangeLog 2019-12-19 19:24:01 UTC (rev 253772)
@@ -1,3 +1,7 @@
+2019-12-18 Alan Coon <[email protected]>
+
+ Revert r253493. rdar://problem/58028534
+
2019-12-16 Alan Coon <[email protected]>
Revert r253499. rdar://problem/57990824
@@ -1961,28 +1965,21 @@
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):
@@ -2004,10 +2001,9 @@
* rendering/line/LineLayoutTraversalSimplePath.h:
(WebCore::LineLayoutTraversal::SimplePath::baselineOffset const):
(WebCore::LineLayoutTraversal::SimplePath::isHorizontal const):
- (WebCore::LineLayoutTraversal::SimplePath::useLineBreakBoxRenderTreeDumpQuirk 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
@@ -2051,7 +2047,7 @@
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 (253771 => 253772)
--- branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.cpp 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.cpp 2019-12-19 19:24:01 UTC (rev 253772)
@@ -358,11 +358,7 @@
auto protectedThis = makeRef(*this); // Form submission can execute arbitary _javascript_.
auto shouldLockHistory = processingUserGesture ? LockHistory::No : LockHistory::Yes;
- 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));
+ frame->loader().submitForm(FormSubmission::create(*this, m_attributes, event, shouldLockHistory, formSubmissionTrigger));
if (needButtonActivation && firstSuccessfulSubmitButton)
firstSuccessfulSubmitButton->setActivatedSubmit(false);
Modified: branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.h (253771 => 253772)
--- branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.h 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/Source/WebCore/html/HTMLFormElement.h 2019-12-19 19:24:01 UTC (rev 253772)
@@ -181,7 +181,6 @@
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 (253771 => 253772)
--- branches/safari-609.1.13-branch/Source/WebCore/loader/FormSubmission.h 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/Source/WebCore/loader/FormSubmission.h 2019-12-19 19:24:01 UTC (rev 253772)
@@ -33,7 +33,6 @@
#include "FormState.h"
#include "FrameLoaderTypes.h"
#include <wtf/URL.h>
-#include <wtf/WeakPtr.h>
namespace WebCore {
@@ -41,9 +40,9 @@
class FormData;
class FrameLoadRequest;
-class FormSubmission : public RefCounted<FormSubmission>, public CanMakeWeakPtr<FormSubmission> {
+class FormSubmission : public RefCounted<FormSubmission> {
public:
- enum class Method : bool { Get, Post };
+ enum class Method { Get, Post };
class Attributes {
public:
@@ -97,15 +96,11 @@
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 (253771 => 253772)
--- branches/safari-609.1.13-branch/Source/WebCore/loader/NavigationScheduler.cpp 2019-12-19 19:23:56 UTC (rev 253771)
+++ branches/safari-609.1.13-branch/Source/WebCore/loader/NavigationScheduler.cpp 2019-12-19 19:24:01 UTC (rev 253772)
@@ -277,9 +277,6 @@
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.