Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.0/fix about tab #232

Merged
merged 2 commits into from
Sep 8, 2017
Merged

7.0/fix about tab #232

merged 2 commits into from
Sep 8, 2017

Conversation

ryanrath
Copy link
Contributor

@ryanrath ryanrath commented Sep 8, 2017

Description

Discovered a small bug during 7.0 testing. If the 'About' tab is the first tab you visit after loading XDMoD, while using Chrome, the 'activate' listener would error out due to the Ext.History.getToken() function returning: null. On Firefox the function returns "null" and does not error out.

Motivation and Context

It's good to have consistent behavior across browser.

Tests performed

Manual Testing: (Chrome)
- Navigate to XDMoD ( ensure that there is no hash, so just https://<xdmod_address>/
- Click the 'About' Tab
Expected Outcome:
- That the first item in the left hand navigation pane is automatically selected.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project as found in the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

- If the About tab is the first tab clicked, and the browser is Chrome then the
  hash passed to this function was: null. This would cause the function to error
  out when attempting to regex match against it. In Firefox the value provided
  in the same situation was: 'null'. Which allowed the 'match' function to not
  error out. This small change just coerces the value of 'hash' to a string if
  it is not already.
@ryanrath ryanrath changed the base branch from xdmod7.1 to xdmod7.0 September 8, 2017 18:33
@ryanrath ryanrath merged commit 19bdf7f into ubccr:xdmod7.0 Sep 8, 2017
@tyearke tyearke added this to the v7.0.0 milestone Sep 21, 2017
@tyearke tyearke mentioned this pull request Sep 21, 2017
@tyearke tyearke added the bug Bugfixes label Sep 22, 2017
chakrabortyr pushed a commit to chakrabortyr/xdmod that referenced this pull request Oct 17, 2017
* Fixing case of non-string hash

- If the About tab is the first tab clicked, and the browser is Chrome then the
  hash passed to this function was: null. This would cause the function to error
  out when attempting to regex match against it. In Firefox the value provided
  in the same situation was: 'null'. Which allowed the 'match' function to not
  error out. This small change just coerces the value of 'hash' to a string if
  it is not already.

* Travis Fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugfixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants