Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

allow website access with long press on backbutton #9853

Merged
merged 1 commit into from
Jul 6, 2017

Conversation

cezaraugusto
Copy link
Contributor

Auditors: @bridiver, @luixxiul
Fix #9852

STR:

  1. Open github.com
  2. select any link
  3. press the back button long
  4. select github from pulldown
  5. Actual result: page should load

@cezaraugusto cezaraugusto self-assigned this Jul 4, 2017
@cezaraugusto cezaraugusto added this to the 0.18.x (Beta Channel) milestone Jul 4, 2017
Copy link
Contributor

@luixxiul luixxiul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test plan works.

@@ -798,7 +798,7 @@ const api = {

goToIndex: (tabId, index) => {
const tab = getWebContents(tabId)
if (tab && !tab.isDestroyed() && tab.canGoToIndex(index)) {
if (tab && !tab.isDestroyed() && tab.goToIndex(index)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't want to call goToIndex twice, but we should check that index >= 0 and < the number of entries

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, updated

@cezaraugusto cezaraugusto merged commit ac8de13 into master Jul 6, 2017
@cezaraugusto cezaraugusto deleted the longpress-backbutton branch July 6, 2017 19:52
cezaraugusto added a commit that referenced this pull request Jul 6, 2017
allow website access with long press on backbutton
cezaraugusto added a commit that referenced this pull request Jul 6, 2017
allow website access with long press on backbutton
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants