Phil Ringnalda
ae6305d740
Bug 1350694 - set browser.tabs.remote.separateFileUriProcess in browser_blobFromFile.js so it will work even in non-Nightly builds, r=baku
2017-03-28 13:20:30 -07:00
Shawn Huang
bea755a58f
Bug 1341272 - Set readyState to DONE during synchronous XMLHttpRequest failure, r=baku
2017-03-27 15:21:57 +08:00
Ben Kelly
4ffa062ade
Bug 1350398 Remove Workers.h include from BindingUtils.h now that ThrowDOMExceptionForNSResult no longer exists. rs=bz
2017-03-24 15:27:11 -04:00
David Major
dc67bfc9a3
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
Iris Hsiao
5cece96e1c
Backed out 12 changesets (bug 1344629) for stylo build bustage
...
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
David Major
40f4821701
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
Michael Layzell
4a63faa60b
Bug 1331434 - Part 8: Avoid doing work after throwing in XMLHttpRequestWorker::SendInternal, r=baku
...
MozReview-Commit-ID: BgyhRAJLL81
2017-03-07 19:06:48 -05:00
Carsten "Tomcat" Book
087da3f0d9
merge mozilla-inbound to mozilla-central a=merge
2017-03-07 15:13:31 +01:00
Andrea Marchesini
1dd8d720eb
Bug 1344676 - Remove XHR_IN_WORKER telemetry ID, r=qdot
2017-03-07 08:46:18 +01:00
Wei-Cheng Pan
510ba75c20
Bug 1310127 - Part 17: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug
...
MozReview-Commit-ID: 5gvVZtsa3yS
--HG--
extra : rebase_source : 5e1ab2fc06ae58f18abb8909ac93f9512abbe220
2016-12-20 11:49:32 +08:00
Patrick McManus
0a3349e548
Bug 1344374 - remove now-meaningless nsIRequest::INHIBIT_PIPELINE r=hurley
2017-03-03 16:46:53 -05:00
Masatoshi Kimura
7be7b11a1c
Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
...
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;
MozReview-Commit-ID: AzhtdwJwVNg
--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Jessica Jong
cf17189117
Bug 1340086 - Remove uses of AnimationsPaused() since it is always false after bug 1316330. r=mrbkap
2017-02-22 01:00:00 -05:00
Andrew McCreight
55021b6577
Bug 1336811 - Clear mWaitingForOnStopRequest in CloseRequest. r=smaug
...
Otherwise, if a tab is closed when we have a request pending, we'll
end up leaking the page forever, due to CC optimizations.
MozReview-Commit-ID: E5NC0jxWCur
--HG--
extra : rebase_source : ac9b068dbf7166daf90d4143a190e7caa03aa88e
2017-02-17 11:22:45 -08:00
Andrea Marchesini
3043646e52
Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug
...
--HG--
rename : dom/file/File.cpp => dom/file/BaseBlobImpl.cpp
rename : dom/file/File.h => dom/file/BaseBlobImpl.h
rename : dom/file/File.cpp => dom/file/Blob.cpp
rename : dom/file/File.h => dom/file/Blob.h
rename : dom/file/File.cpp => dom/file/BlobImpl.cpp
rename : dom/file/File.h => dom/file/BlobImpl.h
rename : dom/file/File.cpp => dom/file/EmptyBlobImpl.cpp
rename : dom/file/File.h => dom/file/EmptyBlobImpl.h
rename : dom/file/File.cpp => dom/file/FileBlobImpl.cpp
rename : dom/file/File.h => dom/file/FileBlobImpl.h
rename : dom/file/File.cpp => dom/file/MemoryBlobImpl.cpp
rename : dom/file/File.h => dom/file/MemoryBlobImpl.h
rename : dom/file/File.cpp => dom/file/StreamBlobImpl.cpp
rename : dom/file/File.h => dom/file/StreamBlobImpl.h
rename : dom/file/File.h => dom/file/StringBlobImpl.h
rename : dom/file/File.h => dom/file/TemporaryBlobImpl.h
2017-02-16 18:26:38 +01:00
Bill McCloskey
0cda76d680
Bug 1339289 - Give names to a lot of common timers (r=ehsan)
...
MozReview-Commit-ID: IMsv5bkyjBL
2017-02-15 12:30:01 -08:00
Andrea Marchesini
614673153f
Bug 1328470 - XMLHttpRequest should reset timers when send() is executed again, r=smaug
2017-02-10 15:05:06 +01:00
Carsten "Tomcat" Book
ffe70d35b2
Merge mozilla-central to mozilla-inbound
2017-02-09 11:38:08 +01:00
Andrea Marchesini
6bce17f8b4
Bug 1337746 - XHR should cancel the nsIChannel with an error code and not with NS_OK, r=smaug
2017-02-09 10:47:43 +01:00
Andrea Marchesini
5333794e03
Bug 1337787 - Get rid of old code in XHRWorker, r=qdot
2017-02-09 10:41:39 +01:00
Tim Huang
756cf900c9
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
...
--HG--
extra : rebase_source : 22149fd540fd02119afe9fe5c9a815d01cf959c1
2017-02-07 11:49:34 +08:00
Andrea Marchesini
788b5eca61
Bug 1337016 - XHR should create a Blob in the parent process when run from a file:// URL, r=smaug
2017-02-08 14:34:42 +01:00
Joel Maher
c203f27827
Bug 1335099 - add BUG_COMPONENT to many dom/* subdir files. r=overholt
...
MozReview-Commit-ID: CyIIs98hnUI
2017-02-06 09:45:55 -05:00
Sebastian Hengst
7225ec6170
Backed out changeset 9a332af74af5 (bug 1335099) for build bustage (moz.build rule matches no files). r=backout on a CLOSED TREE
2017-02-06 16:21:20 +01:00
Joel Maher
60e61eed48
Bug 1335099 - add BUG_COMPONENT to many dom/* subdir files. r=overholt
...
MozReview-Commit-ID: CyIIs98hnUI
2017-02-06 09:45:55 -05:00
Jessica Jong
ed17f6c827
Bug 1316330 - Cancel delayed keypress events if last keydown was canceled. r=smaug
...
--HG--
extra : histedit_source : 7d2215d9c049b01b883e194e0efd0e61845223a3%2C135d6e6cef429efc19bba2c03a0f73fc6441d3a1
2017-02-03 05:16:00 -05:00
Andrea Marchesini
cbcc3bb043
Bug 1335365 - Add telemetry to see if we can remove moz-only XHR.reponseType, r=me CLOSED TREE
2017-01-31 18:06:14 +01:00
Andrea Marchesini
d4efdb7c26
Bug 1335365 - Add telemetry to see if we can remove moz-only XHR.reponseType, r=smaug, data-review=bsmedberg
2017-01-31 17:34:08 +01:00
Florian Quèze
bdc1ffa608
Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws.
2017-01-30 08:10:22 +01:00
Boris Zbarsky
334f1106d6
Bug 1333540. Common up the skippability implementations that are basically copy/pastes of the DOMEventTargetHelper one. r=smaug
2017-01-24 20:40:11 -05:00
Boris Zbarsky
28dabea2ec
Bug 1332322 part 3. Rename nsWrapperCache::IsBlackAndDoesNotNeedTracing to nsWrapperCache::HasKnownLiveWrapperAndDoesNotNeedTracing. r=mccr8
2017-01-24 20:39:37 -05:00
Boris Zbarsky
cce1668e68
Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8
2017-01-24 20:38:58 -05:00
Boris Zbarsky
b39cdf67a8
Bug 1332322 part 1. Add an nsWrapperCache function to mark the wrapper as 'live' for GC purposes. r=mccr8
2017-01-24 20:33:54 -05:00
Andrea Marchesini
0d8f8e4333
Bug 1329298 - Part 2 - use nsIXHRSendable instead Blob/FormData/URLSearchParams, r=smaug
2017-01-24 12:14:00 +01:00
Andrea Marchesini
20247bbf3f
Bug 1329298 - Part 1 - Unify body extraction in Fetch/Beacon/XHR, r=smaug
2017-01-24 12:13:31 +01:00
Boris Zbarsky
ffe339f775
Bug 1330759 part 4. Change XMLHttpRequest's responseText getter to take a DOMString, not an nsAString. r=froydnj
2017-01-18 22:20:15 -05:00
Andrea Marchesini
41bb03a148
Bug 1331564 - XHR SyncTeardownRunnable must run also when the worker is in killing state, r=bkelly
2017-01-18 15:05:41 +01:00
Florian Quèze
85611a7b6d
Bug 1331081
- script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
...
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Andrea Marchesini
359ae91eac
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Thomas Wisniewski
c6aea6cc68
Bug 1329365 - Follow-up adding 201, 202, and 205 to the list of response codes which suppress XML parsing errors. r=bz
2017-01-06 23:23:56 -05:00
Andrea Marchesini
94547f20bb
Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status, r=bkelly
2017-01-05 10:05:32 +01:00
Thomas Nguyen
0aaea58b69
Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly
...
MozReview-Commit-ID: 1A6IHPeNYBQ
2017-01-05 11:29:56 +08:00
Kris Maglione
d823573e34
Bug 1325158: Part 1 - Don't return error result from OnRedirectVerifyCallback. r=ehsan
...
MozReview-Commit-ID: Hb3I0U8kxdz
--HG--
extra : rebase_source : 447f2e11e9e3f59f984de56689681780d85b7bd3
2016-12-24 18:24:41 -08:00
Jan de Mooij
158805801d
Bug 1325075 - Fix Value::isGCThing footgun, stop returning true for NullValue. r=jonco,baku
2016-12-26 16:40:21 +01:00
Andrea Marchesini
2dba3e889e
Bug 1324430 - Implement nsTSubstring_CharT::Assign with length for a better string buffer sharing, r=froydnj
2016-12-23 17:22:21 +01:00
Ehsan Akhgari
d67534c9f0
Bug 1320201 - When an XHR is made with an expanded principal, use the expanded principal for CORS security checks; r=bzbarsky
...
We should only ensure that the resulting document doesn't end up
inheriting the expanded principal.
2016-12-15 16:49:35 -05:00
Thomas Wisniewski
54ad3187aa
Bug 1319744 - Ensure that progress events and corresponding LOADING readystatechanges fire as per spec. r=baku
2016-12-13 15:23:01 -05:00
Tomislav Jurin
348bfffc19
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Bill McCloskey
2d57ca5e03
Bug 1318506 - Label XHR timer runnables with DocGroup (r=bkelly)
...
MozReview-Commit-ID: LYB8LFuVs1w
2016-12-01 15:00:13 -08:00
Andrea Marchesini
8bbeee69cf
Bug 1321261 - create dom/file for File APIs, r=qdot
...
--HG--
rename : dom/base/BlobSet.cpp => dom/file/BlobSet.cpp
rename : dom/base/BlobSet.h => dom/file/BlobSet.h
rename : dom/base/File.cpp => dom/file/File.cpp
rename : dom/base/File.h => dom/file/File.h
rename : dom/base/FileList.cpp => dom/file/FileList.cpp
rename : dom/base/FileList.h => dom/file/FileList.h
rename : dom/base/FileReader.cpp => dom/file/FileReader.cpp
rename : dom/base/FileReader.h => dom/file/FileReader.h
rename : dom/base/MultipartBlobImpl.cpp => dom/file/MultipartBlobImpl.cpp
rename : dom/base/MultipartBlobImpl.h => dom/file/MultipartBlobImpl.h
rename : dom/base/MutableBlobStorage.cpp => dom/file/MutableBlobStorage.cpp
rename : dom/base/MutableBlobStorage.h => dom/file/MutableBlobStorage.h
rename : dom/base/MutableBlobStreamListener.cpp => dom/file/MutableBlobStreamListener.cpp
rename : dom/base/MutableBlobStreamListener.h => dom/file/MutableBlobStreamListener.h
rename : dom/ipc/Blob.cpp => dom/file/ipc/Blob.cpp
rename : dom/ipc/BlobChild.h => dom/file/ipc/BlobChild.h
rename : dom/ipc/BlobParent.h => dom/file/ipc/BlobParent.h
rename : dom/ipc/BlobTypes.ipdlh => dom/file/ipc/BlobTypes.ipdlh
rename : dom/ipc/PBlob.ipdl => dom/file/ipc/PBlob.ipdl
rename : dom/ipc/PBlobStream.ipdl => dom/file/ipc/PBlobStream.ipdl
rename : dom/ipc/nsIRemoteBlob.h => dom/file/ipc/nsIRemoteBlob.h
rename : dom/base/nsHostObjectProtocolHandler.cpp => dom/file/nsHostObjectProtocolHandler.cpp
rename : dom/base/nsHostObjectProtocolHandler.h => dom/file/nsHostObjectProtocolHandler.h
rename : dom/base/nsHostObjectURI.cpp => dom/file/nsHostObjectURI.cpp
rename : dom/base/nsHostObjectURI.h => dom/file/nsHostObjectURI.h
rename : dom/base/nsIDOMBlob.idl => dom/file/nsIDOMBlob.idl
rename : dom/base/nsIDOMFileList.idl => dom/file/nsIDOMFileList.idl
rename : dom/base/test/create_file_objects.js => dom/file/tests/create_file_objects.js
rename : dom/base/test/file_blobURL_expiring.html => dom/file/tests/file_blobURL_expiring.html
rename : dom/base/test/file_mozfiledataurl_audio.ogg => dom/file/tests/file_mozfiledataurl_audio.ogg
rename : dom/base/test/file_mozfiledataurl_doc.html => dom/file/tests/file_mozfiledataurl_doc.html
rename : dom/base/test/file_mozfiledataurl_img.jpg => dom/file/tests/file_mozfiledataurl_img.jpg
rename : dom/base/test/file_mozfiledataurl_inner.html => dom/file/tests/file_mozfiledataurl_inner.html
rename : dom/base/test/file_mozfiledataurl_text.txt => dom/file/tests/file_mozfiledataurl_text.txt
rename : dom/base/test/file_nonascii_blob_url.html => dom/file/tests/file_nonascii_blob_url.html
rename : dom/base/test/fileapi_chromeScript.js => dom/file/tests/fileapi_chromeScript.js
rename : dom/base/test/fileutils.js => dom/file/tests/fileutils.js
rename : dom/base/test/test_blobURL_expiring.html => dom/file/tests/test_blobURL_expiring.html
rename : dom/base/test/test_blob_fragment_and_query.html => dom/file/tests/test_blob_fragment_and_query.html
rename : dom/base/test/test_blobconstructor.html => dom/file/tests/test_blobconstructor.html
rename : dom/base/test/test_file_from_blob.html => dom/file/tests/test_file_from_blob.html
rename : dom/base/test/test_file_negative_date.html => dom/file/tests/test_file_negative_date.html
rename : dom/base/test/test_fileapi.html => dom/file/tests/test_fileapi.html
rename : dom/base/test/test_fileapi_slice.html => dom/file/tests/test_fileapi_slice.html
rename : dom/base/test/test_ipc_messagemanager_blob.html => dom/file/tests/test_ipc_messagemanager_blob.html
rename : dom/base/test/test_mozfiledataurl.html => dom/file/tests/test_mozfiledataurl.html
rename : dom/base/test/test_nonascii_blob_url.html => dom/file/tests/test_nonascii_blob_url.html
2016-12-01 15:12:42 +01:00