Closed
Bug 727942
Opened 13 years ago
Closed 12 years ago
Windows app can't read Firefox setting for "zoom level"
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: jeckhardt, Assigned: surkov)
References
(Blocks 1 open bug)
Details
Attachments
(8 files, 1 obsolete file)
7.70 KB,
patch
|
MarcoZ
:
review+
|
Details | Diff | Splinter Review |
9.57 KB,
patch
|
MarcoZ
:
review+
|
Details | Diff | Splinter Review |
19.30 KB,
patch
|
MarcoZ
:
review+
|
Details | Diff | Splinter Review |
14.89 KB,
patch
|
tbsaunde
:
review+
roc
:
feedback+
|
Details | Diff | Splinter Review |
2.43 KB,
patch
|
tbsaunde
:
review+
roc
:
feedback+
|
Details | Diff | Splinter Review |
6.61 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
7.11 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
11.39 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
Build ID: 20120208012847
Steps to reproduce:
I'm trying to determine from a Windows app what the zoom level in Firefox is
Actual results:
I can't find documentation about an available interface
Expected results:
I need an interface to read the current "zoom level" setting
Comment 1•13 years ago
|
||
Filing this in accessibility for initial triage.
Component: Untriaged → Disability Access APIs
Product: Firefox → Core
QA Contact: untriaged → accessibility-apis
Version: 11 Branch → unspecified
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 2•13 years ago
|
||
Actually what I need is to translate between coordinates given by IAccessible2 and coordinates rendered by Firefox.
With the IE DOM you can use IHTMLScreen2 and then calculate the offset using logical and device dpi.
Comment 3•13 years ago
|
||
(In reply to Jost Eckhardt, Ai Squared from comment #2)
> Actually what I need is to translate between coordinates given by
> IAccessible2 and coordinates rendered by Firefox.
Imo, the coordinates returned from accessibility APIs should always reflect the on-screen rendering. That is, when zoom level changes, the coordinates should change too. This is covered by bug 650241.
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to James Teh [:Jamie] from comment #3)
> (In reply to Jost Eckhardt, Ai Squared from comment #2)
> > Actually what I need is to translate between coordinates given by
> > IAccessible2 and coordinates rendered by Firefox.
> Imo, the coordinates returned from accessibility APIs should always reflect
> the on-screen rendering. That is, when zoom level changes, the coordinates
> should change too. This is covered by bug 650241.
Jost, does it cover your problem?
Reporter | ||
Comment 5•13 years ago
|
||
yes 650241 covers it. Please consider all MSAA and IA2 interfaces, in and out coordinates.
Assignee | ||
Comment 6•13 years ago
|
||
(In reply to Jost Eckhardt, Ai Squared from comment #5)
> yes 650241 covers it. Please consider all MSAA and IA2 interfaces, in and
> out coordinates.
right, I see that we have other issues
Depends on: 650241
Assignee | ||
Comment 7•13 years ago
|
||
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #599667 -
Flags: review?(marco.zehe)
Updated•13 years ago
|
Attachment #599667 -
Flags: review?(marco.zehe) → review+
Assignee | ||
Updated•13 years ago
|
Blocks: boundsa11y
Assignee | ||
Comment 8•13 years ago
|
||
patch1: getChildAt https://hg.mozilla.org/integration/mozilla-inbound/rev/796d3b448a94
Whiteboard: [don't mark fixed]
Comment 9•13 years ago
|
||
Target Milestone: --- → mozilla13
Assignee | ||
Comment 10•13 years ago
|
||
Attachment #608656 -
Flags: review?(marco.zehe)
Comment 11•13 years ago
|
||
Comment on attachment 608656 [details] [diff] [review]
part2:imagemap bounds
r=me. Thanks for the cleanup and the better use of the APIs available!
Attachment #608656 -
Flags: review?(marco.zehe) → review+
Assignee | ||
Comment 12•13 years ago
|
||
Attachment #608731 -
Flags: review?(marco.zehe)
Assignee | ||
Updated•13 years ago
|
Attachment #608731 -
Attachment is patch: true
Comment 13•13 years ago
|
||
Comment on attachment 608731 [details] [diff] [review]
part3:XULtree_childAtPoint
r=me.
Attachment #608731 -
Flags: review?(marco.zehe) → review+
Assignee | ||
Comment 14•13 years ago
|
||
(In reply to alexander :surkov from comment #10)
> Created attachment 608656 [details] [diff] [review]
> part2:imagemap bounds
https://hg.mozilla.org/integration/mozilla-inbound/rev/a5f39c72791d
Assignee | ||
Comment 15•13 years ago
|
||
Attachment #608731 -
Attachment is obsolete: true
Attachment #608785 -
Flags: review?(marco.zehe)
Comment 16•13 years ago
|
||
(In reply to alexander :surkov from comment #14)
> (In reply to alexander :surkov from comment #10)
> > Created attachment 608656 [details] [diff] [review]
> > part2:imagemap bounds
>
> https://hg.mozilla.org/integration/mozilla-inbound/rev/a5f39c72791d
https://hg.mozilla.org/mozilla-central/rev/a5f39c72791d
Whiteboard: [don't mark fixed] → [leave open]
Target Milestone: mozilla13 → ---
Comment 17•13 years ago
|
||
Comment on attachment 608785 [details] [diff] [review]
part3:XULtree childAtPoint:v2
r=me
Attachment #608785 -
Flags: review?(marco.zehe) → review+
Assignee | ||
Comment 18•13 years ago
|
||
(In reply to alexander :surkov from comment #15)
> Created attachment 608785 [details] [diff] [review]
> part3:XULtree childAtPoint:v2
https://hg.mozilla.org/integration/mozilla-inbound/rev/5a0fa83685d7
Comment 19•13 years ago
|
||
Assignee | ||
Comment 20•12 years ago
|
||
Attachment #671099 -
Flags: review?(trev.saunders)
Attachment #671099 -
Flags: feedback?(roc)
Assignee | ||
Comment 21•12 years ago
|
||
Attachment #671105 -
Flags: review?(trev.saunders)
Attachment #671105 -
Flags: feedback?(roc)
Comment on attachment 671099 [details] [diff] [review]
part4: scrollToPoint and origin conversions
Review of attachment 671099 [details] [diff] [review]:
-----------------------------------------------------------------
Looks OK, but do you care about Mac in HiDPI mode? On Mac in HiDPI mode, apps tend to use not device pixels but "Cocoa points", which in HiDPI mode are 2 device pixels each.
Attachment #671099 -
Flags: feedback?(roc) → feedback+
Attachment #671105 -
Flags: feedback?(roc) → feedback+
Assignee | ||
Comment 23•12 years ago
|
||
Attachment #671322 -
Flags: review?(trev.saunders)
Assignee | ||
Comment 24•12 years ago
|
||
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #22)
> Looks OK, but do you care about Mac in HiDPI mode? On Mac in HiDPI mode,
> apps tend to use not device pixels but "Cocoa points", which in HiDPI mode
> are 2 device pixels each.
I don't know, maybe Hub knows. Are there any conversion function to use or should I just multiply at 2 (in case if need it)?
Assignee | ||
Comment 25•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #671379 -
Attachment is patch: true
Attachment #671379 -
Flags: review?(trev.saunders)
Assignee | ||
Comment 26•12 years ago
|
||
Attachment #671461 -
Flags: review?(trev.saunders)
Comment 27•12 years ago
|
||
Comment on attachment 671099 [details] [diff] [review]
part4: scrollToPoint and origin conversions
>+ // scrollToPoint relative screen
>+ var anchor = getAccessible("bottom1");
>+ var [x, y] = getPos(anchor);
>+ var [docX, docY] = getPos(document);
>+
>+ anchor.scrollToPoint(COORDTYPE_SCREEN_RELATIVE, docX, docY);
>+ testPos(anchor, [x, docY]);
I'm not sure I completely understand why this is [x, docY] not docX, docY
I don't think I'm a particularly good person to review this stuff, but it seems fine, so r=me assuming the tests are all happy with you
Attachment #671099 -
Flags: review?(trev.saunders) → review+
Updated•12 years ago
|
Attachment #671105 -
Flags: review?(trev.saunders) → review+
Comment 28•12 years ago
|
||
Comment on attachment 671322 [details] [diff] [review]
part6: getOffsetAtPoint
is the scrolling in part 4, and the zoom() you use in a bunch of these test really sync? If not we need to add stuff to make sure the test waits until the action is complete before running.
Otherwise this seems fine.
Attachment #671322 -
Flags: review?(trev.saunders) → review+
Comment 29•12 years ago
|
||
Comment on attachment 671379 [details] [diff] [review]
part7: getRangeExtents
I think this patch depends on a file you add in the next patch unless it just got lost completely, so please fold these patches together when you land so we don't have a commit in the tree that doesn't build
Attachment #671379 -
Flags: review?(trev.saunders) → review+
Updated•12 years ago
|
Attachment #671461 -
Flags: review?(trev.saunders) → review+
Assignee | ||
Comment 30•12 years ago
|
||
(In reply to Trevor Saunders (:tbsaunde) from comment #27)
> Comment on attachment 671099 [details] [diff] [review]
> part4: scrollToPoint and origin conversions
>
> >+ // scrollToPoint relative screen
> >+ var anchor = getAccessible("bottom1");
> >+ var [x, y] = getPos(anchor);
> >+ var [docX, docY] = getPos(document);
> >+
> >+ anchor.scrollToPoint(COORDTYPE_SCREEN_RELATIVE, docX, docY);
> >+ testPos(anchor, [x, docY]);
>
> I'm not sure I completely understand why this is [x, docY] not docX, docY
there's no horizontal scrollbar so scrolling doesn't happen in horizontal direction and thus x isn't changed
Assignee | ||
Comment 31•12 years ago
|
||
(In reply to Trevor Saunders (:tbsaunde) from comment #28)
> Comment on attachment 671322 [details] [diff] [review]
> part6: getOffsetAtPoint
>
> is the scrolling in part 4, and the zoom() you use in a bunch of these test
> really sync? If not we need to add stuff to make sure the test waits until
> the action is complete before running.
yes, they seems to be sync
Assignee | ||
Comment 32•12 years ago
|
||
(In reply to Trevor Saunders (:tbsaunde) from comment #29)
> Comment on attachment 671379 [details] [diff] [review]
> part7: getRangeExtents
>
> I think this patch depends on a file you add in the next patch unless it
> just got lost completely, so please fold these patches together when you
> land so we don't have a commit in the tree that doesn't build
I forgot to hg add on new test file
Assignee | ||
Comment 33•12 years ago
|
||
Comment on attachment 671099 [details] [diff] [review]
part4: scrollToPoint and origin conversions
http://hg.mozilla.org/integration/mozilla-inbound/rev/9394d94ea2b9
Assignee | ||
Comment 34•12 years ago
|
||
Comment on attachment 671105 [details] [diff] [review]
part5: ISimpleDOMText::GetCharacterExtents
https://hg.mozilla.org/integration/mozilla-inbound/rev/cb0b143de3ae
Comment 35•12 years ago
|
||
Flags: in-testsuite+
Assignee | ||
Comment 36•12 years ago
|
||
Comment on attachment 671322 [details] [diff] [review]
part6: getOffsetAtPoint
https://hg.mozilla.org/integration/mozilla-inbound/rev/a48b0c4084ba
Assignee | ||
Comment 37•12 years ago
|
||
Comment on attachment 671379 [details] [diff] [review]
part7: getRangeExtents
https://hg.mozilla.org/integration/mozilla-inbound/rev/0cdf460897ea
Comment 38•12 years ago
|
||
Assignee | ||
Comment 39•12 years ago
|
||
Comment on attachment 671461 [details] [diff] [review]
part8: scrollSubstringToPoint
http://hg.mozilla.org/integration/mozilla-inbound/rev/6a24636cd4a2
Assignee | ||
Updated•12 years ago
|
Whiteboard: [leave open]
Comment 40•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in
before you can comment on or make changes to this bug.
Description
•