Commit graph

14291 commits

Author SHA1 Message Date
Benjamin Herr
066867eb86 wpt for javascript urls with queries and fragments
Expected to FAIL right now because contentDocument in iframes with
src="javascript:..." wrongly returns null. Passes in Firefox though!
2015-11-06 18:15:28 +01:00
Benjamin Herr
4120283e10 Append query string + fragment to javascript: url.
When loading a URL whose scheme is javascript, we should do what
https://html.spec.whatwg.org/multipage/#javascript-protocol
says and append the URL's query and fragment components to the scheme
data, as well as percent- and utf-8-decode the whole thing, before
evaluating it as javascript.
2015-11-06 18:15:27 +01:00
Ms2ger
692a0d3558 Add a note about commit size. 2015-11-06 17:45:26 +01:00
Michael Howell
71c5d1764a Prepend, rather than append, SVG title elements.
Fixes #8164
2015-11-06 09:34:42 -07:00
Josh Matthews
989e80036e Implement cancellable runnables.
Additionally, make image load events cancellable. Resolves #7731.
2015-11-06 10:41:38 -05:00
Mohammed Attia
757d7ae638 Typo fix 2015-11-06 15:52:58 +02:00
David Zbarsky
dfc90db1d7 Cleanup some unneeded let bindings 2015-11-06 00:22:31 -08:00
bors-servo
9fea6d2e46 Auto merge of #8182 - jitendra29:overrideMimeType, r=eefriedman
M1504: Implement support for missing XMLHttpRequest APIs

We have completed the initial steps for "Implement support for missing XMLHttpRequest APIs"

* Implemented overrideMimeType according to XHR specifications
* Updated the test expectations

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8182)
<!-- Reviewable:end -->
2015-11-06 09:01:33 +05:30
Jitendra Jain
ed809a60bf Implement the overrideMimeType method for XMLHttpRequest 2015-11-05 22:19:24 -05:00
bors-servo
ebfcbe967b Auto merge of #8369 - skeuomorf:typo-fix, r=frewsxcv
Fixed typo in HACKING_QUICKSTART.md

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8369)
<!-- Reviewable:end -->
2015-11-06 08:09:17 +05:30
Mohammed Attia
f51835520b Fixed typo in HACKING_QUICKSTART.md 2015-11-06 04:32:02 +02:00
bors-servo
4067960ba5 Auto merge of #8326 - jdm:iframehover, r=glennw
Send mouse move events to the the previous layer when directing event…

…s to a new one for the first time. Resolves #7865.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8326)
<!-- Reviewable:end -->
2015-11-06 06:24:59 +05:30
bors-servo
da25b8c848 Auto merge of #8337 - mrobinson:remove-display-list-result, r=pcwalton
Remove DisplayListBuildingResult

Always produce a DisplayList when processing nodes for display list
construction. StackingContexts are now added to the positioned content
section of DisplayLists. This makes the code a bit simpler and opens up
the possibility of producing a StackingContext in another section of
the DisplayList. This doesn't change behavior, but is a cleanup
prerequisite for proper inline stacking context support.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8337)
<!-- Reviewable:end -->
2015-11-06 05:36:35 +05:30
bors-servo
fb3ba97f05 Auto merge of #8367 - jdm:investigation2, r=metajack
Force constellation logging when running particularly frustrating tes…

…ts on the build machines. Continuation of investigation for #7787.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8367)
<!-- Reviewable:end -->
2015-11-06 02:52:33 +05:30
Josh Matthews
b91e3b88bd Force constellation logging when running particularly frustrating tests on the build machines. Continuation of investigation for #7787. 2015-11-05 15:52:43 -05:00
bors-servo
60d40ed06a Auto merge of #8361 - Manishearth:lockfile_changed, r=frewsxcv
Add script to check if lockfile was changed

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8361)
<!-- Reviewable:end -->
2015-11-06 02:18:39 +05:30
Lars Bergstrom
5c5acc0249 Add CCACHE infra and turn it on in travis 2015-11-05 14:47:23 -06:00
bors-servo
afc41ec4ac Auto merge of #8364 - ben0x539:mach-nochmal, r=metajack
mach_bootstrap: Don't get confused by interrupts

When mach_bootstrap got interrupted while it's setting up virtualenv or
calling out to pip, it wouldn't repeat that step on subsequent runs, and
mach fails because its environment isn't set up properly or dependencies
are missing.

So now we re-run virtualenv if activate_this.py doesn't exist, and only
create the marker file for required packages after pip has returned
successfully.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8364)
<!-- Reviewable:end -->
2015-11-06 01:48:19 +05:30
Benjamin Herr
a4fa004c39 mach_bootstrap: Don't get confused by interrupts
When mach_bootstrap got interrupted while it's setting up virtualenv or
calling out to pip, it wouldn't repeat that step on subsequent runs, and
mach fails because its environment isn't set up properly or dependencies
are missing.

So now we re-run virtualenv if activate_this.py doesn't exist, and only
create the marker file for required packages after pip has returned
successfully.
2015-11-05 21:04:53 +01:00
Manish Goregaokar
e2a7b0b869 Make travis warn on changed lockfiles 2015-11-06 00:45:01 +05:30
Manish Goregaokar
9b02531d12 Add script to check if lockfile was changed 2015-11-06 00:42:33 +05:30
bors-servo
65a0bb4aef Auto merge of #8357 - mbrubeck:glutinup, r=metajack
Upgrade to latest glutin

Includes servo/glutin#52 and servo/glutin#53.

r? @glennw cc @vvuk

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8357)
<!-- Reviewable:end -->
2015-11-05 23:59:04 +05:30
bors-servo
45f07ec320 Auto merge of #8216 - akumar21NCSU:master, r=jdm
M1502: Improve HTTP monitoring devtool support

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8216)
<!-- Reviewable:end -->
2015-11-05 23:01:48 +05:30
Matt Brubeck
ce61dc2623 Upgrade to latest glutin 2015-11-05 09:05:17 -08:00
bors-servo
bc9970dd6a Auto merge of #8354 - Ms2ger:test-ref, r=frewsxcv
Use wptrunner for some old-style reftests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8354)
<!-- Reviewable:end -->
2015-11-05 22:31:40 +05:30
Ms2ger
e4034597a2 Move img_simple.html to wpt reftests. 2015-11-05 16:49:02 +01:00
Ms2ger
31476b77b6 Move img_block_maxwidth_a.html and img_block_maxwidth_b.html to wpt reftests. 2015-11-05 16:34:37 +01:00
Ms2ger
28f5d54334 Remove the unused PipelineExitType enum. 2015-11-05 16:32:48 +01:00
Ms2ger
7d3f7220f7 Remove the unused PipelineExitType field from LayoutControlMsg::ExitNow. 2015-11-05 16:32:47 +01:00
Ms2ger
f37b8e9f4d Remove the unused PipelineExitType field from ChromeToPaintMsg::Exit. 2015-11-05 16:32:46 +01:00
Ms2ger
ffffc5f065 Remove the unused PipelineExitType argument from Pipeline::exit. 2015-11-05 16:32:45 +01:00
Ms2ger
85a762a31a Remove the unused PipelineExitType field from ConstellationControlMsg::ExitPipeline. 2015-11-05 16:32:44 +01:00
Ms2ger
ef20972023 Remove the unused PipelineExitType arguments from ScriptTask::handle_exit_pipeline_msg and shut_down_layout. 2015-11-05 16:32:40 +01:00
Ms2ger
ad33d920e7 Remove the unused PipelineExitType field from layout_interface::Msg::ExitNow. 2015-11-05 16:17:51 +01:00
Ms2ger
41a9502688 Move image_rendering_auto_a.html and image_rendering_pixelated_a.html to wpt reftests. 2015-11-05 16:17:27 +01:00
bors-servo
7efdcbe0af Auto merge of #8353 - ben0x539:linux-ua, r=larsbergstrom
Make desktop UA string depend on build target.

This implements #7158 by conditionally choosing a UA string by
`#[cfg()]`-checking for `target_os = linux` and whether `target_arch` is
`x86_64` or not. Matching the behavior of Firefox, either "X11; Linux
x86_64" or "X11; Linux i686" is included.

`target_os = windows` is also checked; again as in Firefox "Windows NT
6.1; Win64; x64" or just "Windows NT 6.1" is included. The UA string
pretends to be non-WoW64 Windows 7, since there's only so much we can
detect at build time.

The existing desktop UA string that lists OS X is chosen if `target_os`
is neither `linux` nor `windows`.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8353)
<!-- Reviewable:end -->
2015-11-05 20:44:07 +05:30
Ms2ger
5cd250602f Remove the unused PipelineExitType argument to LayoutTask::exit_now. 2015-11-05 16:09:39 +01:00
Ms2ger
0cf602f7d8 Move font_size.html to wpt reftests. 2015-11-05 16:01:23 +01:00
Ms2ger
995d022bb9 Remove the unused PipelineExitType from LayoutToPaintMsg::Exit. 2015-11-05 16:00:06 +01:00
Ms2ger
5b35ee09d3 Move floated_negative_margins_a.html to wpt reftests. 2015-11-05 15:52:11 +01:00
Ms2ger
a01fd7732d Remove the unused Option around the IpcSender from LayoutToPaintMsg::Exit. 2015-11-05 15:48:39 +01:00
Ms2ger
eb44bdb33a Remove the unused IpcSender from ChromeToPaintMsg::Exit. 2015-11-05 15:48:17 +01:00
Ms2ger
61983323ae Reorder LayoutTask::exit_now for clarity. 2015-11-05 15:47:43 +01:00
Ms2ger
c8f0613113 Move flex_row_direction.html to wpt reftests. 2015-11-05 15:30:10 +01:00
Benjamin Herr
b84087c2f4 Make desktop UA string depend on build target.
This implements #7158 by conditionally choosing a UA string by
`#[cfg()]`-checking for `target_os = linux` and whether `target_arch` is
`x86_64` or not. Matching the behavior of Firefox, either "X11; Linux
x86_64" or "X11; Linux i686" is included.

`target_os = windows` is also checked; again as in Firefox "Windows NT
6.1; Win64; x64" or just "Windows NT 6.1" is included. The UA string
pretends to be non-WoW64 Windows 7, since there's only so much we can
detect at build time.

The existing desktop UA string that lists OS X is chosen if `target_os`
is neither `linux` nor `windows`.
2015-11-05 15:28:13 +01:00
bors-servo
e2385c8c0e Auto merge of #8327 - Ms2ger:unused-arg, r=frewsxcv
Remove unused argument from TableLikeFlow::assign_block_size_for_table_like_flow.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8327)
<!-- Reviewable:end -->
2015-11-05 18:56:26 +05:30
Ms2ger
9623ed54d0 Move flex_column_direction.html to wpt reftests. 2015-11-05 13:35:01 +01:00
Ms2ger
4add7d23f8 Move fixed_width_overrides_child_intrinsic_width_a.html to wpt reftests. 2015-11-05 13:24:31 +01:00
bors-servo
e3484315dd Auto merge of #8346 - Ms2ger:send_impl, r=nox
Cleanup WebSocket::Send_Impl.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8346)
<!-- Reviewable:end -->
2015-11-05 17:21:09 +05:30
Ms2ger
0a158967e0 Cleanup WebSocket::Send_Impl. 2015-11-05 12:23:18 +01:00