Commit graph

9770 commits

Author SHA1 Message Date
Ms2ger
a29ae417cd Remove unused feature gate. 2015-04-14 19:10:58 +02:00
bors-servo
72a0fb6838 Auto merge of #5489 - larsbergstrom:brson_cleanup, r=metajack,ms2ger,jdm,manish
All of the commits by brson have been reviewed. Just the android fixups and Rustup one (which also cleans up some of the duplication due to a complete rewrite of code that had been moved in the original PR).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5489)
<!-- Reviewable:end -->
2015-04-14 10:56:01 -05:00
Brian Anderson
9d486d0ca7 Remove cfg(not(test))s from servo/main.rs
Reorganize servo directory code top-down and add comments
Remove cfg(not(test)) from servo/lib.rs
Remove redundant thread from constellation setup
2015-04-14 10:53:56 -05:00
bors-servo
43d476eb2b Auto merge of #5678 - mdamien:patch-1, r=jdm
The urllib version used a `FancyURLOpener` which use urllib. But urllib does not not handle proxies with SSL well.

For example, when adding the proxies to urllib.FancyURLOpener, I got this SSL error:

    IOError: [Errno socket error] [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

So I switched the function to urllib2.

A better solution would be to use `requests` but I prefer to stay with the "no-dependency" approach.

For example, this was my first solution with `requests`:

```python
def download(desc, src, dst):
    print("Downloading(R) %s..." % desc)
    with open(dst, 'wb') as handle:
        response = requests.get(src, stream=True)

        if not response.ok:
            print("something went wrong downloading %s, :(" % desc)
            sys.exit(1)

        size = int(response.headers['content-length'])
        block_size = 1024
        recved = 0
        for block in response.iter_content(1024):
            recved += len(block)
            pct = recved * 100.0 / size
            print("\rDownloading %s: %5.1f%%" % (desc, pct), end="")
            if not block:
                break
            handle.write(block)
    print()
```

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5678)
<!-- Reviewable:end -->
2015-04-14 10:23:15 -05:00
bors-servo
f7c3544d75 Auto merge of #5659 - aneeshusa:add-range-errors-use-for-textencoder-textdecoder, r=jdm
Fixes #5620, and adds a few extra test cases.

Currently waiting on a few upstream PRs in rust-encoding to land.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5659)
<!-- Reviewable:end -->
2015-04-14 09:44:21 -05:00
bors-servo
0941f46162 Auto merge of #5685 - Ms2ger:wpt-servo, r=jdm 2015-04-14 08:51:35 -05:00
Ms2ger
a471704107 Introduce a Servo-only tree under web-platform-tests. 2015-04-14 15:45:04 +02:00
Ms2ger
8edd4e5ec5 Add some missing colons to wpt's readme. 2015-04-14 15:45:00 +02:00
Aneesh Agrawal
97301400a5 Throw RangeErrors in TextEncoder/TextDecoder constructors.
Fixes #5620.
Fix the TODOs and FIXMEs to comply with the spec.
Add test case for passing invalid invalid labels.
Update test metadata; three test cases have been resolved upstream and
will be fixed whenever the rust-encoding dependency is sufficiently upgraded.
2015-04-14 09:41:57 -04:00
bors-servo
e2b43bd3a9 Auto merge of #5682 - Ms2ger:mention-5681, r=Manishearth 2015-04-14 06:09:13 -05:00
Ms2ger
9d26931910 Mention #5681 in a TODO comment. 2015-04-14 12:13:14 +02:00
bors-servo
2dfa28f186 Auto merge of #5674 - nox:get_unsound_ref_forever-misc, r=Ms2ger 2015-04-14 04:56:08 -05:00
Anthony Ramine
3ce368fa28 Remove unnecessary uses of get_unsound_ref_forever() 2015-04-14 11:55:35 +02:00
bors-servo
894b19526f Auto merge of #5680 - Ms2ger:urls, r=Manishearth
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
2015-04-14 03:52:08 -05:00
Ms2ger
49393a8762 Update some URLs.
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
2015-04-14 10:44:51 +02:00
Damien
1ee479707b Handle proxies in boostrap script
The urllib version used a `FancyURLOpener` which use urllib. But urllib does not not handle proxies with SSL well.
A better solution would be to use `requests` but I prefer to stay with the "no-dependency" approach.
2015-04-14 10:13:15 +02:00
bors-servo
4997d3a112 Auto merge of #5677 - frewsxcv:https, r=Ms2ger
Extracted this out of #5649

This commit was created with the following commands:

```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```

```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-14 02:57:41 -05:00
bors-servo
b7f59a3646 Auto merge of #5642 - aneeshusa:arc-box-image-to-arc-image, r=Ms2ger
Image used to be a trait, but no longer is, so boxing it is no longer
necessary. Fixes #5639.
2015-04-14 01:57:07 -05:00
bors-servo
4fac8b6810 Auto merge of #5593 - shinglyu:ismap, r=jdm
This implements issue 4873
2015-04-14 00:10:08 -05:00
Corey Farwell
5eaa922045 Update WHATWG links to use HTTPS
Extracted this out of #5649

This commit was created with the following commands:

```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```

```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```
2015-04-13 21:34:27 -07:00
Shing Lyu
7a65b95ae5 4873 - Support the image map processing for <img ismap/> inside an <a/> 2015-04-14 10:09:23 +08:00
bors-servo
55de52d76a Auto merge of #5675 - ChrisParis:treewalker-nodefilter, r=jdm 2015-04-13 18:27:46 -05:00
Chris Paris
61f4fce655 Use NodeFilterConstants from NodeFilterBinding 2015-04-13 13:05:11 -10:00
bors-servo
b9b4389628 Auto merge of #5672 - ChrisParis:nodefilter, r=jdm 2015-04-13 17:18:40 -05:00
bors-servo
92991f8070 Auto merge of #5673 - Adenilson:squashWarnings, r=SimonSapin 2015-04-13 16:47:09 -05:00
Adenilson Cavalcanti
a233cb5ef9 Using unwrap() as suggested in review. 2015-04-13 14:45:14 -07:00
Adenilson Cavalcanti
d2b7cbd4ef Squashing a few compiler warnings. 2015-04-13 14:25:42 -07:00
Aneesh Agrawal
395e8a5981 Make minor syntax simplification to address review. 2015-04-13 17:23:03 -04:00
bors-servo
f67749fc7d Auto merge of #5671 - zerokarmaleft:move_mime_classifier_tests, r=SimonSapin
Closes #5667.
2015-04-13 16:11:10 -05:00
Edward Cho
d0469dfaf3 move mime classifier unit tests into unit test crate 2015-04-13 15:40:30 -05:00
Chris Paris
98e2dc5df7 Uncomment NodeFilter constants 2015-04-13 10:13:06 -10:00
bors-servo
1f9c2f9b34 Auto merge of #3726 - ChrisParis:callback-constants, r=jdm
This addresses https://github.com/servo/servo/issues/3149. The immediate purpose is to support the constants in NodeFilter. The changes mostly follow the current Gecko Codegen.py. The main gist is that the generation of certain code artifacts is now gated by hasInterfaceObject() or hasInterfacePrototypeObject(), rather than by isCallback().
2015-04-13 14:34:39 -05:00
bors-servo
74c847a17f Auto merge of #5636 - JIoJIaJIu:timeline, r=jdm
Available markers only:

Reflow
DOMEvent
Also need to implement:

Style marker
Paint marker
Javascript marker
frames reply, depends on getting javascript stack
I decided to make pull request before implemented another markers for getting feedback.
mb it would be better to create separated tasks.

Notices:
Marker doesn't fill stack and stackEnd
MemoryActor sends fake data because there is no memory profiler per tab
FramerateActor sends empty Vec, need implement http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#5240
2015-04-13 12:44:49 -05:00
bors-servo
c42c2ae9b5 Auto merge of #5661 - Ms2ger:cef, r=jdm 2015-04-13 09:17:44 -05:00
Guro Bokum
97714ec5ed Firefox timeline integration #4957 2015-04-13 21:08:07 +07:00
bors-servo
d16b102416 Auto merge of #5662 - Ms2ger:cef-core, r=larsbergstrom
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5662)
<!-- Reviewable:end -->
2015-04-13 08:45:22 -05:00
Ms2ger
066cf8e706 Remove some as_slice calls in cef. 2015-04-13 14:58:49 +02:00
Ms2ger
de94e39ff7 Stop using int/uint in CEF. 2015-04-13 14:11:17 +02:00
bors-servo
1e45d025b3 Auto merge of #5645 - nox:treeiterator-temporary, r=Ms2ger 2015-04-13 04:52:32 -05:00
Anthony Ramine
e20d997b37 Use a simple Temporary value in TreeIterator 2015-04-13 11:01:02 +02:00
Anthony Ramine
c026825e69 Pass a RootedVec to NodeList::new_simple_list() 2015-04-13 11:00:04 +02:00
bors-servo
9d027bab0a Auto merge of #5657 - josiahdaniels:issue5654, r=jdm
Also: Rename window_for_script_dealloation to window_for_script_deallocation

#5654
2015-04-13 00:03:00 -05:00
josiahdaniels
5e90299450 Use Page::window_for_script_deallocation in ScriptMemoryFailsafe
Also: Rename window_for_script_dealloation to window_for_script_deallocation
2015-04-12 17:38:38 -04:00
Simon Sapin
8ff83e2e59 Merge pull request #5656 from Jayflux/master
Updating documentation for virtualbox users
2015-04-12 21:31:02 +02:00
Jason Williams
7f2fd26f5a Update README.md
adding link for issue ticket
2015-04-12 20:29:25 +01:00
Jason Williams
d117d07f6c Update README.md
Adding virtualbox note to switch off 3D acceleration
2015-04-12 20:26:44 +01:00
bors-servo
d2522ea8bf Auto merge of #5647 - Ms2ger:remove_inline_style_property, r=Manishearth
It makes little sense to use map() in a case where we don't care about the
return value.
2015-04-12 13:45:28 -05:00
bors-servo
b019df8927 Auto merge of #5633 - jdm:codegencleanup, r=Ms2ger
r? @Ms2ger
2015-04-12 03:37:05 -05:00
bors-servo
21e68a3b78 Auto merge of #5651 - josiahdaniels:issue5580, r=Ms2ger
Reenable this test now that we support iframe load events.

#5580
2015-04-12 03:05:24 -05:00
josiahdaniels
c54c7ccd7f Enable getElementsByClassName-31.htm test 2015-04-12 00:47:09 -04:00