Commit graph

17300 commits

Author SHA1 Message Date
Keith Yeung
c76d0006ee Re-add TODO comment for adding referer info to LoadData 2016-05-02 21:07:54 -04:00
bors-servo
a8e82440ff Auto merge of #10973 - mbrubeck:always-be-updating, r=jdm
Update x11, clipboard-win, and libz-sys

<!-- 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/10973)
<!-- Reviewable:end -->
2016-05-02 13:46:30 -07:00
bors-servo
8255e74a61 Auto merge of #10081 - jdm:interfacepref, r=nox
Support controlling interface and member visibility via preferences

This was easier to throw together than per-attribute/method support, and it gets rid of some nonstandard properties from our globals.

Fixes #7626.

r? @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/10081)
<!-- Reviewable:end -->
2016-05-02 11:35:38 -07:00
Josh Matthews
2a9bf70f03 Move FocusEvent into the right list of exposed interfaces. 2016-05-02 14:32:59 -04:00
Josh Matthews
a03fc5e2fd Hide nonstandard interface members of standard interfaces behind appropriate prefs. 2016-05-02 14:32:58 -04:00
Josh Matthews
cb5bad63dc Implement hiding of interface members via Pref annotations. 2016-05-02 14:32:56 -04:00
Josh Matthews
88059acd7e Start generating arrays of specs for easier implementation of preference checks. 2016-05-02 14:32:55 -04:00
Josh Matthews
693d31d4ed Ensure bluetooth and testbinding are disabled by default. 2016-05-02 14:32:54 -04:00
Josh Matthews
f4c1529f56 Forbid unconditionally-exposed interfaces that inherit from conditionally-exposed ones. 2016-05-02 14:32:53 -04:00
Josh Matthews
91a78ed109 Disable nonstandard interfaces via prefs. 2016-05-02 14:32:52 -04:00
Matt Brubeck
aabb37b01d Update x11, clipboard-win, and libz-sys 2016-05-02 09:20:41 -07:00
bors-servo
a54dedac1f Auto merge of #10946 - bd339:iss10940, r=nox
Disable scripting for documents created without a browsing context

Goes towards closing #10940.

<!-- 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/10946)
<!-- Reviewable:end -->
2016-05-02 08:48:02 -07:00
bors-servo
e7caaa77b4 Auto merge of #10970 - servo:loaddata, r=KiChjang
Simplify load_data handling in handle_script_loaded_url_in_iframe_msg.

<!-- 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/10970)
<!-- Reviewable:end -->
2016-05-02 07:38:15 -07:00
Ms2ger
db6543e502 Simplify load_data handling in handle_script_loaded_url_in_iframe_msg. 2016-05-02 16:36:57 +02:00
bors-servo
d32648172c Auto merge of #10969 - servo:iframe, r=KiChjang
Iframe improvements.

<!-- 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/10969)
<!-- Reviewable:end -->
2016-05-02 05:32:25 -07:00
Ms2ger
eba74554f3 Add and update some FIXME comments about origin handling with iframes. 2016-05-02 12:34:08 +02:00
Ms2ger
68076fbd7b Return a Url from HTMLIFrameElement::get_url.
Since Url::origin() always returns an opaque origin for about: urls, I don't
believe this changes behaviour.
2016-05-02 12:32:44 +02:00
bors-servo
5358df5a16 Auto merge of #10958 - izgzhen:fixes, r=nox
Minor fixes to documentation

1. Looks like getters and setters are specified here already. 0385f60310/components/script/dom/bindings/mod.rs (L62)
2. The `MutNullableJS` and `Unrooted` looks obsolete

<!-- 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/10958)
<!-- Reviewable:end -->
2016-05-02 00:59:37 -07:00
bors-servo
14926529c9 Auto merge of #10873 - izgzhen:blob, r=Manishearth
Fixes related to File API

Fixing problems I met when trying to resolve https://github.com/servo/servo/issues/10851, but most of changes here are simple fixes.

<!-- 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/10873)
<!-- Reviewable:end -->
2016-05-01 22:13:20 -07:00
Zhen Zhang
e0f3cdafe1 Fixes related to file input and File API 2016-05-02 12:52:28 +08:00
Zhen Zhang
0385f60310 fix docs 2016-05-02 11:17:35 +08:00
bors-servo
ca05f03ea3 Auto merge of #10938 - bholley:margin_padding_fontsize_hasclass, r=emilio
Geckolib: Implement Margin, Padding, font-size, and has_class

<!-- 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/10938)
<!-- Reviewable:end -->
2016-05-01 19:48:53 -07:00
Bobby Holley
0982e6f237 Implement Margin and Padding.
Note: We still need to handle the cached value stuff. I'll do that shortly.
2016-05-01 19:47:59 -07:00
Bobby Holley
9aab775e7c Implement font-size more correctly.
This still doesn't take zooming into account.
2016-05-01 19:47:58 -07:00
Bobby Holley
eb0cd93d7d Implement has_class. 2016-05-01 19:47:57 -07:00
Bobby Holley
f468166dc3 Regenerate bindings to derive more traits for enums. 2016-05-01 19:47:55 -07:00
bors-servo
e65009f317 Auto merge of #10809 - perlun:sendoushi-master, r=jdm
Fixed line-height for input and textarea + use correct font

Fixes #10532.

Replaces #10553 since @Sendoushi had problems getting a proper rebase locally, so helping him out to get this merged.

(Credits to Sendoushi who did the actual changes; I'm just helping out to getting things into a mergeable state.)

<!-- 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/10809)
<!-- Reviewable:end -->
2016-05-01 16:22:17 -07:00
Per Lundberg
220722e321 Fixed test failures. 2016-05-01 22:37:40 +03:00
bors-servo
288db30cbe Auto merge of #10948 - aneeshusa:clean-up-ci-bash-scripts, r=emilio
Clean up CI bash scripts

Also reverts #9572.

<!-- 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/10948)
<!-- Reviewable:end -->
2016-05-01 08:46:16 -07:00
bd339
2ecd57cfa3 test that JS on a document without a browsing context isn't executed. 2016-05-01 14:08:00 +02:00
bd339
0c92e19e84 make scripting_enabled depend on a browsing context 2016-05-01 14:06:02 +02:00
bors-servo
fc1e4c8085 Auto merge of #10913 - mbrubeck:xi-unicode, r=pcwalton
Use xi-unicode for line breaking

This uses the xi-unicode crate by @raphlinus to detect line-break opportunities, replacing Servo's custom code that only detects ASCII whitespace.  xi-unicode is licensed under the Apache-2.0 license.

See mbrubeck/servo#2 for some discussion on an earlier draft of this code.  This PR implements the "search backward to find trailing whitespace" solution discussed there.

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/10913)
<!-- Reviewable:end -->
2016-04-30 21:20:38 -07:00
Aneesh Agrawal
cca3f7a105 Remove etc/ci/retry.sh
It was added with the intention of being used on the CI,
but it was never added to the CI. We have better ways of finding
test failures and intermittents these days.
2016-04-30 23:51:39 -04:00
Aneesh Agrawal
1e0d039511 Clean up CI bash scripts, add docs/STYLE_GUIDE.md 2016-04-30 23:51:29 -04:00
Matt Brubeck
894f6395e6 Use xi-unicode for line breaking 2016-04-30 20:37:22 -07:00
bors-servo
77cb2ca89a Auto merge of #10712 - KiChjang:multipart-form-data, r=jdm
Support form submission of multipart/form-data

Fixes #7553.

<!-- 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/10712)
<!-- Reviewable:end -->
2016-04-30 18:43:30 -07:00
Keith Yeung
3110647852 Make IFrameLoadInfo take an Option<LoadData> instead of Option<Url> 2016-04-30 21:43:01 -04:00
Keith Yeung
e1091128cd Add tests for submit entity body 2016-04-30 21:42:59 -04:00
Keith Yeung
16361086d9 Add planned navigation to submit as entity body (fixes #9829) 2016-04-30 21:42:57 -04:00
Prabhjyot Singh Sodhi
cfde40e225 Support form submission of multipart/form-data 2016-04-30 21:42:50 -04:00
bors-servo
a868bb2a90 Auto merge of #10936 - pcwalton:wr-scroll-event-handling, r=glennw
compositor: When WebRender is in use, only composite on new WebRender frames.

Scheduling composition on scroll and so forth is unnecessary and can
cause us to miss frames if the code happens to start the composition
while the WebRender backend is still in the process of preparing the
frame. This is most easily seen when scrolling in full-screen mode in
release builds on Mac.

Closes #9879.

r? @glennw
cc @paulrouget
cc @tschneidereit

<!-- 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/10936)
<!-- Reviewable:end -->
2016-04-30 17:14:05 -07:00
bors-servo
8db0367301 Auto merge of #10944 - mbrubeck:bitflags-0.6, r=frewsxcv
Upgrade a bunch of dependencies

<!-- 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/10944)
<!-- Reviewable:end -->
2016-04-30 15:21:22 -07:00
Matt Brubeck
8d540d1f9e Upgrade bincode, pkg-config, regex, cmake, fnv 2016-04-30 15:19:38 -07:00
Matt Brubeck
1e23d90631 Upgrade to bitflags 0.6.0 and selectors 0.5.6
Types generated by `bitflags!` are now private by default.  This PR marks them
`pub` where necessary.
2016-04-30 10:14:03 -07:00
bors-servo
b5a23a16be Auto merge of #10941 - samlh:patch-2, r=mbrubeck
Remove dead code left over from #10085

cc @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/10941)
<!-- Reviewable:end -->
2016-04-30 09:44:25 -07:00
bors-servo
d3f55fbf60 Auto merge of #10917 - askeing:fix_10909, r=aneeshusa
The manifest_changed.sh doesn't need binary to update the manifests

fix #10909

<!-- 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/10917)
<!-- Reviewable:end -->
2016-04-30 08:37:27 -07:00
bors-servo
d9dc6dd03c Auto merge of #10931 - asajeffrey:send-panic-backtrace-to-mozbrowser, r=jdm
Send the panic reason and backtrace in mozbrowsererror.

Closes #10334.  Glues together PRs #10837 and #10824.

<!-- 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/10931)
<!-- Reviewable:end -->
2016-04-30 07:30:38 -07:00
bors-servo
ca291927ed Auto merge of #10929 - mbrubeck:version-inflation, r=frewsxcv
Update libc, log, and image dependencies

<!-- 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/10929)
<!-- Reviewable:end -->
2016-04-30 06:23:20 -07:00
bors-servo
0f1a921ba6 Auto merge of #10928 - servo:warnings, r=mbrubeck
Fix some warnings

<!-- 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/10928)
<!-- Reviewable:end -->
2016-04-30 05:16:46 -07:00
bors-servo
491b5ff47e Auto merge of #10923 - askeing:fix_10922, r=jdm
Remove dir by shutil.rmtree, remove file by os.remove

fix #10922

<!-- 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/10923)
<!-- Reviewable:end -->
2016-04-30 03:42:18 -07:00