OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
12 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
13 * | 13 * |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 // If the fetching attempt failed, throw a NETWORK_ERR exception and abo
rt all these steps. | 243 // If the fetching attempt failed, throw a NETWORK_ERR exception and abo
rt all these steps. |
244 if (scriptLoader.failed()) { | 244 if (scriptLoader.failed()) { |
245 ec = XMLHttpRequestException::NETWORK_ERR; | 245 ec = XMLHttpRequestException::NETWORK_ERR; |
246 return; | 246 return; |
247 } | 247 } |
248 | 248 |
249 InspectorInstrumentation::scriptImported(scriptExecutionContext(), script
Loader.identifier(), scriptLoader.script()); | 249 InspectorInstrumentation::scriptImported(scriptExecutionContext(), script
Loader.identifier(), scriptLoader.script()); |
250 | 250 |
251 ScriptValue exception; | 251 ScriptValue exception; |
252 m_script->evaluate(ScriptSourceCode(scriptLoader.script(), *it), &except
ion); | 252 m_script->evaluate(ScriptSourceCode(scriptLoader.script(), scriptLoader.
responseURL()), &exception); |
253 if (!exception.hasNoValue()) { | 253 if (!exception.hasNoValue()) { |
254 m_script->setException(exception); | 254 m_script->setException(exception); |
255 return; | 255 return; |
256 } | 256 } |
257 } | 257 } |
258 } | 258 } |
259 | 259 |
260 EventTarget* WorkerContext::errorEventTarget() | 260 EventTarget* WorkerContext::errorEventTarget() |
261 { | 261 { |
262 return this; | 262 return this; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 WorkerContext::Observer* observer = *iter; | 424 WorkerContext::Observer* observer = *iter; |
425 observer->stopObserving(); | 425 observer->stopObserving(); |
426 observer->notifyStop(); | 426 observer->notifyStop(); |
427 iter = m_workerObservers.begin(); | 427 iter = m_workerObservers.begin(); |
428 } | 428 } |
429 } | 429 } |
430 | 430 |
431 } // namespace WebCore | 431 } // namespace WebCore |
432 | 432 |
433 #endif // ENABLE(WORKERS) | 433 #endif // ENABLE(WORKERS) |
OLD | NEW |