Граф коммитов

2450 Коммитов

Автор SHA1 Сообщение Дата
Bill McCloskey 5a3098de24 Bug 1175975 - Null crash fix in ProcessHangMonitor (r=jimm) 2015-06-19 17:35:04 -07:00
Bob Owen bef4807107 Bug 1165895: Add NPAPI sandbox rule for the crash server pipe and x64 Temp dir write access. r=bbondy 2015-06-18 12:01:38 +01:00
Bob Owen dce35c582d Bug 1165903: For Windows NPAPI do window re-parenting in the chrome process to allow for sandboxing. r=jimm 2015-06-15 16:08:51 +01:00
Benjamin Smedberg cd6a039640 Bug 1175147 - Don't do threadsafety asserts for NPN_MemAlloc and friends, r=jimm
--HG--
extra : rebase_source : d7c9f481c6e0dcd492b341c8889dfde45b5e21c9
2015-06-16 12:04:04 -04:00
Boris Zbarsky 3437c1a714 Bug 1174486 part 4. Stop reporting exceptions in nsJSUtils::EvaluateString and have its consumers use AutoJSAPIs that take ownership of error reporting instead. r=bholley 2015-06-15 20:11:06 -04:00
Ted Mielczarek fca5598e0a bug 1174414 - Fix build without profiler. r=mconley
--HG--
extra : commitid : 9feSETPZSKa
extra : rebase_source : 025c9a8bdfee42be8926a87b8e6f9da51c0134c5
2015-06-13 20:55:33 -04:00
Ted Mielczarek 86eb9ee311 bug 1171131 - Make dom/plugins/ipc build for iOS. r=jimm
--HG--
extra : commitid : 9gARYEpGccj
extra : rebase_source : 115f75c208649b3d62e7b33b35f44aa7af5ffa72
2015-06-12 08:46:43 -04:00
Ted Mielczarek 744968efa0 bug 1170584 - fix PluginMessageUtils on iOS. r=jimm
--HG--
extra : commitid : DH7ZYdphBB5
extra : rebase_source : 4fbc43d53e807eea7f8951fa7a935ad4b05bb603
2015-01-28 15:13:24 -05:00
Randall Barker 1fc136e380 Bug 1163664 - Don't check for plugin blocklist state on Android. r=jimm, r=jchen 2015-06-01 17:05:00 -04:00
Mike Conley 883b7ff2db Bug 1116188 - Add async ProfileGatherer as the mechanism for gathering profiles from subprocesses. r=bgirard,bz
--HG--
extra : commitid : 3ssrVzrWpIy
extra : rebase_source : 5d389ada8f7e4c453c0b7e6a965ee46a7526e06f
2015-06-10 17:58:30 -04:00
Wes Kocher c07c3dd3d8 Merge fx-team to central, a=merge 2015-06-11 17:18:11 -07:00
Aaron Klotz 70530b4506 Bug 1171453: Make ParentNPObjects aware of AsyncNPObject wrappers; r=jimm
--HG--
extra : rebase_source : 185651f571495b6b4313d335359a9d60b35074fa
2015-06-10 12:20:56 -06:00
Jim Mathies ebf8adc0a6 Bug 1160142 - For e10s plugin hangs take the minidump of the browser process before we message the chrome UI about the hang. r=billm 2015-06-11 12:25:45 -05:00
Wes Kocher 4eedce1509 Merge inbound to central, a=merge 2015-06-10 18:29:39 -07:00
Aaron Klotz 5b59e17534 Bug 1170676: Fix null dereference in PluginModuleParent::StreamCast; r=jimm 2015-06-10 11:08:46 -06:00
Aaron Klotz c4cf8b9679 Bug 1172627: Update test_instance_re-parent to account for bug 1158761; r=jimm
--HG--
extra : source : ee501cdf2f116cf17d70fe93e3a25d6266f0ba5c
extra : amend_source : 523410abb5af98a7f0b82c3f6c0d6c80ac3a2e18
2015-06-08 19:57:54 -06:00
Benjamin Smedberg 0d5f4e64e8 Bug 1170343 - Use release-mode asserts when plugins making NPAPI calls on the wrong thread, r=mccr8
--HG--
extra : rebase_source : ac8a277e4130cd1264697f084bd974e206d832e9
extra : histedit_source : 5f92fbc5b3aef2773615322a397544ee17cf284f
2015-06-09 15:55:21 -04:00
Jacek Caban 3afa0b8221 Bug 1151318 - Fixed wchar_t/char16_t mismatch on mingw. 2015-06-11 13:12:11 +02:00
Chris Peterson e5b1ce7ce4 Bug 1169945 - Remove unused plugins.enumerable_names whitelist. r=bsmedberg 2015-05-29 22:42:23 -07:00
Eric Rahm 75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm 606b18ac10 Bug 1165515 - Part 12: Convert nsPluginLogging to use PR_LOG levels. r=bsmedberg
PLUGIN_LOG_MAX is removed as it's unused. PLUGIN_LOG_ALWAYS is mapped to
PR_LOG_ERROR which will have the value of '1' now that PR_LOG_ALWAYS is
removed.
2015-06-03 15:22:38 -07:00
Nicholas Nethercote e849e6588b Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj.
--HG--
extra : rebase_source : 9510ea47204fffa163cac43aeaaac6ae1ad80419
2015-05-19 16:46:17 -07:00
Carsten "Tomcat" Book 5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00
Eric Rahm a9afd68cef Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm 89923319b4 Bug 1165515 - Part 12: Convert nsPluginLogging to use PR_LOG levels. r=bsmedberg
PLUGIN_LOG_MAX is removed as it's unused. PLUGIN_LOG_ALWAYS is mapped to
PR_LOG_ERROR which will have the value of '1' now that PR_LOG_ALWAYS is
removed.
2015-06-01 22:17:30 -07:00
Wes Kocher 4e9f80ed2e Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm f82c0e7caf Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm c3237a9993 Bug 1165515 - Part 12: Convert nsPluginLogging to use PR_LOG levels. r=bsmedberg
PLUGIN_LOG_MAX is removed as it's unused. PLUGIN_LOG_ALWAYS is mapped to
PR_LOG_ERROR which will have the value of '1' now that PR_LOG_ALWAYS is
removed.
2015-06-01 14:31:00 -07:00
Andrew Comminos 6faf9a97d8 Bug 1167720 - Fix invalid window ID provided to GTK3 plugin container children. r=karlt
--HG--
extra : rebase_source : 1bab706549a39fbea9d7db617b396c43a6c16cc9
2015-05-27 12:03:00 -04:00
Bob Owen 51a5fe52f3 Bug 1123759: Set low integrity on NPAPI processes for Windows sandboxing policy level >= 2. r=bbondy, r=bsmedberg 2015-05-22 17:05:45 +01:00
Botond Ballo e517cc3f1e Bug 1166583 - Move chromium's MakeTuple function into namespace 'base' to avoid conflicts with mozilla::MakeTuple. r=froydnj
--HG--
extra : source : 2258a91d5781efe8e1d5f92f64ff173412705274
2015-05-09 21:09:40 -05:00
Aaron Klotz 7582eb7362 Bug 1156861: Add a TaskFactory to PluginProcessParent to handle launch completion tasks; r=jimm
--HG--
extra : source : 29cec4e0a2556ce3a0302ac10606682272b4f2e2
extra : amend_source : 89ae064f64e497974ccff2175292a6784de65a69
2015-05-25 11:53:39 -06:00
Mike Hommey 806e0220a2 Bug 991983 - Use objdir-relative SOURCES instead of GENERATED_SOURCES. r=gps 2015-05-28 07:34:16 +09:00
Mike Hommey ea7750bcb1 Bug 991983 - Define SOURCES as SourcePath. r=gps 2015-05-28 07:34:15 +09:00
Aaron Klotz 0485cd2062 Bug 1151318: Add quirks flag to help Unity plugin release mouse capture; r=jimm
--HG--
extra : rebase_source : 6f2d1ac54701ee366177b8705372ab93f320c8d4
2015-05-20 13:13:16 -06:00
Shu-yu Guo eca2c2d5bb Bug 1166492 - Return UniquePtr<char[]> from profiler_get_profile to avoid double copying. (r=mstange) 2015-05-26 22:58:40 -07:00
Eric Rahm 3925a960aa Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Steven Michaud 3c4efb8561 Bug 1154876 - Block calls to hooked methods off the plugin thread. r=spohl 2015-05-19 20:56:34 -05:00
Eric Rahm 4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Nicholas Nethercote c3bebace0a Bug 1165768 (part 1) - Convert |sNPObjWrappers| to |PLDHashTable2*|. r=froydnj.
This involves removing the last uses of PLDHashTable::SetOps(), which is a
nasty encapsulation-breaking hack. Hooray!

--HG--
extra : rebase_source : 87a9fcfe35e42d6e361906f0f4ef0d7fdf0b5dbb
2015-05-18 00:52:07 -07:00
Birunthan Mohanathas 735ccdd101 Bug 968520 - Add mozilla::fallible to Fallible{Auto,}TArray::SetLength calls. r=froydnj 2015-05-18 13:50:35 -07:00
Nicholas Nethercote eab9ff6d25 Back out all four patches from bug 1161377. r=me.
Due to Android startup regressions (bug 1163066) and plugin crashes (bug
1165155).

--HG--
extra : rebase_source : 380f79e67dff4c4eaa2614f286a4d0669666b652
2015-05-14 21:48:43 -07:00
R Kent James 83218ffce0 Bug 1154894 - Disable test_plugin_default_state.js so Thunderbird can ship with plugins disabled by default, r=bsmedberg
--HG--
extra : rebase_source : 43c9ee6c653e6ced2ec9723a7ebd6e2929a87d72
2015-05-13 11:43:38 -07:00
Nicholas Nethercote 9a60518e5b Bug 1161377 (part 2.5) - Move all static PLDHashTable instances onto the heap to avoid static constructors. r=froydnj.
--HG--
extra : rebase_source : 73029d4a1ed5a41263db882d66b1f380f5e7254b
2015-05-12 17:33:22 -07:00
Mike Hommey c917606f95 Bug 1043692 - Move DIST_INSTALL to moz.build. r=gps 2015-05-12 07:55:22 +09:00
Mike Hommey fe90037862 Bug 1043692 - Add a DIST_INSTALL variable to moz.build, and replace NO_DIST_INSTALL with it. r=gps 2015-05-12 07:55:21 +09:00
Eric Rahm d35c2ea5e7 Bug 1163198 - Remove instances of #ifdef PR_LOGGING in dom/plugins. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-11 14:00:02 -07:00
Aaron Klotz 0279fb3749 Bug 1158761: Part 2 - Update checks for plugin stop event in tests; r=jimm
--HG--
extra : rebase_source : ccefb0a28d7092d9d89c8b240b90787461e8d20a
extra : histedit_source : c4272d9cea3e0a6ba43e2b351276adcf5ccb886d
2015-05-06 17:13:05 -06:00
Aaron Klotz e5f738ac2c Bug 1157237: Move invocation of async NPP_New to an async task; r=jimm
--HG--
extra : rebase_source : d637688cf112b4d4ed599c6cc45eebd908a67788
2015-05-06 01:53:51 -06:00
Aaron Klotz 7ae85d5d47 Bug 1156903: Add quirk flag that causes NPN_GetValue(NPNVdocumentOrigin) to return an empty string even when it fails; r=jimm
--HG--
extra : rebase_source : 73c726920f9f3187a41f2834f942e891efae9e28
2015-05-06 01:07:32 -06:00
Aaron Klotz acbeefcd97 Bug 1160298: Modify TaskFactory::NewTask to support variadic templates; r=gfritzsche 2015-04-30 14:23:24 -06:00
Mike Conley 91457c2516 Bug 1146955 - Unify pluginID for GMP and runID for NPAPI plugins to use the same internal incrementor. r=jesup, mrbkap.
--HG--
extra : rebase_source : bd7989a043f0b36f23ffc8d35a55a6110b09b163
extra : source : 175040b5d347dcbb31cf63f124f88ba1f53fda61
2015-04-27 15:09:45 -04:00
Anthony Tseng 6fe5a1137f Bug 1158425 - Rename _SYNTH event names. r=smaug
--HG--
extra : rebase_source : 533cc7e18cf7f92d95a146d61f7aa2da7c0b8e48
2015-05-01 22:06:00 -04:00
Jim Mathies d9a7675005 Bug 1129040 - Query the chrome process blocklist service prior to instantiating plugins in the content process. r=billm 2015-05-01 10:07:19 -05:00
Jim Mathies 4fbc128cea Bug 1129040 - Provide a way for content processes to query the chrome side blocklist service. r=billm 2015-05-01 10:07:19 -05:00
Mike Hommey 924c9eb636 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Carsten "Tomcat" Book 4142cabc3d Backed out changeset 61b5398161f3 (bug 1129040) 2015-04-29 16:51:40 +02:00
Carsten "Tomcat" Book 417e0f4ed6 Backed out changeset a7aab0099e9e (bug 1129040) 2015-04-29 16:51:32 +02:00
Jim Mathies 9769b139a7 Bug 1129040 - Query the chrome process blocklist service prior to instantiating plugins in the content process. r=billm 2015-04-29 06:33:10 -05:00
Jim Mathies 24d89b9386 Bug 1129040 - Provide a way for content processes to query the chrome side blocklist service. r=billm 2015-04-29 06:33:09 -05:00
Aaron Klotz d5c84432d0 Bug 1156800: Post a task to send async NPP_New result from child to parent; r=jimm
--HG--
extra : rebase_source : ee89159fd7781496aef5fdd55cfe9b610338581d
2015-04-27 16:07:28 -06:00
Bill McCloskey ae2bb7ea61 Bug 1154898 - Avoid offline observer crash (r=aklotz) 2015-04-27 19:45:18 -07:00
David Major ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Jan de Mooij 103a223716 Bug 1155946 part 1 - Add a mayResolve class hook to optimize objects with resolve hooks better. r=bhackett 2015-04-23 15:51:28 +02:00
Jim Mathies ed59f0c98f Bug 1155908 - Plugin crash reports should include the content process minidump. r=billm 2015-04-23 04:18:53 -05:00
Ehsan Akhgari 90c2585151 Bug 1157046 - Remove ARRAY_LENGTH in favor of MOZ_ARRAY_LENGTH; r=Waldo 2015-04-23 08:30:41 -04:00
Carsten "Tomcat" Book 8f421f43e9 Backed out changeset d6df8807c839 (bug 1155908) for bustage 2015-04-23 10:34:39 +02:00
Jim Mathies 8357773830 Bug 1155908 - Plugin crash reports should include the content process minidump. r=billm 2015-04-22 07:06:34 -05:00
Andrea Marchesini cb54385682 Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
Ehsan Akhgari 399276d5fc Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 21:40:49 -04:00
Wes Kocher 638b28b8e0 Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE 2015-04-21 15:47:40 -07:00
Ehsan Akhgari 3d21a05904 Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 16:31:58 -04:00
Aaron Klotz 489c281fe6 Bug 1155503: BrowserStreamParent should null out its NPStream pointer and we should check for it; r=jimm
--HG--
extra : rebase_source : 5dd15452653114a17e1b9504932cd71934b69c36
2015-04-20 17:04:33 -06:00
Ehsan Akhgari f9d798bcbd Bug 1156030 - Remove some obsolete static assertion macros from the tree; r=Waldo 2015-04-21 14:22:43 -04:00
Nicolas Silva e887c595eb Bug 1155621 - Remove no-op gfx2DGlue conversion helpers. r=Bas 2015-04-21 17:22:30 +02:00
Nicolas Silva cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Denis Volk 32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Julian Seward cea2379e64 Bug 1153173 - Uninitialised value use in AutoJSExceptionReporter::~AutoJSExceptionReporter. r=aklotz. 2015-04-20 10:02:27 +02:00
Jim Blandy ebd83c9a61 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
--HG--
extra : rebase_source : 8ab7a3628a5b4d94b957f24e23e4c5c7871db97c
2015-04-08 21:23:48 -04:00
Nathan Froyd 1e6cdad33c Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Wes Kocher af34e14f2b Backed out changeset 050848a5273c (bug 1153988) for Windows build bustage CLOSED TREE 2015-04-14 14:42:59 -07:00
Nathan Froyd 4e3c075424 Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Aaron Klotz 9f353d5140 Bug 1151804: Ensure that streams are not prematurely terminated when asyncInit is true; r=jimm
--HG--
extra : rebase_source : b4ae69da3298b2eda3700167c1af96a9d3de541e
2015-04-13 13:19:51 -06:00
Jacek Caban 23e903547c Bug 1153909 - Use two-argument wcstok variant on mingw. r=jimm 2015-04-14 18:07:25 +02:00
Kartikaya Gupta 8ffd1ab6d0 Bug 1146349 - Update DOM mochitests to deal with async native event synthesization. r=smaug 2015-04-14 11:36:36 -04:00
Ms2ger f1fc41b0e5 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
Aaron Klotz e41553369a Bug 1152890: Add missing state transition to nsNPAPIPluginStreamListener; r=jimm
--HG--
extra : rebase_source : e13c4f7542c8783cf264a8c8421c621feca96f3a
2015-04-09 10:04:52 -06:00
Aaron Klotz 9be46b97cf Bug 1152395: Ensure that NP_Shutdown respects async plugin init; r=jimm
--HG--
extra : rebase_source : 2fc1fda02d611303d18eb24a438ed2ac223a52f7
2015-04-08 11:31:18 -06:00
Mike Conley 194c589ef5 Bug 1148012 - Send the run ID and plugin name along with the plugin-crashed observer notification. r=josh.
--HG--
extra : rebase_source : 091451422a6e31849a5d4999c968d71715a1d836
2015-03-18 17:04:08 -04:00
Mike Conley d95fcd35e3 Bug 1148012 - Expose run ID through nsIObjectLoadingContent.idl. r=josh,smaug.
The run ID for a plugin is retrieved and cached in the nsObjectLoadingContent
on plugin instantiation.

--HG--
extra : rebase_source : d1e87b7751e6367c482b2420aa43bfadbce5e3e8
2015-03-17 13:28:32 -04:00
Mike Conley 22a0f74e8f Bug 1148012 - Add a run ID for plugins to differentiate subsequent runs of the same plugins. r=jimm.
Normally, this could be served by the process ID of a plugin, however, run ID is meant
to be consumed by multi-process browser chrome code for telling different runs of a
plugin apart (for example, for searching the DOM for a crashed instance of a plugin,
while ensuring that we don't accidentally find newly spawned instances that have not
crashed). Exposing something as low-level as the process ID to browser chrome code
seemed like Too Much Information. Also, there is the extremely unlikely chance that
a process ID might be re-used immediately after the original process shuts down. This
run ID avoids that case, regardless of how unlikely.

--HG--
extra : rebase_source : 4f0072ef660645efdb26d8fa7c9f03dfc60a4f4a
2015-03-17 13:42:34 -04:00
Aaron Klotz f1aa8a8472 Bug 1141081 - Add weak reference support to HTMLObjectElement and use it in nsPluginInstanceOwner. r=jimm 2015-04-04 12:39:36 -06:00
Jim Mathies 46a2e007da Bug 1132874 - Simplify PPluginWidget protocol handling, and avoid sending async messages from the parent. Addresses a problem with sub protocols that are torn down randomly from either side of the connection. r=aklotz 2015-04-07 08:17:27 -05:00
Nicolas Silva 0b1f75bea0 Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
zhoubcfan@163.com 795aecd9f2 Bug 1121290: Use "%ls" instead of "%s" in _snwprintf_s format string, r=bsmedberg
MSVC 2015 requires the use of the "l" modifier. Not sure why MSVC 2013 didn't.

--HG--
extra : rebase_source : 0d340bd7488fb2ba3fdf663a870f9815f3e723c3
2014-11-25 23:48:26 +08:00
Brian Smith b5f52f030e Bug 1150354: Make nsPluginDirServiceProvider build with MSVC 2015 CTP 6, r=jmathies
MSVC 2013 and earlier provided only a non-standard two-argument
variant of wcstok that is generally not thread-safe. For our
purposes here, it works fine, though, so we polyfill the
standard variant using the non-standard variant.

--HG--
extra : rebase_source : c54c07a4e1d1d6933cfe5899d84a7f11ae4f99fa
2015-04-01 07:48:39 -10:00
Aaron Klotz 161897ae0e Bug 1149358: Ensure that plugin streams are not manipulated by PluginAsyncSurrogate if plugin destruction is imminent; r=jimm
--HG--
extra : rebase_source : 440ecf2bd74fd5e28ed715e7e477d9fd55d18697
2015-04-01 16:53:47 -06:00
Kartikaya Gupta 0c7dfaf444 Bug 1150207 - Convert a focus() call to use SpecialPowers to avoid out-of-order focusing behaviour. r=mwargers 2015-04-02 06:58:18 -04:00
David Parks 3fe715e93a Bug 1075670 - Make event.screen[XY] work in content processes (r=smaug,kats,tn,joshmoz) 2015-04-01 12:36:41 -07:00
Bob Owen e4f543bb58 Bug 1119878 Part 2: Change IPC code to hold ProcessID instead of ProcessHandle. r=billm, r=dvander, r=aklotz, r=cpearce 2015-04-01 09:40:35 +01:00
Bob Owen eef3ca5f6e Bug 1119878 Part 1: Change SandboxTarget to hold sandbox target services to provide functions. r=aklotz, r=glandium, r=cpearce 2015-04-01 09:40:35 +01:00
Mike Hommey b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Tom Schuster ac250f9d73 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Aaron Klotz 3a239b4632 Bug 1133351: Part 1 - Make Windows IPC play nicely with COM STA marshaling; r=bsmedberg
--HG--
extra : rebase_source : ebb6b9c25565bd2721ee6537b2161511666e92ac
2015-03-25 20:54:23 -07:00
Mike Hommey c39e359c7d Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Bill McCloskey 7f4ac9ee96 Back out bug 1075670 2015-03-30 20:13:07 -07:00
Nicolas Silva e3eaf89e3f Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Aaron Klotz 81d48654d0 Bug 1133351: Backed out 0cc8abe4e2bb for assertion failures; r=bustage 2015-03-28 06:08:26 -07:00
Phil Ringnalda e44926f4c1 Merge m-i to m-c, a=merge 2015-03-28 11:44:16 -07:00
Brad Lassey 3304765ba2 bug 1130976 - Flash context menu causes CPOW deadlock with AdBlock Plus, plugins should spin even loop in content process instead of the chrome process r=billm 2015-03-27 11:21:57 -04:00
Aaron Klotz e55e727569 Bug 1133351: Make Windows IPC play nicely with COM STA marshaling; r=bsmedberg
--HG--
extra : rebase_source : a14f07bce5c6c022f8141969bebce461cdaf006b
extra : amend_source : 19b9f98458218b896d4acbb36912935afcc34551
2015-03-25 20:54:23 -07:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Timothy Nikkel d6eff64aa4 Bug 1144951. Rename ConvertAppUnits to ScaleToOtherAppUnits. r=mats 2015-03-26 16:44:40 -05:00
Bill McCloskey f2d972e4f2 Bug 1075670 - Make event.screen[XY] work in content processes (r=smaug,kats,tn,joshmoz) 2015-03-26 14:17:29 -07:00
Aaron Klotz 41e0657ba2 Bug 1145782: Add crash reporter annotations for async plugin init to parent and child processes; r=jimm
--HG--
extra : rebase_source : 8680b5577f8052c30c22eaa31ad34d4b92286fe5
2015-03-23 22:01:07 -06:00
Aaron Klotz f719fc245a Bug 1119565: Ensure that a plugin listener's stream type is always set, even when it is STREAM_TYPE_UNKNOWN; r=jimm
--HG--
extra : rebase_source : 96cf482e4f5508d2167088efdea785e3ee8c093a
2015-03-23 21:46:38 -06:00
Martijn Wargers cf9f023525 Bug 920013 - Rewrite test_cocoa_focus.html to use SpecialPowers. r=smichaud
--HG--
extra : rebase_source : 9d7d90b5ee9c8d2b6a867fd7880600e211cf4e42
2015-03-20 18:51:17 +01:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Aaron Klotz 081c02fb8a Bug 1141081: Ensure nsPluginInstanceOwner::Destroy is called before returning from failed plugin instantiation; r=jimm
--HG--
extra : rebase_source : 066ea5acbfdb2df1976fa12675cc267d1f417564
2015-03-17 19:44:34 -06:00
Aaron Klotz 23fec2f904 Bug 1128064: Check for null mContent in nsPluginInstanceOwner::GetDocument; r=jimm
--HG--
extra : rebase_source : 0687888735ab5065c927c16f8b18a1b100a632ab
2015-03-16 15:11:13 -06:00
Ehsan Akhgari 97b5f363cc Bug 579517 follow-up: Remove NSPR types that crept in 2015-03-16 21:15:10 -04:00
Botond Ballo 2eb9751320 Bug 1139675 - Simplify the APIs for getting and setting the pres shell resolution. r=mstange,mattwoodrow
--HG--
extra : rebase_source : 18444e5f9304bbf9c2c14903be6aa4ebf8a08af3
extra : source : 60fe56e752d984a8d074af1bec1dfcd40a41e5f6
2015-03-06 18:07:59 -05:00
Aaron Klotz 623be0b606 Bug 1135491: Part 2 - Changes to nsJSNPRuntime to ensure that JS exceptions aren't thrown when plugin destruction is pending; r=josh,bholley
--HG--
extra : rebase_source : 450766689e0c0bf1cfa8c52f4e4051e2214715f2
2015-03-09 15:07:16 -06:00
Aaron Klotz 30dc911b8c Bug 1135491: Part 1 - Add functions to notify plugin when a plugin destroy will be deferred; r=jimm
--HG--
extra : rebase_source : 20024e084d3a1c60c3ae14934ea46310c288949e
2015-02-27 12:59:07 -07:00
Botond Ballo cda50e28d3 Bug 1036967 - Use ScaleFactors2D instead of ScaleFactor where appropriate in APZ and surrounding code. r=kats
--HG--
extra : rebase_source : bbdd433260c2e5244602275aa8516723f87d5740
extra : source : a2dbf7ec87c50f35a089470e39d6b4b448992e3d
2015-03-06 13:54:10 -05:00
Aaron Klotz 1c5fc3bb80 Bug 1140683: Fix async plugin init using null plugin funcs on MacOSX; r=jimm
--HG--
extra : rebase_source : a354d758270b033f50c01ea93501c76d7e34a852
2015-03-09 12:10:02 -06:00
Aaron Klotz 04c858cf58 Bug 1136930: Fix nsNPAPIPluginStreamListener so that destroystream calls are made during async plugin init; r=jimm
--HG--
extra : rebase_source : 80b98eb7963750815844a74665d03450160e3196
2015-03-12 11:45:31 -06:00
Jonathan Griffin d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Mike Hommey cae0d0c98c Bug 1063880 - Allow a --disable-compile-environment to go through a full mach build. r=mshal 2015-03-11 16:03:55 +09:00
Jim Mathies a7954e5c2b Bug 1132874 - Improve protections against sending a parent plugin protocol shutdown message to the child after the child has torn down. r=aklotz 2015-03-10 06:33:20 -05:00
Aaron Klotz 56efb9658f Bug 1128768: Part 5 - Update plugin code to retrieve SWF file for hang annotations; r=jimm
--HG--
extra : rebase_source : e0604317f4556728b3fcfef0c601d0cdc5ad9476
2015-02-25 17:38:09 -07:00
Aaron Klotz 9692fd3226 Bug 1141093: Ensure that FinishInjectorInitTask::PostToMainThread is no longer executing before leaving FinishInjectorInitTask::Run; r=dmajor
--HG--
extra : rebase_source : 646412f0b979c41a713baf9eedee227a25402451
2015-03-09 19:23:34 -06:00
Phil Ringnalda 1129ae3cbd Backed out 2 changesets (bug 1138181, bug 1132874) for e10s crashes in browser_windowopen_reflows.js
CLOSED TREE

Backed out changeset fdf4671db324 (bug 1132874)
Backed out changeset ddd5517ce7d2 (bug 1138181)
2015-03-07 14:37:31 -08:00
Jim Mathies c0e9fddc57 Bug 1132874 - Improve protections against sending a parent plugin protocol shutdown message to the child after the child has torn down. r=aklotz 2015-03-07 14:14:04 -06:00
Jason Orendorff cc85989b86 Bug 1113369, part 5 - [[Delete]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
--HG--
extra : rebase_source : 64b0e44bbb7673d139fab920243566db4844b517
2015-02-04 10:20:04 -06:00
Jason Orendorff 9a17368e8e Bug 1113369, part 4 - [[Set]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
--HG--
extra : rebase_source : ee44b9a7c933addd7f26643443900843b984587b
2015-02-03 19:51:40 -06:00
Aaron Klotz d1329c9051 Bug 1115438: Move PluginModuleParent's invocation of CreateToolhelp32Snapshot off the main thread; r=jimm
--HG--
rename : dom/plugins/ipc/ScopedMethodFactory.h => dom/plugins/ipc/TaskFactory.h
extra : rebase_source : fa4caf1f154974fd9994a8803db22c21c23d8cdf
2015-03-06 12:31:17 -07:00
Phil Ringnalda 559b55376b Back out 2812517c3814 (bug 1115438) for build bustage
CLOSED TREE

--HG--
rename : dom/plugins/ipc/TaskFactory.h => dom/plugins/ipc/ScopedMethodFactory.h
2015-03-05 20:33:05 -08:00
Aaron Klotz 6761a65f68 Bug 1115438: Move PluginModuleParent's invocation of CreateToolhelp32Snapshot off the main thread; r=jimm
--HG--
rename : dom/plugins/ipc/ScopedMethodFactory.h => dom/plugins/ipc/TaskFactory.h
extra : rebase_source : 72c4a338eb9b5a556a3d42545d7f07dd380a5e65
2015-01-08 17:38:49 -07:00
Aaron Klotz 8dbfc84a1c Bug 1136930: Hook PluginAsyncSurrogate into NPP_DestroyStream; r=jimm
--HG--
extra : rebase_source : 379d6a8bee1d6f608872e17aa10606b24dbde764
2015-02-25 16:25:33 -07:00
Wes Kocher 01e006a903 Merge inbound to m-c a=merge CLOSED TREE 2015-03-03 16:46:44 -08:00
Ryan VanderMeulen 6541acdb04 Backed out 7 changesets (bug 1075670) for causing bug 1139010.
Backed out changeset 659c40243282 (bug 1075670)
Backed out changeset 45b61c78ee2d (bug 1075670)
Backed out changeset 23bb7b239c78 (bug 1075670)
Backed out changeset a68d5051107f (bug 1075670)
Backed out changeset bd7a5d213692 (bug 1075670)
Backed out changeset f705f5063169 (bug 1075670)
Backed out changeset 13619f8fa672 (bug 1075670)

CLOSED TREE
2015-03-03 18:44:56 -05:00
Steven Michaud 37a4046738 Bug 1130435 - Mouse cursor doesn't disappear over Flash object when it should. Works in non-e10s. r=josh 2015-03-02 15:36:29 -06:00
Tooru Fujisawa 7056893560 Bug 1137897 - Do not throw exception from nsPluginTag::GetMimeTypes if a plug-in has no MIME-Types. r=bz 2015-02-28 13:32:27 +09:00
David Parks 8bb33e6cbc Bug 1075670 - Make PuppetWidget::WidgetToScreenOffset use proper screen position. r=josh
PuppetWidget::WidgetToScreenOffset now reports proper widget screen location. Previously, in the content process, all widgets were defined to be located at the screen origin. This also repairs mac e10s OOP plugin coordinate calculations that would be broken by this change.
2015-02-04 04:17:15 -08:00
Jan de Mooij db18ff3df9 Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE 2015-02-27 16:08:15 +01:00
John Schoenick a11862a8ae Bug 1136379. Clean up the nsPluginHost API a bit. r=bzbarsky 2015-02-25 11:36:39 -05:00
Ryan VanderMeulen ec8d7510c3 Backed out 7 changesets (bug 1075670) for e10s browser_586068-browser_state_interrupted.js crashes.
Backed out changeset 4ca74b217fe8 (bug 1075670)
Backed out changeset 83199cfc333f (bug 1075670)
Backed out changeset 065b859e6525 (bug 1075670)
Backed out changeset a3e8329610d9 (bug 1075670)
Backed out changeset ced9055e0bcc (bug 1075670)
Backed out changeset e6d6f0c11133 (bug 1075670)
Backed out changeset b823c6c95030 (bug 1075670)

CLOSED TREE
2015-02-24 11:53:34 -05:00
David Parks 0bb693520e Bug 1075670 - Make PuppetWidget::WidgetToScreenOffset use proper screen position. r=josh
PuppetWidget::WidgetToScreenOffset now reports proper widget screen location. Previously, in the content process, all widgets were defined to be located at the screen origin. This also repairs mac e10s OOP plugin coordinate calculations that would be broken by this change.
2015-02-04 04:17:15 -08:00
Ted Mielczarek c08cd3fbff bug 1121845 - Don't include generated IPDL header from nsPluginHost.h. r=bsmedberg
--HG--
extra : rebase_source : 7f0961a8fefe21372647eae9739b5da7475c5974
2015-02-05 07:56:19 -05:00