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

Side by Side Diff: lib/ui.js

Issue 29333320: Issue 3486 - Issue reporter: remove content window access (Closed)
Patch Set: Created Jan. 7, 2016, 7:32 p.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 | « chrome/content/ui/sendReport.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 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 wnd.focus(); 792 wnd.focus();
793 else 793 else
794 { 794 {
795 let uri = this.getCurrentLocation(window); 795 let uri = this.getCurrentLocation(window);
796 if (uri) 796 if (uri)
797 { 797 {
798 let {getBrowser} = require("appSupport"); 798 let {getBrowser} = require("appSupport");
799 let browser = getBrowser(window); 799 let browser = getBrowser(window);
800 if ("selectedBrowser" in browser) 800 if ("selectedBrowser" in browser)
801 browser = browser.selectedBrowser; 801 browser = browser.selectedBrowser;
802 window.openDialog("chrome://adblockplus/content/ui/sendReport.xul", "_bl ank", "chrome,centerscreen,resizable=no", browser.contentWindow, uri, browser); 802 window.openDialog("chrome://adblockplus/content/ui/sendReport.xul", "_bl ank", "chrome,centerscreen,resizable=no", browser.outerWindowID, uri, browser);
803 } 803 }
804 } 804 }
805 }, 805 },
806 806
807 /** 807 /**
808 * Opens our contribution page. 808 * Opens our contribution page.
809 */ 809 */
810 openContributePage: function(/**Window*/ window) 810 openContributePage: function(/**Window*/ window)
811 { 811 {
812 this.loadDocLink("contribute", window); 812 this.loadDocLink("contribute", window);
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], 1904 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)],
1905 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa tegory.bind(Notification, "*", null)] 1905 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa tegory.bind(Notification, "*", null)]
1906 ]; 1906 ];
1907 1907
1908 onShutdown.add(function() 1908 onShutdown.add(function()
1909 { 1909 {
1910 for (let window of UI.applicationWindows) 1910 for (let window of UI.applicationWindows)
1911 if (UI.isBottombarOpen(window)) 1911 if (UI.isBottombarOpen(window))
1912 UI.toggleBottombar(window); 1912 UI.toggleBottombar(window);
1913 }); 1913 });
OLDNEW
« no previous file with comments | « chrome/content/ui/sendReport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld