Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/composer.js

Issue 8788069: Fixed: EHH - Filter creating window won't close (Closed)
Patch Set: Created Nov. 8, 2012, 9:55 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | 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 * This Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 let {Prefs} = require("prefs"); 7 let {Prefs} = require("prefs");
8 8
9 let domainData; 9 let domainData;
10 let nodeData; 10 let nodeData;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 /********************* 130 /*********************
131 * General functions * 131 * General functions *
132 *********************/ 132 *********************/
133 133
134 function init() { 134 function init() {
135 var element = window.arguments[0]; 135 var element = window.arguments[0];
136 doc = element.ownerDocument; 136 doc = element.ownerDocument;
137 var wnd = doc.defaultView; 137 var wnd = doc.defaultView;
138 wnd.addEventListener("unload", function(event){ togglePreview(false); }, true) ;
Wladimir Palant 2012/11/08 10:42:34 So togglePreview() is the issue? Then this is the
Andrey Novikov 2012/11/08 10:54:54 Exact issue is that previewStyle is dead object af
138 139
139 // Check whether element hiding group is disabled 140 // Check whether element hiding group is disabled
140 let subscription = AdblockPlus.getSubscription("~eh~"); 141 let subscription = AdblockPlus.getSubscription("~eh~");
141 if (subscription && subscription.disabled) 142 if (subscription && subscription.disabled)
142 { 143 {
143 let warning = document.getElementById("groupDisabledWarning"); 144 let warning = document.getElementById("groupDisabledWarning");
144 if (/\?1\?/.test(warning.textContent)) 145 if (/\?1\?/.test(warning.textContent))
145 warning.textContent = warning.textContent.replace(/\?1\?/g, subscription.t itle); 146 warning.textContent = warning.textContent.replace(/\?1\?/g, subscription.t itle);
146 warning.hidden = false; 147 warning.hidden = false;
147 } 148 }
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 627
627 fillAttributes(item.nodeData); 628 fillAttributes(item.nodeData);
628 } 629 }
629 630
630 function addExpression() 631 function addExpression()
631 { 632 {
632 AdblockPlus.addPatterns([document.getElementById("expression").value]); 633 AdblockPlus.addPatterns([document.getElementById("expression").value]);
633 634
634 togglePreview(false); 635 togglePreview(false);
635 } 636 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld