WebBrowserPlayground: "Open with No Params" passes the same params as "Open in Embedded Browser"

Open Beginner friendly
#137 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
92/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
swift
Domain
mobile-dev

Research direction

Open Sources/Showcase/WebBrowserPlayground.swift at lines 30–33 and compare the two embedded-browser actions, using PlaygroundSourceLink as the reference for the no-params form. Reproduce the sequence in Showcase › WebBrowser, then verify that “Open with No Params” uses default nil params after closing the first browser, while the existing embedded-browser action remains unchanged.

Written by the indexing model from the issue text.

Description

Where: WebBrowser › Embedded Browser › Open with No Params —
WebBrowserPlayground.swift#L30-L33

Steps to reproduce

  1. Open Showcase › WebBrowser.
  2. Tap "Open in Embedded Browser", close it, then tap "Open with No Params".

Expected: the second button shows the embedded browser with default (nil) params.
Actual: both buttons present with EmbeddedParams(presentationMode: presentationMode); only the URL differs (/docs), so the default-params path is never exercised.

Cause: L33 passes .embeddedBrowser(params: EmbeddedParams(presentationMode: presentationMode)).

Suggested fix: .embeddedBrowser(params: nil) (the form PlaygroundSourceLink already uses).

Dominant language
Swift
Stars
44
Forks
19
Avg merge
6h 27m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from skiptools/skipapp-showcase

All issues in skiptools/skipapp-showcase

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.