|
| 1 | +2010-04-28 Dmitry Titov <dimich@chromium.org> |
| 2 | + |
| 3 | + Reviewed by Geoffrey Garen. |
| 4 | + |
| 5 | + REGRESSION: fast/workers/wrapper-map-gc.html crashes on Snow Leopard Release Bot |
| 6 | + https://bugs.webkit.org/show_bug.cgi?id=37554 |
| 7 | + |
| 8 | + The flaky fast/workers/wrapper-map-gc.html will stop being flaky. |
| 9 | + |
| 10 | + * bindings/js/JSEventListener.cpp: |
| 11 | + (WebCore::JSEventListener::handleEvent): |
| 12 | + check if JS execution was terminated, as in cases of Worker.terminate() or WorkerGlobalScope.close(). |
| 13 | + * bindings/js/JSWorkerContextBase.cpp: |
| 14 | + (WebCore::toJS): ASSERT the value of workerContextWrapper, it should never be 0. |
| 15 | + * bindings/js/WorkerScriptController.h: |
| 16 | + (WebCore::WorkerScriptController::workerContextWrapper): remove returning 0 if JS execution was forbidden. |
| 17 | + (WebCore::WorkerScriptController::isExecutionForbidden): |
| 18 | + * bindings/v8/WorkerScriptController.h: |
| 19 | + (WebCore::WorkerScriptController::isExecutionForbidden): |
| 20 | + |
| 21 | + Add ScriptExecutionContext::isJSExecutionTerminated(), it is always 'false' for Document |
| 22 | + and 'true' for WorkerContext when script is terminated. |
| 23 | + * dom/ScriptExecutionContext.h: |
| 24 | + * dom/Document.h: |
| 25 | + (WebCore::Document::isJSExecutionTerminated): |
| 26 | + * workers/WorkerContext.cpp: |
| 27 | + (WebCore::WorkerContext::isJSExecutionTerminated): |
| 28 | + * workers/WorkerContext.h: |
| 29 | + |
1 | 30 | 2010-04-28 Ilya Tikhonovsky <loislo@chromium.org> |
2 | 31 |
|
3 | 32 | Reviewed by Yury Semikhatsky. |
|
0 commit comments