Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: Source/devtools/front_end/Settings.js

Issue 232023005: DevTools: better address console self-xss. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); 105 this.messageLevelFilters = this.createSetting("messageLevelFilters", {});
106 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW henDockedToRight", true); 106 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW henDockedToRight", true);
107 this.visiblePanels = this.createSetting("visiblePanels", {}); 107 this.visiblePanels = this.createSetting("visiblePanels", {});
108 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); 108 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false);
109 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor", false); 109 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor", false);
110 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal se); 110 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal se);
111 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte rn", ""); 111 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte rn", "");
112 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled", false); 112 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled", false);
113 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f alse); 113 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f alse);
114 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f alse); 114 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f alse);
115 this.allowPastingJavaScript = this.createSetting("allowPastingJavaScript", f alse);
115 } 116 }
116 117
117 WebInspector.Settings.prototype = { 118 WebInspector.Settings.prototype = {
118 /** 119 /**
119 * @param {string} key 120 * @param {string} key
120 * @param {*} defaultValue 121 * @param {*} defaultValue
121 * @return {!WebInspector.Setting} 122 * @return {!WebInspector.Setting}
122 */ 123 */
123 createSetting: function(key, defaultValue) 124 createSetting: function(key, defaultValue)
124 { 125 {
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 { 757 {
757 var newValue = this._calculateValue(); 758 var newValue = this._calculateValue();
758 if (newValue === this._value) 759 if (newValue === this._value)
759 return; 760 return;
760 this._value = newValue; 761 this._value = newValue;
761 this._eventSupport.dispatchEventToListeners(this._name, this._value); 762 this._eventSupport.dispatchEventToListeners(this._name, this._value);
762 } 763 }
763 } 764 }
764 765
765 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.PauseOnExce ptionStateSetting(); 766 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.PauseOnExce ptionStateSetting();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698