Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] Incorrect URL when sharing page from the reader view #11798

Closed
petval opened this issue Jun 22, 2020 · 4 comments
Closed

[Bug] Incorrect URL when sharing page from the reader view #11798

petval opened this issue Jun 22, 2020 · 4 comments
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:ReaderMode

Comments

@petval
Copy link

petval commented Jun 22, 2020

Steps to reproduce

Switch page to reader view. Share it.

Expected behavior

The url in the shared item should be the same as in original page outside reader view so it can be shared directly from reader view.

Actual behavior

Url in shared item is like this

moz-extension://eb8df45a-895b-4f3a-896a-c0c71ae5f6ed/readerview.html?url=https%3A%2F%2Fwww.thedailybeast.com%2Fgoogle-co-founder-sergey-brin-has-a-secret-disaster-relief-squad&id=274877907009

which will not work on receiver's end. It must be switched back from reader view, share it and then return back to reader view, and the article is back on top.

Device information

  • Android device: OnePlus 7 Pro, Android 10.0.6.GM21BA (May 2020)
  • Fenix version: Nightly 200620 06:00 Build #2015747315, GV: 79.0a1, AS: 61.0.2

┆Issue is synchronized with this Jira Task

@petval petval added the 🐞 bug Crashes, Something isn't working, .. label Jun 22, 2020
@github-actions github-actions bot added the needs:triage Issue needs triage label Jun 22, 2020
@csadilek csadilek removed the needs:triage Issue needs triage label Jun 22, 2020
@mcarare mcarare added the needs:ac Needs Android Component Work label Jun 22, 2020
@csadilek csadilek removed the needs:ac Needs Android Component Work label Jun 24, 2020
@csadilek
Copy link
Contributor

Removing ac label as this would needs a fix in Fenix to use the original article URL, if reader mode is turned on, similar to:

val url = store.state.findTab(this.id)?.readerState?.activeUrl ?: this.url

@csadilek
Copy link
Contributor

My comment above will only work for active sessions. If sharing from history or bookmarks etc. we wouldn't find the session in the store. So, a better solution here, is to process the URL before sharing. I will give this a try.

@csadilek csadilek self-assigned this Jun 25, 2020
@csadilek csadilek added this to 🏃‍♀️ In Progress in A-C: Android Components Sprint Planning Jun 25, 2020
csadilek added a commit to csadilek/fenix that referenced this issue Jun 25, 2020
csadilek added a commit to csadilek/fenix that referenced this issue Jun 25, 2020
csadilek added a commit to csadilek/fenix that referenced this issue Jun 25, 2020
csadilek added a commit to csadilek/fenix that referenced this issue Jun 25, 2020
csadilek added a commit to csadilek/fenix that referenced this issue Jun 25, 2020
@csadilek csadilek added the eng:qa:needed QA Needed label Jun 25, 2020
@csadilek
Copy link
Contributor

OK, this is fixed now on master and will be in tomorrow's Nightly.

@csadilek csadilek moved this from 🏃‍♀️ In Progress to 🏁 Done in A-C: Android Components Sprint Planning Jun 25, 2020
@sflorean
Copy link
Contributor

Verified as fixed on Nightly 06/26 with Xiaomi Redmi Note 8T (Android 9) and LG G7 FIT (Android 8).

@sflorean sflorean added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Jun 26, 2020
@liuche liuche mentioned this issue Jun 27, 2020
12 tasks
@data-sync-user data-sync-user changed the title [Bug] Incorrect URL when sharing page from the reader view FNX2-16667 ⁃ [Bug] Incorrect URL when sharing page from the reader view Aug 1, 2020
@data-sync-user data-sync-user changed the title FNX2-16667 ⁃ [Bug] Incorrect URL when sharing page from the reader view FNX3-14917 ⁃ [Bug] Incorrect URL when sharing page from the reader view Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX3-14917 ⁃ [Bug] Incorrect URL when sharing page from the reader view FNX-12782 ⁃ [Bug] Incorrect URL when sharing page from the reader view Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX-12782 ⁃ [Bug] Incorrect URL when sharing page from the reader view FNX2-16667 ⁃ [Bug] Incorrect URL when sharing page from the reader view Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX2-16667 ⁃ [Bug] Incorrect URL when sharing page from the reader view [Bug] Incorrect URL when sharing page from the reader view May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. eng:qa:verified QA Verified Feature:ReaderMode
Projects
No open projects
Development

No branches or pull requests

5 participants