Daniel Stenberg
3d74499ee4
bug 1432150 - restore rcwn pref after test_immutable.js test complete, r=mcmanus
...
The test previously only switched off the pref and didn't restore the
old value when done.
--HG--
extra : rebase_source : 87a769b3148f17b74f98c343743039b8d0d265c2
2018-01-22 05:35:00 +02:00
Luke Crouch
30b0ae88f8
Bug 587523: remove branching logic; comment fixups r=valentin
...
MozReview-Commit-ID: J8LGTUMehZA
--HG--
extra : rebase_source : bd14c0a652c06e6cdb73c6c52034a4fd2f3abbef
2018-01-18 09:57:14 -06:00
Luke Crouch
a102c64ea0
Bug 587523: update test_referrer.js to include pbmode tests r=valentin
...
MozReview-Commit-ID: FXUMi9Q3S3P
--HG--
extra : rebase_source : 5fabbd2ed3aa04eb68d4e1e43ef0b710125ffee5
2018-01-16 15:25:09 -06:00
Luke Crouch
111ae8a75d
Bug 587523 - rename referer.userControlPolicy to referer.defaultPolicy r=valentin
...
MozReview-Commit-ID: A2hkYfdTCR9
--HG--
extra : rebase_source : 6d3775da80338b66eee44f13ba177f29933dd114
2018-01-10 16:51:10 -06:00
Valentin Gosu
da90b10e9f
Bug 1431204
- Change calls to nsIURI.spec setter to use nsIURIMutator instead r=mayhemer
...
* changes call to use nsIURIMutator.setSpec()
* Add new NS_MutateURI constructor that takes new Mutator object
* Make nsSimpleNestedURI::Mutate() and nsNestedAboutURI::Mutate() return mutable URIs
* Make the finalizers for nsSimpleNestedURI and nsNestedAboutURI make the returned URIs immutable
MozReview-Commit-ID: 1kcv6zMxnv7
--HG--
extra : rebase_source : 99b13e9dbc8eaaa9615843b05e1539e19b527504
2018-01-19 15:19:42 +01:00
Valentin Gosu
f943b98a02
Bug 1426501 - Change JS code to use nsIURIMutator instead of the nsIURI.spec setter r=mayhemer
...
MozReview-Commit-ID: FI6WrsQT2ke
--HG--
extra : rebase_source : 2b286c47c19ebd112a0c47fbe0a4c23bdb04755f
2018-01-08 15:20:29 +01:00
Valentin Gosu
7b63575817
Bug 1426501 - Change nsIURIMutator to call set spec on cloned URI if available r=mayhemer
...
Calling SetSpec on an nsIURI object doesn't reinitialize the object, meaning
it's not equivalent with creating a new URI with the same spec. While this
might be counter-intuitive we want to preserve existing behaviour for
the moment.
This change makes BaseURIMutator::InitFromSpec call SetSpec on the existing
cloned URI if available. Otherwise it creates a new one.
MozReview-Commit-ID: LuHVRhBItiP
--HG--
extra : rebase_source : fc7b64d01adcb7f2ac5bbd9cfc16dadb3c4939c9
2018-01-08 11:23:59 +01:00
Kershaw Chang
318287a62a
Bug 1413999 - Part4: Test case r=dragana
...
--HG--
extra : rebase_source : 748ccbc8a2d03be61a4ed9ac21187d044b0e81f2
2018-01-03 18:59:00 +02:00
Amy Chung
1bca7e374d
Bug 1425292 - Add test for being unable to use document.cookie to access cookie after the non-httponly cookie modifies to httponly cookie. r=jdm
2017-12-22 16:08:53 +08:00
Florian Quèze
22c55eb7b7
Bug 1421992 - Hand written cleanup patch to make tests pass after removing obsolete xpcshell functions. r=Gijs,ochameau a=Aryx
2017-12-21 11:11:57 +01:00
Florian Quèze
0f55cd45be
Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs.
2017-12-21 11:10:23 +01:00
Florian Quèze
032c961e0a
Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs.
2017-12-21 11:08:17 +01:00
Kershaw Chang
df53d0fe58
Bug 1425512
- Make the sequence of requests more determinate, r=mayhemer
...
This test is aimed to check whether the order that http server gets requests is the same as the order in the client's pending queue.
However, even if the transactions are dispatched according to the order in pending queue, it doesn't mean the server can get the request in the same order.
This is because the transaction is really dispatched to a connection when nsHalfOpenSocket::OnOutputStreamReady() is called. The order may not be always the same as the pending queue.
Hence, this patch processes the dummy http request once at the time when the previous request's OnStopRequest() is called. This can force the client dispatch only one transaction at the time and make the behavior of this test more predictable.
--HG--
extra : rebase_source : 5f4631ecabdf1f36352a80fbe1939b54348ab682
2017-12-20 00:08:00 +02:00
Shih-Chiang Chien
be3edff94c
Bug 1404454 - use about:blank as the inital page of the testing iframe. r=dragana
...
In our test script we set the unload handler on the inner iframe earlier than the page is loaded, therefore it pass the origin check since the contentWindow object is for about:blank.
Security error will raise if the OnStartRequest for that iframe is received beforehand.
Use about:blank can guarantee to have same-origin window on the inner iframe.
MozReview-Commit-ID: 8AiwGIfoF4
--HG--
extra : rebase_source : cfad1803a61719470f8240700ac917c4931e3dfe
2017-12-09 20:31:29 -06:00
Valentin Gosu
7ec2fb5907
Bug 1425318 - The second call to NS_MutateURI.Finalize should fail r=mayhemer
...
MozReview-Commit-ID: 4U2XsftU2sy
--HG--
extra : rebase_source : c63e014b862e7c2726c940934b06de33c6d45a2c
2017-12-19 02:06:45 +01:00
Valentin Gosu
ad95b9773a
Bug 1425318 - Allow calling NS_MutateURI.Finalize(nsIURI**) r=mayhemer
...
MozReview-Commit-ID: Hz4CfDDS1FI
--HG--
extra : rebase_source : 2e67a8763cd286b81f903490f959d491d2e3010b
2017-12-19 02:04:40 +01:00
Gijs Kruitbosch
ffc0ed12d2
Bug 1425363 - remove onWindowTitleChanged given that nobody uses it, r=bgrins
...
MozReview-Commit-ID: ALslAwZo4K9
--HG--
extra : rebase_source : ca1add0015eea86128c0c5f209252ebb6a228998
2017-12-14 21:55:44 -06:00
Margareta Eliza Balazs
c4027ebd8f
Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE
2017-12-13 00:04:54 +02:00
Dragana Damjanovic
1ee1f7ed9c
Bug 1409449 - Update test for bug 1409449. r=:ckerschb
2017-12-12 10:34:42 +01:00
Patrick McManus
dc7b5677f7
Bug 1411316 - necko api for cancelling all transactions r=dragana
...
test by: :kershaw
MozReview-Commit-ID: BwjsDMiEGZY
--HG--
extra : rebase_source : 5f2bdc49295d19179e26f9c72204e1d8a9fb698a
2017-10-24 09:17:02 -07:00
Valentin Gosu
d9e085b9ec
Bug 1423961 - Improve NS_MutateURI.Finalize by passing reference to nsCOMPtr instead nsIURI** r=mayhemer
...
MozReview-Commit-ID: 6VRhNJF3f0U
--HG--
extra : rebase_source : 01bf82ace5cfbf81fdf095cd76c5d98a2ce03245
2017-12-08 17:37:41 +01:00
Sylvestre Ledru
9bfe27d903
Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
...
MozReview-Commit-ID: 7duJk2gSd4m
--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Junior Hsu
344e2267f3
Bug 1419658 - let Basic http auth support ISO-8859-1 user/password, r=honzab
...
--HG--
extra : rebase_source : a3fdf8a70281775961277a0bcbf0645291f7b2b3
2017-12-07 01:31:00 +02:00
Bogdan Tara
8e9610529d
Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE
2017-12-07 13:02:03 +02:00
Ryan VanderMeulen
d945b2a059
Bug 1423667 - Disable some tests that fail on Windows Code Coverage builds with clang-cl r317840. rs=marco
...
--HG--
extra : histedit_source : d2f4b4d59301469c4cabb7198f0f98c5247eab84
2017-12-06 20:40:46 -05:00
Tarek Ziadé
8d44fcec74
Bug 1415536 - Extend NotifyNetworkActivity to get sent/received bytes r=baku,valentin
...
MozReview-Commit-ID: Afdvz0lktY8
--HG--
extra : rebase_source : 050a3d3322397a581a2ada507f011424e066311f
2017-11-23 09:37:54 +01:00
Gurzau Raul
f5f1c3f294
Merge inbound to mozilla-central r=merge a=merge
2017-12-06 11:53:55 +02:00
Valentin Gosu
efadeeed26
Bug 1420954 - Add NS_MutateURI helper function to chain nsIURIMutator setters in C++ r=bagder
...
MozReview-Commit-ID: 79NlOm08ebz
--HG--
extra : rebase_source : ba9b5cde71ce851762db2704b0142552ef75e9d3
2017-12-05 17:17:02 +01:00
Valentin Gosu
5a83d2bc0b
Bug 1420954 - Make nsIURIMutator setters return nsIURIMutator so we can chain setters r=bagder
...
MozReview-Commit-ID: 53BD91hB2yi
--HG--
extra : rebase_source : 3c4f5b9ad8820353ae108b982026048dbf599d95
2017-12-05 02:35:21 +01:00
Eden Chuang
e40b697e55
Bug 1350359
- Part 5: Add mochitest for exposing alternate data in http cache via fetch() InternalResponse object. r=bkelly
...
Using test_script_loader_js_cache.html as the base of the testcase.
Interpolate the service worker which performs pass-through fetch.
--HG--
extra : histedit_source : 73dcc70fdbf3a210d73d60a7a70d3bf4bbea4217
2017-12-04 14:39:33 +08:00
Francois Marier
5d8fa6f351
Bug 446344 - Implement Origin header CSRF mitigation. r=ckerschb,dragana
...
MozReview-Commit-ID: EZpGo0UfmUP
--HG--
extra : rebase_source : dce83c8314148c104e47ae322c4d578e96986ea3
extra : source : d4747fd86a331aed7b524b509f915f0c9dd6044f
2017-11-24 17:35:05 -08:00
shindli
7ba06ee564
Backed out 2 changesets (bug 1420954) for build failure in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsIURIMutator.h:340:3: r=backout on a CLOSED TREE
...
Backed out changeset 8ce0a0d49d9e (bug 1420954)
Backed out changeset 480c6e1721e9 (bug 1420954)
2017-12-03 01:10:14 +02:00
Valentin Gosu
936a9adfc0
Bug 1420954 - Add NS_MutateURI helper function to chain nsIURIMutator setters in C++ r=bagder
...
MozReview-Commit-ID: 79NlOm08ebz
--HG--
extra : rebase_source : 2cb95ec86bd9dadbbaf233e6289bcb9d3087cd65
2017-12-02 23:15:55 +01:00
Valentin Gosu
f903a38639
Bug 1420954 - Make nsIURIMutator setters return nsIURIMutator so we can chain setters r=bagder
...
MozReview-Commit-ID: 53BD91hB2yi
--HG--
extra : rebase_source : 45594a92e1a9f18f2f4b5bb2824b5f8ced584eab
2017-12-02 23:09:34 +01:00
Tom Tung
933422b41a
Bug 1222008 - P2: Fix the netwerk xpcshell test since adding an argument to startSynthesizedResponse(). r=bkelly
...
--HG--
extra : rebase_source : c7a24e4d7a11ff94beb9beeb7cc277b9cec91e39
2017-11-03 10:24:33 +08:00
Mark Banner
099e4fa549
Bug 1421458 - Add more initial configuration setup and prepare .eslintignore for enabling ESLint on more xpcshell-test directories. r=mossop
...
MozReview-Commit-ID: 4nbTuNNnAdZ
--HG--
extra : rebase_source : 7131f0ddad79d28615a5799c657972bd84a69180
2017-11-28 22:57:08 +00:00
Noemi Erli
6ec796c190
Backed out changeset e8f2d18830de (bug 1415536) for failing xpcshell netwerk/test/unit/test_network_activity.js at least on Android r=backout on a CLOSED TREE
2017-12-05 12:18:33 +02:00
Tarek Ziadé
8ecfc87eb1
Bug 1415536 - Extend NotifyNetworkActivity to get sent/received bytes r=baku,valentin
...
MozReview-Commit-ID: Afdvz0lktY8
--HG--
extra : rebase_source : 900d807ec9a9f5305c07947ced00a6f68192ed9d
2017-11-23 09:37:54 +01:00
Tooru Fujisawa
cbd4fe279b
Bug 1416253 - Remove conditional catch consumers in netwerk/. r=mak
2017-11-23 14:20:43 +09:00
Dale Harvey
9acfe3f5b3
Bug 1415870 - Update psl list and related tests. r=gerv
...
MozReview-Commit-ID: aYfQNU7lEJ
--HG--
extra : rebase_source : f39455945d48ce8023e1ea2f326a142a0b1ab248
2017-11-15 12:35:07 +00:00
Valentin Gosu
a77a5282f4
Bug 1416343 - Mark URI interfaces as [builtinclass] r=bagder
...
MozReview-Commit-ID: 4T0uCkHP1a6
--HG--
extra : rebase_source : fa720f35df16985bcd929a98aeeaf9fbc759c1e6
2017-11-15 13:34:23 +01:00
Margareta Eliza Balazs
3edf7872fb
Backed out changeset cfe4b1e6be9b (bug 1416343) for ESlint failing in modules/test/browser/browser_SitePermissions_tab_urls.js:38:14 r=backout on a CLOSED TREE
2017-11-15 13:46:07 +02:00
Valentin Gosu
ba207f8c8c
Bug 1416343 - Mark URI interfaces as [builtinclass] r=bagder
...
MozReview-Commit-ID: 4T0uCkHP1a6
--HG--
extra : rebase_source : 89c283360bc0b30aad34641b4cdce8f5c49615b3
2017-11-13 20:18:46 +01:00
Thomas Nguyen
5bd3a1a2c6
Bug 1416344 - refactor computing referrer policy and remove uninitilized maybe value r=valentin
...
MozReview-Commit-ID: 7VoRaUSE096
--HG--
extra : rebase_source : 2c0aa81b5751fe187494df75e6d853b64f5b9b47
2017-11-13 19:23:47 +08:00
Geoff Brown
cbb956e0c3
Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh
2017-11-10 07:03:36 -07:00
Andrea Marchesini
dccb5f371a
Bug 1415081 - part 1 - gTest for NS_ReadInputStreamToString, r=smaug
2017-11-09 11:18:08 +01:00
Valentin Gosu
132162d150
Bug 1415206 - Remove RustURL from Gecko r=bagder
...
This class isn't being used right now, and MozURL is a much better alternative if interaction with rust URLs is required.
MozReview-Commit-ID: ADdYRrrTnr6
--HG--
extra : rebase_source : b36aa26c20e7daaadab1f3360bab0ed4681eb7f8
2017-11-07 17:11:08 +01:00
Andrea Marchesini
cc7b359311
Bug 1413920 - nsMultiplexInputStream should call OnInputStreamReady on close, r=smaug
2017-11-06 14:20:15 +01:00
Andrea Marchesini
3c85b0dc4e
Bug 1413863 - Test for nsBufferedInputStream, r=smaug
2017-11-02 19:14:40 +01:00
Sebastian Hengst
2181970726
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-11-01 00:39:58 +01:00