Closed
Bug 957646
Opened 10 years ago
Closed 10 years ago
Selection monocles sometimes don't display when tapping text ion the nav bar
Categories
(Firefox for Metro Graveyard :: Input, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 30
People
(Reporter: jimm, Assigned: azasypkin)
References
Details
(Whiteboard: [selection] p=2 s=it-30c-29a-28b.1 r=ff30)
Attachments
(1 file, 2 obsolete files)
15.01 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
str: 1) load a tab 2) bring up the nav bar and tap url text result: 1 out of every 10 taps doesn't get selection monocles.
Updated•10 years ago
|
Blocks: metrobacklog
Whiteboard: p=2 → [selection] [defect] p=2
Updated•10 years ago
|
Priority: -- → P3
Updated•10 years ago
|
Target Milestone: --- → Firefox 30
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → azasypkin
Updated•10 years ago
|
Status: NEW → ASSIGNED
Priority: P3 → P2
QA Contact: jbecerra
Whiteboard: [selection] [defect] p=2 → [selection] [defect] p=2 s=it-30c-29a-28b.1
Assignee | ||
Comment 1•10 years ago
|
||
Here is general idea suggested by mbrubeck: we can use click\target directly to attach selection instead of detecting it via client coordinates(that may result into errors due to fluffing). Currently I'm passing both client coordinates and appropriate targets at the same time as selection processing code is reused by both chrome and content. Also as component intercommunication is based on message manager(sendAsyncMessage) that accepts only serializable parameters, target elements can't be passed this way. So, currently it works only for components that pass messages via SelectionPrototype's descendants (ex. Chrome inputs\textboxes). For the rest of cases coordinates are used. Probably passing target node references via CPOWs once browser.tabs.remote is turned on would work. Specifically to urlbar: we still recreate moncles twice, the first time via urlbar click handler and the second time via window.click handler. What are your thoughts on that, Jim?
Attachment #8371498 -
Flags: feedback?(jmathies)
Updated•10 years ago
|
Whiteboard: [selection] [defect] p=2 s=it-30c-29a-28b.1 → [selection] p=2 s=it-30c-29a-28b.1 r=ff30
Target Milestone: Firefox 30 → ---
Assignee | ||
Comment 2•10 years ago
|
||
Some updates after deeper testing to unify selection attachment + removed workaround code for bug 925457 - can't really reproduce it with the latest changes. Current tests are passing.
Attachment #8371498 -
Attachment is obsolete: true
Attachment #8371498 -
Flags: feedback?(jmathies)
Attachment #8373607 -
Flags: feedback?(jmathies)
Reporter | ||
Comment 3•10 years ago
|
||
Comment on attachment 8373607 [details] [diff] [review] urlbar v2.diff Review of attachment 8373607 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/metro/base/content/contenthandlers/SelectionHandler.js @@ +496,5 @@ > this._onSelectionStart(json); > break; > > case "Browser:SelectionAttach": > + this._onSelectionAttach(json.xPos, json.yPos, json.target); is json.target valid here?
Assignee | ||
Comment 4•10 years ago
|
||
Yeah, almost every change (except one related to workaround for bug 925457) under contenthandlers folder should be reverted if we don't have way to pass "content" target reference via sendAsyncMessage. I found only one way via CPOWs, but it depends on e10s, just wanted to get your feedback first in case you know one more way to pass "content" target reference.
Reporter | ||
Comment 5•10 years ago
|
||
(In reply to Oleg Zasypkin [:azasypkin] from comment #4) > Yeah, almost every change (except one related to workaround for bug 925457) > under contenthandlers folder should be reverted if we don't have way to pass > "content" target reference via sendAsyncMessage. I found only one way via > CPOWs, but it depends on e10s, just wanted to get your feedback first in > case you know one more way to pass "content" target reference. I don't think we would ever need to. Once we switch to e10s, front end won't have references to content elements to send. Everything will have to happen over in the content process. Since we share some code here with the chrome process via ChromeSelectionHandler those we may occasionally pass an element, which is fine. I just want to make sure the processing of those json.targets in the case where they aren't valid doesn't break anything.
Assignee | ||
Comment 6•10 years ago
|
||
Ok, thanks, anyway we will have to replace elementFromPoint invocations with actual targets where it's possible to deal better with fluffing. I reverted unused changes from content related files to avoid confusion. Also I was looking into patches related to bug 925457 workaround and didn't notice any tests for that, so there is a high risk of regression in case I remove that, so I reverted it back too. Now patch contains only chrome related changes.
Attachment #8373607 -
Attachment is obsolete: true
Attachment #8373607 -
Flags: feedback?(jmathies)
Attachment #8374005 -
Flags: feedback?(jmathies)
Reporter | ||
Updated•10 years ago
|
Attachment #8374005 -
Flags: feedback?(jmathies) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Thanks for review! TRY tests have passed: https://tbpl.mozilla.org/?tree=Try&rev=1726b46a068b
Keywords: checkin-needed
Comment 8•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/66fd6bc61c56 Just a friendly reminder that your commit message should be summarizing what the patch is doing, not just restating the problem it's trying to fix.
Keywords: checkin-needed
Whiteboard: [selection] p=2 s=it-30c-29a-28b.1 r=ff30 → [selection] p=2 s=it-30c-29a-28b.1 r=ff30[fixed-in-fx-team]
Comment 9•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/66fd6bc61c56
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [selection] p=2 s=it-30c-29a-28b.1 r=ff30[fixed-in-fx-team] → [selection] p=2 s=it-30c-29a-28b.1 r=ff30
Target Milestone: --- → Firefox 30
Comment 10•10 years ago
|
||
Went through the verification process for Nightly without any issues, used the following build: - http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014-02-14-03-02-02-mozilla-central/ Reproduced the original issue before testing, used the following build: - http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014/01/2014-01-08-03-02-03-mozilla-central/ - Went through the original test case from comment #0 without any issues - Used both long and short URLs and ensured that the monocles are appearing every single time the URL text is selected - Ensured that the monocles are behaving correctly once they appear inside the URL text field - Went through the above test cases in several different variations of snapped view without issues - Taped the URL text field at least 200+ times and ensured that the monocles appeared every single time Jim, should this patch be uplifted as this seems important? If it's not being uplifted, I will change the status to verified.
Flags: needinfo?(jmathies)
Reporter | ||
Comment 11•10 years ago
|
||
depends on how serious bug 972428 is I guess.
Flags: needinfo?(jmathies)
Comment 12•10 years ago
|
||
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0 Build ID: 20140219030203 Verified as fixed on latest Nightly.
Updated•10 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•