The headless browser for AI agents and web scraping
fix(cdp): emit canAccessOpener in all TargetInfo payloads, add aarch64 cross-compile CI
SGavrle0af9fc44f9c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex eca25df7..8275029d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -20,18 +20,30 @@ jobs:# newer glibc shipped by ubuntu-latest.os: ubuntu-22.04name: obscura-x86_64-linux+ cross: false- target: aarch64-unknown-linux-gnu+ # Native build on GitHub's ARM runner.os: ubuntu-22.04-armname: obscura-aarch64-linux+ cross: false+ - target: aarch64-unknown-linux-gnu+ # Cross-compile fallback from x86_64 Ubuntu 22.04. Same glibc+ # 2.35 floor, useful when ARM runners are unavailable.+ os: ubuntu-22.04+ name: obscura-aarch64-linux-cross+ cross: true- target: aarch64-apple-darwinos: macos-latestname: obscura-aarch64-macos+ cross: false- target: x86_64-apple-darwinos: macos-latestname: obscura-x86_64-macos+ cross: false- target: x86_64-pc-windows-msvcos: windows-latestname: obscura-x86_64-windows+ cross: falseruns-on: ${{ matrix.os }}@@ -42,6 +54,17 @@ jobs:with:targets: ${{ matrix.target }}+ - name: Install cross-compilation toolchain (aarch64-linux)+ if: matrix.cross == true+ run: |+ sudo apt-get update+ sudo apt-get install -y gcc-aarch64-linux-gnu+ mkdir -p .cargo+ cat >> .cargo/config.toml << 'CARGO_EOF'+ [target.aarch64-unknown-linux-gnu]+ linker = "aarch64-linux-gnu-gcc"+ CARGO_EOF+- name: Buildrun: cargo build --release --target ${{ matrix.target }}diff --git a/crates/obscura-cdp/src/domains/target.rs b/crates/obscura-cdp/src/domains/target.rsindex 3d38e258..120f676f 100644--- a/crates/obscura-cdp/src/domains/target.rs+++ b/crates/obscura-cdp/src/domains/target.rs@@ -16,6 +16,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": "","url": "","attached": true,+ "canAccessOpener": false,"browserContextId": "",}}),@@ -30,6 +31,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": page.title,"url": page.url_string(),"attached": false,+ "canAccessOpener": false,"browserContextId": page.context.id,}}),@@ -48,6 +50,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": page.title,"url": page.url_string(),"attached": true,+ "canAccessOpener": false,"browserContextId": page.context.id,})})@@ -90,6 +93,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": page.title,"url": page.url_string(),"attached": false,+ "canAccessOpener": false,"browserContextId": page.context.id,}}),@@ -107,6 +111,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": page.title,"url": page.url_string(),"attached": true,+ "canAccessOpener": false,"browserContextId": page.context.id,},"waitingForDebugger": false,@@ -133,6 +138,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": "","url": "","attached": true,+ "canAccessOpener": false,"browserContextId": "",},"waitingForDebugger": false,@@ -158,6 +164,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": page.title,"url": page.url_string(),"attached": true,+ "canAccessOpener": false,"browserContextId": page.context.id,},"waitingForDebugger": false,@@ -211,6 +218,7 @@ pub async fn handle(method: &str, params: &Value, ctx: &mut CdpContext) -> Resul"title": page.title,"url": page.url_string(),"attached": true,+ "canAccessOpener": false,"browserContextId": page.context.id,}}))