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

Check input value before set it #9031

Merged
merged 1 commit into from
May 25, 2017
Merged

Check input value before set it #9031

merged 1 commit into from
May 25, 2017

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented May 24, 2017

Test Plan:

  1. Open editBookmark/autofill address/autofill credit card dialog
  2. Make sure IME can input appropriately on text input value
  3. Open about:preferences#sync
  4. Make sure IME can input appropriately on text input value

Description

fix #9017

Auditors: @bsclifton, @bbondy

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

@darkdh darkdh self-assigned this May 24, 2017
@darkdh darkdh requested review from bbondy and bsclifton May 24, 2017 23:06
commonStyles.textbox,
commonStyles.textbox__outlineable,
commonStyles.isCommonForm,
commonFormStyles.input__box
Copy link
Contributor

Choose a reason for hiding this comment

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

I would make these into a const to avoid repetitive input forms below.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in 4652c1f

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 fix works nicely.

@bsclifton bsclifton added this to the 0.15.300 milestone May 25, 2017
@@ -97,12 +97,16 @@ class AddEditBookmarkHanger extends ImmutableComponent {
this.updateFolders(nextProps)
}
}
componentDidUpdate () {
console.log(this.displayBookmarkName)
Copy link
Member

Choose a reason for hiding this comment

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

whoops- we'll want to take this out

Copy link
Member

Choose a reason for hiding this comment

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

I pulled this out in a separate commit and rebased/squashed it in 😄

fix #9017

Auditors: @bsclifton, @bbondy

Test Plan:
1. Open editBookmark/autofill address/autofill credit card dialog
2. Make sure IME can input appropriately on text input value
Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

I don't have IME enabled (and I haven't used it on macOS before), so I can't easily test this. However, the changes look reasonable and I trust Suguru as he opened the issue 😄

It would be interesting to think about (in the future) a way to have an integration test that uses IME... for autofill or typing in the URL bar. We couldn't include it as part of the standard tests since not everybody has their system/locale setup in a way that enables IME, but we could have a dedicated machine for setting the locale / running the tests

@bsclifton bsclifton merged commit 5e79349 into master May 25, 2017
@bsclifton bsclifton deleted the 9017 branch May 25, 2017 06:41
darkdh added a commit that referenced this pull request May 25, 2017
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.

IME does not work properly on input form
3 participants