mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.12k stars 2.89k forks source link

Data URL just stopped working #6519

Open Rukario opened 4 years ago

Rukario commented 4 years ago

Steps to reproduce

Enter data url in address bar like data:text/html,%3Chtml%3E%3Cstyle%3Ehtml%2Cbody%7Bbackground-color%3A%23009900%3Bcolor%3A%2300ff00%3B%7D%3C%2Fstyle%3E%3Cbody+contenteditable%3ESuccess%3C%2Fbody%3E%3C%2Fhtml%3E

Expected behavior

Renders HTML from data url as it used to in older Firefox app.

Actual behavior

Renders nothing and the address get blanked out.

Device & build information

┆Issue is synchronized with this Jira Task

garvankeeley commented 4 years ago

That URL won't work as a clickable link in Firefox desktop either, how are you navigating to that URL? We are mostly trying to match desktop, except we don't support copy+pasting these URLs into the URL bar, which is currently due to a technical limitation we might try to overcome.

Rukario commented 4 years ago

I set homepage and newtab in settings to the data url I created, it was great until now, it went blank in new versions. I used Firefox app as my session-only notepad with zoom support. I'm deaf and it was my way to communicate with people. It's made up of data URL to the colorful notepad using contenteditable body with style. I hope you can return this kind of function I want.

SimonBasca commented 4 years ago

@garvankeeley I am seeing that the link from the description is working in Firefox Focus.

  1. Copy to notes : data:text/html,%3Chtml%3E%3Cstyle%3Ehtml%2Cbody%7Bbackground-color%3A%23009900%3Bcolor%3A%2300ff00%3B%7D%3C%2Fstyle%3E%3Cbody+contenteditable%3ESuccess%3C%2Fbody%3E%3C%2Fhtml%3E
  2. Tap the "Share" button
  3. Select Firefox Focus

Actual results:

Not sure if we should mimic Focus or Firefox but we should be consistent. What's your opinion @garvankeeley ?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale. Has the issue been fixed, or does it still require the community's attention? Please leave any comment to keep this issue opened. It will be closed automatically if no further update occurs in the next 30 days. Thank you for your contributions!

Rukario commented 1 year ago

Still doesn't work