Closed
Bug 569653
Opened 14 years ago
Closed 14 years ago
Investigate and fix unsafe selection changes
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: davidb, Assigned: davidb)
References
Details
(Whiteboard: [sg:critical?][critsmash:investigating])
Attachments
(2 files, 1 obsolete file)
2.18 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
5.01 KB,
patch
|
MarcoZ
:
review+
|
Details | Diff | Splinter Review |
Spin off from bug 423737.
Comment 1•14 years ago
|
||
davidb, who owns this?
Whiteboard: [sg:critical?] → [sg:critical?][critsmash:investigating]
Assignee | ||
Comment 2•14 years ago
|
||
(In reply to comment #1)
> davidb, who owns this?
Sorry. Me. I have a plan - patch expected by end of Monday.
Assignee: nobody → bolterbugz
Assignee | ||
Comment 3•14 years ago
|
||
Might be this simple.
Assignee | ||
Updated•14 years ago
|
Attachment #450563 -
Attachment is obsolete: true
Assignee | ||
Comment 4•14 years ago
|
||
Comment 5•14 years ago
|
||
nit: double space: nsDocAccessible *docAccessible =
you don't want them to coalesce?
mochitest please
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5)
> nit: double space: nsDocAccessible *docAccessible =
>
> you don't want them to coalesce?
>
No I want to preserve behaviour, at least for now.
> mochitest please
Yep.
Assignee | ||
Comment 7•14 years ago
|
||
Assignee | ||
Comment 8•14 years ago
|
||
Sorry for delay. Here's a test.
Attachment #451056 -
Flags: review?
Assignee | ||
Updated•14 years ago
|
Attachment #451056 -
Flags: review? → review?(marco.zehe)
Updated•14 years ago
|
Attachment #451056 -
Flags: review?(marco.zehe) → review+
Comment 9•14 years ago
|
||
Comment on attachment 451056 [details] [diff] [review]
test
r=me, thanks!
Assignee | ||
Updated•14 years ago
|
Attachment #450564 -
Flags: review?(surkov.alexander)
Assignee | ||
Comment 10•14 years ago
|
||
Comment on attachment 450564 [details] [diff] [review]
WIP
(In reply to comment #5)
> nit: double space: nsDocAccessible *docAccessible =
fixed locally.
> you don't want them to coalesce?
No (as per IRC)
> mochitest please
Added (see other attached diff). We can do more of course, but let's do that on a follow up (Bug 571900)?
Assignee | ||
Comment 11•14 years ago
|
||
Comment on attachment 451056 [details] [diff] [review]
test
>+ function addSelection(aNode, aOption)
>+ {
>+ this.getID = function addselection_getID() {
>+ return prettyName(this.DOMNode) + " added to selection";
Note to self: change this to this.optionNode
Comment 12•14 years ago
|
||
Comment on attachment 450564 [details] [diff] [review]
WIP
>+ nsDocAccessible *docAccessible =
nit: two spaces
>+ nsAccUtils::GetDocAccessibleFor(optionNode);
use GetDocAccessible();
>+ if (!docAccessible)
>+ return;
we don't need a check while IsDefuct() is called
>+
>+ nsRefPtr<nsAccEvent> eventSelectionWithin =
>+ new nsAccEvent(nsIAccessibleEvent::EVENT_SELECTION_WITHIN, multiSelect);
selectionWithinEvent or selWithinEvent?
>+ if (eventSelectionWithin)
fail if no memory
>- nsEventShell::FireEvent(eventType, optionAccessible);
>+ nsRefPtr<nsAccEvent> eventAddRemove =
addRemoveSelectionEvent or addRemoveSelEvent?
Attachment #450564 -
Flags: review?(surkov.alexander) → review+
Assignee | ||
Comment 13•14 years ago
|
||
(In reply to comment #12)
> (From update of attachment 450564 [details] [diff] [review])
OK everything updated except:
> >+ nsRefPtr<nsAccEvent> eventSelectionWithin =
>
> selectionWithinEvent or selWithinEvent?
>
> >+ nsRefPtr<nsAccEvent> eventAddRemove =
>
> addRemoveSelectionEvent or addRemoveSelEvent?
I think it is clearer to leave these. Otherwise the meaning is confusing.
Comment 14•14 years ago
|
||
we just used reorderEvent or refreshEvent for example, should be they converted to eventReorder and etc?
btw, eventAddRemove doesn't say it's about selection. If it is then eventWithin should be enough as well.
Assignee | ||
Comment 15•14 years ago
|
||
OK I made the selFooEvent.
Assignee | ||
Comment 16•14 years ago
|
||
Test landed: http://hg.mozilla.org/mozilla-central/rev/cfdfc56b8e73
Fix landed: http://hg.mozilla.org/mozilla-central/rev/d2c022e9417f
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Group: core-security → core-security-release
Updated•9 years ago
|
Group: core-security-release
You need to log in
before you can comment on or make changes to this bug.
Description
•