Commit Graph

141 Commits

Author SHA1 Message Date
Doug Thayer
abe1f19a86 Bug 1398972 - Update Histograms.json r=liuche
Since the user can now block Flash and ask the browser to
remember that decision, the histogram that collects user's choices
on this has to be updated with a fourth option.

MozReview-Commit-ID: J4r6nJIiaeQ
2017-10-31 11:39:18 -07:00
Doug Thayer
c53a2a34f5 Bug 1398972 - Replace usage of plugin doorhanger XBL binding r=Felipe
Migrated to simply use PopupNotifications.jsm. Additionally, this
changes the behavior to always have two buttons and a remember
checkbox. When selecting allow with remember, it will behave like
the always allow option previously, but when selecting block with
remember, it will move that page into a quiet mode with respect
to Flash - i.e., no plugin overlays will show anymore, and instead
you will just see the plugin icon in the URL bar, which you can
continue to interact with as before.

MozReview-Commit-ID: EUFlI7nM09t
2017-10-31 11:40:04 -07:00
Dale Harvey
6baccea11c Bug 1394248 - Update plugins icon. r=dao
MozReview-Commit-ID: L3UrtSwDxW2
2017-09-30 10:43:02 +01:00
Felipe Gomes
e6caeac525 Bug 1379175 - Add a blue badge to the plugin icon in the URL bar when there are plugins to be activated. r=Felipe
MozReview-Commit-ID: 5tlQhEF5D62
2017-07-14 18:34:42 -03:00
Benjamin Smedberg
d7a00ec24b Bug 1369755 part B - Adjust the wording of the infobar to more closely match the in-content UI, and the doorhanger to more closely match other permissions and be more personal. ui-review=sbarrett r=felipe
MozReview-Commit-ID: ltNXwFA0hg
2017-06-08 15:48:49 -04:00
Benjamin Smedberg
04fc05b3eb Bug 1369160 part B - use the new list to suppress infobars, r=ksteuber r=felipe
MozReview-Commit-ID: KWymynyTvT1
2017-06-06 16:14:12 -04:00
Benjamin Smedberg
58b2adaa73 Bug 1368060 - Prefs and telemetry for hidden-plugin infobars. This patch does not change any defaults, but provides options which we'll test via A/B testing and telemetry to measure success. r=mconley data-r=rweiss
MozReview-Commit-ID: 7QP1nsB2jtw
2017-05-26 13:09:42 -04:00
Florian Queze
c9a0637249 Bug 1359111 - stop using BrowserUtils.makeURI, r=jaws. 2017-04-25 09:21:49 +02:00
Jared Wein
0ec522d5b6 Bug 1331661 - Enable the 'quotes' rule for eslint and fix most of the errors with --fix. r=Gijs
MozReview-Commit-ID: 6tv0Z06CO4a
2017-01-17 09:48:17 -06:00
Jared Wein
7b6f69795f Bug 1329012 - Enable the no-useless-call rule for eslint and fix the nine errors that it caught. r=mossop
MozReview-Commit-ID: 57vvfJlyvfW
2017-01-05 12:56:53 -05:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Panos Astithas
1d4c2c0c96 Bug 1004061 - Make most doorhanger notifications persistent. r=florian
MozReview-Commit-ID: IEPkDRnYpiM
2016-11-20 18:40:04 +01:00
Dave Townsend
4e295aa48d Bug 1316882: Turn on space-before-function-paren eslint rule (browser). r=jaws
MozReview-Commit-ID: 2ZvTiZDHchz
2016-11-11 08:10:51 -08:00
Mark Banner
6b3a6a4cda Bug 1313998 - Turn on no-unused-vars for local variable scopes in browser/base/content. r=mossop
MozReview-Commit-ID: IyFGBotfd11
2016-10-31 10:33:38 +00:00
Benjamin Smedberg
b6342360ed Bug 1277905 - Remove in-product links to plugincheck. Also remove support for startup prompting about outdated plugins, since that's annoying to users. r=Gijs r=mconley
MozReview-Commit-ID: 69tMivPVxuW
2016-07-01 11:01:07 -04:00
Dave Townsend
17d8a23b3f Bug 1257246: Update browser for eslint 2. r=felipe
Most of this is fixing functions that in some cases return a value but then
can also run to completion without returning anything. ESLint 2 catches this
where previous versions didn't. Unless there was an obvious other choice I just
made these functions return undefined at the end which is effectively what
already happens.

MozReview-Commit-ID: DEskVIjiKDM
2016-04-05 11:33:33 -07:00
Felipe Gomes
ba0b6165c0 Bug 1228655 - Remove ifdefs for MOZ_CRASHREPORTER. r=mconley
gPluginHandler.CrashSubmit appears unused
2015-12-01 20:05:51 -02:00
Felipe Gomes
e5ea10c3ed Bug 1228627 - Remove #includes from browser.js. r=Gijs 2015-11-30 12:13:57 -02:00
Michael Layzell
a5140404c2 Bug 1173523 - Part 3: Update PluginContent to use new API for nsIPermission, r=mconley 2015-07-16 14:49:26 -04:00
Wes Kocher
c06754ff70 Backed out 24 changesets (bug 1173523, bug 1172080, bug 817007, bug 1165263) for android reftest bustage CLOSED TREE
Backed out changeset 84fe04b2e7d1 (bug 1172080)
Backed out changeset 0ff004760a1f (bug 1172080)
Backed out changeset af147585ad55 (bug 1165263)
Backed out changeset c3af8ebb6db0 (bug 1165263)
Backed out changeset cd3f33a888fe (bug 1165263)
Backed out changeset e5db39044a1e (bug 1165263)
Backed out changeset c01c9ed77061 (bug 1165263)
Backed out changeset fb723aaa4267 (bug 1165263)
Backed out changeset f754e52e74dc (bug 1165263)
Backed out changeset c6bda3a0afd6 (bug 817007)
Backed out changeset bfa100253349 (bug 817007)
Backed out changeset b787b3f9aadc (bug 1173523)
Backed out changeset 4a0676b73f77 (bug 1173523)
Backed out changeset 82034a4560c5 (bug 1173523)
Backed out changeset 4bdb91114c7a (bug 1173523)
Backed out changeset 72406261eccc (bug 1173523)
Backed out changeset 541b6faf7196 (bug 1173523)
Backed out changeset 1caac4569616 (bug 1173523)
Backed out changeset 0d4f9f9e1b4e (bug 1173523)
Backed out changeset 2d5661eb966c (bug 1173523)
Backed out changeset 89833c0bb0cd (bug 1173523)
Backed out changeset ea64d70eacfe (bug 1173523)
Backed out changeset a8e4f1c0c445 (bug 1173523)
Backed out changeset cf498d466b85 (bug 1173523)
2015-07-14 14:00:32 -07:00
Michael Layzell
c0dce52dea Bug 1173523 - Part 3: Update PluginContent to use new API for nsIPermission, r=mconley 2015-07-14 15:06:17 -04:00
Mike Conley
d513944161 Bug 1146955 - Have PluginContent and PluginCrashReporter work with GMPs and pluginIDs. r=felipe. 2015-04-27 15:10:54 -04:00
Mike Conley
cb92355af3 Bug 1153894 - Make NPAPI plugin crash notification bar crash submission button call the right submission method. r=felipe.
showNPAPIPluginCrashedNotification was erroneously calling submitGMPCrashReport, and attempted
to call it with arguments that it definitely didn't have (pluginDumpID, browserDumpID). Now
we call submitCrashReport with a runID, as expected.
2015-04-13 11:43:30 -04:00
Mike Conley
4e442036cc Bug 1110887 - Make the plugin crash reporter work with e10s. r=felipe.
This patch does the following:
* Has the gPluginHandler tell content processes when a NPAPI plugin crashes
* Introduces PluginCrashReporter, and renames TabCrashReporter.jsm to ContentCrashReporters.jsm.
* Makes gPluginHandler use PluginCrashReporter to submit plugin crashes.
* If a plugin crash report is submitted, puts all visible instances into the submitted state.
* Makes the plugin crashed notification bar work with run IDs.
* Removes event and message listeners in PluginContent when uninitting.
2015-03-27 23:34:15 -04:00
Carsten "Tomcat" Book
2fa5830c12 Backed out changeset 503877a91767 (bug 1110887) for bc1 test failures 2015-04-09 13:11:32 +02:00
Mike Conley
b8a0cc8cfb Bug 1110887 - Make the plugin crash reporter work with e10s. r=felipe.
This patch does the following:
* Has the gPluginHandler tell content processes when a NPAPI plugin crashes
* Introduces PluginCrashReporter, and renames TabCrashReporter.jsm to ContentCrashReporters.jsm.
* Makes gPluginHandler use PluginCrashReporter to submit plugin crashes.
* If a plugin crash report is submitted, puts all visible instances into the submitted state.
* Makes the plugin crashed notification bar work with run IDs.
* Removes event and message listeners in PluginContent when uninitting.
2015-03-27 23:34:15 -04:00
Alessio Placitelli
a1dd7ae955 Bug 1038145 - Make use of the new infoURL item from the blocklist for plugins with an update. r=irving 2014-10-15 15:23:22 +02:00
Mike Conley
ffb5bce5eb Bug 1069075 - Send location along with CTP messages. r=gfritzsche.
Before, we were comparing Principals sent up from PluginContent against the
Principal of the selected browser - this was in order to account for races
(and intermittent oranges) where the browser has moved away from a page before
a CTP message has been received by the parent.

Comparing Principals works beautifully, except in the case of Data URIs, since
Data URIs inherit the Principals of the page they were linked from. That means
that if we're on a page with a link to a Data URI that embeds a plugin, if we
quickly browse to that page and back before a CTP message reaches the parent,
when the CTP message finally arrives, the Principals will match. We solve this
by sending the location as well as the Principal, to do a final comparison if
the Principals do match.
2014-09-28 11:01:29 -04:00
Mike Conley
5f3f1d7cd1 Bug 1069075 - Fix race condition in flushing pluginData cache in PluginContent.jsm. r=gfritzsche. 2014-09-26 17:17:36 -04:00
Mike Conley
281aedb9d2 Bug 1070053 - Avoid spurious hidden-plugin notifications when changing locations by doing a Principal comparison. r=gfritzsche
When the PluginRemoved event is fired when changing locations, it's fired
asynchronously such that the document that the plugin belongs to has already
been unloaded. This was causing the hidden plugin notification to appear in
some cases when users browsed away from documents that had hidden plugins
in them. Now we pass the Principal for the unloading document back to the
parent and do a comparison with the current browser Principal to ensure
that they match before showing the hidden plugin notification.
2014-09-24 10:30:18 -04:00
Justin Dolske
54248e7e75 Bug 836415 - Kill PFS. r=bsmedberg 2014-09-18 10:01:23 -07:00
Mike Conley
ccdf09c9b4 Bug 899347 - [e10s] Make click-to-play work with e10s. Originally written by mbrubeck. r=gfritzsche,felipe,Unfocused.
We now use message passing and content scripts in order to implement click-to-play. This allows
us to use click-to-play in e10s windows.
2014-09-17 16:06:58 -04:00
Ryan VanderMeulen
fede3c8ae7 No bug - Revert browser-plugins.js to revision 687318d464a5. a=me 2014-09-15 23:20:24 -04:00
Shu-yu Guo
a2c42772fd Bug 1001090 - Followup: fix merge error in browser-plugins.js on a CLOSED TREE. r=bustage 2014-09-15 18:23:03 -07:00
Wes Kocher
877afbd303 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo
6cfc2eb110 Bug 1001090 - Part 4: Fix errors in chrome code. (r=zombie,gavin,fitzgen,dcamp,bgrins,fabrice,gwagner,margaret,mrbkap,mak,njn,vicamo) 2014-09-15 16:30:46 -07:00
Mike Conley
e3e02bb8ff Bug 899347 - [e10s] Make click-to-play work with e10s. Originally written by mbrubeck. r=gfritzsche,felipe,Unfocused.
We now use message passing and content scripts in order to implement click-to-play. This allows
us to use click-to-play in e10s windows.
2014-09-15 13:33:50 -04:00
Birunthan Mohanathas
ea4b9db11b Bug 1054584 - Fix "statusDiv is null" error in browser-plugins.js and add test. r=jaws 2014-08-25 12:17:37 -07:00
Birunthan Mohanathas
4ded33c6dd Bug 1024672 - Part 3: Remove CrashManager.addSubmission in favor of CrashManager.addSubmission{Attempt,Result}. r=gps 2014-08-21 15:43:50 -07:00
Birunthan Mohanathas
863624f23f Bug 972237 - Fix missing plugin overlay with some zoom levels and add test. r=mikedeboer 2014-07-31 12:54:21 -07:00
Georg Fritzsche
d2edde8c21 Bug 1045500 - Skip processing the plugin name for plugin crashes in the front-end for GMP plugins. r=ttaubert 2014-07-29 16:46:16 +02:00
Georg Fritzsche
b217738a1f Bug 1043531 - Let frontend deal properly with PluginCrashed without a browser dump id. r=ttaubert 2014-07-28 16:17:00 +02:00
Felipe Gomes
e1b8ad3117 Bug 1009760 - Support displaying of crash notification for GMP plugins. r=gfritzsche 2014-07-18 15:11:53 -03:00
Birunthan Mohanathas
41a059a488 Bug 994708 - Part 2: Record submission event for plugin crashes. r=gps 2014-07-09 08:14:42 -07:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Masatoshi Kimura
b7f203c650 Bug 981237 - Remove DataContainerEvent dependency from Plugin crash handler. r=jst,johns 2014-03-21 13:00:00 +09:00
Georg Fritzsche
ab98ac1b9b Bug 977543 - CTP overlay is not displayed for iframes/embedded videos. r=jaws 2014-02-28 12:24:13 +01:00