Web Worker fails to fire error event when a resource fetch fails.
authorlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2011 00:21:23 +0000 (00:21 +0000)
committerlevin@chromium.org <levin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2011 00:21:23 +0000 (00:21 +0000)
commitc989573628d1cfb98ef0b0a610530a98ff17b808
treec7f9376e4362d8976dfc05b893bc12cb83e2a940
parent45b40569be8d6aab81a05724cad28d11dd0109e2
Web Worker fails to fire error event when a resource fetch fails.
https://bugs.webkit.org/show_bug.cgi?id=62475

Reviewed by Dmitry Titov.

Source/WebCore:

Test: http/tests/workers/worker-workerScriptNotThere.html

* workers/WorkerScriptLoader.cpp:
(WebCore::WorkerScriptLoader::didFinishLoading): Ensure that
the client is notified of the error when it happens during loading.

LayoutTests:

* http/tests/workers/worker-workerScriptNotThere-expected.txt: Added.
* http/tests/workers/worker-workerScriptNotThere.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@88579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/workers/worker-workerScriptNotThere-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/workers/worker-workerScriptNotThere.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/workers/WorkerScriptLoader.cpp