javascript issues in EPUB files

Open
#169 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ios, javascript, swift
Domain
mobile-dev

Research direction

Start by opening the linked EPUB FXL sample in the navigator and reproducing the three reported behaviors on pages 3 and 5; compare with the issue's note that it plays well on iBooks. The issue names no files or tests, so locate the navigator's JavaScript handling entry points before tracing page transitions, audio stopping, and the delayed message. Done means all three behaviors match the expected timing and page sequence.

Written by the indexing model from the issue text.

Description

We've been offered an EPUB FXL sample featuring some js effects. It is stored at https://drive.google.com/file/d/1EVHnCXPCGGdGL5AXjVMCVp5cWorMAgNi/view?usp=sharing

It shows some issues:

  • on page 3, the sound should stop when moving from page to the next.
  • page 3 is occasionally replaced with page 4 (and page 4 therefore appears duplicated)
  • the message on page 5 should appear after several seconds but it appears immediately.

This certainly highlights hidden issues with the proper handling of js in the navigator.
Note that this EPUB plays well on iBooks

Dominant language
Swift
Stars
557
Forks
249
Avg merge
3h 52m
Merged PRs (30d)
19

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 readium/swift-toolkit

All issues in readium/swift-toolkit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.