OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <polymer-element name="ct-embedded-flakiness-dashboard" attributes="test tree"> | 7 <polymer-element name="ct-embedded-flakiness-dashboard" attributes="test tree"> |
8 <template> | 8 <template> |
9 <style> | 9 <style> |
10 :host { | 10 :host { |
(...skipping 14 matching lines...) Expand all Loading... |
25 ready: function() { | 25 ready: function() { |
26 window.addEventListener('message', function(event) { | 26 window.addEventListener('message', function(event) { |
27 if (event.data.command != 'heightChanged') | 27 if (event.data.command != 'heightChanged') |
28 return; | 28 return; |
29 | 29 |
30 this.$.iframe.style.height = event.data.height + 'px'; | 30 this.$.iframe.style.height = event.data.height + 'px'; |
31 }.bind(this)); | 31 }.bind(this)); |
32 }, | 32 }, |
33 | 33 |
34 testChanged: function() { | 34 testChanged: function() { |
35 this.$.iframe.src = this.test.embeddedFlakinessDashboardURL(this.tree); | 35 // Use location.replace so we don't create extraneous history events. |
| 36 this.$.iframe.contentWindow.location.replace(this.test.embeddedFlakiness
DashboardURL(this.tree)); |
36 }, | 37 }, |
37 | 38 |
38 }); | 39 }); |
39 </script> | 40 </script> |
40 </polymer-element> | 41 </polymer-element> |
OLD | NEW |