Closed
Bug 969397
Opened 12 years ago
Closed 12 years ago
Update openTab() and closeTab() from tabs.js in Metro library to wait for the tab animation event
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect, P2)
Tracking
(firefox28 wontfix, firefox29 wontfix, firefox30 fixed)
RESOLVED
FIXED
People
(Reporter: danisielm, Assigned: danisielm)
References
Details
(Whiteboard: [metro])
Attachments
(1 file, 1 obsolete file)
As we see in our library, in tabs.js , the events TabOpen and TabClose doesn't actually waits for the tab animation to finish. What we need here is to find an event to wait for, or another solution for this.
https://hg.mozilla.org/qa/mozmill-tests/file/cbd1d6fa1f51/metrofirefox/lib/ui/tabs.js#l222
https://hg.mozilla.org/qa/mozmill-tests/file/cbd1d6fa1f51/metrofirefox/lib/ui/tabs.js#l283
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → daniel.gherasim
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•12 years ago
|
||
Details about the patch:
For waiting for the animation we used the animationend that triggers in both close & open tabs cases, as we can see here:
http://mxr.mozilla.org/mozilla-central/source/browser/metro/base/content/browser-ui.js#475
Attachment #8373214 -
Flags: review?(andrei.eftimie)
Attachment #8373214 -
Flags: review?(andreea.matei)
Comment 2•12 years ago
|
||
Comment on attachment 8373214 [details] [diff] [review]
waitForAnimation_Tabs_v1.patch
Review of attachment 8373214 [details] [diff] [review]:
-----------------------------------------------------------------
Great work Daniel.
Just 3 small nits:
Please update the commit message with a reviewer (r=aeftimie should be fine in this case)
::: metrofirefox/lib/ui/tabs.js
@@ +21,5 @@
> assert.fail("A valid controller must be specified");
> }
>
> this._controller = aController;
> + this._tabs = this.getElement({type: "tabsContainer"});
Wondering if we shouldn't name this _tabsContainer to avoid any potential confusion.
Also since we are always using the node, we could cache the node directly.
So this might be named _tabsContainerNode
@@ +229,5 @@
> + animationend: false
> + };
> +
> + function checkTabOpened() { self.opened = true; }
> + function checkTabAnimationend() { self.animationend = true; }
I do have 1 nit. Please update the name so its properly camelcased: checkTabAnimationEnd
Attachment #8373214 -
Flags: review?(andrei.eftimie)
Attachment #8373214 -
Flags: review?(andreea.matei)
Attachment #8373214 -
Flags: review-
| Assignee | ||
Comment 3•12 years ago
|
||
Thanks,
I updated the patch with the requested changes.
Attachment #8373214 -
Attachment is obsolete: true
Attachment #8373349 -
Flags: review?(andrei.eftimie)
Attachment #8373349 -
Flags: review?(andreea.matei)
Updated•12 years ago
|
Priority: -- → P2
Comment 4•12 years ago
|
||
Comment on attachment 8373349 [details] [diff] [review]
waitForAnimation_Tabs_v1.1.patch
Review of attachment 8373349 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Henrik, do you want to take a quick look to this patch?
Attachment #8373349 -
Flags: review?(hskupin)
Attachment #8373349 -
Flags: review?(andrei.eftimie)
Attachment #8373349 -
Flags: review?(andreea.matei)
Attachment #8373349 -
Flags: review+
Comment 5•12 years ago
|
||
Comment on attachment 8373349 [details] [diff] [review]
waitForAnimation_Tabs_v1.1.patch
Review of attachment 8373349 [details] [diff] [review]:
-----------------------------------------------------------------
That looks fine and I'm happy to see this fixed soon. Thanks.
Attachment #8373349 -
Flags: review?(hskupin) → review+
Comment 6•12 years ago
|
||
Comment on attachment 8373349 [details] [diff] [review]
waitForAnimation_Tabs_v1.1.patch
Review of attachment 8373349 [details] [diff] [review]:
-----------------------------------------------------------------
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/0748f762468e (default)
Attachment #8373349 -
Flags: checkin+
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
status-firefox30:
--- → fixed
Resolution: --- → FIXED
Comment 7•12 years ago
|
||
This bug is not completely fixed. We have to backport the patch up to beta.
Status: RESOLVED → REOPENED
status-firefox28:
--- → affected
status-firefox29:
--- → affected
Resolution: FIXED → ---
| Assignee | ||
Comment 8•12 years ago
|
||
For now we are not going to backport this.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•