Changeset 90595 in webkit
- Timestamp:
- Jul 7, 2011 3:29:57 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90593 r90595 1 2011-07-07 Gavin Peters <gavinp@chromium.org> 2 3 Reviewed by Alexey Proskuryakov. 4 5 fast/dom/HTMLLinkElement/link-and-subresource-test.html is flaky on chromium debug bots 6 https://bugs.webkit.org/show_bug.cgi?id=60097 7 8 The culprit was that CachedResource:stopLoading() was using *this 9 after a call to checkNotify(), which isn't kosher. This patch 10 uses a CachedResourceHandle to keep the CachedResource alive. 11 12 The test is a very close copy of the eponymous 13 link-and-subresource-test.html, only substituting invalid 14 resources for the valid ones in that test. The reproduction is 15 timing related, and happens much more consistantly with an invalid 16 resource for whatever reason. 17 18 * fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent-expected.txt: Added. 19 * fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html: Added. 20 * platform/gtk/Skipped: 21 * platform/mac/Skipped: 22 * platform/qt/Skipped: 23 * platform/win/Skipped: 24 1 25 2011-07-07 Jeff Timanus <twiz@chromium.org> 2 26 -
trunk/LayoutTests/platform/gtk/Skipped
r90580 r90595 1019 1019 # Link prefetch is disabled by default 1020 1020 fast/dom/HTMLLinkElement/link-and-subresource-test.html 1021 fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html 1021 1022 fast/dom/HTMLLinkElement/prefetch.html 1022 1023 fast/dom/HTMLLinkElement/prefetch-beforeload.html -
trunk/LayoutTests/platform/mac/Skipped
r90175 r90595 176 176 # Link prefetch is disabled by default 177 177 fast/dom/HTMLLinkElement/link-and-subresource-test.html 178 fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html 178 179 fast/dom/HTMLLinkElement/prefetch.html 179 180 fast/dom/HTMLLinkElement/prefetch-beforeload.html -
trunk/LayoutTests/platform/qt/Skipped
r90570 r90595 116 116 # ENABLE(LINK_PREFETCH) is disabled. 117 117 fast/dom/HTMLLinkElement/link-and-subresource-test.html 118 fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html 118 119 fast/dom/HTMLLinkElement/prefetch.html 119 120 fast/dom/HTMLLinkElement/prefetch-beforeload.html -
trunk/LayoutTests/platform/win/Skipped
r90576 r90595 1031 1031 # Link prefetch is disabled by default 1032 1032 fast/dom/HTMLLinkElement/link-and-subresource-test.html 1033 fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html 1033 1034 fast/dom/HTMLLinkElement/prefetch.html 1034 1035 fast/dom/HTMLLinkElement/prefetch-beforeload.html -
trunk/Source/WebCore/ChangeLog
r90592 r90595 1 2011-07-07 Gavin Peters <gavinp@chromium.org> 2 3 Reviewed by Alexey Proskuryakov. 4 5 fast/dom/HTMLLinkElement/link-and-subresource-test.html is flaky on chromium debug bots 6 https://bugs.webkit.org/show_bug.cgi?id=60097 7 8 The culprit was that CachedResource:stopLoading() was using *this 9 after a call to checkNotify(), which isn't kosher. This patch 10 uses a CachedResourceHandle to keep the CachedResource alive. 11 12 The test is a very close copy of the eponymous 13 link-and-subresource-test.html, only substituting invalid 14 resources for the valid ones in that test. The reproduction is 15 timing related, and happens much more consistantly with an invalid 16 resource for whatever reason. 17 Test: fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent.html 18 19 * loader/cache/CachedResource.cpp: 20 (WebCore::CachedResource::stopLoading): 21 1 22 2011-07-07 James Robinson <jamesr@chromium.org> 2 23 -
trunk/Source/WebCore/loader/cache/CachedResource.cpp
r88391 r90595 264 264 m_request.clear(); 265 265 266 CachedResourceHandle<CachedResource> protect(this); 267 266 268 // All loads finish with data(allDataReceived = true) or error(), except for 267 269 // canceled loads, which silently set our request to 0. Be sure to notify our … … 272 274 checkNotify(); 273 275 } 274 275 if (canDelete() && !inCache())276 delete this;277 276 } 278 277
Note: See TracChangeset
for help on using the changeset viewer.