Patrick Walton
7bd257089c
script: Make iframes know their pipeline IDs at all times, even after
...
navigation.
Since WebRender uses the pipeline ID stored in the iframe element to
determine which pipeline to display, it had better be kept up to date!
Closes #9919 .
2016-04-28 10:53:13 -07:00
bors-servo
959dbac0e7
Auto merge of #10862 - asajeffrey:only-the-chrome-survives, r=SimonSapin
...
Don't kill the root pipeline when randomly killing pipelines.
Useful for stress-testing the browser chrome, e.g. testing #10334 .
<!-- 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/10862 )
<!-- Reviewable:end -->
2016-04-26 18:40:21 -07:00
Alan Jeffrey
2a52351de0
Don't kill the root pipeline when randomly killing pipelines.
2016-04-26 14:32:11 -05:00
Alan Jeffrey
9153333f62
Communicate a backtrace to the constellation when panicking.
2016-04-26 11:31:36 -05:00
Rebecca
526525b835
Add referrer policy pass-through and referrer header logic
...
add pass-through from doc to http-loader for referrer_policy, ref_URL
add logic for setting referer header
add script pass-through for referrer
add unit tests for setting referer header
2016-04-25 16:41:06 -04:00
Simon Sapin
7932ab6ac2
Upgrade to rust-url 1.0 and hyper 0.9
2016-04-23 20:27:58 +02:00
Michael Howell
7940b22158
compositing/script: Do not dispatch the resize event when initially loading.
...
No bug report corresponds to this, but I noticed it while trying to
reduce #10593
2016-04-22 13:36:43 -07:00
Alan Jeffrey
cfb066ef20
Added a dedicated panic channel.
2016-04-19 09:08:44 -05:00
Alan Jeffrey
59824ccb92
Trigger mozbrowsererror event when a pipeline fails.
2016-04-18 16:03:48 -05:00
bors-servo
6c5cfb738a
Auto merge of #10345 - asajeffrey:make-nox-happy, r=nox
...
Replace side-effecting unwrap_or_else by if let in constellation.
This addresses @nox's comments in #10295 .
<!-- 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/10345 )
<!-- Reviewable:end -->
2016-04-15 17:35:45 +05:30
Alan Jeffrey
0cca4a9d53
Replace side-effecting unwrap_or_else by if let in constellation.
...
This addresses nox's comments in #10295 .
2016-04-14 10:58:22 -05:00
Josh Matthews
cacbf95de8
Replace instances of infallible unwrap with expect.
2016-04-14 11:30:30 -04:00
bors-servo
2b910678db
Auto merge of #10587 - asajeffrey:add-failure-panic-message, r=Manishearth
...
Added panic message to failures.
Added the panic message to failures. This is a step towards #10334 , since it gives us access to the panic error message when we fire a `mozbrowsererror` event. The remaining steps are also to record the backtrace, and to report the failure in the event.
<!-- 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/10587 )
<!-- Reviewable:end -->
2016-04-14 19:55:17 +05:30
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
Alan Jeffrey
8c0fa01884
Added panic message to failures.
2016-04-13 16:09:48 -05:00
bors-servo
628c54948a
Auto merge of #10489 - timvandermeij:constellation-debug-warn, r=jdm
...
Replace use of `debug!` by `warn!` in `constellation.rs`
Fixes #10483 .
<!-- 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/10489 )
<!-- Reviewable:end -->
2016-04-14 00:50:05 +05:30
Tim van der Meij
29e564b1f7
Replace use of debug!
by warn!
in constellation.rs
...
Fixes #10483 .
2016-04-13 20:31:59 +02:00
Ms2ger
b032a7894a
Remove a pointless Url clone.
2016-04-13 12:45:21 +02:00
bors-servo
aec297565b
Auto merge of #10554 - asajeffrey:fast-fail-handle-script-loaded-url-in-iframe, r=Ms2ger
...
Fast fail_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/10554 )
<!-- Reviewable:end -->
2016-04-13 15:23:51 +05:30
Alan Jeffrey
6c5b2167f5
Fast-fail handle_script_loaded_url_in_iframe_msg ( fixes #10416 )
2016-04-12 16:43:28 -05:00
Ulf Nilsson
c8f206d0f3
Propagate RUST_BACKTRACE to content processes
2016-04-12 09:28:08 +02:00
bors-servo
a61fc5285f
Auto merge of #10534 - asajeffrey:reenable-check-no-unwrap, r=Manishearth
...
Re-enabled etc/ci/check_no_unwrap
Got `etc/ci/check_no_unwrap.sh` to pass, and re-enabled it.
<!-- 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/10534 )
<!-- Reviewable:end -->
2016-04-12 09:57:34 +05:30
bors-servo
f0014bd9cd
Auto merge of #10224 - emilio:shader-type-validations, r=jdm
...
webgl: Add attribute validations and other nits
Fixes https://github.com/servo/servo/issues/9958
Depends on a bunch of prs, and needs a test.
r? @jdm
<!-- 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/10224 )
<!-- Reviewable:end -->
2016-04-12 05:18:49 +05:30
Alan Jeffrey
d01c312278
Re-enabled /etc/ci/check_no_unwrap.
2016-04-11 17:28:19 -05:00
bors-servo
d1e8b79583
Auto merge of #10399 - jdm:pb, r=jdm
...
Private browsing - Initial steps
Rebase of #10160 .
<!-- 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/10399 )
<!-- Reviewable:end -->
2016-04-05 17:41:11 +05:30
dhaval0603
af64a888e6
Private browsing - Initial steps
2016-04-04 15:22:38 -04:00
Emilio Cobos Álvarez
6fcc03c965
webgl: Make the api return the context limits and use them for validations
...
This allows keeping the VertexAttrib* calls asynchronous.
Another option would be to do the validation in the apply() function,
but that'd require us passing an unnecessary channel around and add
extra synchronization.
The counterpart of this is that it has to be updated when the context
changes, but that's less problem.
2016-04-03 01:21:56 +02:00
bors-servo
85f9f9626e
Auto merge of #10343 - asajeffrey:document-constellation-recv-panic, r=jdm
...
Comment explaining constellation panic for recv
A retry of #10294 , which was closed due to homu issues.
<!-- 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/10343 )
<!-- Reviewable:end -->
2016-04-02 23:08:45 +05:30
bors-servo
7f06b467a4
Auto merge of #10295 - asajeffrey:remove-constellation-misc-panic, r=nox
...
Miscellaneous fixes to harden the constellation.
<!-- 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/10295 )
<!-- Reviewable:end -->
2016-04-01 19:14:48 +05:30
Alan Jeffrey
df82a5b24f
Removed panicking when frame or pipeline lookup fails.
2016-03-31 16:18:36 -05:00
Alan Jeffrey
f9f15876cd
Miscellaneous fixes to harden the constellation.
2016-03-30 18:01:28 -05:00
Alan Jeffrey
6dab59f8ce
Added comment explaining why the constellation still panics in the case of recv failure.
2016-03-30 16:10:09 -05:00
Alan Jeffrey
620ba84fdc
Replace any uses of .send(...).unwrap() by .send(...).unwrap_or_else(...).
2016-03-29 10:31:35 -05:00
bors-servo
aac2da75f4
Auto merge of #8641 - notriddle:no_headless, r=glennw
...
No more headless compositor. Just the normal one.
Fixes #8573
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8641 )
<!-- Reviewable:end -->
2016-03-29 12:42:01 +05:30
Alan Jeffrey
32c72f0925
Added ability to randomly kill pipelines to the constellation.
2016-03-26 09:11:28 -05:00
Michael Howell
c9cb4839e4
No more headless compositor. Just the normal one.
...
This changes headless operation to strictly be a runtime option, rather
than a compile-time one. Note that the old headless version still relied
on a display server to support WebGL, while it now requires one all the
time.
Fixes #8573
2016-03-24 11:18:54 -07:00
bors-servo
767b11cd67
Auto merge of #10106 - Ms2ger:renderer-id, r=ecoal95
...
Remove renderer ids.
<!-- 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/10106 )
<!-- Reviewable:end -->
2016-03-22 08:50:28 +05:30
Ms2ger
22447055b9
Stop returning in-process senders from {CanvasPaintThread, WebGLPaintThread}::start.
2016-03-21 18:26:46 +01:00
Ms2ger
fb1b0d1a09
Remove Constellation::{canvas_paint_threads, webgl_paint_threads}.
2016-03-21 17:58:27 +01:00
Ms2ger
63a00f4dbf
Stop sending the renderer id to script.
2016-03-21 17:55:08 +01:00
Paul Rouget
6577409b95
Add history information to mozbrowserlocationchange event
2016-03-21 19:19:48 +08:00
Patrick Walton
c2581d5cef
compositing: In borderless mode, don't show the window until the page
...
has loaded.
This avoids a flash of unstyled content, which looks especially bad in
browser.html since unstyled content is white and browser.html has a
transparent background.
Closes #9996 .
2016-03-15 22:07:21 -07:00
Glenn Watson
92061132f3
Fix animation smoothness when using requestAnimationFrame.
...
Previously, the flow for ticking animations was:
Compositor -> Constellation -> Layout -> Script
However, this means that the compositor <-> layout messages can thrash, meaning layout thread is very rarely idle.
This means that the script thread (which joins on the layout thread during reflow) was unable to execute and run rAF callbacks.
With this change, the flow is now:
Compositor -> Constellation -> Script (when rAF is active).
Compositor -> Constellation -> Layout (when transitions / animations are active and no rAF is present).
This makes rAF based animation *much* smoother.
2016-03-04 07:26:00 +10:00
Corey Farwell
f5697b1c39
Cleanup Vec
initialization from Option
.
2016-02-27 22:31:39 -05:00
Corey Farwell
0112c359f5
Utilize Constellation::pipeline
utility.
2016-02-27 22:03:01 -05:00
Corey Farwell
b13b8035ae
Utilize Constellation::frame
utility.
2016-02-27 21:56:17 -05:00
Glenn Watson
c0531c312f
Add WebRender integration to Servo.
...
WebRender is an experimental GPU accelerated rendering backend for Servo.
The WebRender backend can be specified by running Servo with the -w option (otherwise the default rendering backend will be used).
WebRender has many bugs, and missing features - but it is usable to browse most websites - please report any WebRender specific rendering bugs you encounter!
2016-02-18 10:35:29 +10:00
Anthony Ramine
290694b27e
Move util::cursor to style_traits
2016-02-16 00:50:01 +01:00
Josh Matthews
e9b98ad5fa
Make iframes block the enclosing document's load event. Fixes #6663 .
2016-02-10 09:20:00 -05:00
Josh Matthews
c79231f9c6
Ignore navigation requests from pages that are not active.
2016-01-27 18:17:03 -05:00