Closed Bug 895314 Opened 11 years ago Closed 6 years ago

Remove workaroud on Bug 893614 - [STK]The maxlength of the inputbox didn't set corretly in GET_INPUT command.

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: frsela, Unassigned)

References

Details

Attachments

(1 file)

The workaround created in 893614 caused for the 818270 bug should be removed as soon as bug 818270 is landed
Dear Fernando,
The latest code still not OK on v1.3:

444       // Workaround. See bug #818270. Followup: #895314
445       setTimeout(function workaround_bug818270() {
446         self.icc_input_box.maxLength = options.maxLength;
447         self.icc_input_box.value = options.defaultText || '';
448       });

What do you think? We can't always waive this.
blocking-b2g: --- → 1.3?
Not a regression, so not blocking.
blocking-b2g: 1.3? → backlog
(In reply to xiaokang.chen from comment #2)
> Dear Fernando,
> The latest code still not OK on v1.3:
> 
> 444       // Workaround. See bug #818270. Followup: #895314
> 445       setTimeout(function workaround_bug818270() {
> 446         self.icc_input_box.maxLength = options.maxLength;
> 447         self.icc_input_box.value = options.defaultText || '';
> 448       });
> 
> What do you think? We can't always waive this.

Hi,

This is an old bug in the input box control of Gecko. The related bug shall be fixed first.

This is only a workaround to display the control and after that change the maxlength and value attributes.

This can fail by a race condition since this timeout is fired asap (no timer defined) ... we can increase it to 500ms or so...

WDYT?
Any other idea for a better workaround?
Flags: needinfo?(chenxk)
Dear fernando,
I can't reproduce when I try 500ms, it works maybe. And I will let the qa try the new code in lab, if it work, we can merge the code. I will inform you if I got the result!
Flags: needinfo?(chenxk)
Dear Fernando,
500ms works OK. QA didn't reproduce this bug in lab with 500ms delay. Thanks a lot!
(In reply to xiaokang.chen from comment #6)
> Dear Fernando,
> 500ms works OK. QA didn't reproduce this bug in lab with 500ms delay. Thanks
> a lot!

Creating a new bug (988362) to add this proposal since this one is to *remove* these workarounds ;)
blocking-b2g: backlog → ---
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: