Bug 700302 - Handle null script filenames (r=sfink)
authortimeless@mozdev.org
Fri, 11 Nov 2011 11:35:06 -0800
changeset 80187 1d5bd2173fa1fa8aefb84577ac97fcae94732c9b
parent 80186 d176ef0c50c60ee5d06a7612a5ae12dd3d3970d8
child 80188 7f798afba1da963fcc5ef0eb60559778e286da8b
push id323
push userrcampbell@mozilla.com
push dateTue, 15 Nov 2011 21:58:36 +0000
treeherderfx-team@3ea216303184 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs700302
milestone11.0a1
Bug 700302 - Handle null script filenames (r=sfink)
js/jsd/jsd_xpc.cpp
--- a/js/jsd/jsd_xpc.cpp
+++ b/js/jsd/jsd_xpc.cpp
@@ -373,17 +373,17 @@ jsds_FilterHook (JSDContext *jsdc, JSDTh
     }
 
     JSDScript *script = JSD_GetScriptForStackFrame (jsdc, state, frame);
     if (!script)
         return true;
 
     jsuword pc = JSD_GetPCForStackFrame (jsdc, state, frame);
 
-    nsDependentCString url(JSD_GetScriptFilename (jsdc, script));
+    nsCString url(JSD_GetScriptFilename (jsdc, script));
     if (url.IsEmpty()) {
         NS_WARNING ("Script with no filename");
         return false;
     }
 
     if (!gFilters)
         return true;