Open Bug 854918 Opened 12 years ago Updated 3 years ago

Instantapply preference not changed when textbox is blanked

Categories

(Toolkit :: UI Widgets, defect)

17 Branch
x86
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mozilla, Unassigned)

Details

(Keywords: dupeme)

User Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 Build ID: 20130107124423 Steps to reproduce: 1. Create a prefwindow containing a textbox linked to a preference, using instantapply 2. Enter text in the textbox 3. Select all text and cut or delete (eg. shift-del) 4. Tab out of the textbox Actual results: 1. OK 2. Preference changes as text is styped into the textbox 3. Nothing happens 4. Preference is changed Expected results: The preference should change as soon as the textbox contents are blanked, not when the textbox loses focus. The preference only appears to be updated when the onchange or oninput handlers fire, which doesn't happen if only a non-printable key is pressed and the box is empty.
Can you provide/attach a Testcase for this?
(In reply to XtC4UaLL [:xtc4uall] from comment #1) > Can you provide/attach a Testcase for this? Install this fully reviewed addon: https://addons.mozilla.org/en-US/firefox/addon/utorrent-status-tool/ 1. Open about:config and filter the uTorrent preferences. We will be changing extensions.uTorrent.serverAddress (make sure you are in instant-apply mode, Linux default or change the preference for it). 2. Open up the addon options dialog, go to the server 1 tab, and put the caret in the textbox after http://. 3. Type some characters and they instantly appear in the about:config page. 4. Select the entire contents of the textbox and press shift-del. The contents disappear but the preference does not change. 5. Tab or click out of the box and the preference changes to a blank string.
Confirming, though using just DEL works. The Addon is using a usual <textbox> Element per <textbox id="txtServerAddress" maxlength="256" flex="1" preference="serverAddress"/> Unsure if this is a Event/XUL Issue or something else.
Component: Untriaged → XUL Widgets
OS: Linux → All
Product: Firefox → Toolkit
Whiteboard: [dupeme]
Severity: normal → S3
Keywords: dupeme
Whiteboard: [dupeme]
You need to log in before you can comment on or make changes to this bug.