1 |
nirbheek 10/07/25 19:06:35 |
2 |
|
3 |
Added: mozilla-filepicker.patch gentoo-default-prefs.js |
4 |
000_flex-configure-LANG.patch |
5 |
xulrunner-1.9.2-arm-fixes.patch firefox.1 |
6 |
xulrunner-1.9.2-noalsa-fixup.patch |
7 |
firefox-default-prefs.js 1000_fix_alignment.patch |
8 |
firefox-3.0-solaris64.patch |
9 |
801-enable-x86_64-tracemonkey.patch |
10 |
137-bz460917_reload_new_plugins-gentoo-update-3.6.4.patch |
11 |
Log: |
12 |
pkgmove from mozilla-firefox -> firefox |
13 |
(Portage version: 2.1.8.3/cvs/Linux i686, RepoMan options: --force) |
14 |
|
15 |
Revision Changes Path |
16 |
1.1 www-client/firefox/files/mozilla-filepicker.patch |
17 |
|
18 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/mozilla-filepicker.patch?rev=1.1&view=markup |
19 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/mozilla-filepicker.patch?rev=1.1&content-type=text/plain |
20 |
|
21 |
Index: mozilla-filepicker.patch |
22 |
=================================================================== |
23 |
diff -Naur a/xpfe/components/filepicker/src/nsFilePicker.js.in b/xpfe/components/filepicker/src/nsFilePicker.js.in |
24 |
--- a/xpfe/components/filepicker/src/nsFilePicker.js.in 2005-01-25 12:57:29.000000000 +0100 |
25 |
+++ b/xpfe/components/filepicker/src/nsFilePicker.js.in 2006-06-05 17:40:44.000000000 +0200 |
26 |
@@ -272,11 +272,9 @@ |
27 |
|
28 |
compMgr.registerFactoryLocation(FILEPICKER_CID, |
29 |
"FilePicker JS Component", |
30 |
-#ifndef MOZ_WIDGET_GTK2 |
31 |
+ |
32 |
FILEPICKER_CONTRACTID, |
33 |
-#else |
34 |
- "", |
35 |
-#endif |
36 |
+ |
37 |
fileSpec, |
38 |
location, |
39 |
type); |
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/firefox/files/gentoo-default-prefs.js |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/gentoo-default-prefs.js?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/gentoo-default-prefs.js?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: gentoo-default-prefs.js |
49 |
=================================================================== |
50 |
pref("app.update.enabled", false); |
51 |
pref("app.update.autoInstallEnabled", false); |
52 |
pref("browser.display.use_system_colors", true); |
53 |
pref("browser.link.open_external", 3); |
54 |
pref("general.smoothScroll", true); |
55 |
pref("general.autoScroll", false); |
56 |
pref("browser.tabs.tabMinWidth", 15); |
57 |
pref("browser.backspace_action", 0); |
58 |
pref("browser.urlbar.hideGoButton", true); |
59 |
pref("accessibility.typeaheadfind", true); |
60 |
pref("browser.shell.checkDefaultBrowser", false); |
61 |
pref("browser.EULA.override", true); |
62 |
|
63 |
|
64 |
|
65 |
1.1 www-client/firefox/files/000_flex-configure-LANG.patch |
66 |
|
67 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/000_flex-configure-LANG.patch?rev=1.1&view=markup |
68 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/000_flex-configure-LANG.patch?rev=1.1&content-type=text/plain |
69 |
|
70 |
Index: 000_flex-configure-LANG.patch |
71 |
=================================================================== |
72 |
The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in |
73 |
option parsing, it may break. |
74 |
|
75 |
http://bugs.gentoo.org/103483 |
76 |
|
77 |
--- configure~ 2009-07-31 20:07:25.087663220 -0500 |
78 |
+++ configure 2009-07-31 20:07:37.987684452 -0500 |
79 |
@@ -468,6 +468,16 @@ |
80 |
infodir='${prefix}/info' |
81 |
mandir='${prefix}/man' |
82 |
|
83 |
+# NLS nuisances. |
84 |
+# Only set these to C if already set. These must not be set unconditionally |
85 |
+# because not all systems understand e.g. LANG=C (notably SCO). |
86 |
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
87 |
+# Non-C LC_CTYPE values break the ctype check. |
88 |
+if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
89 |
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
90 |
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
91 |
+if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
92 |
+ |
93 |
# Initialize some other variables. |
94 |
subdirs= |
95 |
MFLAGS= MAKEFLAGS= |
96 |
@@ -856,16 +866,6 @@ |
97 |
esac |
98 |
done |
99 |
|
100 |
-# NLS nuisances. |
101 |
-# Only set these to C if already set. These must not be set unconditionally |
102 |
-# because not all systems understand e.g. LANG=C (notably SCO). |
103 |
-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
104 |
-# Non-C LC_CTYPE values break the ctype check. |
105 |
-if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
106 |
-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
107 |
-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
108 |
-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
109 |
- |
110 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
111 |
rm -rf conftest* confdefs.h |
112 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
113 |
|
114 |
|
115 |
|
116 |
1.1 www-client/firefox/files/xulrunner-1.9.2-arm-fixes.patch |
117 |
|
118 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/xulrunner-1.9.2-arm-fixes.patch?rev=1.1&view=markup |
119 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/xulrunner-1.9.2-arm-fixes.patch?rev=1.1&content-type=text/plain |
120 |
|
121 |
Index: xulrunner-1.9.2-arm-fixes.patch |
122 |
=================================================================== |
123 |
Fix arm OS detection |
124 |
|
125 |
https://bugs.gentoo.org/327783 |
126 |
https://bugzilla.mozilla.org/show_bug.cgi?id=577319 |
127 |
--- |
128 |
--- configure.in |
129 |
+++ configure.in |
130 |
@@ -1424,9 +1424,11 @@ |
131 |
CPU_ARCH="$OS_TEST" |
132 |
;; |
133 |
|
134 |
-arm) |
135 |
+arm*) |
136 |
if test "$OS_TARGET" = "WINCE"; then |
137 |
CPU_ARCH="$OS_TEST" |
138 |
+ else |
139 |
+ CPU_ARCH="arm" |
140 |
fi |
141 |
;; |
142 |
esac |
143 |
--- js/src/configure.in |
144 |
+++ js/src/configure.in |
145 |
@@ -1162,9 +1162,11 @@ |
146 |
CPU_ARCH="$OS_TEST" |
147 |
;; |
148 |
|
149 |
-arm) |
150 |
+arm*) |
151 |
if test "$OS_TARGET" = "WINCE"; then |
152 |
CPU_ARCH="$OS_TEST" |
153 |
+ else |
154 |
+ CPU_ARCH="arm" |
155 |
fi |
156 |
;; |
157 |
esac |
158 |
|
159 |
|
160 |
|
161 |
1.1 www-client/firefox/files/firefox.1 |
162 |
|
163 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox.1?rev=1.1&view=markup |
164 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox.1?rev=1.1&content-type=text/plain |
165 |
|
166 |
Index: firefox.1 |
167 |
=================================================================== |
168 |
.TH FIREFOX 1 "August 07, 2001" firefox "Linux User's Manual" |
169 |
.SH NAME |
170 |
firefox \- a Web browser for X11 derived from the Mozilla browser |
171 |
|
172 |
.SH SYNOPSIS |
173 |
.B firefox |
174 |
[\fIOPTIONS\fR] [\fIURL\fR] |
175 |
|
176 |
.B firefox-bin |
177 |
[\fIOPTIONS\fR] [\fIURL\fR] |
178 |
|
179 |
.SH DESCRIPTION |
180 |
\fBMozilla Firefox\fR is an open-source web browser, designed for |
181 |
standards compliance, performance and portability. |
182 |
|
183 |
.SH USAGE |
184 |
\fBfirefox\fR is a simple shell script that will set up the |
185 |
environment for the actual executable, \fBfirefox-bin\fR. |
186 |
|
187 |
.SH OPTIONS |
188 |
A summary of the options supported by \fBfirefox\fR is included below. |
189 |
|
190 |
.SS "GTK options" |
191 |
\fB\-\-gdk-debug=\fR\fIFLAGS\fR |
192 |
Gdk debugging flags to set |
193 |
.TP |
194 |
\fB\-\-gdk-no-debug=\fR\fIFLAGS\fR |
195 |
Gdk debugging flags to unset |
196 |
.TP |
197 |
\fB\-\-gtk-debug=\fR\fIFLAGS\fR |
198 |
Gtk+ debugging flags to set |
199 |
.TP |
200 |
\fB\-\-gtk-no-debug=\fR\fIFLAGS\fR |
201 |
Gtk+ debugging flags to unset |
202 |
.TP |
203 |
\fB\-\-gtk-module=\fR\fIMODULE\fR |
204 |
Load an additional Gtk module |
205 |
|
206 |
.SS "X11 options" |
207 |
.TP |
208 |
.BI \-\-display= DISPLAY |
209 |
X display to use |
210 |
.TP |
211 |
.B \--sync |
212 |
Make X calls synchronous |
213 |
.TP |
214 |
.B \-\-no-xshm |
215 |
Don't use X shared memory extension |
216 |
.TP |
217 |
.BI \-\-xim-preedit= STYLE |
218 |
.TP |
219 |
.BI \-\-xim-status= STYLE |
220 |
.TP |
221 |
.B \-\-g-fatal-warnings |
222 |
Make all warnings fatal |
223 |
|
224 |
.SS "Firefox options" |
225 |
.TP |
226 |
\fB\-height\fR \fIvalue\fR |
227 |
Set height of startup window to \fIvalue\fR. |
228 |
.TP |
229 |
.B \-h, \-help |
230 |
Show summary of options. |
231 |
.TP |
232 |
.B \-installer |
233 |
Start with 4.x migration window. |
234 |
.TP |
235 |
\fB\-width\fR \fIvalue\fR |
236 |
Set width of startup window to \fIvalue\fR. |
237 |
.TP |
238 |
.B \-v, \-version |
239 |
Print \fB/usr/bin/firefox-bin\fR version. |
240 |
.TP |
241 |
\fB\-CreateProfile\fR \fIprofile\fR |
242 |
Create \fIprofile\fR. |
243 |
.TP |
244 |
\fB\-P\fR \fIprofile\fR |
245 |
Start with \fIprofile\fR. |
246 |
.TP |
247 |
.B \-ProfileWizard |
248 |
Start with profile wizard. |
249 |
.TP |
250 |
.B \-ProfileManager |
251 |
Start with profile manager. |
252 |
.TP |
253 |
.B \-SelectProfile |
254 |
Start with profile selection dialog. |
255 |
.TP |
256 |
\fB\-lang\fR \fIlang-region\fR |
257 |
Start with \fIlang-region\fR resources. |
258 |
.TP |
259 |
\fB\-remote\fR \fIcommand\fR |
260 |
Execute \fIcommand\fR in an already running Firefox process. For more info, |
261 |
see: \fIhttp://www.mozilla.org/unix/remote.html\fR |
262 |
.TP |
263 |
.B \-splash |
264 |
Enable splash screen. |
265 |
.TP |
266 |
.B \-jsconsole |
267 |
Start with Javascript Console |
268 |
.TP |
269 |
\fB\-chrome\fR \fIurl\fR |
270 |
Load the specified chrome. |
271 |
.TP |
272 |
|
273 |
.SH FILES |
274 |
\fI/usr/bin/firefox\fR - shell script wrapping |
275 |
\fBfirefox\fR |
276 |
.br |
277 |
\fI/usr/lib/mozilla/firefox-bin\fR - \fBfirefox\fR |
278 |
executable |
279 |
|
280 |
.SH VERSION |
281 |
1.0 |
282 |
|
283 |
.SH BUGS |
284 |
To report a bug, please visit \fIhttp://bugzilla.mozilla.org/\fR |
285 |
|
286 |
.SH "SEE ALSO" |
287 |
.BR mozilla(1) |
288 |
|
289 |
.SH AUTHORS |
290 |
.TP |
291 |
.B The Mozilla Organization |
292 |
.I http://www.mozilla.org/about.html |
293 |
|
294 |
|
295 |
|
296 |
1.1 www-client/firefox/files/xulrunner-1.9.2-noalsa-fixup.patch |
297 |
|
298 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/xulrunner-1.9.2-noalsa-fixup.patch?rev=1.1&view=markup |
299 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/xulrunner-1.9.2-noalsa-fixup.patch?rev=1.1&content-type=text/plain |
300 |
|
301 |
Index: xulrunner-1.9.2-noalsa-fixup.patch |
302 |
=================================================================== |
303 |
diff -urN mozilla-1.9.2-orig/content/base/src/nsDocument.cpp mozilla-1.9.2/content/base/src/nsDocument.cpp |
304 |
--- mozilla-1.9.2-orig/content/base/src/nsDocument.cpp 2010-01-28 22:16:08.683135912 -0600 |
305 |
+++ mozilla-1.9.2/content/base/src/nsDocument.cpp 2010-01-28 22:17:57.605126833 -0600 |
306 |
@@ -169,7 +169,9 @@ |
307 |
#include "nsIPropertyBag2.h" |
308 |
#include "nsIDOMPageTransitionEvent.h" |
309 |
#include "nsFrameLoader.h" |
310 |
+#ifdef MOZ_MEDIA |
311 |
#include "nsHTMLMediaElement.h" |
312 |
+#endif |
313 |
|
314 |
#include "mozAutoDocUpdate.h" |
315 |
|
316 |
diff -urN mozilla-1.9.2-orig/content/base/src/nsNodeUtils.cpp mozilla-1.9.2/content/base/src/nsNodeUtils.cpp |
317 |
--- mozilla-1.9.2-orig/content/base/src/nsNodeUtils.cpp 2010-01-28 22:16:08.686138846 -0600 |
318 |
+++ mozilla-1.9.2/content/base/src/nsNodeUtils.cpp 2010-01-28 22:17:14.618150370 -0600 |
319 |
@@ -55,7 +55,9 @@ |
320 |
#endif |
321 |
#include "nsBindingManager.h" |
322 |
#include "nsGenericHTMLElement.h" |
323 |
+#ifdef MOZ_MEDIA |
324 |
#include "nsHTMLMediaElement.h" |
325 |
+#endif |
326 |
|
327 |
// This macro expects the ownerDocument of content_ to be in scope as |
328 |
// |nsIDocument* doc| |
329 |
|
330 |
|
331 |
|
332 |
1.1 www-client/firefox/files/firefox-default-prefs.js |
333 |
|
334 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-default-prefs.js?rev=1.1&view=markup |
335 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-default-prefs.js?rev=1.1&content-type=text/plain |
336 |
|
337 |
Index: firefox-default-prefs.js |
338 |
=================================================================== |
339 |
pref("browser.tabs.tabMinWidth", 15); |
340 |
pref("browser.backspace_action", 0); |
341 |
|
342 |
|
343 |
|
344 |
1.1 www-client/firefox/files/1000_fix_alignment.patch |
345 |
|
346 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/1000_fix_alignment.patch?rev=1.1&view=markup |
347 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/1000_fix_alignment.patch?rev=1.1&content-type=text/plain |
348 |
|
349 |
Index: 1000_fix_alignment.patch |
350 |
=================================================================== |
351 |
From: David Mandelin <dmandelin@×××××××.com> |
352 |
|
353 |
diff --git a/memory/jemalloc/jemalloc.c b/memory/jemalloc/jemalloc.c |
354 |
--- a/memory/jemalloc/jemalloc.c |
355 |
+++ b/memory/jemalloc/jemalloc.c |
356 |
@@ -5792,24 +5792,24 @@ __attribute__((noinline)) |
357 |
#else |
358 |
inline |
359 |
#endif |
360 |
void * |
361 |
memalign(size_t alignment, size_t size) |
362 |
{ |
363 |
void *ret; |
364 |
|
365 |
- assert(((alignment - 1) & alignment) == 0 && alignment >= |
366 |
- sizeof(void *)); |
367 |
+ assert(((alignment - 1) & alignment) == 0); |
368 |
|
369 |
if (malloc_init()) { |
370 |
ret = NULL; |
371 |
goto RETURN; |
372 |
} |
373 |
|
374 |
+ alignment = alignment < sizeof(void*) ? sizeof(void*) : alignment; |
375 |
ret = ipalloc(alignment, size); |
376 |
|
377 |
RETURN: |
378 |
#ifdef MALLOC_XMALLOC |
379 |
if (opt_xmalloc && ret == NULL) { |
380 |
_malloc_message(_getprogname(), |
381 |
": (malloc) Error in memalign(): out of memory\n", "", ""); |
382 |
abort(); |
383 |
|
384 |
|
385 |
|
386 |
|
387 |
1.1 www-client/firefox/files/firefox-3.0-solaris64.patch |
388 |
|
389 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-3.0-solaris64.patch?rev=1.1&view=markup |
390 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/firefox-3.0-solaris64.patch?rev=1.1&content-type=text/plain |
391 |
|
392 |
Index: firefox-3.0-solaris64.patch |
393 |
=================================================================== |
394 |
Don't use -G, it results in a relocation error against _DYNAMIC on |
395 |
amd64, use -shared instead per the manpage, and as it works as well. |
396 |
|
397 |
--- configure.in |
398 |
+++ configure.in |
399 |
@@ -2481,7 +2481,7 @@ |
400 |
AC_LANG_RESTORE |
401 |
else |
402 |
ASFLAGS="$ASFLAGS -fPIC" |
403 |
- DSO_LDOPTS='-G' |
404 |
+ DSO_LDOPTS='-shared' |
405 |
_WARNINGS_CFLAGS='' |
406 |
_WARNINGS_CXXFLAGS='' |
407 |
if test "$OS_RELEASE" = "5.3"; then |
408 |
|
409 |
|
410 |
|
411 |
1.1 www-client/firefox/files/801-enable-x86_64-tracemonkey.patch |
412 |
|
413 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/801-enable-x86_64-tracemonkey.patch?rev=1.1&view=markup |
414 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/801-enable-x86_64-tracemonkey.patch?rev=1.1&content-type=text/plain |
415 |
|
416 |
Index: 801-enable-x86_64-tracemonkey.patch |
417 |
=================================================================== |
418 |
--- js/src/configure.in.old 2009-11-08 19:50:54.299642792 -0500 |
419 |
+++ js/src/configure.in 2009-11-08 19:57:49.235621814 -0500 |
420 |
@@ -2465,6 +2465,10 @@ |
421 |
ENABLE_JIT=1 |
422 |
NANOJIT_ARCH=i386 |
423 |
;; |
424 |
+x86_64*-*) |
425 |
+ ENABLE_JIT=1 |
426 |
+ NANOJIT_ARCH=X64 |
427 |
+ ;; |
428 |
arm*-*) |
429 |
ENABLE_JIT=1 |
430 |
NANOJIT_ARCH=ARM |
431 |
@@ -2488,7 +2492,10 @@ |
432 |
i?86-*) |
433 |
AC_DEFINE(AVMPLUS_IA32) |
434 |
;; |
435 |
- |
436 |
+x86_64*-*) |
437 |
+ AC_DEFINE(AVMPLUS_AMD64) |
438 |
+ AC_DEFINE(AVMPLUS_64BIT) |
439 |
+ ;; |
440 |
arm*-*) |
441 |
AC_DEFINE(AVMPLUS_ARM) |
442 |
;; |
443 |
|
444 |
|
445 |
|
446 |
1.1 www-client/firefox/files/137-bz460917_reload_new_plugins-gentoo-update-3.6.4.patch |
447 |
|
448 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/137-bz460917_reload_new_plugins-gentoo-update-3.6.4.patch?rev=1.1&view=markup |
449 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/files/137-bz460917_reload_new_plugins-gentoo-update-3.6.4.patch?rev=1.1&content-type=text/plain |
450 |
|
451 |
Index: 137-bz460917_reload_new_plugins-gentoo-update-3.6.4.patch |
452 |
=================================================================== |
453 |
This patch has been ported to 3.6.4, may not be entirely correct. |
454 |
|
455 |
Original patch was from bmo 460917, att 350845 |
456 |
|
457 |
--- |
458 |
--- browser/base/content/browser.js |
459 |
+++ browser/base/content/browser.js |
460 |
@@ -6009,9 +6009,18 @@ |
461 |
var pluginInfo = getPluginInfo(aEvent.target); |
462 |
missingPluginsArray[pluginInfo.mimetype] = pluginInfo; |
463 |
|
464 |
+ |
465 |
+ gBrowser.selectedBrowser.addEventListener("NewPluginInstalled", |
466 |
+ gMissingPluginInstaller.refreshBrowser, |
467 |
+ false); |
468 |
+ |
469 |
openDialog("chrome://mozapps/content/plugins/pluginInstallerWizard.xul", |
470 |
"PFSWindow", "chrome,centerscreen,resizable=yes", |
471 |
{plugins: missingPluginsArray, browser: gBrowser.selectedBrowser}); |
472 |
+ |
473 |
+ gBrowser.selectedBrowser.removeEventListener("NewPluginInstalled", |
474 |
+ gMissingPluginInstaller.refreshBrowser, |
475 |
+ false); |
476 |
}, |
477 |
|
478 |
// Callback for user clicking on a disabled plugin |
479 |
@@ -6107,11 +6116,19 @@ |
480 |
function showPluginsMissing() { |
481 |
// get the urls of missing plugins |
482 |
var missingPluginsArray = gBrowser.selectedBrowser.missingPlugins; |
483 |
+ |
484 |
+ gBrowser.selectedBrowser.addEventListener("NewPluginInstalled", |
485 |
+ gMissingPluginInstaller.refreshBrowser, |
486 |
+ false); |
487 |
+ |
488 |
if (missingPluginsArray) { |
489 |
window.openDialog("chrome://mozapps/content/plugins/pluginInstallerWizard.xul", |
490 |
"PFSWindow", "chrome,centerscreen,resizable=yes", |
491 |
{plugins: missingPluginsArray, browser: gBrowser.selectedBrowser}); |
492 |
} |
493 |
+ gBrowser.selectedBrowser.removeEventListener("NewPluginInstalled", |
494 |
+ gMissingPluginInstaller.refreshBrowser, |
495 |
+ false); |
496 |
} |
497 |
|
498 |
if (aEvent.type == "PluginBlocklisted") { |
499 |
@@ -6442,6 +6459,13 @@ |
500 |
notificationBox.removeNotification(notification); |
501 |
} |
502 |
// reload the browser to make the new plugin show. |
503 |
+ |
504 |
+ // reload plugins |
505 |
+ var pm = Components.classes["@mozilla.org/plugin/manager;1"] |
506 |
+ .getService(Components.interfaces.nsIPluginManager); |
507 |
+ pm.reloadPlugins(false); |
508 |
+ |
509 |
+ // ... and reload the browser to activate new plugins available |
510 |
browser.reload(); |
511 |
} |
512 |
}; |