Commit graph

122 commits

Author SHA1 Message Date
Felipe Gomes
5800c4f0da Bug 1228655 - Remove ifdefs for MOZ_CRASHREPORTER. r=mconley
gPluginHandler.CrashSubmit appears unused
2015-12-01 20:05:51 -02:00
Felipe Gomes
909d49249d Bug 1228627 - Remove #includes from browser.js. r=Gijs 2015-11-30 12:13:57 -02:00
Michael Layzell
47b0919e97 Bug 1173523 - Part 3: Update PluginContent to use new API for nsIPermission, r=mconley 2015-07-16 14:49:26 -04:00
Wes Kocher
ff2f0d32cf 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
9e4b616796 Bug 1173523 - Part 3: Update PluginContent to use new API for nsIPermission, r=mconley 2015-07-14 15:06:17 -04:00
Mike Conley
a8482b31c5 Bug 1146955 - Have PluginContent and PluginCrashReporter work with GMPs and pluginIDs. r=felipe.
--HG--
extra : rebase_source : 44b0737c88442b5afbb5f9f2e9458c6321442e8e
extra : source : 8da0582cde7ed894e195f9886d701976a5f25976
extra : histedit_source : b0f8cae0da36ef1d3e2b70955d03e032143b2ae7
2015-04-27 15:10:54 -04:00
Mike Conley
cd3fadc871 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.

--HG--
extra : rebase_source : 78237bbf2ad84c5495c82e465c8653bef2549ba5
2015-04-13 11:43:30 -04:00
Mike Conley
a077dba15e 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.

--HG--
extra : source : 503877a91767a0920fcf0c092c726240d94c8db4
2015-03-27 23:34:15 -04:00
Carsten "Tomcat" Book
3630ba09bb Backed out changeset 503877a91767 (bug 1110887) for bc1 test failures
--HG--
extra : rebase_source : 0f4e369314de68f9c68276c4d28f9b240101c2ce
2015-04-09 13:11:32 +02:00
Mike Conley
a3893685f8 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.

--HG--
extra : rebase_source : 04f1f5c755bd4b8e16b7f73cf88955760944b358
2015-03-27 23:34:15 -04:00
Alessio Placitelli
29c539ca86 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
97117148cf 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.

--HG--
extra : rebase_source : 095706306d241a254f62b28527a96a427d7e55c3
extra : histedit_source : 3afe814271166f70afce6a423bbb7809c5a983c7
2014-09-28 11:01:29 -04:00
Mike Conley
c4006a26e4 Bug 1069075 - Fix race condition in flushing pluginData cache in PluginContent.jsm. r=gfritzsche.
--HG--
extra : rebase_source : 0a0c801e0a8802e0a8ae04ac34e9977576f64e1e
extra : histedit_source : 03138083b2ac0892c2d66898db918528dda01fe0
2014-09-26 17:17:36 -04:00
Mike Conley
4a1e8018d2 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.

--HG--
rename : browser/base/content/test/plugins/plugin_small.html => browser/base/content/test/plugins/plugin_small_2.html
extra : rebase_source : e748e3b09de77cc7796b1a78f8e39a23af64049a
2014-09-24 10:30:18 -04:00
Justin Dolske
c80af2ab0d Bug 836415 - Kill PFS. r=bsmedberg 2014-09-18 10:01:23 -07:00
Mike Conley
6aecdba124 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.

--HG--
extra : rebase_source : 6239a4b49e0af89800c5618e4589f8aef03f58d4
2014-09-17 16:06:58 -04:00
Ryan VanderMeulen
c0b6c35cc7 No bug - Revert browser-plugins.js to revision 687318d464a5. a=me 2014-09-15 23:20:24 -04:00
Shu-yu Guo
3eee564f75 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
6e187f49f8 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo
15262d36a9 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
91e7e2f96f 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.

--HG--
extra : rebase_source : 719afe669c638ba4883f76f18aee38df6b60b4ad
2014-09-15 13:33:50 -04:00
Birunthan Mohanathas
bf4c35d36d 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
b86bfef458 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
7e1bb7be75 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
cefa8b68f9 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
0fb5f3331b 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
ffffc2cf45 Bug 1009760 - Support displaying of crash notification for GMP plugins. r=gfritzsche 2014-07-18 15:11:53 -03:00
Birunthan Mohanathas
528d7c7dc6 Bug 994708 - Part 2: Record submission event for plugin crashes. r=gps 2014-07-09 08:14:42 -07:00
Jim Blandy
7e20285e70 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
1bd9e40c57 Bug 981237 - Remove DataContainerEvent dependency from Plugin crash handler. r=jst,johns 2014-03-21 13:00:00 +09:00
Georg Fritzsche
711af5f264 Bug 977543 - CTP overlay is not displayed for iframes/embedded videos. r=jaws 2014-02-28 12:24:13 +01:00
John Schoenick
a9f1a68845 Bug 971279 - Add plugin.java.mime. r=bsmedberg 2014-02-25 13:30:03 -08:00
Anup
bcb1f667e9 Bug 921730 - "The plugin is disabled" placeholder cannot be closed. r=jaws 2014-02-25 13:57:42 -05:00
Willian Gustavo Veiga
a2a44aa9fe Bug 922107 - Add pref to hide the "missing plugin" notifications. r=jaws 2014-02-25 11:53:02 +01:00
Georg Fritzsche
0f93103c15 Bug 968762 - Plugin overlays are not displayed if plugin element is not fully in scroll view. r=jaws 2014-02-24 17:45:48 +01:00
Wes Kocher
6246833818 Backed out 7 changesets (bug 406541, bug 738396, bug 852315, bug 971273, bug 971279) for various java/plugin-related failures on a CLOSED TREE
Backed out changeset 13cc8a7ee925 (bug 852315)
Backed out changeset 23dfc36f99d4 (bug 852315)
Backed out changeset fb56bd7c0feb (bug 406541)
Backed out changeset b24d1437c6f3 (bug 738396)
Backed out changeset 5028e1290b45 (bug 971279)
Backed out changeset 34ecdab0cfc2 (bug 971279)
Backed out changeset 95b4aa01923d (bug 971273)
2014-02-20 16:19:30 -08:00
John Schoenick
a47b517a65 Bug 971279 - Add plugin.java.mime. r=bsmedberg 2014-02-20 14:38:02 -08:00
Georg Fritzsche
aaa382a629 Bug 896418 - Improve naming for CtP popupNotification centerActions. r=jaws 2014-02-17 14:41:10 +01:00
Bhagya
153485720b Bug 957922 - aBrowser is null in _setPluginNotificationIcon. r=jaws 2014-01-27 15:34:35 -05:00
Benjamin Smedberg
1c19ce0e16 Bug 932832 - click-to-play not discoverable for Google Hangouts video plugin because it is positioned at -40000,-40000. Check for positioning and treat this as a hidden plugin, r=jaws 2013-12-17 10:53:33 -05:00
Benjamin Smedberg
9bf97ff155 Bug 853973 - If a plugin is overlayed by other content on the page, then treat it as a hidden plugin: hide the overlay and present the infobar for click-to-play or crashed plugins, r=jaws 2013-12-17 10:53:32 -05:00
Georg Fritzsche
749790b6ba Bug 943383 - Fix state not being remembered in click-to-play doorhanger. r=jaws 2013-12-09 21:48:54 +01:00
Georg Fritzsche
55951c4497 Bug 941714 - Fix plugin notification bar not disappearing after activating plugins. r=jaws 2013-11-22 01:14:38 +01:00
Benjamin Smedberg
7791df60f8 Bug 932854 - trunk-only patch to use new strings for the buttons, r=jaws 2013-11-19 08:17:04 -05:00
Benjamin Smedberg
49b612031e Bug 932854 telemetry - add telemetry for showing the plugin infobar and its two buttons, r=jaws 2013-11-19 08:17:03 -05:00
Benjamin Smedberg
82b284d489 Bug 932854 - when a site uses a hidden plugin, show a notification bar to aid discoverability. This patch, suitable for trunk and branch, uses existing strings which are not ideal. r=jaws 2013-11-11 16:11:12 -05:00
Ryan VanderMeulen
e8f1f60536 Backed out changesets 2e36a398a61f, fd2aafdc34d0, and 8f2cd9cf4d65 (bug 932854) for Windows mochitest-other crashes on a CLOSED TREE. 2013-11-12 16:24:51 -05:00
Benjamin Smedberg
d64cb22d1e Bug 883404 (UI portion) - Disable running plugins on the current page when the user chooses "Block", r=jaws 2013-11-11 16:11:12 -05:00
Benjamin Smedberg
b115dcb7c6 Bug 932854 - when a site uses a hidden plugin, show a notification bar to aid discoverability. This patch, suitable for trunk and branch, uses existing strings which are not ideal. r=jaws 2013-11-11 16:11:12 -05:00
Benjamin Smedberg
1f65243e26 Bug 934503 - Activated hidden plugins should not show the hidden plugin notification icon, r=jaws
--HG--
extra : rebase_source : bdae17aa44e5fbe60d724b3ad98f679da9c851f1
2013-11-05 16:43:53 -05:00