Commit Graph

901 Commits

Author SHA1 Message Date
Cameron McCormack
fd2fba0c73 Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron 2015-11-17 17:04:09 +11:00
Brad Lassey
06bf996cd3 bug 1190018 - External protocol handlers don't work in e10s r=mrbkap 2015-08-25 19:42:21 -04:00
Phil Ringnalda
596e8ff827 Back out 9 changesets (bug 1214305) for e10s devtools browser_bug1045902_console_csp_ignore_reflected_xss_message.js failures
Backed out changeset 82929be36e95 (bug 1214305)
Backed out changeset e926606aefbf (bug 1214305)
Backed out changeset 226c83ca9a2a (bug 1214305)
Backed out changeset 88ab26108f2d (bug 1214305)
Backed out changeset 2e3e4f256d46 (bug 1214305)
Backed out changeset 347cd0f8f1e3 (bug 1214305)
Backed out changeset be072bba15fc (bug 1214305)
Backed out changeset 3b85acbe7be7 (bug 1214305)
Backed out changeset 49b930683c02 (bug 1214305)
2015-11-14 10:09:58 -08:00
Josh Matthews
ec11c24ab0 Bug 1214305 - Part 0: Ensure site security service is initialized before trying to use DataStorage via IPC. 2015-11-14 08:27:43 -05:00
Ehsan Akhgari
9aa975d49d Bug 1215723 - Part 2: Initialize DataStorage items in the content process from the data in the parent; r=keeler 2015-10-30 15:30:00 -04:00
Jim Mathies
f1203966e4 Bug 1190364 - "With electrolysis (e10s) enabled and lots of tabs open, plugincheck often fails to find any plugins". r=billm
--HG--
extra : rebase_source : 2b1afcba9086e581b059c0e79c344df4e2e88de5
2015-11-11 05:35:00 +01:00
Sotaro Ikeda
944f1c5ca2 Bug 1189195 - Fix PContentPermissionRequest shutdown () r=fabrice 2015-11-08 16:55:08 -08:00
Wes Kocher
4c7afc9339 Backed out 5 changesets (bug 1215723) for android S4 bustage
Backed out changeset 2a945ce1cd40 (bug 1215723)
Backed out changeset dd7f58b60ddc (bug 1215723)
Backed out changeset 62dbb95bd79a (bug 1215723)
Backed out changeset b31ac98bb3c8 (bug 1215723)
Backed out changeset 228cdfaa82c1 (bug 1215723)

--HG--
extra : commitid : 70ygtTBi2V5
2015-11-06 15:19:35 -08:00
Wes Kocher
e943bc8e33 Merge m-c to inbound a=merge
--HG--
extra : commitid : IcbfYN5aCjt
2015-11-06 15:13:35 -08:00
Carsten "Tomcat" Book
f2961bc526 Merge mozilla-central to b2g-inbound 2015-11-06 14:00:33 +01:00
Fabrice Desré
a76d9cfc62 Bug 1220344 - remote some of nsSystemInfo to make it e10s ready on Android r=nchen,froydnj 2015-11-04 11:08:14 -08:00
Carsten "Tomcat" Book
bb068eacd7 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : browser/locales/en-US/chrome/browser/devtools/memory.properties => devtools/client/locales/en-US/memory.properties
2015-11-05 11:58:55 +01:00
George Wright
e4b793b815 Bug 1111892 - Ensure gdk_ungrab_pointer is always called in the correct process r=jimm 2015-11-04 16:46:10 -05:00
Wes Kocher
cad6f9789a Backed out changeset 89446bf8d6b8 (bug 1215167) for introducing a hazard
--HG--
extra : commitid : 19K8BX0d4Wz
2015-11-04 16:16:59 -08:00
Yoshi Huang
987e88f8e4 Bug 1221049 - Use originAttributes from TabContext. r=kanru 2015-11-03 18:53:41 +08:00
Carsten "Tomcat" Book
361272b11c Backed out changeset 3732b1dad003 (bug 1221049) for bustage 2015-11-04 11:52:05 +01:00
Yoshi Huang
9959eeedbe Bug 1221049 - Use originAttributes from TabContext. r=kanru 2015-11-03 18:53:41 +08:00
Bill McCloskey
ac2ca63fc1 Bug 1215167 - Forbid unsafe browser CPOWs (disabled by default for now) (r=mrbkap) 2015-11-04 13:40:15 -08:00
Wes Kocher
dd4158acd0 Backed out changeset f073181a927d (bug 1189195) for browser_privatebrowsing_geoprompt.js leaks CLOSED TREE
--HG--
extra : commitid : LFqvYmXqV6c
2015-11-05 18:06:21 -08:00
Sotaro Ikeda
7c26aaa947 Bug 1189195 - Fix PContentPermissionRequest shutdown r=fabrice 2015-11-05 16:41:13 -08:00
Ehsan Akhgari
999f1ba408 Bug 1215723 - Part 2: Initialize DataStorage items in the content process from the data in the parent; r=keeler 2015-10-30 15:30:00 -04:00
Bill McCloskey
35328ff29a Bug 1215167 - Forbid unsafe browser CPOWs (disabled by default for now) (r=mrbkap) 2015-11-05 13:17:04 -08:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Mike Conley
579e388d6e Bug 1218594 - r=smaug
--HG--
extra : commitid : 4eqpv5kRmP1
extra : rebase_source : b24ee1c13b9de8f37d3467686c653c6ed3e929c2
2015-10-30 14:54:52 -04:00
Catalin Badea
8255b13467 Bug 1172870 - Part 2 - Enable ServiceWorkerClients::OpenWindow on e10s desktop. r=smaug 2015-10-30 01:30:57 +02:00
Catalin Badea
bad419762d Bug 1172870 - Part 1 - Move PBrowser::CreateWindow to PContent. r=smaug 2015-10-30 01:30:57 +02:00
Chris Pearce
7d1f46000c Bug 1214967 - Proxy observer service notification across to content process when GMPs are added/removed. r=billm,jwwang 2015-10-29 21:56:12 +13:00
Blake Kaplan
54d6604951 Bug 1169268 - Don't crash when pasting files. r=ndeakin 2015-10-27 14:41:58 -07:00
Kit Cambridge
a801ab1747 Bug 1212149 - e10s support for opening notification settings. r=wchen
--HG--
extra : commitid : 8SX4FBldeTR
extra : rebase_source : 6af638808188d36ac6e8ed97154b1bd0b138568d
extra : amend_source : 5dc80cecadd6ffae17f5e4ef0fd0960b71bad7fb
2015-10-22 15:20:51 -06:00
Kit Cambridge
ec05a62f84 Bug 1212129 - e10s support for disabling site notifications. r=wchen
--HG--
extra : commitid : DPxANWhtVhu
extra : rebase_source : ba1b2c4cc9a93f7acbc4b68936b808dfc3552294
2015-10-22 15:10:14 -06:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Phil Ringnalda
915c3cb404 Back out 2 changesets (bug 1214967) for b2g debug mochitest-14 hangs, or perhaps fatal assertions failing to be fatal until a hang, or summat
CLOSED TREE

Backed out changeset 120b53ea0f41 (bug 1214967)
Backed out changeset af6b752acbd0 (bug 1214967)
2015-10-16 20:26:20 -07:00
Chris Pearce
419cfce138 Bug 1214967 - Proxy observer service notification across to content process when GMPs are added/removed. r=billm,jwwang 2015-10-17 10:39:45 +13:00
Nathan Froyd
fe57e31ffe Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm 2015-10-07 14:30:33 -04:00
Nathan Froyd
835e1550cb Bug 1212027 - part 5 - add LoneManagedOrNull for simplifying a lot of upcoming code; r=jld
A lot of existing code has variations on:

  if (ManagedPFooChild().Length()) {
    ...(ManagedPFooChild()[0])...
  }
  // Do something with nullptr, or some other action.

It's pretty reasonable to repeat this code when the managed protocols
are stored in an array; the code gets much less nice when managed
protocols are stored in a hashtable.  Let's write a small utility
function to handle those details for us.  Then when we change the
underlying storage, we only need to update this function, rather than a
bunch of callsites.

ProtocolUtils.h is included by all the generated IPDL headers, so
LoneManagedOrNull should be available everywhere the above pattern would
be encountered.
2015-10-07 20:15:56 -04:00
Trevor Saunders
dda4730c3c bug 1212906 - don't handle windows messages while waiting for a sync a11y ipc message r=billm
Windows messages can trigger sync ipc messages to the child process.  That
means if we handle windows messages while waiting for the response to a sync
a11y ipc message we can end up reentering the code to send ipc messages which
is bad.  Try and avoid this situation by not handling windows messages while
waiting for a sync a11y message.
2015-10-14 14:02:47 -04:00
Carsten "Tomcat" Book
6ffd4fc09b Merge m-c to mozilla-inbound 2015-10-14 12:47:31 +02:00
David Rajchenbach-Teller
cbe8e23af4 Bug 1212244 - Same-process sendAsyncMessage can now throw instead of OOM. r=smaug
--HG--
extra : rebase_source : 50d89efacee7103452218782c92a53a7cf07dd9b
2015-10-07 12:42:43 +02:00
J. Ryan Stinnett
e2eff29235 Bug 1132203 - Send app info before running process scripts. r=billm 2015-10-09 15:22:00 +02:00
Jed Davis
75ebfb6f22 Bug 930258 - Part 4: the PContent changes that connect the broker to its sandboxed client. r=kang r=billm 2015-10-07 22:13:09 -07:00
Christoph Kerschbaumer
9db34a3597 Bug 1199295 - Pass right loadingPrincipal to uriloader/prefetch - dom changes (r=smaug) 2015-10-02 09:10:02 -07:00
Jed Davis
f6824d8a0c Bug 1204626 - Reparent PWebBrowserPersistDocument to PContent. r=billm
A reference to a document (and the act of saving it) can outlive the
browser tab it was originally loaded in, and this needs to be reflected
in IPC in order to avoid MsgRouteError crashes; see bug for more info.

Note that we still need to pass the PBrowser when starting persistence,
because that's the only handle the parent has on the top-level document;
see comments in this patch for more info.

Also makes TabChildBase::GetDocument public, because it's just a wrapper
around WebNavigation() which is already public, to avoid code duplication.
2015-09-21 14:54:00 +02:00
Nicholas Nethercote
842dd1cf5a Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.

--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Bill McCloskey
90fd01f6e8 Bug 1139860 - Fix xpcshell content process timeout crashes (r=jimm) 2015-09-23 17:18:36 -07:00
Mike Conley
b1cc90cb12 Bug 1194897 - Copy parent window chromeFlags when instantiating a new TabParent in the parent process. r=smaug
The parent window chromeFlags contain information that the content process
needs - for example, whether or not the location bar, menubar, status bar,
and personal toolbar are set to be visible.

--HG--
extra : commitid : HmbAVQ6UYfw
extra : rebase_source : d2ca8203155110245de7b44d05b59bbdcc343cbd
2015-09-21 17:14:25 -04:00
Phil Ringnalda
5b1ea9212a Backed out 12 changesets (bug 1202482, bug 1202483, bug 1202481, bug 1202486, bug 1202479, bug 1202478, bug 1197475, bug 1203331, bug 1139860, bug 1202501, bug 1199473, bug 1190662) for Mulet mochitest-5 timeouts
CLOSED TREE

Backed out changeset 6503123e95dd (bug 1139860)
Backed out changeset b83bc163064d (bug 1203331)
Backed out changeset 2f501bd57cd2 (bug 1202481)
Backed out changeset 37e6ac7beb42 (bug 1202486)
Backed out changeset f9b6e99e620e (bug 1202483)
Backed out changeset 466af9f9baee (bug 1202482)
Backed out changeset 6be690e265a2 (bug 1202479)
Backed out changeset 57ff88bfccf4 (bug 1197475)
Backed out changeset 7e8c04ff6049 (bug 1202478)
Backed out changeset 525227997274 (bug 1202501)
Backed out changeset da317cdb79d3 (bug 1199473)
Backed out changeset 73b8ddd6dac9 (bug 1190662)

--HG--
rename : browser/components/extensions/test/browser/browser_ext_simple.js => browser/components/extensions/test/browser/browser_extensions_simple.js
rename : toolkit/components/extensions/test/mochitest/file_sample.html => toolkit/components/extensions/test/mochitest/file_contentscript_page1.html
2015-09-22 19:29:51 -07:00
Bill McCloskey
15d0576045 Bug 1139860 - Fix xpcshell content process timeout crashes (r=jimm) 2015-09-22 16:09:23 -07:00
Nick Fitzgerald
16ce95af26 Bug 1201597 - Part 2: Add an IPDL subprotocol for opening core dump files to
save heap snapsots into; r=mrbkap
2015-09-22 12:09:42 -07:00
Fabrice Desré
2089103a21 Bug 1203428 - E10S for device storage API r=cyu 2015-09-15 11:01:07 -07:00