klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 296 forks source link

cannot save to file on a safari Mac #1092

Open Pika-kun opened 2 years ago

Pika-kun commented 2 years ago

Describe the bug.

There has been a similar bug to this, but this one’s a little different and none of the solutions will work. When I press “Save to file” it doesn’t save to file, and opens up the same thing the “play” button would open, which is really frustrating because I don’t even get the html file code like other solutions have mentioned. Pressed “archive” just brings a white page and does not help. I don’t know what to do, I think I may have to move the entire story over to chrome even though there are many boxes :(

Steps to reproduce:

  1. Open a twine file on a Mac using safari (I have an older Mac book pro, I’m not sure if that affects it)

  2. press “save to file”

  3. Why the heck did it open play testing

Expected behavior:

I expected it to save as a file like the button would do on other devices like a chrome book.

Additional context on this problem.

No response

Twine version number

2.3.16

Does this problem occur with the web version of Twine or the desktop app?

Web

What operating system does this problem occur on?

macOS

If this problem is occurring with the web version of Twine, what browser does it occur on?

Safari

Presubmission checklist

greyelf commented 2 years ago

@Pika-kun The Twine 2.x application has a Publish to File option, which is the option you use to create a Story HTML file. This option can be found in the Story Menu of the Passages View.

Based on the limited knowledge I have about Safari on a Mac, it appears the “Save to file” option you are talking about is what is used to save a web-page you are current viewing in the web-browser, which not the same as "publishing" a Twine Story.

klembot commented 2 years ago

I repro'd this in current 2.3. The issue looks like newer versions of Safari don't handle blob URLs like they used to; it used to trigger a download, but now it's displaying the contents of the file. The workaround is to save the web page once it opens using File > Save As.

This isn't an issue in the 2.4 betas so I'll mark this "help wanted" in case anyone is interesting/willing to contribute a fix for the 2.3-maintenace line.

I wouldn't recommend using Safari with the web version of Twine as it will erase all stories if you ever spend more than a week away from the web site. This is an unfortunate limitation of Safari's privacy mode. It looks like we also have a bug where the warning about this is not showing for latest Safari, either, unfortunately.