Closed
Bug 894883
Opened 12 years ago
Closed 12 years ago
Failure "The Add-ons Manager has been opened in a second tab - '1' should equal '2'' in /testAddons/testManagerKeyboardShortcut.js
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect, P3)
Tracking
(firefox23 fixed, firefox24 fixed, firefox25 fixed, firefox26 fixed, firefox-esr17 fixed)
People
(Reporter: cosmin-malutan, Assigned: cosmin-malutan)
References
()
Details
(Whiteboard: [mozmill-test-failure])
Attachments
(3 files)
|
1.10 KB,
patch
|
AndreeaMatei
:
review+
|
Details | Diff | Splinter Review |
|
1007 bytes,
patch
|
AndreeaMatei
:
review+
|
Details | Diff | Splinter Review |
|
1.12 KB,
patch
|
AndreeaMatei
:
review+
|
Details | Diff | Splinter Review |
Happened today on Windows 7 x64 with Aurora
Report
http://mozmill-ci.blargon7.com/#/functional/report/5aa1ca5e7015e3740d269dc947a837a0
I couldn't reproduce it locally neither manual or as testrun :
http://mozmill-crowd.blargon7.com/#/functional/report/5aa1ca5e7015e3740d269dc947abc7a0
Updated•12 years ago
|
Priority: -- → P3
Comment 1•12 years ago
|
||
I haven't seen this again on the old mozmill-ci, neither on mozmill-daily. Updating the url so we can keep track.
Please reopen if needed.
Assignee: nobody → cosmin.malutan
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Comment 2•12 years ago
|
||
Happened again on Windows 7 with Release zh-CN
http://mozmill-release.blargon7.com/#/functional/report/b7ef1fb3d9703aeaf2c46e07d2e74eeb
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 3•12 years ago
|
||
Is it reproducible with this locale?
| Assignee | ||
Comment 4•12 years ago
|
||
Yes, I will investigate this now.
| Assignee | ||
Comment 5•12 years ago
|
||
Hi, I investigated this and the reason why it fails is that the browser it checks if the tab is empty or not, and if it is will open the addonsManager tab in the same tab:
Here it checks the tab:
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#6266
Here it checks the url of tab:
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/utilityOverlay.js#46
We can solve this in different ways:
http://hg.mozilla.org/qa/mozmill-tests/file/default/tests/functional/testAddons/testManagerKeyboardShortcut.js#l33
1 - By doing a checking like the browser does before opening addons manager so if the page appears to be empty the tabs count we check should still be 1
2 - Before opening the addons manager, we could navigate to "mozilla.org" so the page will never be empty and the tabs count will be 2 every time if the addons manager tabs opens correctly
3 - By checking the active tab url to be "about:addons"
| Assignee | ||
Comment 6•12 years ago
|
||
I personally prefer the last one.
Comment 7•12 years ago
|
||
Second option is out of the question, the first I feel is too complicated for what this test is supposed to do. We have 2 behaviors when we open a page from a loaded tab or an empty tab, but it's tabs general behavior, not related to addons manager.
The last sounds good for what the test has to do.
| Assignee | ||
Comment 8•12 years ago
|
||
Reports:
http://mozmill-crowd.blargon7.com/#/functional/report/e503b7b0a70a3839c66c64572eb5e7bd
http://mozmill-crowd.blargon7.com/#/functional/report/e503b7b0a70a3839c66c64572eb42def
http://mozmill-crowd.blargon7.com/#/functional/report/e503b7b0a70a3839c66c64572eb60e89
Attachment #793398 -
Flags: review?(andreea.matei)
Comment 9•12 years ago
|
||
Comment on attachment 793398 [details] [diff] [review]
patch_v1.0
Review of attachment 793398 [details] [diff] [review]:
-----------------------------------------------------------------
Please make the commit message more general next time and add flags for what branches are affected here to backport.
http://hg.mozilla.org/qa/mozmill-tests/rev/e1728238c974 (default)
Attachment #793398 -
Flags: review?(andreea.matei) → review+
Comment 10•12 years ago
|
||
Comment on attachment 793398 [details] [diff] [review]
patch_v1.0
Review of attachment 793398 [details] [diff] [review]:
-----------------------------------------------------------------
::: tests/functional/testAddons/testManagerKeyboardShortcut.js
@@ +29,5 @@
> */
> function testKeyboardShortcut() {
> addonsManager.open({type: "shortcut"});
>
> + expect.equal(controller.tabs.activeTab.URL, "about:addons",
Please change that in a follow-up to ´.location´. URL is used internally and is not part of the DOM spec. Thanks.
| Assignee | ||
Comment 11•12 years ago
|
||
Here is the follow up patch.
Thanks.
Attachment #794618 -
Flags: review?(andrei.eftimie)
Attachment #794618 -
Flags: review?(andreea.matei)
Comment 12•12 years ago
|
||
Comment on attachment 794618 [details] [diff] [review]
follow-up patch
Review of attachment 794618 [details] [diff] [review]:
-----------------------------------------------------------------
Follow up landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/0a436bcfec07 (default)
Please flag the affected branches here and create a combined patch if necessary. Thanks.
Attachment #794618 -
Flags: review?(andrei.eftimie)
Attachment #794618 -
Flags: review?(andreea.matei)
Attachment #794618 -
Flags: review+
Updated•12 years ago
|
Status: REOPENED → ASSIGNED
status-firefox26:
--- → fixed
| Assignee | ||
Updated•12 years ago
|
status-firefox23:
--- → affected
status-firefox24:
--- → affected
status-firefox25:
--- → affected
status-firefox-esr17:
--- → affected
| Assignee | ||
Comment 13•12 years ago
|
||
This patch lands clearly on Esr, Aurora, Release and Beta and it fixes the bug
Attachment #795349 -
Flags: review?(andrei.eftimie)
Attachment #795349 -
Flags: review?(andreea.matei)
Comment 14•12 years ago
|
||
Comment on attachment 795349 [details] [diff] [review]
patch_v2.0
Review of attachment 795349 [details] [diff] [review]:
-----------------------------------------------------------------
http://hg.mozilla.org/qa/mozmill-tests/rev/55f48bc3f527 (aurora)
http://hg.mozilla.org/qa/mozmill-tests/rev/179c92b9fc4a (beta)
http://hg.mozilla.org/qa/mozmill-tests/rev/830178d0815d (release)
http://hg.mozilla.org/qa/mozmill-tests/rev/67d7968d462c (esr17)
Thanks Cosmin!
Attachment #795349 -
Flags: review?(andrei.eftimie)
Attachment #795349 -
Flags: review?(andreea.matei)
Attachment #795349 -
Flags: review+
Updated•12 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-test-failure]
Updated•6 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
•