Changeset 57068 in webkit
- Timestamp:
- Apr 5, 2010 4:59:01 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57064 r57068 1 2010-04-05 Andrey Kosyakov <caseq@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Remove logging of successful XHR and worker's importScript() 6 to inspector console 7 https://bugs.webkit.org/show_bug.cgi?id=37078 8 9 * bindings/js/JSWorkerContextCustom.cpp: 10 (WebCore::JSWorkerContext::importScripts): 11 * bindings/v8/custom/V8WorkerContextCustom.cpp: 12 (WebCore::V8WorkerContext::importScriptsCallback): 13 * workers/DedicatedWorkerContext.cpp: 14 (WebCore::DedicatedWorkerContext::importScripts): 15 * workers/DedicatedWorkerContext.h: 16 * workers/WorkerContext.cpp: 17 (WebCore::WorkerContext::importScripts): 18 * workers/WorkerContext.h: 19 * xml/XMLHttpRequest.cpp: 20 (WebCore::XMLHttpRequest::didFinishLoading): 21 1 22 2010-04-04 Pavel Feldman <pfeldman@chromium.org> 2 23 -
trunk/WebCore/bindings/js/JSWorkerContextCustom.cpp
r54835 r57068 111 111 } 112 112 ExceptionCode ec = 0; 113 int signedLineNumber;114 intptr_t sourceID;115 UString sourceURL;116 JSValue function;117 exec->interpreter()->retrieveLastCaller(exec, signedLineNumber, sourceID, sourceURL, function);118 113 119 impl()->importScripts(urls, sourceURL, signedLineNumber >= 0 ? signedLineNumber : 0,ec);114 impl()->importScripts(urls, ec); 120 115 setDOMException(exec, ec); 121 116 return jsUndefined(); -
trunk/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp
r56131 r57068 91 91 return v8::Undefined(); 92 92 93 String callerURL;94 if (!V8Proxy::sourceName(callerURL))95 return v8::Undefined();96 int callerLine;97 if (!V8Proxy::sourceLineNumber(callerLine))98 return v8::Undefined();99 callerLine += 1;100 101 93 Vector<String> urls; 102 94 for (int i = 0; i < args.Length(); i++) { … … 111 103 112 104 ExceptionCode ec = 0; 113 workerContext->importScripts(urls, callerURL, callerLine,ec);105 workerContext->importScripts(urls, ec); 114 106 115 107 if (ec) -
trunk/WebCore/workers/DedicatedWorkerContext.cpp
r49214 r57068 72 72 } 73 73 74 void DedicatedWorkerContext::importScripts(const Vector<String>& urls, const String& callerURL, int callerLine,ExceptionCode& ec)74 void DedicatedWorkerContext::importScripts(const Vector<String>& urls, ExceptionCode& ec) 75 75 { 76 Base::importScripts(urls, callerURL, callerLine,ec);76 Base::importScripts(urls, ec); 77 77 thread()->workerObjectProxy().reportPendingActivity(hasPendingActivity()); 78 78 } -
trunk/WebCore/workers/DedicatedWorkerContext.h
r49214 r57068 52 52 53 53 // Overridden to allow us to check our pending activity after executing imported script. 54 virtual void importScripts(const Vector<String>& urls, const String& callerURL, int callerLine,ExceptionCode&);54 virtual void importScripts(const Vector<String>& urls, ExceptionCode&); 55 55 56 56 // EventTarget -
trunk/WebCore/workers/WorkerContext.cpp
r55823 r57068 189 189 } 190 190 191 void WorkerContext::importScripts(const Vector<String>& urls, const String& callerURL, int callerLine, ExceptionCode& ec) 192 { 193 #if !ENABLE(INSPECTOR) 194 UNUSED_PARAM(callerURL); 195 UNUSED_PARAM(callerLine); 196 #endif 191 void WorkerContext::importScripts(const Vector<String>& urls, ExceptionCode& ec) 192 { 197 193 ec = 0; 198 194 Vector<String>::const_iterator urlsEnd = urls.end(); … … 219 215 220 216 scriptExecutionContext()->scriptImported(scriptLoader.identifier(), scriptLoader.script()); 221 #if ENABLE(INSPECTOR)222 scriptExecutionContext()->addMessage(InspectorControllerDestination, JSMessageSource, LogMessageType, LogMessageLevel, "Worker script imported: \"" + *it + "\".", callerLine, callerURL);223 #endif224 217 225 218 ScriptValue exception; -
trunk/WebCore/workers/WorkerContext.h
r55823 r57068 89 89 90 90 // WorkerUtils 91 virtual void importScripts(const Vector<String>& urls, const String& callerURL, int callerLine,ExceptionCode&);91 virtual void importScripts(const Vector<String>& urls, ExceptionCode&); 92 92 WorkerNavigator* navigator() const; 93 93 -
trunk/WebCore/xml/XMLHttpRequest.cpp
r56825 r57068 873 873 874 874 scriptExecutionContext()->resourceRetrievedByXMLHttpRequest(identifier, m_responseText); 875 #if ENABLE(INSPECTOR)876 scriptExecutionContext()->addMessage(InspectorControllerDestination, JSMessageSource, LogMessageType, LogMessageLevel, "XHR finished loading: \"" + m_url + "\".", m_lastSendLineNumber, m_lastSendURL);877 #endif878 875 879 876 bool hadLoader = m_loader;
Note: See TracChangeset
for help on using the changeset viewer.