Skip to content

isabella232/h2-safari

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample

Summary

This project is to demonstrate a bug in Safari where loading a webpage over H2 will fail if the page is over a certain length.

You will notice the page loads just fine in:

  • Chrome
  • Firefox
  • cURL

I have added a fifth test that has identical HTML to test 1 but doesn't use templates or views to render the page. Instead it is a giant heredoc.

It works.

To Reproduce

First you will need elixir and erlang installed. Install them with brew:

  • Install Erlang: brew install erlang
  • Install Elixir: brew install elixir

To start the test Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • Create you asset digest mix phx.digest
  • Start Phoenix endpoint in production mode MIX_ENV=prod mix phx.server

Now you can visit sample.phx.sh:4000 from your browser.

The following pages have issues in Safari.

Likely due to empty frames.

About

Proof of concept to demonstrate Safari.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 61.8%
  • HTML 36.9%
  • JavaScript 1.3%