Closed
Bug 346964
Opened 19 years ago
Closed 19 years ago
Component return failure code for nsISelection.getRangeAt
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: wu.tommy, Unassigned)
References
()
Details
(Keywords: regression)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060801 BonEcho/2.0b1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060801 BonEcho/2.0b1
Some operation in TinyMCE will get 'Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) or 0x80004005 (NS_ERROR_FAILURE) [nsISelection.getRangeAt]' error in error console, and the function is not work like before.
Reproducible: Always
Steps to Reproduce:
1.go to the TinyMCE example URL.
2.Move cursor to last char of last time (after the word Google)
3.press 'Enter' key.
4.click 'Insert Date' button.
5.click 'Insert time' button.
Actual Results:
step 3, get 2 error in error console, 1 for 0x80004005, 1 for 0x80070057
step 4, no date string add to the editor, and get 3 error for 0x80070057.
step 5, no time string add to the editor, and get 3 error for 0x80070057.
Expected Results:
step 3, cursor should move to next line without any error.
step 4, append current date string to editor.
step 5. append current time string to editor.
build 2006073007 or before work without any problem for this.
build 2006073104 and 2006080116 will get the error.
Comment 1•19 years ago
|
||
Regression range from comment 0
http://tinderbox.mozilla.org/bonsai/cvsquery.cgi?treeid=default&module=PhoenixTinderbox&branch=MOZILLA_1_8_BRANCH&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-07-30+06%3A00%3A00&maxdate=2006-07-31+05%3A00%3A00&cvsroot=%2Fcvsroot
Keywords: regression
Version: unspecified → 2.0 Branch
Comment 2•19 years ago
|
||
Looks like fallout from bug 345600, then. Would be nice if we could get a minimized testcase for this.
Assignee: nobody → events
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → ian
Version: 2.0 Branch → 1.8 Branch
Comment 3•19 years ago
|
||
I'm looking at this.
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•19 years ago
|
||
This is just on 1.8.1.
On trunk bug 345600 was easier to fix, there wasn't need to propagate the error
because of the changes how selection is handled and changes in
nsFrame::HandleRelease (which were done in bug 336592).
The best way to fix this would be to fix bug 336592 also on branch (which is
perhaps needed because of bug 346431), but the simple fix would be to propagate
some special error value from nsTextInputListener::UpdateTextInputCommands and
return the error code in nsTypedSelection::NotifySelectionListeners only if
thisListener->NotifySelectionChanged returns that special value.
I agree we should have 336592 on branch.
Minusing for blocking1.8.1, but we'll consider a patch. Renominate if you can be more convincing about why we need to block on this.
Flags: blocking1.8.1? → blocking1.8.1-
Comment 7•19 years ago
|
||
This should be fixed in 1.8.1 20060805 builds
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•