Should FxOS's "select all" really be docshell's "select all" (which tries to select everything in the document)?

The specs on https://bugzil.la/1023688 (specifically 
https://bug1023688.bugzilla.mozilla.org/attachment.cgi?id=8548761 which 
of the two is the one that discusses "select all") don't directly 
address the issue of containment for non-editable areas. Our 
implementation, as I trace it, ends up invoking do_selectAll on the 
docshell which tries to select *everything* editable in the entire page.

This came to my attention while looking at https://bugzil.la/1152172 
which is an email bug where select all was selecting both the selectable 
content on the current message reader card, plus the search box on the 
off-screen message list card. This behaviour was surprising to me 
because I was assuming we would use some type of heuristic to walk up 
the DOM tree from the cursor until we found a non-selectable node and 
stop there and then select its children a la 
https://developer.mozilla.org/en-US/docs/Web/API/Selection/selectAllChildren. 
If we didn't experience such a transition thereby implying a page that 
has no guidance on selection, we would fall back to using some 
heuristics like just walking up to the first enclosing "display: block" 
context.

While the email app can and probably should address this bug by further 
scoping selectors, I think this raises the question of whether the 
current behaviour is a useful behaviour for "select all".  I don't think 
that it is.  For example, if I use the Gmail web UI on Firefox OS and 
use our "select all" affordance, we literally select everything on the 
page, logos and all.  Same deal when doing select all with the cursor in 
a bugzilla comment. And you can generally simulate this on desktop too; 
just hit ctrl-a on any webpage and you will find that it's almost 
certainly not what you wanted[1].

Andrew

1: The exception seems to be m.twitter.com where this works well because 
they explicitly limit the selection to the single focused tweet's 
contents and timestamp.  You can't select things on the main list of 
tweets; you have to tap on one to focus it.  And on that focused tweet, 
you can't select replies until you focus on them and they become the 
subject of the page you are viewing.  Note that I believe my straw-man 
heuristic would still handle this case for websites that go out of their 
way to help us.
0
Andrew
4/13/2015 8:49:03 AM
mozilla.dev.gaia 3196 articles. 0 followers. Post Follow

0 Replies
612 Views

Similar Articles

[PageSpeed] 49

Reply:

Similar Artilces:

Deleting "to's" and "from's" on emails
Name: Rae McFarland Email: larryatmacsmachinedotcom Product: Firefox Summary: Deleting "to's" and "from's" on emails Comments: There doesn't seem to be a way to edit and email and then forward it. Some people send something I'd like to forward, but there's a whole page of previous mailing addresses. I'd like to delete them before forwarding. I've tried and the whole email gets deleted. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16 From URL: http://hendrix.mozi...

Wired's Vista "Do's" Have Some Major "Don'ts"
Wired has an article up about how to speed up Vista. While they have a couple OK tips in there, there are a couple of suggestions that caught my attention as colossally BAD. I tried to edit the wiki page to reflect this, but I was rebuffed by the original author. So much for community contributions. http://www.windows-now.com/blogs/robert/archive/2008/02/27/wireds-vista-dos-have-some-major-donts.aspx -- "Never drive faster than your ANGEL can fly" In grc.techtalk, on Fri, 14 Nov 2008 17:32:04, paradoX wrote: >Wired has an article up about how to speed up Vist...

What's with "~/" and NOT "~/" ?
In trying to deplay test projects to my provider (GoDaddy) I'm finding a consistent barfness with the form of reference that I read as "in this directory, this file"  or "~/filename.filetype". I am having to consistently strip the "~/" to make it work.Is there a way to strip off this type of reference through a preference? In the past, I've been led to believe that "filename.filetype" when in the same directory was just FINE as that -- no need for this "~/".Hints, direction, etc. welcomed and appreciated in advance ... mahalos .....

superreview requested: [Bug 378544] General's Default Feed Viewer's " =?UTF-8?Q?Select=E2=80=A6?=" doesn't use real elipsis
Stuart Morgan <stuart.morgan@alumni.case.edu> has asked Mike Pinkerton <mikepinkerton@mac.com> for superreview: Bug 378544: General's Default Feed Viewer's "Select=E2=80=A6" doesn't use r= eal elipsis https://bugzilla.mozilla.org/show_bug.cgi?id=3D378544 Attachment 264750: changed https://bugzilla.mozilla.org/attachment.cgi?id=3D264750&action=3Dedit= ...

superreview granted: [Bug 378544] General's Default Feed Viewer's " =?UTF-8?Q?Select=E2=80=A6?=" doesn't use real elipsis
Mike Pinkerton <mikepinkerton@mac.com> has granted Stuart Morgan <stuart.morgan@alumni.case.edu>'s request for superreview: Bug 378544: General's Default Feed Viewer's "Select=E2=80=A6" doesn't use r= eal elipsis https://bugzilla.mozilla.org/show_bug.cgi?id=3D378544 Attachment 264750: changed https://bugzilla.mozilla.org/attachment.cgi?id=3D264750&action=3Dedit ------- Additional Comments from Mike Pinkerton <mikepinkerton@mac.com> rs=3Dpink= ...

Where can I find "CBO" and it's method's "InitializeObject" etc.
Hello, Anyone knows where in the code, i could find CBO and all it's methods? THX DotNetNuke.Common.Utilities.CBO Or if your looking for the file, try DNNRoot\Components\Shared\CBO.vb Dave...

Here's a headscratcher! "I" and "*"
We have a user, all of a sudden whenever he types in the body of a message from GroupWise (6.5.5), he can't type the letter "I" as in "me myself and I." When he does, what appears instead of an I is either an asterisk (*) or a dash (-). It's the wierdest thing and I can't find anything to even remotely describe this situation. At first I suspected his keyboard but he does not have this issue typing in Word or other applications, just GroupWise. Anyone ever see this? What in the world is going on there? (By the way, it's a really funny situa...

Subtitle of "What's New" video on Firefox 13 "What's New" Page
I'd seen lots of subtitle improvements on "What's New" video of Firefox 13 on Amara stayed in the draft status and wait for approve. Is there anybody follow the revision of movie on following change? Their must be problems that we showing the subtitled on "what's new" page with Amara UI, allowed peoples to improve it directly with Amara, but no mention about that they need to wait for someone's review and approve. We just can't make contributor wondering why the subtitled stay on draft for life long time. Also is there anyone who watch behind the A...

RFC: Make "use 5.14" select "use re '/a' " ?
I have pushed to blead (with Jesse's permission) the last commits (besides doc and any bug fixes) that enable the /a regular expression modifier. Presuming it works ok, should this become the default method of operation, signified by a "use 5.014" ? On 1/17/11 11:02 AM, Karl Williamson wrote: > Presuming it works ok, should this become the default method of > operation, signified by a "use 5.014" ? So when I upgrade my code, I have to put "no re '/a'" in every file? Why, oh why? On Mon, 17 Jan 2011, Elliot Shank wrote: > ...

Is "Bug Changes" multi-select an "and" or an "or"?
Either I'm confused, or there is a defect with the way that advanced searching in the "Bug Changes" box works (perhaps both). I created 2 new Bugs http://landfill.bugzilla.org/bugzilla-2.20-branch/show_bug.cgi?id=2841 and http://landfill.bugzilla.org/bugzilla-2.20-branch/show_bug.cgi?id=2842 2841 is just new. No PCR chagnes of any form. 2842 is new, but with the status changed (I accepted the bug). Then I ran two queries. First I unselected everything, then in the "Bug Changes" box I selected: Only bugs changed in 2d with "[Bug creation]" ...

superreview granted: [Bug 180239] Manual "Run selected filter(s)" doesn' t work when multiple filters are selected.
David Bienvenu <bienvenu@nventure.com> has granted Karsten D=C3=BCsterloh <mnyromyr@tprac.de>'s request for superreview: Bug 180239: Manual "Run selected filter(s)" doesn't work when multiple filt= ers are selected. https://bugzilla.mozilla.org/show_bug.cgi?id=3D180239 Attachment 255714: fix index handling https://bugzilla.mozilla.org/attachment.cgi?id=3D255714&action=3Dedit ------- Additional Comments from David Bienvenu <bienvenu@nventure.com> thx, karsten!= ...

superreview requested: [Bug 180239] Manual "Run selected filter(s)" doesn' t work when multiple filters are selected.
Karsten D=C3=BCsterloh <mnyromyr@tprac.de> has asked David Bienvenu <bienvenu@nventure.com> for superreview: Bug 180239: Manual "Run selected filter(s)" doesn't work when multiple filt= ers are selected. https://bugzilla.mozilla.org/show_bug.cgi?id=3D180239 Attachment 255714: fix index handling https://bugzilla.mozilla.org/attachment.cgi?id=3D255714&action=3Dedit ------- Additional Comments from Karsten D=C3=BCsterloh <mnyromyr@tprac.de> This is so sad. For about 5 years nobody can't even have looked into the co= de, since the actual bug i...

"SELECT * From Patient where Patient.PatientId = PatientForm.PatientId and Patient.PatientId = '" & id & "'"
  is this statement correct? ("SELECT * From Patient where Patient.PatientId = PatientForm.PatientId and Patient.PatientId = '" & id & "'") Most likely PatentID has some sort of numeric data type so you should not use single quotes around the value to which it is being compared.  And you likely need to INNER JOIN PatientForm. However, do not concatente id directly onto the query.   This is very insecure and is opening up your site/server to a SQL Injection attack (see Bertrand LeRoy's blog post for more information). Instead use a Parameter, like this: ...

"select" only if there's a same record in the table
i have two tables A and B. relation is one to many for A. i want to select from A only if there are more than two records of A in table B and also checking some condition in table B. if the question's not very clear please let me know.-keeara g------------------ Substitute A_PK for whatever A's PK is and try the following: SELECT * FROM A WHERE EXISTS (SELECT B.A_PK FROM B WHERE B.A_PK = A.A_PK GROUP BY B.A_PK HAVING COUNT(*) >= 2) Adam MachanicSQL Server MVP...

Web resources about - Should FxOS's "select all" really be docshell's "select all" (which tries to select everything in the document)? - mozilla.dev.gaia

Resources last updated: 12/30/2015 5:30:16 AM