John Dai
5730d36b65
Bug 1338889 - Part 2: Support DOMString as Argument 3 of Document.createElementNS. r=bz
2017-02-15 00:07:00 +08:00
John Dai
213ed5c7e5
Bug 1338889 - Part 1: Remove redundant trailing spaces. r=bz
2017-02-14 23:11:00 +08:00
Boris Zbarsky
fc8bc82e1b
Bug 1335368 part 19. Get rid of IsCallerChrome in XMLDocument::Load. r=bholley
2017-02-01 15:43:38 -05:00
Julian Seward
ee8c840e10
Bug 1232696 - Remove NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW as it causes segfaulting for GCC 6 builds (2 of 5, fixes for dom/). r=bkelly.
2017-01-24 17:10:39 +01:00
Boris Zbarsky
7744c8c837
Bug 1318479 part 4. Remove use of nsIDOMNode::AppendChild from NS_NewDOMDocument. r=ehsan
2016-11-18 16:38:29 -05:00
Michael Layzell
28edda560a
Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug
...
MozReview-Commit-ID: 3rZfLw3dXkF
2016-10-27 15:53:35 -04:00
Boris Zbarsky
2973982304
Bug 1310275. Fix the document.load() warning and telemetry to have a shot at actually being noticed. r=froydnj
2016-10-14 22:49:10 -04:00
Boris Zbarsky
49ca81e817
Bug 1305580 part 2. Change nsXMLDocument::Load telemetry to separately count chrome and content callers. r=smaug
2016-09-28 15:46:46 -04:00
Boris Zbarsky
bae70558b5
Bug 1305580 part 1. Remove all the methods from nsIDOMXMLDocument and make it not inherit from nsIDOMDocument anymore. r=smaug
...
This will let us know for sure that we're being called from script in things
like nsXMLDocument::Load.
2016-09-28 15:46:44 -04:00
Wes Kocher
043b7da7cf
Backed out 2 changesets (bug 1305580) for Windows svgr crashes a=backout CLOSED TREE
...
Backed out changeset 1124e3458403 (bug 1305580)
Backed out changeset 521286426a93 (bug 1305580)
2016-09-28 16:52:15 -07:00
Boris Zbarsky
1325db4e51
Bug 1305580 part 2. Change nsXMLDocument::Load telemetry to separately count chrome and content callers. r=smaug
2016-09-28 15:46:46 -04:00
Boris Zbarsky
9023f3e85b
Bug 1305580 part 1. Remove all the methods from nsIDOMXMLDocument and make it not inherit from nsIDOMDocument anymore. r=smaug
...
This will let us know for sure that we're being called from script in things
like nsXMLDocument::Load.
2016-09-28 15:46:44 -04:00
Thomas Wisniewski
6b8aa7d187
Bug 884693 - Do not log console warnings for XHR parse failures if HTTP status is 204 or 304. r=smaug
2016-09-21 13:48:05 -04:00
Iris Hsiao
d7c0a9a2c4
Backed out changeset 6fb622c938de (bug 884693) for crashed @mozilla::dom::XMLHttpRequestMainThread
...
CLOSED TREE
2016-09-21 13:00:50 +08:00
Thomas Wisniewski
48e285527f
Bug 884693 - Do not log console warnings for XHR parse failures if HTTP status is 204 or 304. r=smaug
2016-09-19 19:36:03 -04:00
Thomas Wisniewski
c030c85638
Bug 289714 - Do not write <parsererror> nodes for invalid XML documents in XMLHttpRequests made by web content. r=billm, r=bz
2016-08-29 16:30:36 -04: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
Masayuki Nakano
106a58fd31
Bug 895274 part.61 Rename NS_LOAD to eLoad r=smaug
2015-09-02 15:07:59 +09:00
Albert Crespell
b4a4d30fe5
Bug 1182120 - Fix Request mode for XMLDocument.load(). r=bkelly
2015-08-12 06:30:36 +02:00
Christoph Kerschbaumer
3b0b4abb01
Bug 1182544 - Use channel->ascynOpen2 in dom/xml/XMLDocument.cpp (r=sicking)
2015-08-10 10:19:08 -07:00
Christoph Kerschbaumer
f4af4abdb2
Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan)
2015-08-06 11:17:24 -07:00
Carsten "Tomcat" Book
24bab71afa
Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
...
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Christoph Kerschbaumer
a7a204019a
Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan)
2015-08-05 12:58:05 -07:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
789a3bf96e
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Andrew McCreight
5bc8e9c72c
Bug 1124268, part 3 - Rename nsContentUtils::GetSameOriginChecker to SameOriginChecker. r=smaug
...
This method is infallible, so the name should reflect that.
2015-01-26 09:28:15 -08:00
Andrew McCreight
4216290a9e
Bug 1124268, part 1 - Take advantage of the infallibility of nsContentUtils::GetSameOriginChecker(). r=smaug
2015-01-26 09:28:15 -08:00
Tanvi Vyas
be1281cb3c
Bug 1084513 - Add a null check on callingDoc before we try and get its principal. r=smaug
2014-10-20 12:43:41 -07:00
Christoph Kerschbaumer
17e43a4437
Bug 1041180: Remove deprecated nsIChannelPolicy (r=sstamm,jduell,jst)
2014-10-15 19:11:45 -07:00
Christoph Kerschbaumer
7ba59eb32f
Bug 1038756: Callsites creating a channel in /dom/[base,xml,plugins] (r=jst)
...
* * *
Bug 1038756: Callsites creating a channel in /dom/[base,xbl,plugins] (r=jst)
2014-09-22 04:49:12 -07:00
Tom Schuster
cd855aa981
Bug 1065574 - Remove UserDataHandler. r=smaug f=bz
2014-09-11 12:22:30 +02:00
Tanvi Vyas
100d342ee3
Bug 1057518 - Ensure callingDoc and doc's principal are the same in XMLDocument::Load(). r=sicking
2014-08-29 16:56:28 -07:00
Bobby Holley
79805d7105
Bug 796938 - Switch nsHTMLDocument::Open and XMLDocument::Load to a new GetEntryDocument API and remove nsContentUtils::GetDocumentFromContext. r=smaug
2014-08-19 12:02:06 -07:00
Birunthan Mohanathas
2ae1bf0df2
Bug 946065 - Part 6: Move content/xml/ to dom/ and flatten subdirectories. r=jst
2014-07-25 14:15:35 -07:00