Closed
Bug 1097419
Opened 10 years ago
Closed 10 years ago
[Calendar][Text Selection] Selection bubble doesn't appear on account login
Categories
(Core :: DOM: Selection, defect, P2)
Core
DOM: Selection
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: m_kato, Assigned: mtseng)
References
Details
Attachments
(2 files, 5 obsolete files)
2.80 KB,
patch
|
kanru
:
review+
|
Details | Diff | Splinter Review |
12.33 KB,
patch
|
kanru
:
review+
|
Details | Diff | Splinter Review |
I think z-index seems to be too large for oauth2 screen. Please adjust z-index for text selection bubble.
Also, z-index will be incremented by bug 1095320.
- Step
1. Launch Calendar
2. Open [Calendar Settings]
3. Tap [Accounts]
4. Tap [Google]
5. Tap [Email] field, then input 'aaa'
6. Long tap 'aaa' to launch selection bubble
- Result
Selection bubble disappears
- Expected Result
Selection bubble appears
Updated•10 years ago
|
Priority: -- → P2
Comment 3•10 years ago
|
||
This issue is still existed on master.
Comment 4•10 years ago
|
||
George, I think this is zorder issue becasue I saw gecko did send out the selectionstatechange to sys app.
Flags: needinfo?(gduan)
Comment 5•10 years ago
|
||
In today's build, I put console.log in
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/text_selection_dialog.js#L119
but I cannot get any msg, so, I assume gaia cannot get selectionstatechanged event from gecko too.
Flags: needinfo?(gduan)
Comment 6•10 years ago
|
||
(In reply to George Duan [:gduan] [:喬智] from comment #5)
> In today's build, I put console.log in
> https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/
> text_selection_dialog.js#L119
> but I cannot get any msg, so, I assume gaia cannot get selectionstatechanged
> event from gecko too.
After checking, the event couldn't pass successfully from BrowserElementParent to Shell.js. That's why gaia couldn't receive the dom event changes.
Comment 8•10 years ago
|
||
doesn't look like this bug belongs to the calendar team (since it also happens on email). we should assign it to the correct team.
Flags: needinfo?(gduan)
Updated•10 years ago
|
Component: Gaia::Calendar → Selection
Flags: needinfo?(gduan)
Product: Firefox OS → Core
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → mtseng
Assignee | ||
Comment 9•10 years ago
|
||
I'll add a mochitest for this bug later.
Assignee | ||
Comment 10•10 years ago
|
||
Update commit message
Attachment #8539036 -
Attachment is obsolete: true
Attachment #8539152 -
Flags: review?(fabrice)
Assignee | ||
Comment 11•10 years ago
|
||
Attachment #8539153 -
Flags: review?(fabrice)
Assignee | ||
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Comment on attachment 8539152 [details] [diff] [review]
Part 1: Handle nested mozbrowser iframe for selectionstatechanged, touchcarettap and scrollviewchange v2.
Review of attachment 8539152 [details] [diff] [review]:
-----------------------------------------------------------------
Redirecting to Kan-Ru since he owns this code!
Attachment #8539152 -
Flags: review?(fabrice) → review?(kchen)
Comment 14•10 years ago
|
||
Comment on attachment 8539153 [details] [diff] [review]
Part 2: Add mochitest for nested mozbrowser iframe case.
Review of attachment 8539153 [details] [diff] [review]:
-----------------------------------------------------------------
Redirecting to Kan-Ru since he owns this code!
Attachment #8539153 -
Flags: review?(fabrice) → review?(kchen)
Comment 15•10 years ago
|
||
Comment on attachment 8539153 [details] [diff] [review]
Part 2: Add mochitest for nested mozbrowser iframe case.
Review of attachment 8539153 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/browser-element/mochitest/browserElement_CopyPaste.js
@@ +14,5 @@
> +// Give our origin permission to open browsers, and remove it when the test is complete.
> +var principal = SpecialPowers.wrap(document).nodePrincipal;
> +SpecialPowers.addPermission("browser", true, { url: SpecialPowers.wrap(principal.URI).spec,
> + appId: principal.appId,
> + isInBrowserElement: true });
Could you use SpecialPowers.pushPermissions?
Attachment #8539153 -
Flags: review?(kchen) → review+
Comment 16•10 years ago
|
||
Comment on attachment 8539152 [details] [diff] [review]
Part 1: Handle nested mozbrowser iframe for selectionstatechanged, touchcarettap and scrollviewchange v2.
Review of attachment 8539152 [details] [diff] [review]:
-----------------------------------------------------------------
Does that mean multiple BrowserParents could receive these events? Is that expected?
Assignee | ||
Comment 17•10 years ago
|
||
Set useCapture to ture, so nested mozbrowser iframe would send selectionstatechanged, touchcarettap and scrollviewchange event to top most mozbrowser iframe only.
Attachment #8539152 -
Attachment is obsolete: true
Attachment #8539152 -
Flags: review?(kchen)
Attachment #8540604 -
Flags: review?(kchen)
Assignee | ||
Comment 18•10 years ago
|
||
Addressed to reviewer's comment.
Attachment #8539153 -
Attachment is obsolete: true
Assignee | ||
Comment 19•10 years ago
|
||
(In reply to Kan-Ru Chen [:kanru] from comment #16)
> Comment on attachment 8539152 [details] [diff] [review]
> Part 1: Handle nested mozbrowser iframe for selectionstatechanged,
> touchcarettap and scrollviewchange v2.
>
> Review of attachment 8539152 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Does that mean multiple BrowserParents could receive these events? Is that
> expected?
No, this is not expected. I updated my patch to address this problem. Could you review it again? Thanks!
Comment 20•10 years ago
|
||
Comment on attachment 8540605 [details] [diff] [review]
Part 2: Add mochitest for nested mozbrowser iframe case v2. (carry r+: kanru)
Review of attachment 8540605 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/browser-element/mochitest/browserElement_CopyPaste.js
@@ +16,5 @@
> +var context = { 'url': SpecialPowers.wrap(principal.URI).spec,
> + 'appId': principal.appId,
> + 'isInBrowserElement': true };
> +SpecialPowers.pushPermissions([
> + {'type': 'browser', 'allow': 1, 'context': context}]);
Sorry, this is not correct. SpecialPowers.pushPermissions needs a callback as second argument. Usually it's the runTest function.
In this test you could use
addEventListener('testready', function() {
SpecialPowers.pushPermissions([
{'type': 'browser', 'allow': 1, 'context': context}
], runTest);
});
Attachment #8540605 -
Flags: review-
Assignee | ||
Comment 21•10 years ago
|
||
Use callback of pushPermissions to run test.
Attachment #8540605 -
Attachment is obsolete: true
Attachment #8541038 -
Flags: review?(kchen)
Updated•10 years ago
|
Attachment #8540604 -
Flags: review?(kchen) → review+
Updated•10 years ago
|
Attachment #8541038 -
Flags: review?(kchen) → review+
Comment 23•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/28714f577de0
https://hg.mozilla.org/integration/mozilla-inbound/rev/e85722c30be3
Flags: in-testsuite+
Keywords: checkin-needed
Comment 24•10 years ago
|
||
Backed out for B2G mochitest timeouts.
https://hg.mozilla.org/integration/mozilla-inbound/rev/088cfed82c74
https://treeherder.mozilla.org/logviewer.html#?job_id=4957550&repo=mozilla-inbound
08:44:37 INFO - 508 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_CopyPaste.html | A valid string reason is expected
08:44:37 INFO - 509 INFO TEST-PASS | dom/browser-element/mochitest/test_browserElement_inproc_CopyPaste.html | Reason cannot be empty
08:44:37 INFO - 510 INFO TEST-UNEXPECTED-FAIL | dom/browser-element/mochitest/test_browserElement_inproc_CopyPaste.html | Test timed out. - expected PASS
Same for OOP.
Assignee | ||
Comment 25•10 years ago
|
||
Fix b2g emulator test fail.
Attachment #8541038 -
Attachment is obsolete: true
Assignee | ||
Comment 26•10 years ago
|
||
Comment on attachment 8543867 [details] [diff] [review]
Part 2: Add mochitest for nested mozbrowser iframe case v4.
Kanru, Please review it again. Thanks
The main difference is adding a "isChildProcess" function and check it at testSelectAll function.
Attachment #8543867 -
Flags: review?(kchen)
Updated•10 years ago
|
Attachment #8543867 -
Flags: review?(kchen) → review+
Assignee | ||
Comment 27•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 28•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8e5920cdf87b
https://hg.mozilla.org/integration/mozilla-inbound/rev/496546af038e
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8e5920cdf87b
https://hg.mozilla.org/mozilla-central/rev/496546af038e
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•