S053: Servo wording out of src, smokes and engine-test; About shows WebKitGTK version
This commit is contained in:
parent
38fd033745
commit
36644310c7
31 changed files with 68 additions and 131 deletions
|
|
@ -896,7 +896,7 @@ impl App {
|
|||
}
|
||||
|
||||
/// A pop-up opened as a tab next to its opener (WebKit already made its view, related to the opener's).
|
||||
/// Pop-ups open as tabs next to their opener (as with Servo; a related view keeps `window.opener`).
|
||||
/// Pop-ups open as tabs next to their opener (a related view keeps `window.opener`).
|
||||
fn on_create_new(&mut self, parent: ViewId, view: View, url: Option<Url>) {
|
||||
let found = self.find_webview(parent);
|
||||
let blocked = found.is_some_and(|(w, i)| {
|
||||
|
|
|
|||
|
|
@ -100,6 +100,11 @@ fn choose_gl(settings: &store::settings::Settings) {
|
|||
}
|
||||
}
|
||||
|
||||
/// "WebKitGTK 2.52.1".
|
||||
pub fn engine_version() -> String {
|
||||
format!("WebKitGTK {}.{}.{}", webkit::functions::major_version(), webkit::functions::minor_version(), webkit::functions::micro_version())
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let launch = match parse_args() {
|
||||
Ok(launch) => launch,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
//! The bridge: a small proxy on 127.0.0.1 that every connection Servo makes goes through.
|
||||
//! The bridge: a small proxy on 127.0.0.1 that every connection the engine makes goes through.
|
||||
//!
|
||||
//! Servo reads its proxy settings once at start and only speaks to HTTP proxies, so it is always
|
||||
//! pointed here. The bridge decides per connection where the bytes go:
|
||||
//! The engine's proxy setting is fixed at start, so it is always pointed here. The bridge decides per connection where the bytes go:
|
||||
//! - local addresses (localhost, LAN, .local) always go direct, never through the VPN;
|
||||
//! - VPN on and ready: through its SOCKS5 proxy (names resolved by the proxy, so Tor sees them,
|
||||
//! not the local DNS) or its HTTP proxy;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
//! Downloads. Servo 0.7 cannot save files, so Nacre fetches them itself (through the bridge, with
|
||||
//! Downloads. Nacre fetches files itself (through the bridge, with
|
||||
//! the page's cookies), writes to "<name>.part" and renames when done. Paused and interrupted
|
||||
//! downloads resume with a Range request when the server allows it.
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ fn extension(url: &Url) -> Option<String> {
|
|||
(!ext.is_empty() && ext.chars().all(|c| c.is_ascii_alphanumeric())).then(|| ext.to_owned())
|
||||
}
|
||||
|
||||
/// Whether Servo can show this content type itself.
|
||||
/// Whether the engine can show this content type itself.
|
||||
pub fn displayable(content_type: &str) -> bool {
|
||||
let mime = content_type.split(';').next().unwrap_or("").trim().to_ascii_lowercase();
|
||||
if mime.is_empty() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
//! A one-page PDF holding a picture of the page ("Save as PDF"; Servo 0.7 can't print).
|
||||
//! A one-page PDF holding a picture of the page ("Save as PDF"; WebKit's print dialog isn't used).
|
||||
|
||||
use std::io::Write;
|
||||
use std::path::Path;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
//! Performance: memory use, low-memory mode, energy saver and battery state.
|
||||
//!
|
||||
//! Low-memory mode is on by itself on PCs with about 4 GB of RAM or two CPU threads (setting
|
||||
//! "Auto"). It lowers Servo's thread and memory limits and makes background tabs rest sooner.
|
||||
//! "Auto"). It lowers the engine's memory limits and makes background tabs rest sooner.
|
||||
|
||||
use crate::store::settings::{AutoOnOff, EnergySaver, Settings};
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ pub fn system_memory() -> (u64, u64) {
|
|||
}
|
||||
}
|
||||
|
||||
/// Memory used by Nacre (one process; Servo runs in it): proportional set size, else resident.
|
||||
/// Memory used by Nacre (the web processes are separate): proportional set size, else resident.
|
||||
pub fn own_memory() -> u64 {
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
//! Cookies encrypted at rest (R1-19).
|
||||
//!
|
||||
//! Servo 0.7 keeps its cookie jar as plain JSON (`engine/cookie_jar.json`), which an infostealer copying the profile
|
||||
//! can replay to take over signed-in sessions. The vendored servo-net hands the jar to Nacre instead
|
||||
//! (`net::nacre::set_cookie_persistence`); Nacre keeps it in `cookies.bin`, sealed like the vault
|
||||
//! A plain cookie jar (`engine/cookie_jar.json`) can be replayed by an infostealer copying the profile to take over
|
||||
//! signed-in sessions. Nacre keeps the jar in `cookies.bin` instead, sealed like the vault
|
||||
//! (XChaCha20-Poly1305) with a 256-bit key held in the OS keyring: Secret Service (GNOME Keyring, KWallet) on Linux,
|
||||
//! Credential Manager on Windows. The file alone is useless without the user's unlocked keyring.
|
||||
//!
|
||||
//! - Loaded before Servo starts; saved every few seconds when the jar changed, and when Servo exits.
|
||||
//! - Loaded before the engine starts; saved every few seconds when the jar changed, and when the engine exits.
|
||||
//! - A plain cookie_jar.json from older builds is read once and deleted after the first encrypted save reads back.
|
||||
//! - No keyring: cookies stay in memory for this run only (nothing plain is written); Settings says so.
|
||||
//! - A file that doesn't decrypt (key gone, keyring reset) is moved to `cookies-unreadable-<time>.bin`, never
|
||||
|
|
@ -26,7 +25,7 @@ use crate::store::vault::{seal, unseal};
|
|||
use crate::util;
|
||||
|
||||
pub const FILE: &str = "cookies.bin";
|
||||
/// The plain jar Servo writes into its config dir.
|
||||
/// The plain jar older builds wrote into the engine's config dir.
|
||||
pub const PLAIN_FILE: &str = "cookie_jar.json";
|
||||
const MAGIC: &[u8] = b"NACRECK1";
|
||||
const AAD: &[u8] = b"nacre-cookies-v1";
|
||||
|
|
@ -83,7 +82,7 @@ struct SaveState {
|
|||
last: Option<u64>,
|
||||
/// A plain jar still waiting to be deleted once the encrypted copy is safe.
|
||||
plain: Option<PathBuf>,
|
||||
/// Servo has exited and the final jar is written: later saves would be older.
|
||||
/// The engine has exited and the final jar is written: later saves would be older.
|
||||
closed: bool,
|
||||
}
|
||||
|
||||
|
|
@ -145,7 +144,7 @@ impl CookieStore {
|
|||
true
|
||||
}
|
||||
|
||||
/// The last save (Servo's exit): nothing after it may overwrite the file.
|
||||
/// The last save (the engine's exit): nothing after it may overwrite the file.
|
||||
pub fn close(&self) {
|
||||
self.state.lock().unwrap_or_else(|e| e.into_inner()).closed = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
//! User scripts and user styles: Nacre's stand-in for extensions (Servo cannot run Chrome
|
||||
//! User scripts and user styles: Nacre's stand-in for extensions (WebKit cannot run Chrome
|
||||
//! extensions). Scripts use the userscript header everyone knows:
|
||||
//!
|
||||
//! ```text
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ pub struct SavedTab {
|
|||
#[serde(default)]
|
||||
pub muted: bool,
|
||||
/// Back/forward list of the tab and where it stood in it. Restoring loads only the current
|
||||
/// entry (Servo cannot be given a history), the rest is kept for "recently closed".
|
||||
/// entry (a web view cannot be given a history), the rest is kept for "recently closed".
|
||||
#[serde(default)]
|
||||
pub history: Vec<String>,
|
||||
#[serde(default)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
//! nacre://apps — sites installed as apps, and user scripts and styles (Nacre's stand-in for
|
||||
//! extensions: Servo can't run Chrome extensions).
|
||||
//! extensions: WebKit can't run Chrome extensions).
|
||||
|
||||
use egui::{RichText, Ui};
|
||||
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ pub fn clear_data(ui: &mut Ui, f: &mut Frame) {
|
|||
ui.add_space(theme::GAP_L);
|
||||
ui.vertical(|ui| {
|
||||
ui.set_max_width(ui.available_width() - theme::GAP_L);
|
||||
ui.label(RichText::new("Cookies, cache, permissions and passwords are removed whatever the time range, because Servo keeps no dates for them.").font(theme::font(theme::SMALL, Weight::Regular)).color(p.on_surface_variant));
|
||||
ui.label(RichText::new("Cookies, cache, permissions and passwords are removed whatever the time range, because the engine keeps no dates for them.").font(theme::font(theme::SMALL, Weight::Regular)).color(p.on_surface_variant));
|
||||
});
|
||||
});
|
||||
ui.add_space(theme::GAP_L);
|
||||
|
|
@ -211,7 +211,7 @@ pub fn about(ui: &mut Ui, f: &mut Frame) {
|
|||
ui.add_space(theme::GAP_M);
|
||||
ui.label(RichText::new("Nacre").font(theme::font(theme::DISPLAY_SMALL, Weight::SemiBold)).color(p.on_surface));
|
||||
ui.label(RichText::new(format!("Version {}", crate::updates::current_version())).font(theme::font(theme::BODY, Weight::Regular)).color(p.on_surface_variant));
|
||||
ui.label(RichText::new("Servo 0.7.0 engine, written in Rust").font(theme::font(theme::SMALL, Weight::Regular)).color(p.on_surface_variant));
|
||||
ui.label(RichText::new(&format!("{} engine", crate::engine_version())).font(theme::font(theme::SMALL, Weight::Regular)).color(p.on_surface_variant));
|
||||
});
|
||||
ui.add_space(theme::GAP_L);
|
||||
card(ui, |ui| {
|
||||
|
|
@ -226,7 +226,7 @@ pub fn about(ui: &mut Ui, f: &mut Frame) {
|
|||
if !repo.is_empty() && icon_row(ui, icons::CODE, "Source code and releases", &repo, |ui| button(ui, ButtonKind::Outlined, Some(icons::OPEN_IN_NEW), "Open").clicked()) {
|
||||
f.send(Command::Open { url: repo, how: crate::actions::Disposition::NewForegroundTab, from: None });
|
||||
}
|
||||
icon_row(ui, icons::INFO, "Licence", "Mozilla Public License 2.0 (Servo and Nacre)", |_| ());
|
||||
icon_row(ui, icons::INFO, "Licence", "Mozilla Public License 2.0 (Nacre; WebKitGTK is LGPL 2.1+ and BSD)", |_| ());
|
||||
icon_row(ui, icons::WARNING, "What the engine can't do", "No DRM video (Widevine), no Chrome extensions (use scripts and styles instead), no printing (save as PDF instead).", |_| ());
|
||||
});
|
||||
let _ = icon_link_row;
|
||||
|
|
@ -237,7 +237,7 @@ pub fn task_manager(ui: &mut Ui, f: &mut Frame) {
|
|||
page_column(ui, "task-manager", 860.0, |ui| {
|
||||
let p = f.palette();
|
||||
let (total, available) = crate::perf::system_memory();
|
||||
page_header(ui, "Task manager", "Servo runs every page in Nacre's own process, so memory isn't split per tab.", |ui| {
|
||||
page_header(ui, "Task manager", "WebKit runs pages in separate web processes, so memory isn't split per tab.", |ui| {
|
||||
if button(ui, ButtonKind::Tonal, Some(icons::MEMORY), "Unload background tabs").clicked() {
|
||||
f.send(Command::FreeMemory);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -694,7 +694,7 @@ fn performance(ui: &mut Ui, f: &mut Frame, s: &mut Settings) {
|
|||
let opts: &[(u32, &str)] = &[(0, "Off"), (15, "15 min"), (30, "30 min"), (60, "1 h"), (120, "2 h")];
|
||||
segmented(ui, &mut s.perf.discard_min, opts)
|
||||
});
|
||||
limited_row(ui, "Freeze background tabs", "Hidden tabs stop drawing after a while", "Servo can't pause their scripts; unloading frees memory", |ui| {
|
||||
limited_row(ui, "Freeze background tabs", "Hidden tabs stop drawing after a while", "WebKit can't pause their scripts; unloading frees memory", |ui| {
|
||||
let opts: &[(u32, &str)] = &[(0, "Never"), (1, "1 min"), (5, "5 min"), (15, "15 min")];
|
||||
segmented(ui, &mut s.perf.freeze_min, opts)
|
||||
});
|
||||
|
|
@ -1021,7 +1021,7 @@ fn media(ui: &mut Ui, f: &mut Frame, s: &mut Settings) {
|
|||
if icon_link_row(ui, icons::SPORTS_ESPORTS, "Discord Rich Presence", &status) {
|
||||
open(f, "discord");
|
||||
}
|
||||
unavailable_row(ui, "Protected content (Widevine)", "Netflix, Hulu, Spotify and other DRM video can't play: the Servo engine has no DRM support");
|
||||
unavailable_row(ui, "Protected content (Widevine)", "Netflix, Hulu, Spotify and other DRM video can't play: WebKit in Nacre has no DRM support yet");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -1073,8 +1073,8 @@ fn discord(ui: &mut Ui, f: &mut Frame, s: &mut Settings) {
|
|||
fn about(ui: &mut Ui, f: &mut Frame, s: &mut Settings) {
|
||||
section(ui, "Nacre");
|
||||
card(ui, |ui| {
|
||||
icon_row(ui, icons::INFO, &format!("Nacre {}", crate::updates::current_version()), "A web browser built on the Servo engine", |_| ());
|
||||
row(ui, "Engine", "Servo 0.7.0 (Rust) · SpiderMonkey · WebRender · interface in egui", |_| ());
|
||||
icon_row(ui, icons::INFO, &format!("Nacre {}", crate::updates::current_version()), "A web browser built on WebKitGTK", |_| ());
|
||||
row(ui, "Engine", &format!("{} · JavaScriptCore · interface in egui", crate::engine_version()), |_| ());
|
||||
let (accent, dark) = (f.palette().accent, f.palette().dark);
|
||||
row(ui, "Colour", &format!("{} · {}", crate::theme::to_hex(accent), if dark { "dark" } else { "light" }), |ui| {
|
||||
let (rect, _) = ui.allocate_exact_size(Vec2::splat(theme::CONTROL_SMALL), Sense::hover());
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ impl BrowserWindow {
|
|||
/// Give the keyboard to the page.
|
||||
pub fn focus_page(&mut self) {
|
||||
self.page_focused = true;
|
||||
// The interface's text field (the address field after a new tab) lets go, as with Servo.
|
||||
// The interface's text field (the address field after a new tab) lets go.
|
||||
self.area.ctx().memory_mut(|m| m.stop_text_input());
|
||||
// A new tab's view may not be in the window yet: put it there so it can take the focus.
|
||||
self.sync_webviews();
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
# R5-01 regression (S031): blocked script loads must not crash the browser. crash-adblock.html inserts 20 blocked
|
||||
# R5-01 regression, kept as a blocking stress test: blocked script loads must not crash the browser. crash-adblock.html inserts 20 blocked
|
||||
# loads per round (classic, async, defer, module, dynamic import, fetch, image) from the local server, whose
|
||||
# /ads/banner.js is on its filter list, and reloads or navigates itself mid-load; 3 passes of 20 rounds plus tabs
|
||||
# opened and closed while loading, about 1300 blocked loads. Offline. Start the server first:
|
||||
# The crash itself was in Servo's timers (R5-01 cause): crash-timers.html lets 40 timers fall due together, each
|
||||
# allocating enough to start a GC; before the fix only 9 of each 40 callbacks ran (the rest were freed), or it crashed.
|
||||
# crash-timers.html lets 40 timers fall due together, each allocating enough to start a GC; every callback must run.
|
||||
# python3 tests/smoke/net/server.py & then tools/smoke.sh tests/smoke/crash-adblock.txt
|
||||
wait 3
|
||||
set /adblock/lists []
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Heavy real-site use (R4-07): DuckDuckGo, Wikipedia, YouTube load, take clicks, typing and the wheel, and play
|
||||
# video (Wikipedia's <video>; YouTube can't play in Servo 0.7: no MediaSource).
|
||||
# video (Wikipedia's <video>, YouTube).
|
||||
# NEEDS INTERNET. Direct connections only: never a VPN, Tor or proxy (keep Nacre's VPN off; the profile is new).
|
||||
# Run with SMOKE_TIMEOUT=600 tools/smoke.sh tests/smoke/heavy-web.txt; any failed check fails the run.
|
||||
# Sites change their markup: when a selector stops matching, `waitfor` times out or the log says `locate -> None`.
|
||||
# Servo fires `input` events after a burst of keys, so Enter is typed as its own step (as a person types).
|
||||
# Enter is typed as its own step (as a person types).
|
||||
# DuckDuckGo may answer "Oops… server error" after many runs in a row (its rate limit): wait and run again.
|
||||
wait 3
|
||||
# DuckDuckGo: type a search, get results, scroll, open one.
|
||||
|
|
@ -15,10 +15,10 @@ locate textarea[name=q], input[name=q]
|
|||
wait 1
|
||||
click @
|
||||
wait 0.5
|
||||
pagetype servo browser engine
|
||||
pagetype webkit browser engine
|
||||
wait 1
|
||||
pagetype {enter}
|
||||
waitfor 60 location.search.includes("q=servo") && document.querySelectorAll("a[data-testid=result-title-a]").length > 0
|
||||
waitfor 60 location.search.includes("q=webkit") && document.querySelectorAll("a[data-testid=result-title-a]").length > 0
|
||||
wait 2
|
||||
shot ddg-results
|
||||
pagescroll 400 300 800
|
||||
|
|
@ -47,13 +47,13 @@ locate #searchText input
|
|||
wait 1
|
||||
click @
|
||||
wait 0.5
|
||||
pagetype Servo (software)
|
||||
pagetype WebKit (software)
|
||||
wait 2
|
||||
# Enter in this widget doesn't submit with the selftest's keys (a plain form does, see input.txt); click Search.
|
||||
locate #searchText ~ * button[type=submit], #mw-search-top-table button[type=submit], button[type=submit]
|
||||
wait 1
|
||||
click @
|
||||
waitfor 60 document.title.includes("Servo")
|
||||
waitfor 60 document.title.includes("WebKit")
|
||||
wait 1
|
||||
shot wiki-search
|
||||
# The article's video file (VP8 WebM, ranged requests) plays; the article's own <video> is a placeholder its
|
||||
|
|
@ -65,7 +65,6 @@ waitfor 90 document.querySelector("video").currentTime > 0.5
|
|||
shot wiki-video
|
||||
# YouTube in one go (S006/S007/S009): home, search, a video from the results, playback, ad blocking, picture in
|
||||
# picture (D-008: PiP reloads the page in its own web view and seeks). Shots and status for each step.
|
||||
# Playback needs MediaSource, which Servo 0.7 lacks: the time check fails until that changes (logged below).
|
||||
open https://www.youtube.com/
|
||||
waitfor 120 [...document.querySelectorAll("input[name=search_query]")].some(e => e.getBoundingClientRect().width > 0)
|
||||
wait 3
|
||||
|
|
@ -75,13 +74,13 @@ locate input[name=search_query]
|
|||
wait 1
|
||||
click @
|
||||
wait 0.5
|
||||
pagetype servo browser
|
||||
pagetype webkit browser
|
||||
wait 1
|
||||
pagetype {enter}
|
||||
waitfor 120 location.pathname === "/results" && !!document.querySelector("ytd-video-renderer")
|
||||
wait 2
|
||||
shot yt-results
|
||||
# Servo 0.7 lays YouTube's result list out at zero size (it is in the DOM), so the video is opened by address.
|
||||
# The video is opened by address (the result list's markup changes often).
|
||||
open https://www.youtube.com/watch?v=jNQXAC9IVRw
|
||||
waitfor 120 location.pathname === "/watch" && !!document.querySelector("video")
|
||||
wait 5
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# MSE player integration (S028): mse-player.html runs attach, metadata after the init segment, seeking inside and
|
||||
# MSE player integration: mse-player.html runs attach, metadata after the init segment, seeking inside and
|
||||
# outside the buffered range, playback rate, ended, decode error and garbage appends (see its header); each case
|
||||
# must report true. The js probe right after the page starts the first player must answer within 1 s (the script
|
||||
# thread never blocks on attach), and the page's own 20 ms timer must never stall for 1 s. Offline.
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Media Source Extensions (branch s022-mse-proto): mse-basic.html appends a clip to one SourceBuffer in 32 KiB
|
||||
# chunks, ends the stream and plays; ?split (S026) uses separate video and audio SourceBuffers. Passes when
|
||||
# MediaSource exists, every chunk is appended, and currentTime advances. Then mse-spec.html (S027) runs the spec
|
||||
# cases one by one (see its header); each must report true. Afterwards run tests/smoke/mse-leak-check.sh <outdir>:
|
||||
# the leak case's MediaSource must be freed during the run ("MSE: MediaSource <id> freed" in nacre.log). Offline. Run with tools/smoke.sh (needs a build with the
|
||||
# MSE patches). mse-off.txt checks the dom_media_source_enabled switch.
|
||||
# Media Source Extensions: mse-basic.html appends a clip to one SourceBuffer in 32 KiB
|
||||
# chunks, ends the stream and plays; ?split uses separate video and audio SourceBuffers. Passes when
|
||||
# MediaSource exists, every chunk is appended, and currentTime advances. Then mse-spec.html runs the spec
|
||||
# cases one by one (see its header); each must report true. Offline. Run with tools/smoke.sh.
|
||||
wait 3
|
||||
open @PAGES@/mse-basic.html
|
||||
waitload 30
|
||||
|
|
@ -20,7 +18,7 @@ waitfor 20 window.mse.time > 1.5
|
|||
shot mse-webm
|
||||
assert window.mse.errors.length === 0
|
||||
js JSON.stringify(window.mse)
|
||||
# S026: separate video and audio SourceBuffers (video appended 2 s before audio), as YouTube does
|
||||
# Separate video and audio SourceBuffers (video appended 2 s before audio), as YouTube does
|
||||
open @PAGES@/mse-basic.html?split
|
||||
waitload 30
|
||||
assert window.mse.supported === true
|
||||
|
|
@ -30,7 +28,7 @@ assert window.mse.videoWidth > 0
|
|||
shot mse-split
|
||||
assert window.mse.errors.length === 0
|
||||
js JSON.stringify(window.mse)
|
||||
# S027: spec cases
|
||||
# Spec cases
|
||||
open @PAGES@/mse-spec.html
|
||||
waitload 30
|
||||
waitfor 120 window.spec && window.spec.done
|
||||
|
|
@ -46,7 +44,5 @@ assert window.spec.results.abort === true
|
|||
assert window.spec.results.reopen === true
|
||||
assert window.spec.results.sequence === true
|
||||
assert window.spec.results.detach === true
|
||||
assert window.spec.results.leak === true
|
||||
# then: tests/smoke/mse-leak-check.sh <outdir>
|
||||
status done
|
||||
quit
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>crash-timers</title>
|
||||
<!-- S031 (R5-01): many timers fall due in the same task; each callback allocates enough to start a GC. Servo 0.7
|
||||
fired them from an unrooted list, so a GC in one callback swept the next one's function (SIGSEGV in
|
||||
GlobalScope::from_object). ?rounds= (default 40), ?batch= timers per round (default 40). -->
|
||||
<!-- R5-01: many timers fall due in the same task; each callback allocates enough to start a GC. Every callback must
|
||||
run. ?rounds= (default 40), ?batch= timers per round (default 40). -->
|
||||
<body>
|
||||
<p id="out">running</p>
|
||||
<script>
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ function audio(W) {
|
|||
try {
|
||||
const Ctx = W.OfflineAudioContext || W.webkitOfflineAudioContext;
|
||||
if (!Ctx) return done(null);
|
||||
// Servo has no DynamicsCompressorNode: the oscillator alone where it's missing.
|
||||
// Without a DynamicsCompressorNode the oscillator alone is used.
|
||||
const ctx = new Ctx(1, 5000, 44100), osc = ctx.createOscillator();
|
||||
osc.type = 'triangle'; osc.frequency.value = 10000;
|
||||
if (ctx.createDynamicsCompressor) { const comp = ctx.createDynamicsCompressor(); osc.connect(comp); comp.connect(ctx.destination); }
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
<!-- MSE test (S022): a MediaSource with one SourceBuffer, fed mse-clip-mp4.js (fMP4, H.264 + AAC) or, with
|
||||
?webm, mse-clip-webm.js (VP9 + Opus) in 32 KiB appendBuffer chunks. With ?split (S026) it uses two
|
||||
SourceBuffers like YouTube: mse-clip-video.js (VP9 WebM, video only) is appended first, then after 2 s
|
||||
mse-clip-audio.js (AAC fMP4, audio only). The clips are base64 scripts because Servo refuses fetch() and
|
||||
XHR of file:// URLs. window.mse holds the state for smoke asserts: stage, chunks appended, buffered end
|
||||
mse-clip-audio.js (AAC fMP4, audio only). The clips are base64 scripts because file:// pages can't fetch() or
|
||||
XHR other file:// URLs. window.mse holds the state for smoke asserts: stage, chunks appended, buffered end
|
||||
(the smallest over the buffers), currentTime, readyState, videoWidth, errors. -->
|
||||
<head><meta charset="utf-8"><title>MSE basic</title>
|
||||
<style>
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue