Bug 182412

Summary: Form submission after navigation fails when decidePolicyForNavigationAction is async
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, beidson, cdumez, commit-queue, dbates, ews-watchlist, japhet, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=180568
Bug Depends on: 182697    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ews102 for mac-sierra
none
Archive of layout-test-results from ews113 for mac-sierra
none
Patch
none
Archive of layout-test-results from ews103 for mac-sierra
none
Archive of layout-test-results from ews112 for mac-sierra
none
Patch none

Description Alex Christensen 2018-02-01 16:43:00 PST
Form submission after navigation fails when decidePolicyForNavigationAction is async
Comment 1 Alex Christensen 2018-02-01 16:44:08 PST
Created attachment 332923 [details]
Patch
Comment 2 Alex Christensen 2018-02-01 16:44:44 PST
Comment on attachment 332923 [details]
Patch

Initial patch just contains failing test for rdar://problem/35181099
Comment 3 Alex Christensen 2018-02-02 14:18:12 PST
Created attachment 333000 [details]
Patch
Comment 4 Brady Eidson 2018-02-02 14:28:33 PST
Comment on attachment 333000 [details]
Patch

As discussed in person, this still has changed WK API behavior.
Comment 5 EWS Watchlist 2018-02-02 14:58:59 PST
Comment on attachment 333000 [details]
Patch

Attachment 333000 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/6337129

Number of test failures exceeded the failure limit.
Comment 6 EWS Watchlist 2018-02-02 14:59:00 PST
Created attachment 333005 [details]
Archive of layout-test-results from ews102 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 7 EWS Watchlist 2018-02-02 15:09:25 PST
Comment on attachment 333000 [details]
Patch

Attachment 333000 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/6337119

Number of test failures exceeded the failure limit.
Comment 8 EWS Watchlist 2018-02-02 15:09:26 PST
Created attachment 333007 [details]
Archive of layout-test-results from ews113 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 9 Alex Christensen 2018-02-02 15:15:17 PST
Created attachment 333009 [details]
Patch
Comment 10 EWS Watchlist 2018-02-02 15:42:14 PST
Comment on attachment 333009 [details]
Patch

Attachment 333009 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/6337744

Number of test failures exceeded the failure limit.
Comment 11 EWS Watchlist 2018-02-02 15:42:15 PST
Created attachment 333010 [details]
Archive of layout-test-results from ews103 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 12 EWS Watchlist 2018-02-02 15:56:20 PST
Comment on attachment 333009 [details]
Patch

Attachment 333009 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/6337743

Number of test failures exceeded the failure limit.
Comment 13 EWS Watchlist 2018-02-02 15:56:21 PST
Created attachment 333013 [details]
Archive of layout-test-results from ews112 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 14 Alex Christensen 2018-02-08 12:57:26 PST
Chris, the three WPT test failures in my latest patch are definitely related to why this bug is happening.  If you make TestController::decidePolicyForNavigationAction always dispatch on the run loop, you'll be able to investigate them.  I think fixing this will take adding a queue of some sort to the FrameLoader.
Comment 15 Chris Dumez 2018-02-08 13:58:29 PST
<rdar://problem/35181099>
Comment 16 Chris Dumez 2018-02-08 13:59:09 PST
Created attachment 333421 [details]
Patch
Comment 17 Chris Dumez 2018-02-08 13:59:43 PST
Seems to pass the tests locally and fix the bug. Let's see how EWS likes it.
Comment 18 Chris Dumez 2018-02-08 14:59:50 PST
Comment on attachment 333421 [details]
Patch

API tests locally look happy. Mac-EWS as well.
Comment 19 WebKit Commit Bot 2018-02-08 15:49:21 PST
Comment on attachment 333421 [details]
Patch

Clearing flags on attachment: 333421

Committed r228299: <https://trac.webkit.org/changeset/228299>
Comment 20 WebKit Commit Bot 2018-02-08 15:49:23 PST
All reviewed patches have been landed.  Closing bug.