| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 { | 489 { |
| 490 WebInspector.SDKObject.call(this, target); | 490 WebInspector.SDKObject.call(this, target); |
| 491 this.id = id; | 491 this.id = id; |
| 492 this.name = name; | 492 this.name = name; |
| 493 this.origin = origin; | 493 this.origin = origin; |
| 494 this.isDefault = isDefault; | 494 this.isDefault = isDefault; |
| 495 this.runtimeModel = target.runtimeModel; | 495 this.runtimeModel = target.runtimeModel; |
| 496 this.debuggerModel = WebInspector.DebuggerModel.fromTarget(target); | 496 this.debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
| 497 this.frameId = frameId; | 497 this.frameId = frameId; |
| 498 | 498 |
| 499 this._label = name; |
| 499 var parsedUrl = origin.asParsedURL(); | 500 var parsedUrl = origin.asParsedURL(); |
| 500 this._label = parsedUrl ? parsedUrl.lastPathComponentWithFragment() : name; | 501 if (!this._label && parsedUrl) |
| 502 this._label = parsedUrl.lastPathComponentWithFragment(); |
| 501 } | 503 } |
| 502 | 504 |
| 503 /** | 505 /** |
| 504 * @param {!WebInspector.ExecutionContext} a | 506 * @param {!WebInspector.ExecutionContext} a |
| 505 * @param {!WebInspector.ExecutionContext} b | 507 * @param {!WebInspector.ExecutionContext} b |
| 506 * @return {number} | 508 * @return {number} |
| 507 */ | 509 */ |
| 508 WebInspector.ExecutionContext.comparator = function(a, b) | 510 WebInspector.ExecutionContext.comparator = function(a, b) |
| 509 { | 511 { |
| 510 /** | 512 /** |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 /** | 1014 /** |
| 1013 * @return {boolean} | 1015 * @return {boolean} |
| 1014 */ | 1016 */ |
| 1015 isNormalListenerType: function() | 1017 isNormalListenerType: function() |
| 1016 { | 1018 { |
| 1017 return this._listenerType === "normal"; | 1019 return this._listenerType === "normal"; |
| 1018 }, | 1020 }, |
| 1019 | 1021 |
| 1020 __proto__: WebInspector.SDKObject.prototype | 1022 __proto__: WebInspector.SDKObject.prototype |
| 1021 } | 1023 } |
| OLD | NEW |