Commit Graph

75 Commits

Author SHA1 Message Date
Andrea Marchesini
1745e82619 Bug 1203463 - URL constructor should support about:blank URI, r=bz 2015-09-16 11:26:29 +08:00
Wes Kocher
3b656f6d65 Backed out changeset 1023659e3413 (bug 1203463) for w(7) and m(4) bustage 2015-09-15 10:58:14 -07:00
Andrea Marchesini
995d2fc2f8 Bug 1203463 - URL constructor should support about:blank URI, r=bz 2015-09-16 00:45:34 +08:00
Olli Pettay
d4db556e39 Bug 1183450, properly wrappercache URL object, r=baku
--HG--
extra : rebase_source : 74e2c25872a89718c88cbb4e8b58a2a2e8d0f2c2
2015-07-14 20:55:55 +03:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Andrea Marchesini
3fb4f10250 Bug 1177916 - URL should be a nsWrapperCache object, r=smaug 2015-06-29 17:03:47 +01:00
Andrea Marchesini
fc9a4cb52f Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug 2015-06-29 17:02:53 +01:00
Cameron McCormack
860a9f7d1a Back out bug 1177916 (changeset d4c34d7fb112) for test_urlSearchParams.html failure. 2015-06-27 12:18:19 +10:00
Andrea Marchesini
d55095b632 Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug 2015-06-26 17:44:34 -07:00
Andrea Marchesini
46ed66e379 Bug 1174731 - patch 1 - Make searchParams attribute readonly, r=smaug 2015-06-24 12:15:59 -07:00
Valentin Gosu
6dd869a927 Bug 1093611 - Stage 2 - Make hash getters not do percent decoding if dom.url.getters_decode_hash is false r=smaug 2015-06-15 15:55:02 +03:00
Ryan VanderMeulen
83cd9ed67a Backed out changesets a08167680328 and b008f158e91f (bug 1093611) for talos svgr timeouts. 2015-06-16 15:37:37 -04:00
Valentin Gosu
c852d75d5c Bug 1093611 - Stage 2 - Make hash getters not do percent decoding if dom.url.getters_decode_hash is false r=smaug 2015-06-16 19:46:31 +03:00
Karl Tomlinson
17fbd6edc8 bug 1116382 test auto-revoking behavior with URL.createObjectURL(MediaSource) r=bholley
--HG--
extra : rebase_source : 02b65ac83216afd2fcae15538a899e4ab3f0e50d
2015-05-29 00:01:34 +12:00
Karl Tomlinson
b4783da202 bug 1116382 auto revoke MediaSource object URLs r=bholley
--HG--
extra : rebase_source : 9a1a758c2acba831cf7b431c4ead1f032cf428a3
2015-06-05 15:55:08 +12:00
Andrea Marchesini
368a198972 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher
983fcabeef Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Andrea Marchesini
91a8a35606 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen
2390c704f8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE

--HG--
extra : histedit_source : a6c24f88b9c5a0cbcf2d44189fd359ddb20757b4%2C46613cfc309a9f0531e8c2475ac17877f606f231
2015-05-11 11:43:59 -04:00
Andrea Marchesini
48ecacaa74 Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Andrea Marchesini
0d81eae126 Bug 1156875 - patch 1 - URL.createObjectURL leaks in JS sandbox, r=bholley 2015-05-07 08:05:43 +01:00
Boris Zbarsky
0472742d0c Bug 1160628. Speed up the URL constructor in the common case of no base URI. r=baku 2015-05-05 13:38:56 -04:00
Andrew McCreight
9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Boris Zbarsky
d0ebde3bb7 Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.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/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 10:13:32 -04:00
Andrea Marchesini
c252bae4a6 Bug 1137814 - nsAString and nsACString in URL.cpp/h. r=nsm
--HG--
extra : rebase_source : 6451dcffc95a0bdf5867eb34c68eadbf8da732cc
2015-02-27 14:10:20 -05:00
Peter Van der Beken
dc3a33aa88 Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
--HG--
extra : rebase_source : 54a1e408aec6c7485152f18693047b2992251aff
2015-01-08 22:56:42 +01:00
Valentin Gosu
d855dd7639 Bug 1093611 - nsStandardURL::SetRef only does percent-encoding if dom.url.encode_decode_hash is true r=honzab 2015-01-13 02:11:02 +02:00
Valentin Gosu
03dc7748d9 Bug 1093611 - AnchorElement.hash should be the encoded version of the href attribute's fragment r=smaug 2014-11-12 03:14:04 +02:00
Carsten "Tomcat" Book
a82e03cd67 Backed out changeset ec354ea4ace0 (bug 1093611) for talos svgr bustage 2014-11-26 15:08:54 +01:00
Valentin Gosu
ae99095b94 Bug 1093611 - AnchorElement.hash should be the encoded version of the href attribute's fragment r=smaug 2014-11-12 03:14:04 +02:00
Andrea Marchesini
8c8896cc60 Bug 1101584 - sContentUtils::GetUTFOrigin should check if the URI has the nsIURIWithPrincipal interface, r=bz, r=smaug 2014-11-19 11:40:00 +01:00
Wes Kocher
31d7407a86 Backed out changeset 8e604ebfc313 (bug 1101584) for m-oth failures on a CLOSED TREE 2014-11-19 12:07:15 -08:00
Andrea Marchesini
1b30cdcc5c Bug 1101584 - sContentUtils::GetUTFOrigin should check if the URI has the nsIURIWithPrincipal interface, r=bz 2014-11-19 16:32:47 +00:00
Valentin Gosu
f4b976820f Bug 1082723 - Add IPv6 delimiters to nsLocation::GetHostname and Link::GetHostname r=smaug 2014-10-20 13:46:20 +03:00
Andrea Marchesini
8f8ec51372 Bug 1047483 - patch 3 - Renaming DOMFile to File, r=ehsan
--HG--
rename : content/base/public/nsDOMFile.h => content/base/public/File.h
rename : content/base/src/nsDOMFile.cpp => content/base/src/File.cpp
2014-10-08 17:15:23 +01:00
Andrea Marchesini
7491bee8c3 Bug 1047483 - patch 1 - Porting DOMFile/DOMBlob to WebIDL, r=bz, r=bkelly, r=bholley 2014-10-08 17:15:22 +01:00
Ryan VanderMeulen
cd3e8a6f73 Backed out 7 changesets (bug 1047483, bug 1079301, bug 1079335) for webplatform test failures.
Backed out changeset 7d06b68c44d0 (bug 1079335)
Backed out changeset 92030169528e (bug 1079301)
Backed out changeset c09d7f95554a (bug 1047483)
Backed out changeset c199f1057d7e (bug 1047483)
Backed out changeset 18830d07884c (bug 1047483)
Backed out changeset e087289ccfbb (bug 1047483)
Backed out changeset 6238ff5d3ed0 (bug 1047483)

CLOSED TREE

--HG--
rename : content/base/public/File.h => content/base/public/nsDOMFile.h
rename : content/base/src/MultipartFileImpl.cpp => content/base/src/nsDOMBlobBuilder.cpp
rename : content/base/src/MultipartFileImpl.h => content/base/src/nsDOMBlobBuilder.h
rename : content/base/src/File.cpp => content/base/src/nsDOMFile.cpp
2014-10-07 13:16:11 -04:00
Andrea Marchesini
c8190ba625 Bug 1047483 - patch 3 - Renaming DOMFile to File, r=ehsan
--HG--
rename : content/base/public/nsDOMFile.h => content/base/public/File.h
rename : content/base/src/nsDOMFile.cpp => content/base/src/File.cpp
2014-10-07 15:20:55 +01:00
Andrea Marchesini
d272279126 Bug 1047483 - patch 1 - Porting DOMFile/DOMBlob to WebIDL, r=bz, r=bkelly, r=bholley 2014-10-07 15:20:52 +01:00
Andrea Marchesini
eee60d5ec4 Bug 1058470 - Blob URL should contain the origin as part of the URI, r=bz 2014-08-31 11:40:11 +01:00
Andrea Marchesini
6aa8d79e5d Bug 1046240 - Expose the principal for a blob URI for chrome-only js code. r=smaug 2014-08-13 08:29:00 -04:00
Andrea Marchesini
a87ad490c6 Bug 1037715 - Implement .searchParams on Location, r=bz, r=ehsan 2014-08-07 17:45:21 -07:00
Boris Zbarsky
ac6441fa54 Bug 832014 part 4. Make the URLUtils APIs able to throw, since Location needs to be able to do that so far. r=peterv 2014-07-11 19:30:27 -04:00
Andrea Marchesini
6197f631af Bug 827823 - patch 1 - CC in DOMFile class, r=ehsan 2014-06-26 20:46:34 -07:00
Andrea Marchesini
2befea780d Bug 1018682 - URL API - SetProtocol should serialize and reparse the URL, r=bz 2014-06-09 17:20:19 +01:00
Valentin Gosu
3f26ca158b Bug 960014 - Escape IPv6 address in URL::GetHostname r=smaug 2014-05-30 01:19:09 +03:00
Nick Lebedev
c49e263d0f Bug 998002 - Rename nsContentUtils::Get{Subject,Object}Principal to nsContentUtils::{Subject,Object}Principal. r=bholley 2014-05-13 11:58:00 +02:00
Valentin Gosu
539f7b5ac4 Bug 1005578 - Change nsIURI object from nsStandardURL to nsJSURI when calling url.href. r=bz 2014-05-06 17:14:04 -04:00
Valentin Gosu
e621efc2fa Bug 996055 - Prevent url.hostname from clearing the hostname. r=mcmanus 2014-04-23 17:45:58 +03:00
Boris Zbarsky
79dab91ff6 Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00