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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js

Issue 2329153002: Remove the WARNING security level.
Patch Set: Restore top control test for sub.originalwebsite.com (but with ERROR instead of WARNING). Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.SDKModel} 7 * @extends {WebInspector.SDKModel}
8 * @param {!WebInspector.Target} target 8 * @param {!WebInspector.Target} target
9 */ 9 */
10 WebInspector.SecurityModel = function(target) 10 WebInspector.SecurityModel = function(target)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 { 51 {
52 var securityStateMap; 52 var securityStateMap;
53 if (WebInspector.SecurityModel._symbolicToNumericSecurityState) { 53 if (WebInspector.SecurityModel._symbolicToNumericSecurityState) {
54 securityStateMap = WebInspector.SecurityModel._symbolicToNumericSecurity State; 54 securityStateMap = WebInspector.SecurityModel._symbolicToNumericSecurity State;
55 } else { 55 } else {
56 securityStateMap = new Map(); 56 securityStateMap = new Map();
57 var ordering = [ 57 var ordering = [
58 SecurityAgent.SecurityState.Info, 58 SecurityAgent.SecurityState.Info,
59 SecurityAgent.SecurityState.Insecure, 59 SecurityAgent.SecurityState.Insecure,
60 SecurityAgent.SecurityState.Neutral, 60 SecurityAgent.SecurityState.Neutral,
61 SecurityAgent.SecurityState.Warning,
62 SecurityAgent.SecurityState.Secure, 61 SecurityAgent.SecurityState.Secure,
63 // Unknown is max so that failed/cancelled requests don't overwrite the origin security state for successful requests, 62 // Unknown is max so that failed/cancelled requests don't overwrite the origin security state for successful requests,
64 // and so that failed/cancelled requests appear at the bottom of the origins list. 63 // and so that failed/cancelled requests appear at the bottom of the origins list.
65 SecurityAgent.SecurityState.Unknown 64 SecurityAgent.SecurityState.Unknown
66 ]; 65 ];
67 for (var i = 0; i < ordering.length; i++) 66 for (var i = 0; i < ordering.length; i++)
68 securityStateMap.set(ordering[i], i + 1); 67 securityStateMap.set(ordering[i], i + 1);
69 WebInspector.SecurityModel._symbolicToNumericSecurityState = securitySta teMap; 68 WebInspector.SecurityModel._symbolicToNumericSecurityState = securitySta teMap;
70 } 69 }
71 var aScore = securityStateMap.get(a) || 0; 70 var aScore = securityStateMap.get(a) || 0;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 * @param {!Array<!SecurityAgent.SecurityStateExplanation>=} explanations 103 * @param {!Array<!SecurityAgent.SecurityStateExplanation>=} explanations
105 * @param {!SecurityAgent.InsecureContentStatus=} insecureContentStatus 104 * @param {!SecurityAgent.InsecureContentStatus=} insecureContentStatus
106 * @param {boolean=} schemeIsCryptographic 105 * @param {boolean=} schemeIsCryptographic
107 */ 106 */
108 securityStateChanged: function(securityState, explanations, insecureContentS tatus, schemeIsCryptographic) 107 securityStateChanged: function(securityState, explanations, insecureContentS tatus, schemeIsCryptographic)
109 { 108 {
110 var pageSecurityState = new WebInspector.PageSecurityState(securityState , explanations || [], insecureContentStatus || null, schemeIsCryptographic || fa lse); 109 var pageSecurityState = new WebInspector.PageSecurityState(securityState , explanations || [], insecureContentStatus || null, schemeIsCryptographic || fa lse);
111 this._model.dispatchEventToListeners(WebInspector.SecurityModel.Events.S ecurityStateChanged, pageSecurityState); 110 this._model.dispatchEventToListeners(WebInspector.SecurityModel.Events.S ecurityStateChanged, pageSecurityState);
112 } 111 }
113 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698