Re: [xul-interop] “-moz-user-focus” doesn't wo rk?
Tom Brito <[email protected]> Thu, 20 Jan 2011 13:52:29 -0200
| Newsgroups | gmane.comp.lang.xul.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0582108310495739168== Content-Type: multipart/alternative; boundary=0016363b9d3a3c98be049a492036 --0016363b9d3a3c98be049a492036 Content-Type: text/plain; charset=ISO-8859-1 Both "none" and "ignore" do nothing. "disabled" does nothing to the gui, and prints an error on the jsconsole: Warning: Error in parsing value for '-moz-user-focus'. Declaration dropped. Source File: chrome://ignorefocustest/content/ignorefocustest.xul Line: 0 * Wellington B. de Carvalho * On Thu, Jan 20, 2011 at 1:46 PM, Evgeny <[email protected]> wrote: > try > -moz-user-select: none; > -moz-user-input: disabled; > > > On Wed, Jan 19, 2011 at 8:54 PM, Tom Brito <[email protected]> wrote: > >> sorry, I mean "-moz-user-focus: ignore;" not "-moz-user-focus: none;" >> I tried both, but it didn't work. >> >> >> >> * >> Wellington B. de Carvalho >> * >> >> >> >> On Wed, Jan 19, 2011 at 3:50 PM, Tom Brito <[email protected]> wrote: >> >>> I've made this sample: >>> >>> >>> <?xml version="1.0"?> >>> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> >>> >>> <window width="400" height="300" >>> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul >>> "> >>> >>> <textbox id="textBox1"/> >>> <textbox id="textBox2" style="-moz-user-focus: none;"/> >>> <textbox id="textBox3"/> >>> </window> >>> >>> >>> And, at least here, the style applied to the second textbox is doing >>> nothing. I expected it to avoid the user focus, as the doc<https://developer.mozilla.org/en/CSS/-moz-user-focus> >>> says. >>> >>> >>> Does someone more experience this? >>> >>> att, >>> >>> * >>> Wellington B. de Carvalho >>> * >>> >> >> >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> XUL News Wire - http://xulnews.com >> XUL Job Postings - http://xuljobs.com >> Open XUL Alliance - http://xulalliance.org >> _______________________________________________ >> xul-talk mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/xul-talk >> >> > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > XUL News Wire - http://xulnews.com > XUL Job Postings - http://xuljobs.com > Open XUL Alliance - http://xulalliance.org > _______________________________________________ > xul-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xul-talk > > --0016363b9d3a3c98be049a492036 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>Both "none" and "ignore" do nothing.</div><div><br= ></div><div>"disabled" does nothing to the gui, and prints an err= or on the jsconsole:</div><div><br></div><div>Warning: Error in parsing val= ue for '-moz-user-focus'. =A0Declaration dropped.</div> <div>Source File: chrome://ignorefocustest/content/ignorefocustest.xul</div= ><div>Line: 0</div><div><br></div><div><br></div><i><div style=3D"text-alig= n:left"><span style=3D"font-style:normal"><i>Wellington B. de Carvalho</i><= /span></div> </i><br> <br><br><div class=3D"gmail_quote">On Thu, Jan 20, 2011 at 1:46 PM, Evgeny = <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">[email protected]<= /a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:= 0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div>try=A0<br></div><div>-moz-user-select: none;<br> -moz-user-= input: disabled;<br></div><div><br></div><br><div class=3D"gmail_quote"><di= v><div></div><div class=3D"h5">On Wed, Jan 19, 2011 at 8:54 PM, Tom Brito <= span dir=3D"ltr"><<a href=3D"http://brito.pro" target=3D"_blank">brito.p= ro</a>@<a href=3D"http://gmail.com" target=3D"_blank">gmail.com</a>></sp= an> wrote:<br> </div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo= rder-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class=3D"h5= ">sorry, I mean=A0"-moz-user-focus: ignore;" not=A0"-moz-use= r-focus: none;"<br clear=3D"all"> <div>I tried both, but it didn't work.</div> <div><br></div><div><br></div><div><br></div><i><div style=3D"text-align:le= ft"> <span style=3D"font-style:normal"><i>Wellington B. de Carvalho</i></span></= div></i><div><div><br> <br><br><div class=3D"gmail_quote">On Wed, Jan 19, 2011 at 3:50 PM, Tom Bri= to <span dir=3D"ltr"><<a href=3D"http://brito.pro" target=3D"_blank">bri= to.pro</a>@<a href=3D"http://gmail.com" target=3D"_blank">gmail.com</a>>= </span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div><span style=3D"font-family:Arial, 'Liberation Sans', 'Deja= Vu Sans', sans-serif;font-size:14px;border-collapse:collapse;line-heigh= t:18px">I've made this sample:</span></div> <p style=3D"margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0= px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;bo= rder-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-le= ft-width:0px;border-style:initial;border-color:initial;vertical-align:basel= ine;background-color:transparent;clear:both;word-wrap:break-word"> <br><font face=3D"'courier new', monospace"><?xml version=3D&quo= t;1.0"?><br><?xml-stylesheet href=3D"chrome://global/skin/&= quot; type=3D"text/css"?><br><br><window width=3D"400&= quot; height=3D"300"<br> =A0=A0 =A0xmlns=3D"<a href=3D"http://www.mozilla.org/keymaster/gatekee= per/there.is.only.xul" target=3D"_blank">http://www.mozilla.org/keymaster/g= atekeeper/there.is.only.xul</a>"><br><br>=A0=A0 =A0 =A0 =A0 =A0 =A0= <textbox id=3D"textBox1"/><br> =A0=A0 =A0 =A0 =A0 =A0 =A0<textbox id=3D"textBox2" style=3D&qu= ot;-moz-user-focus: none;"/><br>=A0=A0 =A0 =A0 =A0 =A0 =A0<textb= ox id=3D"textBox3"/><br></window></font></p><p style=3D"= margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-t= op:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-wid= th:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px= ;border-style:initial;border-color:initial;vertical-align:baseline;backgrou= nd-color:transparent;clear:both;word-wrap:break-word"> <br><span style=3D"border-collapse:collapse;line-height:18px;font-size:14px= ;font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-= serif">And, at least here, the style applied to the second textbox is doing= nothing. I expected it to avoid the user focus, as the=A0</span><a href=3D= "https://developer.mozilla.org/en/CSS/-moz-user-focus" rel=3D"nofollow" sty= le=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;pad= ding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-t= op-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-wid= th:0px;border-style:initial;border-color:initial;font-size:14px;vertical-al= ign:baseline;background-color:transparent;color:rgb(0, 119, 204);text-decor= ation:none;border-collapse:collapse;font-family:Arial, 'Liberation Sans= ', 'DejaVu Sans', sans-serif;line-height:18px" target=3D"_blank= ">doc</a><font face=3D"Arial, 'Liberation Sans', 'DejaVu Sans&#= 39;, sans-serif"><span style=3D"border-collapse:collapse;line-height:18px;f= ont-size:14px">=A0says.</span></font></p> <p style=3D"margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0= px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;bo= rder-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-le= ft-width:0px;border-style:initial;border-color:initial;vertical-align:basel= ine;background-color:transparent;clear:both;word-wrap:break-word"> <font face=3D"Arial, 'Liberation Sans', 'DejaVu Sans', sans= -serif"><span style=3D"border-collapse:collapse;line-height:18px;font-size:= 14px"><br></span></font></p> <p style=3D"margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0= px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;bo= rder-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-le= ft-width:0px;border-style:initial;border-color:initial;vertical-align:basel= ine;background-color:transparent;clear:both;word-wrap:break-word"> <font face=3D"Arial, 'Liberation Sans', 'DejaVu Sans', sans= -serif"><span style=3D"border-collapse:collapse;font-size:14px;line-height:= 18px">Does someone more experience this?</span></font></p> <div><br></div><div>att,</div><div><br></div><i><div style=3D"text-align:le= ft"><span style=3D"font-style:normal"><i>Wellington B. de Carvalho</i></spa= n></div></i><br> </blockquote></div><br> </div></div><br></div></div>-----------------------------------------------= -------------------------------<br> Protect Your Site and Customers from Malware Attacks<br> Learn about various malware tactics and how to avoid them. Understand<br> malware threats, the impact they can have on your business, and how you<br> can protect your company and customers by using code signing.<br> <a href=3D"http://p.sf.net/sfu/oracle-sfdevnl" target=3D"_blank">http://p.s= f.net/sfu/oracle-sfdevnl</a><br>___________________________________________= ____<br> XUL News Wire =A0 =A0 =A0- <a href=3D"http://xulnews.com" target=3D"_blank"= >http://xulnews.com</a><br> XUL Job Postings =A0 - <a href=3D"http://xuljobs.com" target=3D"_blank">htt= p://xuljobs.com</a><br> Open XUL Alliance - <a href=3D"http://xulalliance.org" target=3D"_blank">ht= tp://xulalliance.org</a><br> _______________________________________________<br> xul-talk mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">xul-tal= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/xul-talk" target=3D= "_blank">https://lists.sourceforge.net/lists/listinfo/xul-talk</a><br> <br></blockquote></div><br> <br>-----------------------------------------------------------------------= -------<br> Protect Your Site and Customers from Malware Attacks<br> Learn about various malware tactics and how to avoid them. Understand<br> malware threats, the impact they can have on your business, and how you<br> can protect your company and customers by using code signing.<br> <a href=3D"http://p.sf.net/sfu/oracle-sfdevnl" target=3D"_blank">http://p.s= f.net/sfu/oracle-sfdevnl</a><br>___________________________________________= ____<br> XUL News Wire =A0 =A0 =A0- <a href=3D"http://xulnews.com" target=3D"_blank"= >http://xulnews.com</a><br> XUL Job Postings =A0 - <a href=3D"http://xuljobs.com" target=3D"_blank">htt= p://xuljobs.com</a><br> Open XUL Alliance - <a href=3D"http://xulalliance.org" target=3D"_blank">ht= tp://xulalliance.org</a><br> _______________________________________________<br> xul-talk mailing list<br> <a href=3D"mailto:[email protected]">[email protected]= e.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/xul-talk" target=3D= "_blank">https://lists.sourceforge.net/lists/listinfo/xul-talk</a><br> <br></blockquote></div><br> --0016363b9d3a3c98be049a492036-- --===============0582108310495739168== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl --===============0582108310495739168== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XUL News Wire - http://xulnews.com XUL Job Postings - http://xuljobs.com Open XUL Alliance - http://xulalliance.org _______________________________________________ xul-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xul-talk --===============0582108310495739168==--