Skip to content

Commit 607f2b6

Browse files
2011-04-15 Charlie Reis <creis@chromium.org>
Reviewed by Darin Fisher. [Chromium] fast/events/popup-allowed-from-gesture-initiated-form-submit.html causing debug ASSERT https://bugs.webkit.org/show_bug.cgi?id=44079 Remove an assert whose invariant doesn't hold. * platform/chromium/test_expectations.txt: Re-enable test. 2011-04-15 Charlie Reis <creis@chromium.org> Reviewed by Darin Fisher. [Chromium] fast/events/popup-allowed-from-gesture-initiated-form-submit.html causing debug ASSERT https://bugs.webkit.org/show_bug.cgi?id=44079 Remove an assert whose invariant doesn't hold. * src/FrameLoaderClientImpl.cpp: Canonical link: https://commits.webkit.org/73796@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 4e08670 commit 607f2b6

4 files changed

Lines changed: 34 additions & 8 deletions

File tree

LayoutTests/ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2011-04-15 Charlie Reis <creis@chromium.org>
2+
3+
Reviewed by Darin Fisher.
4+
5+
[Chromium] fast/events/popup-allowed-from-gesture-initiated-form-submit.html causing debug ASSERT
6+
https://bugs.webkit.org/show_bug.cgi?id=44079
7+
8+
Remove an assert whose invariant doesn't hold.
9+
10+
* platform/chromium/test_expectations.txt: Re-enable test.
11+
112
2011-04-15 Kinuko Yasuda <kinuko@chromium.org>
213

314
Reviewed by David Levin.

LayoutTests/platform/chromium/test_expectations.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,10 +2250,6 @@ BUGWK43912 WIN LINUX : svg/custom/absolute-sized-content-with-resources.xhtml =
22502250
// Times out frequently since the test was added
22512251
BUGCR52017 MAC LINUX : http/tests/misc/isindex-with-no-form.html = PASS TIMEOUT
22522252

2253-
// Probably http://trac.webkit.org/changeset/65381
2254-
// This test causes the next one to run to ASSERT
2255-
BUGWK44079 DEBUG SKIP : fast/events/popup-allowed-from-gesture-initiated-form-submit.html = PASS
2256-
22572253
// Flaky. Not sure when it started to fail.
22582254
BUGCR52572 WIN LINUX DEBUG : http/tests/misc/image-blocked-src-change.html = PASS TEXT
22592255

Source/WebKit/chromium/ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2011-04-15 Charlie Reis <creis@chromium.org>
2+
3+
Reviewed by Darin Fisher.
4+
5+
[Chromium] fast/events/popup-allowed-from-gesture-initiated-form-submit.html causing debug ASSERT
6+
https://bugs.webkit.org/show_bug.cgi?id=44079
7+
8+
Remove an assert whose invariant doesn't hold.
9+
10+
* src/FrameLoaderClientImpl.cpp:
11+
112
2011-04-15 Kinuko Yasuda <kinuko@chromium.org>
213

314
Reviewed by David Levin.

Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,18 @@ void FrameLoaderClientImpl::dispatchDidStartProvisionalLoad()
714714
// m_expectedClientRedirectDest could be something like
715715
// "javascript:history.go(-1)" thus we need to exclude url starts with
716716
// "javascript:". See bug: 1080873
717-
ASSERT(m_expectedClientRedirectDest.protocolIs("javascript")
718-
|| m_expectedClientRedirectDest == url);
719-
ds->appendRedirect(m_expectedClientRedirectSrc);
720-
completingClientRedirect = true;
717+
if (m_expectedClientRedirectDest.protocolIs("javascript")
718+
|| m_expectedClientRedirectDest == url) {
719+
ds->appendRedirect(m_expectedClientRedirectSrc);
720+
completingClientRedirect = true;
721+
} else {
722+
// Any pending redirect is no longer in progress. This can happen
723+
// if the navigation was canceled with PolicyIgnore, or if the
724+
// redirect was scheduled on the wrong frame (e.g., due to a form
725+
// submission targeted to _blank, as in http://webkit.org/b/44079).
726+
m_expectedClientRedirectSrc = KURL();
727+
m_expectedClientRedirectDest = KURL();
728+
}
721729
}
722730
ds->appendRedirect(url);
723731

0 commit comments

Comments
 (0)