Bug 88436

Summary: REGRESSION (r115654): Sometimes does not replace content for multipart/x-mixed-replace
Product: WebKit Reporter: Gustavo Noronha (kov) <gustavo>
Component: Page LoadingAssignee: Nate Chapin <japhet>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ap, beidson, japhet, jochen, webkit.review.bot
Priority: P1 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 90522    
Bug Blocks:    
Attachments:
Description Flags
Patch (without test)
none
patch + test none

Description Gustavo Noronha (kov) 2012-06-06 11:34:06 PDT
I have a work-in-progress patch for libsoup and the soup backend of WebKit to support multipart/x-mixed-replace. I noticed after I rebased it on top of a more recent WebKit it stopped working. I managed to bisect the problem to the revision mentioned in the summary. Interestingly some tests work right (like the multipart tests in our LayoutTests), but I managed to reproduce it with this toy: https://gitorious.org/kov-play/kov-play/blobs/master/nodejs/multipart-clock.js

I'll try to come up with a test. Would be good if we can confirm the problem in another port.
Comment 1 Alexey Proskuryakov 2012-06-06 15:22:58 PDT
Please always add author and reviewer of an offending change to CC list for regressions.
Comment 2 Nate Chapin 2012-06-06 16:54:49 PDT
(In reply to comment #0)
> I have a work-in-progress patch for libsoup and the soup backend of WebKit to support multipart/x-mixed-replace. I noticed after I rebased it on top of a more recent WebKit it stopped working. I managed to bisect the problem to the revision mentioned in the summary. Interestingly some tests work right (like the multipart tests in our LayoutTests), but I managed to reproduce it with this toy: https://gitorious.org/kov-play/kov-play/blobs/master/nodejs/multipart-clock.js
> 
> I'll try to come up with a test. Would be good if we can confirm the problem in another port.

I'll look at this tomorrow. Any hints you have or guidance as to how it's failing will be greatly appreciated :)
Comment 3 Nate Chapin 2012-06-07 14:01:48 PDT
Created attachment 146384 [details]
Patch (without test)

Still looking for a proper layout test....
Comment 4 Nate Chapin 2012-06-07 17:09:11 PDT
(In reply to comment #3)
> Created an attachment (id=146384) [details]
> Patch (without test)
> 
> Still looking for a proper layout test....

I have a test that works correctly in a full debug build of Safari, but asserts pretty regularly in WTR because of a null Internals* on the JS context during teardown.

I haven't figured out yet whether that's a test infrastructure bug or a symptom of something sinister. Is this familiar to anyone?
Comment 5 Alexey Proskuryakov 2012-06-07 17:17:07 PDT
The code to remove Internals on teardown in WTR is new (I added it last week), and I seen an assertion below it a few times. Unfortunately, I cannot investigate this now.

If you have a mostly reproducible case, and can find out the reason for these assertions, that would be extremely helpful. Perhaps the method is called twice somehow?
Comment 6 Nate Chapin 2012-06-14 11:30:31 PDT
Created attachment 147623 [details]
patch + test
Comment 7 Brady Eidson 2012-07-03 15:34:23 PDT
In radar as <rdar://problem/11801704>
Comment 8 WebKit Review Bot 2012-07-03 16:54:25 PDT
Comment on attachment 147623 [details]
patch + test

Clearing flags on attachment: 147623

Committed r121813: <http://trac.webkit.org/changeset/121813>
Comment 9 WebKit Review Bot 2012-07-03 16:54:30 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 WebKit Review Bot 2012-07-04 00:34:51 PDT
Re-opened since this is blocked by 90522
Comment 11 Brady Eidson 2012-07-05 09:55:03 PDT
The rollout in bug 90522 was invalid as it wasn't based in any failures here at the WebKit project.

Since this patch fixed an important regression here in WebKit and did not cause any known new regressions here in Webkit, rolling this back in.
Comment 12 WebKit Review Bot 2012-07-05 10:19:30 PDT
Comment on attachment 147623 [details]
patch + test

Clearing flags on attachment: 147623

Committed r121912: <http://trac.webkit.org/changeset/121912>
Comment 13 WebKit Review Bot 2012-07-05 10:19:37 PDT
All reviewed patches have been landed.  Closing bug.