Daniel
d4f63cda5f
write cookie_jar, hsts_list, auth_cache, and local_data to file if profile_dir option is present
2016-04-20 18:12:00 -04:00
Josh Matthews
d888ed368d
Make new test use local resources only.
2016-04-20 12:38:38 -04:00
Ravi Shankar
945a2c66e1
Updated the unit tests to include NetworkError
2016-04-20 12:38:36 -04:00
Corey Farwell
7500307e80
Avoid unnecessary net_traits::LoadData
clone.
2016-04-18 22:53:28 -04:00
bors-servo
80662f1e4e
Auto merge of #10672 - frewsxcv:net-network, r=KiChjang
...
Improvements to network preferences, HTTP redirection limiting.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10672 )
<!-- Reviewable:end -->
2016-04-19 04:06:25 +05:30
Yoav Alon
36eb25161d
added test for https://github.com/servo/servo/issues/10548
2016-04-18 03:34:25 +03:00
Corey Farwell
da0adeb0ac
Verify number of redirects when we reach limit.
2016-04-17 20:14:08 -04:00
Corey Farwell
07209c75db
Rename net.mime.sniff
pref to network.mime.sniff
.
...
Gecko uses the `network` prefix for network related items. Might be good
to mirror that here.
2016-04-17 16:15:24 -04:00
bors-servo
317629d86e
Auto merge of #10666 - frewsxcv:hsts-cleanup, r=SimonSapin
...
Refactor, cleanup HSTS related code.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10666 )
<!-- Reviewable:end -->
2016-04-17 23:50:13 +05:30
Corey Farwell
08fc002f41
Rename 'HSTS*' structures to 'Hsts*'.
...
"In CamelCase, acronyms count as one word: use Uuid rather than UUID."
-- https://doc.rust-lang.org/style/style/naming/README.html
2016-04-17 14:12:28 -04:00
Corey Farwell
faa3d8724b
Refactor Servo HSTS file loading, hard-fail if can't load.
...
Use constructor pattern instead of separate utility function.
Instead of allowing the Servo HSTS file loading to silently fail, we
should expect that file to always exist and be formatted correctly.
2016-04-17 14:12:07 -04:00
Corey Farwell
d3b8b6472b
Move UTF8 bytes handling into generic constructor.
...
Separate from Servo specific logic.
2016-04-17 12:39:50 -04:00
Corey Farwell
52b3226d54
Rename constructor to match convention, add doc comment.
2016-04-17 12:38:29 -04:00
bors-servo
b00c2740e3
Auto merge of #10612 - autrilla:textdir, r=emilio
...
Implement HTMLTextArea.setSelectionRange (continuation of #10007 )
Tests on `tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html` all pass and the other tests don't panic due to double borrows anymore.
cc: @KiChjang
Fixes #9994 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10612 )
<!-- Reviewable:end -->
2016-04-17 21:58:31 +05:30
Alberto Corona
5e863f2eb8
Implement HTMLTextArea.setSelectionRange
2016-04-17 17:27:26 +02:00
Josh Matthews
43369fa897
Rename create_with_headers to create.
2016-04-15 01:46:04 -04:00
Josh Matthews
a761f2bed4
Remove unused header manipulation facilities.
2016-04-15 01:46:03 -04:00
Josh Matthews
4cb7dfbc59
Convert remaining factories that don't make use of headers.
2016-04-15 01:46:02 -04:00
Josh Matthews
d1b07673b8
Convert AssertMustNotIncludeHeadersRequestFactory.
2016-04-15 01:46:01 -04:00
Josh Matthews
f712ddb0db
Convert AssertAuthHeaderRequestFactory.
2016-04-15 01:46:00 -04:00
Josh Matthews
36de07bfdf
Convert AssertMustIncludeHeadersRequestFactory.
2016-04-15 01:45:58 -04:00
Josh Matthews
dec66b2215
Convert AssertMustHaveHeadersRequestFactory.
2016-04-15 01:45:57 -04:00
Josh Matthews
dc790048ec
Remove unnecessary type annotations.
2016-04-15 01:00:44 -04:00
Daniel
b0e1f10ba5
401 authorization UI then restart request/save successful auth creds
2016-04-14 21:38:45 -04:00
Simon Sapin
6889f37d9e
Remove the url! plugin.
...
In rust-url 1.0 the `Url` struct is going to have private fields, and there
is no way to to create an aribitrary one without going through the parser.
The plugin never had a clear demonstrated performance benefit,
it was made mostly because it was possible and relatively easy at the time.
2016-04-14 15:35:28 +02:00
bors-servo
d21ff2fa13
Auto merge of #10189 - KiChjang:cors-preflight-fetch, r=jdm
...
Implement CORS preflight fetch
Fixes #10145 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10189 )
<!-- Reviewable:end -->
2016-04-13 21:28:25 +05:30
Keith Yeung
e42481d0e7
Implement CORS preflight fetch
2016-04-13 11:28:14 -04:00
Josh Matthews
a8233a135e
Implement origin concept.
2016-04-13 10:37:55 +02:00
Arnaud Marant
9b8f183cba
Issue #10491 add HTMLInputElement attributes that reflect content identically
...
it uses a new version of string-cache https://github.com/servo/string-cache/pull/148
2016-04-12 00:15:57 +02:00
bors-servo
a29da7b48e
Auto merge of #10365 - emilio:warnings, r=Wafflespeanut
...
servo: Clean up unused variables and imports
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10365 )
<!-- Reviewable:end -->
2016-04-04 23:39:31 +05:30
bors-servo
c0bfcc5155
Auto merge of #10350 - mbrubeck:selection-chars, r=SimonSapin
...
Fix some char/byte bugs in textinput
Fixes #9569 . r? @SimonSapin or @Ms2ger
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10350 )
<!-- Reviewable:end -->
2016-04-02 20:53:26 +05:30
Matt Brubeck
deca979967
TextInput::max_length should be in code units, not bytes
2016-04-02 07:33:53 -07:00
Emilio Cobos Álvarez
a57aa561c1
servo: Clean up unused variables and imports
2016-04-02 16:30:18 +02:00
Matthew Bentley
d06def01ff
Add testing for prefs
...
Also, spelling fix in opts.rs
Fix order of imports to satisfy the lint
Fix split line in test
Fix multi-line string
2016-04-01 21:39:56 -04:00
Matt Brubeck
29fb3f1150
Find the correct column index in adjust_vertical
2016-04-01 14:00:50 -07:00
Matt Brubeck
d7e6f8b0f1
Use correct byte indices in replace_selection
2016-04-01 13:54:02 -07:00
bors-servo
9f892edd87
Auto merge of #10272 - creativcoder:implement-data-url-fetch, r=jdm
...
implements data-url fetching
Fixes #10165
jdm mentioned of decoupling the, payload loading mechanism to data_loader.rs. So accordingly a `decoder` method has been added to data_loader.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10272 )
<!-- Reviewable:end -->
2016-04-01 15:12:30 +05:30
Rahul Sharma
3e74164e5f
implements data-url fetching
2016-04-01 09:49:08 +05:30
bors-servo
723989b9dd
Auto merge of #10252 - emilio:selection, r=mbrubeck
...
Implement ::selection pseudo-element
It only supports `color` and `background`, for now, but it shouldn't be hard to add more properties (like text-shadow).
r? @mbrubeck
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10252 )
<!-- Reviewable:end -->
2016-03-31 00:47:07 +05:30
bors-servo
e148571812
Auto merge of #10238 - jdm:winunit, r=larsbergstrom
...
Run unit tests on appveyor
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10238 )
<!-- Reviewable:end -->
2016-03-30 19:58:30 +05:30
Emilio Cobos Álvarez
46829bd53c
tests: Fix warning in unit tests
2016-03-30 14:28:13 +02:00
Emilio Cobos Álvarez
92f39ea5cf
Implement ::selection pseudo-element
2016-03-30 14:28:11 +02:00
bors-servo
0ec96ac02a
Auto merge of #10277 - perlun:rename-tcomputedvalues-to-computedvalues, r=SimonSapin
...
Renamed TComputedValues to ComputedValues
This is a followup to #10210 , and a continuation of #10185 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10277 )
<!-- Reviewable:end -->
2016-03-30 11:04:57 +05:30
bors-servo
44b2ba2547
Auto merge of #10255 - mbrubeck:box-unscanned, r=pcwalton
...
Reduce size of layout::fragment::Fragment struct
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
r? @pcwalton
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10255 )
<!-- Reviewable:end -->
2016-03-30 07:49:25 +05:30
Per Lundberg
4cb4cc93e4
Renamed TComputedValues to ComputedValues
...
This is a followup to #10210 , and a continuation of #10185 .
2016-03-29 23:30:13 +03:00
Matt Brubeck
33b9aa49db
Update path in script_tests::size_of error messages
2016-03-29 08:41:12 -07:00
Matt Brubeck
31261f045e
Put UnscannedTextFragmentInfo in a Box
...
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
2016-03-29 08:40:05 -07:00
Matt Brubeck
14e945f09a
Add a unit test for Fragment size
2016-03-29 08:37:58 -07:00
Josh Matthews
97f25456ef
Fix HTTP unit test warnings.
2016-03-28 23:16:12 -04:00
Josh Matthews
04df5decee
Avoid testing impossible file paths on Windows.
2016-03-28 23:16:10 -04:00