Changeset 121912 in webkit
- Timestamp:
- Jul 5, 2012 10:19:13 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r121909 r121912 1 2012-07-05 Nate Chapin <japhet@chromium.org> 2 3 Test for https://bugs.webkit.org/show_bug.cgi?id=88436. 4 5 Reviewed by Brady Eidson. 6 7 * http/tests/multipart/multipart-replace-non-html-content-expected.txt: Added. 8 * http/tests/multipart/multipart-replace-non-html-content.php: Added. 9 1 10 2012-07-05 Vincent Scheib <scheib@chromium.org> 2 11 -
trunk/Source/WebCore/ChangeLog
r121911 r121912 1 2012-07-05 Nate Chapin <japhet@chromium.org> 2 3 REGRESSION (r115654): Sometimes does not replace content for multipart/x-mixed-replace 4 https://bugs.webkit.org/show_bug.cgi?id=88436 5 6 Reviewed by Brady Eidson. 7 8 Test: http/tests/multipart/multipart-replace-non-html-content.php 9 10 * loader/DocumentLoader.cpp: 11 (WebCore::DocumentLoader::commitData): We should only send receivedFirstData() once per main resource load, 12 rather than multiple times in a multipart load. 13 (WebCore::DocumentLoader::setupForReplaceByMIMEType): m_gotFirstByte isn't set to true until data is 14 actually committed, and multipart data is often not committed until the part is finished. Check 15 whether the SharedBuffer is non-null instead. 16 * testing/js/WebCoreTestSupport.cpp: 17 (WebCoreTestSupport::resetInternalsObject): The JSInternals object my have already been cleared if the window shell 18 was cleared as part of creation of a new Document. Check it before using it. 19 1 20 2012-07-05 Pavel Feldman <pfeldman@chromium.org> 2 21 -
trunk/Source/WebCore/loader/DocumentLoader.cpp
r121836 r121912 336 336 #endif 337 337 338 frameLoader()->receivedFirstData(); 338 if (!frameLoader()->isReplacing()) 339 frameLoader()->receivedFirstData(); 339 340 340 341 bool userChosen = true; … … 367 368 void DocumentLoader::setupForReplaceByMIMEType(const String& newMIMEType) 368 369 { 369 if (!m _gotFirstByte)370 if (!mainResourceData()) 370 371 return; 371 372 -
trunk/Source/WebCore/testing/js/WebCoreTestSupport.cpp
r121836 r121912 53 53 JSLockHolder lock(exec); 54 54 JSDOMGlobalObject* globalObject = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject()); 55 Internals * internals = toInternals(globalObject->getDirect(exec->globalData(), Identifier(exec, Internals::internalsId))); 56 if (internals) { 55 JSValue internalsJS = globalObject->getDirect(exec->globalData(), Identifier(exec, Internals::internalsId)); 56 if (internalsJS.isNull() || internalsJS.isEmpty()) 57 return; 58 if (Internals* internals = toInternals(internalsJS)) { 57 59 ScriptExecutionContext* scriptContext = globalObject->scriptExecutionContext(); 58 60 if (scriptContext->isDocument())
Note: See TracChangeset
for help on using the changeset viewer.