Title: [141967] trunk/Source/WebCore
- Revision
- 141967
- Author
- [email protected]
- Date
- 2013-02-05 21:16:59 -0800 (Tue, 05 Feb 2013)
Log Message
Web Inspector: Add ending slashes automatically to file mappings.
https://bugs.webkit.org/show_bug.cgi?id=108936
Reviewed by Pavel Feldman.
* inspector/front-end/SettingsScreen.js:
(WebInspector.WorkspaceSettingsTab.prototype._addFileMappingClicked):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (141966 => 141967)
--- trunk/Source/WebCore/ChangeLog 2013-02-06 05:12:54 UTC (rev 141966)
+++ trunk/Source/WebCore/ChangeLog 2013-02-06 05:16:59 UTC (rev 141967)
@@ -1,3 +1,13 @@
+2013-02-05 Vsevolod Vlasov <[email protected]>
+
+ Web Inspector: Add ending slashes automatically to file mappings.
+ https://bugs.webkit.org/show_bug.cgi?id=108936
+
+ Reviewed by Pavel Feldman.
+
+ * inspector/front-end/SettingsScreen.js:
+ (WebInspector.WorkspaceSettingsTab.prototype._addFileMappingClicked):
+
2013-02-05 Eric Carlson <[email protected]>
More updates to Caption user preferences
Modified: trunk/Source/WebCore/inspector/front-end/SettingsScreen.js (141966 => 141967)
--- trunk/Source/WebCore/inspector/front-end/SettingsScreen.js 2013-02-06 05:12:54 UTC (rev 141966)
+++ trunk/Source/WebCore/inspector/front-end/SettingsScreen.js 2013-02-06 05:16:59 UTC (rev 141967)
@@ -616,10 +616,16 @@
_addFileMappingClicked: function()
{
- if (!this._urlInputElement.value || !this._pathInputElement.value)
+ var url = ""
+ var path = this._pathInputElement.value;
+ if (!url || !path)
return;
var mappingEntries = WebInspector.fileMapping.mappingEntries();
- var mappingEntry = new WebInspector.FileMapping.Entry(this._urlInputElement.value, this._pathInputElement.value);
+ if (url[url.length - 1] !== "/")
+ url += "/";
+ if (path[path.length - 1] !== "/")
+ path += "/";
+ var mappingEntry = new WebInspector.FileMapping.Entry(url, path);
mappingEntries.push(mappingEntry);
WebInspector.fileMapping.setMappingEntries(mappingEntries);
this._addMappingRow(mappingEntry);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes