Birunthan Mohanathas
d382a21947
Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
...
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02: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
Boris Zbarsky
165bd43fb4
Backing out changeset f6759ed53f46 (bug 799937) due to causing extension breakage.
2015-10-14 11:07:06 -04:00
Aryeh Gregor
b713aa426f
Bug 799937 - Make createElement()'s result always in the HTML namespace (except for XUL documents); r=bz
...
The new expected failures in web-platform are in a test that doesn't
match the spec, which has already been synced upstream and will be
synced shortly. For the same test in imptests, I chose to modify the
test instead, because it's easier and imptests is going to be removed.
2015-10-14 11:16:08 +05:30
Bill McCloskey
8612a67a22
Back out bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process
2015-10-07 11:15:11 -07:00
Ehsan Akhgari
bfcf1b7a20
Bug 1210302 - Part 3: Add a NS_ParseRequestContentType API; r=mcmanus,sicking
2015-10-06 20:26:46 -04:00
Bill McCloskey
aa1b6377d3
Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs)
2015-10-01 21:18:48 -07:00
Bobby Holley
53f8074964
Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz
2015-09-24 14:02:41 -07:00
Birunthan Mohanathas
a0f7c73250
Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Kyle Huey
a1b3153fd0
Bug 1182316: Part 3 - Add assertions to most other WebIDL entry points, clean up nsIDOMJSWindow cruft. r=peterv
2015-07-16 22:10:35 -07:00
Ehsan Akhgari
0a5819219a
Bug 1182976 follow-up: Address njn's drive-by comment
2015-07-16 14:56:47 -04:00
Ehsan Akhgari
51bdca56d6
Bug 1182976 - Part 1: Get rid of IdentifierMapEntryAddNames; r=baku
2015-07-16 14:47:54 -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
Cameron McCormack
3311e2699e
Bug 1171342 - Store contenteditable.css and designmode.css in the style sheet cache. r=jwatt
2015-06-16 11:34:48 +10:00
Michael Layzell
645a0984ed
Bug 1027560 - Return false from document.execCommand() and friends when not in editable document. r=ehsan
2015-06-02 09:07:00 -04:00
Xidorn Quan
d0a603fa67
Bug 1170911 - Add pref for switching off execCommand("cut"/"copy"). r=ehsan
2015-06-08 10:21:58 +12:00
Michael Layzell
fc085b5f4c
Bug 1012662 - Part 1 - Allow document.execCommand('copy'/'cut') in user-generated event handlers. r=ehsan
2015-05-25 13:43:00 +02:00
Carsten "Tomcat" Book
98ea5d764b
Backed out changeset 265d0878ecd4 (bug 1012662) for B2G ICS Emulator debug m16 test failures
2015-05-26 13:41:37 +02:00
Carsten "Tomcat" Book
b323c81289
Backed out changeset fdc2aa9e612f (bug 1027560) for failing w3 tests
2015-05-26 13:13:48 +02:00
Michael Layzell
f69030aa19
Bug 1027560 - return false from document.execCommand() and friends when not in editable document. r=ehsan
2015-05-14 06:46:00 +02:00
Michael Layzell
d1a990d00a
Bug 1012662 - Allow document.execCommand('copy'/'cut') in user-generated event handlers. r=ehsan
2015-05-25 13:43:00 +02:00
Michael Layzell
07d387cb7f
Bug 1162952 - Return true from document.queryCommandEnabled('cut'/'copy') when in privileged or user-initiated code. r=ehsan
2015-05-25 10:09:00 +02:00
Michael Layzell
cc08f4c79d
Bug 1161721 - Return false from document.queryCommandSupported for restricted commands. r=ehsan
2015-05-21 06:37:00 -04:00
Christoph Kerschbaumer
5e352aa485
Bug 1038756 - Extending LoadInfo and storing LoadInfo on all channels created through NS_NewChannel - followup: removal of duplicate error check (r=sicking)
2015-05-04 17:02:38 -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
Masayuki Nakano
edd1e85cd6
Bug 1128787 part.2 nsHTMLDocument should clear focus before making itself editable when designMode is enabled and it makes the focused content non-focusable r=smaug+enndeakin
2015-04-21 15:27:10 +09:00
Mike Hommey
338d086ead
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09: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
Andrea Marchesini
0cd435c47f
Bug 1134280 - Get rid of Tag() - patch 2.8 - dom/html - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +00:00
Andrea Marchesini
6b10d5e43e
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00
Boris Zbarsky
44ae69eb98
Bug 1131801 part 2. Get rid of the now-useless RescueOrphansInScope. r=peterv
2015-02-13 14:34:53 -05:00
Wes Kocher
936e439950
Backed out changeset be654bd9e20d (bug 1131801)
2015-02-13 13:25:38 -08:00
Boris Zbarsky
59dfcb0a94
Bug 1131801 part 2. Get rid of the now-useless RescueOrphansInScope. r=peterv
2015-02-13 14:34:53 -05:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Ehsan Akhgari
5729eddb47
Bug 1108547 - Part 2: Create a dummy channel for accessing the document's cookie when we don't have one already; r=jdm
...
This ensures that the cookie service can know which cookie database
to query from. This is a gross hack, please see the discussion on
the bug as to why we did this.
2015-01-27 23:17:35 -05:00
Ryan VanderMeulen
36c44c7aa4
Backed out changesets 180e7905987e, 91101cbcc319, and 211567afcc5f (bug 1108547) for timeouts in the new test.
...
CLOSED TREE
2015-01-26 15:00:03 -05:00
Ehsan Akhgari
f12ea849f0
Bug 1108547 - Part 2: Create a dummy channel for accessing the document's cookie when we don't have one already; r=jdm
...
This ensures that the cookie service can know which cookie database
to query from. This is a gross hack, please see the discussion on
the bug as to why we did this.
2015-01-26 14:06:35 -05:00
Sid Stamm
4bec90b255
Bug 965727 - Implement referrer directive for CSP. (r=jst,ckerschb)
2014-12-17 14:14:04 -05:00
Akshendra Pratap
b18feb581d
Bug 1110789 - Cleanup patch for Bug 340494. r=bz
2014-12-12 07:04:00 -05:00
Akshendra Pratap
040f8ba7b6
Bug 340494: Accessing document.domain at about:plugins does not produces NS_ERROR_FAILURE anymore; r=bz
2014-11-26 14:25:20 -05:00
Birunthan Mohanathas
86c0c5b215
Bug 946065 - Part 11: Move content/html/ to dom/ and flatten subdirectories. r=peterv
2014-10-25 20:24:55 +03:00