Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Follow-up work from browser-engine-system migration #1063

Closed
15 of 16 tasks
pocmo opened this issue Sep 3, 2018 · 4 comments
Closed
15 of 16 tasks

Follow-up work from browser-engine-system migration #1063

pocmo opened this issue Sep 3, 2018 · 4 comments
Assignees
Labels
backlog 🐞 bug P2 Medium impact and/or medium frequency

Comments

@pocmo
Copy link
Contributor

pocmo commented Sep 3, 2018

Follow-up from #1039. This is a collection of things that are missing in the first iteration of the migration to browser-engine-system. For now I'll just collect everything here and will file separate issues as needed.

Components 0.21

  • Setup tracking protection and make sure toggle behaves correctly
  • Add interception implementation for firefox:home and other internal pages

Components 0.22

Components 0.23

Misc

  • Re-add onFocusChange behavior:
    @Suppress("UNUSED_PARAMETER") // To avoid allocation, we use a function reference but it's on a platform interface.
    private fun onFocusChange(view: View, hasFocus: Boolean): Unit = if (!hasFocus) {
    // For why we're modifying the focusedDOMElement, see FocusedDOMElementCache.
    //
    // Any views (like BrowserNavigationOverlay) that may clear the cache, e.g. by
    // reloading the page, are required to handle their own caching. Here we'll handle
    // cases where the page cache isn't cleared.
    focusedDOMElement.cache()
    } else {
    // Trying to restore immediately doesn't work - perhaps the WebView hasn't actually
    // received focus yet? Posting to the end of the UI queue seems to solve the problem.
    uiHandler.post { focusedDOMElement.restore() }
    Unit
    }

    To test this is fixed:

To test this is fixed:
Open YT.com/tv
Open menu
Close menu
move selection
expected: selection moves
actual: user cannot move selection

  • InfoFragment: Do we need to hide the WebView if we are loading an internal page?
  • InfoFragment: Do we need to re-add to onPageStart(): progressView.announceForAccessibility(getString(R.string.accessibility_announcement_loading));
  • The back/forward state in the toolbar updates very slowly. It looks like you need to move the cursor around to make it refresh at times (?!). (Improved this and filed an a-c issue to improve this).
  • Internal pages are now black text on a white background?

QA

  • Make sure EngineView.scrollByClamped performs fast. Consider adding API to EngineView.
  • Make sure tracking protection is disabled in InfoFragment (Is that strictly required?)
  • Make sure back/forward navigation is working properly. Fixed it to behave consistently - but actual behavior is to be defined in # [1304] Define navigation flow involving history and the overlay #1071.
  • Make sure handling external URLs (with fallback) are working properly (Do we even support that?)

Crashes

  • STR (Nexus 9): Launch, Click Rotten Tomatoes tile, wait for page to load, press back.
 E  java.lang.IllegalStateException: No selected session
 E      at mozilla.components.browser.session.SessionManager.getSelectedSessionOrThrow(SessionManager.kt:56)
 E      at mozilla.components.feature.session.SessionUseCases$LoadUrlUseCase.invoke$default(SessionUseCases.kt:27)
 E      at org.mozilla.focus.browser.BrowserFragment.loadUrl(BrowserFragment.kt:280)
 E      at org.mozilla.focus.ScreenController.showBrowserScreenForUrl(ScreenController.kt:92)
 E      at org.mozilla.focus.MainActivity$sessionObserver$1.onNoActiveSession(MainActivity.kt:65)
 E      at org.mozilla.focus.MainActivity$sessionObserver$1.onSessionRemoved(MainActivity.kt:55)
 E      at mozilla.components.browser.session.SessionManager$remove$$inlined$synchronized$lambda$1.invoke(SessionManager.kt:158)
 E      at mozilla.components.browser.session.SessionManager$remove$$inlined$synchronized$lambda$1.invoke(SessionManager.kt:16)
 E      at mozilla.components.support.base.observer.ObserverRegistry.notifyObservers(ObserverRegistry.kt:106)
 E      at mozilla.components.browser.session.SessionManager.notifyObservers(SessionManager.kt)
 E      at mozilla.components.browser.session.SessionManager.remove(SessionManager.kt:158)
 E      at mozilla.components.browser.session.SessionManager.remove$default(SessionManager.kt:127)
 E      at org.mozilla.focus.browser.BrowserFragment.onBackPressed(BrowserFragment.kt:270)
 E      at org.mozilla.focus.MainActivity.onBackPressed(MainActivity.kt:154)
 E      at android.app.Activity.onKeyUp(Activity.java:2725)
@pocmo pocmo added the P2 Medium impact and/or medium frequency label Sep 3, 2018
@pocmo pocmo self-assigned this Sep 3, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 3, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 3, 2018
…custom content (firefox:home, firefox:about)
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 3, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 3, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 3, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
…custom content (firefox:home, firefox:about)
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
…custom content (firefox:home, firefox:about)
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 5, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
…est case comparing firefox:home and firefox:about.
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
…custom content (firefox:home, firefox:about)
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
…est case comparing firefox:home and firefox:about.
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 6, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 7, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 7, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 10, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 10, 2018
…hods and replace with upstream implementation.
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 10, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 10, 2018
pocmo added a commit to pocmo/firefox-tv that referenced this issue Sep 10, 2018
@pocmo
Copy link
Contributor Author

pocmo commented Sep 10, 2018

Created to follow-ups: #1077, #1076.

liuche pushed a commit to liuche/firefox-tv that referenced this issue Sep 12, 2018
liuche pushed a commit to liuche/firefox-tv that referenced this issue Sep 12, 2018
…hods and replace with upstream implementation.
liuche pushed a commit to liuche/firefox-tv that referenced this issue Sep 12, 2018
liuche pushed a commit to liuche/firefox-tv that referenced this issue Sep 12, 2018
liuche added a commit to liuche/firefox-tv that referenced this issue Sep 12, 2018
liuche pushed a commit that referenced this issue Sep 12, 2018
liuche added a commit that referenced this issue Sep 12, 2018
@athomasmoz athomasmoz added this to the v4.0 Backlog milestone Oct 31, 2018
@mcomella
Copy link
Contributor

It looks like most of these items are addressed.

@mcomella
Copy link
Contributor

And we haven't been seeing any urgent problems: closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backlog 🐞 bug P2 Medium impact and/or medium frequency
Projects
None yet
Development

No branches or pull requests

4 participants