Jonathan Watt
9c5b8de022
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Bob Owen
51397657c3
Bug 1277475 Part 1: Add a chrome and XBL accessor for the sandboxed scripts flag to Document WEBIDL. r=bz
...
This also incldues changes to use the new function instead of getting and checking the sandbox flags in most places.
MozReview-Commit-ID: Cv0vJCdLH4D
2016-06-09 11:22:22 +01:00
Boris Zbarsky
5e889be918
Bug 1276276 part 2. Change AutoEntryScript to always use the safe jscontext instead of trying to find a global-specific one. r=smaug
2016-06-02 10:34:39 -04:00
Patrick McManus
e01f1d0309
Bug 1274376 - more mozilla::net namespaces r=dragana
2016-05-18 22:02:57 -04:00
Boris Zbarsky
733b0b9c6f
Bug 1268047 part 2. Change javascript: evaluation to ignore the return value if it's not a string. r=peterv
2016-05-09 22:25:40 -04:00
Kyle Huey
b972c94d0f
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
aadd508ffe
Backed out changeset 85ce8cb0639a (bug 1268313)
2016-04-29 14:21:16 +02:00
Kyle Huey
e62a0823c9
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Yoshi Huang
2b116e8616
Bug 1263496 - Part 3: fix for nsNullPrincipal::Create
...
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=nsNullPrincipal::Create (&redirect=true
that needs to inherit origin attributes.
2016-04-27 18:38:07 +08:00
Christoph Kerschbaumer
136a31bb4c
Bug 1254689 - Remove SEC_NORMAL where loadingPrincipal is SystemPrincipal or NullPrincipal. r=sicking
2016-03-09 13:55:59 -08:00
Boris Zbarsky
63091385d1
Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley
2016-03-09 19:02:03 -05:00
Wes Kocher
77087623ff
Backed out changeset 7cbab9ec76d5 (bug 1254689) for browser_dbg_addon-sources.js failures
...
MozReview-Commit-ID: 3zPliH7mmPj
2016-03-09 10:56:23 -08:00
Christoph Kerschbaumer
3b1ca5ae52
Bug 1254689 - Remove SEC_NORMAL where loadingPrincipal is SystemPrincipal or NullPrincipal (r=sicking)
...
MozReview-Commit-ID: LKK3MGMODNI
2016-03-09 09:01:45 -08:00
Franziskus Kiefer
92e20dcfb1
Bug 293394 - javascript: should never execute with chrome privs. r=bz
...
MozReview-Commit-ID: J6zDIcUZZMv
2016-02-29 12:25:11 +01:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Birunthan Mohanathas
e95885610b
Bug 1217307 - Remove some unnecessary null checks in rest of dom/. r=njn
2015-11-19 09:13:49 +02:00
Bill McCloskey
4dee4d6fa4
Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs)
2015-11-11 18:04:21 -08:00
Nathan Froyd
4e6d8f6705
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
2015-10-18 01:24:48 -04:00
Bill McCloskey
8612a67a22
Back out bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process
2015-10-07 11:15:11 -07:00
Bill McCloskey
aa1b6377d3
Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs)
2015-10-01 21:18:48 -07:00
Christoph Kerschbaumer
b3ae778a80
Bug 1026520 - CSP: Inline report sending into allows - callsite updates (r=dveditz)
2015-09-17 22:34:34 -07:00
Christoph Kerschbaumer
040351fa66
Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking)
2015-08-12 21:36:33 -07:00
Ryan VanderMeulen
0618529665
Backed out changeset f99b27e40987 (bug 1193924) for B2G emulator bustage.
...
CLOSED TREE
2015-08-13 12:45:05 -04:00
Christoph Kerschbaumer
65f6f74176
Bug 1193924 - Add assertion to AsyncOpen to make sure asyncOpen2() was called first when securityflags in loadInfo are set (r=sicking)
2015-08-12 21:36:33 -07:00
Christoph Kerschbaumer
2ea46a230d
Bug 1143922 - Add AsyncOpen2 to nsIChannel and perform security checks when opening a channel - channel changes (r=mcmanus,sicking)
2015-05-15 13:21:20 -07:00
Boris Zbarsky
2a2c0c82aa
Bug 1181619. Make sure we've entered a microtask before we call nsJSUtils::EvaluateString, and put those microtasks outside the relevant AutoEntryScripts so we report any possible exceptions before doing the microtask checkpoint. r=bholley
2015-07-09 02:41:43 -04:00
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Olli Pettay
808c925b82
Bug 1180389, don't try to set channel's loadinfo if Init fails, r=bz
2015-07-06 20:31:09 +03:00
Boris Zbarsky
bb95d810cc
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
Jim Blandy
f94dd3b1df
Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
2015-04-08 21:23:48 -04:00
Nathan Froyd
8fccbf9246
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
8e33b81f72
Backed out changeset 050848a5273c (bug 1153988) for Windows build bustage CLOSED TREE
2015-04-14 14:42:59 -07:00
Nathan Froyd
047c5ef7e9
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
Nathan Froyd
b6b35a07b0
Bug 1153267 - part 2 - use smart pointers instead of manual NS_ADDREF'ing outparams; r=ehsan
2015-03-31 10:05:07 -04:00
Blake Kaplan
f45b1f1979
Bug 1131406 - Don't lose information about JS URIs when serializing them. r=billm
2015-03-06 22:33:00 +01:00
Christoph Kerschbaumer
a257b00b4c
Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - dom/ changes (r=sicking)
2014-12-12 09:06:09 -08:00
Phil Ringnalda
6c35b711bb
Backed out 15 changesets (bug 1087442)
...
Backed out changeset 3f4166fb5e37 (bug 1087442)
Backed out changeset 0c9c9123a0a9 (bug 1087442)
Backed out changeset 1d85d298042d (bug 1087442)
Backed out changeset 51f3ce397d68 (bug 1087442)
Backed out changeset f3b81a623692 (bug 1087442)
Backed out changeset 472e8fa74596 (bug 1087442)
Backed out changeset 12f97df7b79c (bug 1087442)
Backed out changeset 253cde88d3c5 (bug 1087442)
Backed out changeset b44f9ebd56cb (bug 1087442)
Backed out changeset 48e412887726 (bug 1087442)
Backed out changeset a2c76343f7a9 (bug 1087442)
Backed out changeset 0b5b07cfef0e (bug 1087442)
Backed out changeset 2931c35342a4 (bug 1087442)
Backed out changeset 681ce9dcad64 (bug 1087442)
Backed out changeset 47c505856954 (bug 1087442)
2014-12-11 21:58:21 -08:00
Christoph Kerschbaumer
cc4016fdae
Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - dom/ changes (r=sicking)
2014-12-11 20:45:56 -08:00
Christoph Kerschbaumer
00482440ee
Bug 1083422 - Add triggering Principal to nsILoadInfo - update consumers (r=bz)
2014-11-14 08:57:26 -08:00
Boris Zbarsky
f1881a7198
Bug 1095660 part 5. Change nsJSUtils::EvaluateString to take an explicit scope chain. r=bholley
2014-11-12 17:04:29 -05:00
Christoph Kerschbaumer
3c130f420e
Bug 1067471 - Add newChannel2 to nsIProtocolHandler that takes a loadinfo as an argument (r=sicking)
2014-10-22 17:16:57 -07:00
Christoph Kerschbaumer
326b47b317
Bug 1063197 - Callsites of NS_NewInputStreamChannel in /dom/ (r=bz)
2014-10-16 11:14:52 -07:00
Birunthan Mohanathas
575e74a9fb
Bug 1058101 - Move dom/src/jsurl/ into dom/. r=mccr8
2014-08-30 21:43:45 -07:00