Closed Bug 1126744 Opened 10 years ago Closed 10 years ago

Test failure 'tab.getNode(...) is null' in testAddons/testPluginDisableAffectsAboutPlugins.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

Version 3
defect
Not set
normal

Tracking

(firefox35 fixed, firefox36 fixed, firefox37 fixed, firefox38 fixed, firefox-esr31 wontfix)

RESOLVED FIXED
Tracking Status
firefox35 --- fixed
firefox36 --- fixed
firefox37 --- fixed
firefox38 --- fixed
firefox-esr31 --- wontfix

People

(Reporter: daniela.domnici, Assigned: teodruta)

References

()

Details

(Whiteboard: [mozmill-test-failure])

Attachments

(6 files, 6 obsolete files)

1.14 KB, patch
AndreeaMatei
: review+
Details | Diff | Splinter Review
1.25 KB, patch
AndreeaMatei
: review+
mihaelav
: review+
Details | Diff | Splinter Review
1.32 KB, patch
mihaelav
: review+
Details | Diff | Splinter Review
2.21 KB, patch
AndreeaMatei
: review+
Details | Diff | Splinter Review
2.30 KB, patch
AndreeaMatei
: review+
Details | Diff | Splinter Review
1.45 KB, patch
AndreeaMatei
: review+
Details | Diff | Splinter Review
Module: testDisableEnablePlugin Test: /testAddons/testPluginDisableAffectsAboutPlugins.js Errors: tab.getNode(...) is null aIndex is not defined Branches:Nightly(38.0a1), Aurora(37.0a2),esr31(31.4.0esrpre) Platforms: All Reports: http://mozmill-daily.blargon7.com/#/functional/failure?app=Firefox&branch=All&platform=All&from=2015-01-27&to=2015-01-28&test=%2FtestAddons%2FtestPluginDisableAffectsAboutPlugins.js&func=testDisableEnablePlugin
Attached patch patch_V1 (obsolete) — Splinter Review
created skip patch for the nightly branch
Attachment #8555802 - Flags: review?(mihaela.velimiroviciu)
Attachment #8555802 - Flags: review?(andreea.matei)
Comment on attachment 8555802 [details] [diff] [review] patch_V1 Review of attachment 8555802 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/functional/testAddons/manifest.ini @@ +8,5 @@ > [testInstallUninstallSoftBlocklistedExtension.js] > [testInstallUninstallTheme.js] > [testManagerKeyboardShortcut.js] > [testPluginDisableAffectsAboutPlugins.js] > +disabled = Bug 1126744 -Bug 1126744 - Test failure 'tab.getNode(...) is null' Please remove one bug no.
Attachment #8555802 - Flags: review?(mihaela.velimiroviciu)
Attachment #8555802 - Flags: review?(andreea.matei)
Attachment #8555802 - Flags: review-
Attached patch patch_V2Splinter Review
Updated patch.Also, the patch applies to aurora branch.
Attachment #8555802 - Attachment is obsolete: true
Attachment #8555804 - Flags: review?(mihaela.velimiroviciu)
Attachment #8555804 - Flags: review?(andreea.matei)
Attachment #8555804 - Flags: review?(mihaela.velimiroviciu)
Attachment #8555804 - Flags: review?(andreea.matei)
Attachment #8555804 - Flags: review+
Teodor is looking into this, might be related to his changes in tabs.js
Assignee: nobody → teodor.druta
Status: NEW → ASSIGNED
Blocks: 1122516
OS: Linux → All
Hardware: x86_64 → All
Summary: Test failure 'tab.getNode(...) is null' , 'aIndex is not defined' in testAddons/testPluginDisableAffectsAboutPlugins.js → Test failure 'tab.getNode(...) is null' in testAddons/testPluginDisableAffectsAboutPlugins.js
Attached patch fixtestplugindisabled.patch (obsolete) — Splinter Review
:( As Cosmin pointed out the Addons Manager (about:addons) will open differently in two cases: * If the active tab is a 'clean' about:newtab, about:home or about:blank page with no history, it will open in the active tab directly. * If the active tab is any another page or either an about:* page with history it will open a new tab. So, the closeAllTabs() method now works differently in the way that it opens a new clean tab with no history and then closes all the other tabs. The old method closed all tabs besides one and then just opened 'about:newtab' in the last remaining tab, resulting in a 'dirty' with history 'about'newtab' page. No other tests seem to be affected by this change.
Attachment #8555834 - Flags: review?(andreea.matei)
Comment on attachment 8555834 [details] [diff] [review] fixtestplugindisabled.patch Review of attachment 8555834 [details] [diff] [review]: ----------------------------------------------------------------- This should really be handled in the addon manager class. It's just a workaround here for this specific test.
Attachment #8555834 - Flags: review?(andreea.matei) → review-
Well, disregard my last comment. I did a quick check on this test and it assumes that about:addons is handled in a second tab, right? We should kill this assumption, given that we have a clean state at the beginning. In any case if we want to flip back to about:newtab, the situation will be different again. So lets open about:blank explicitly before opening the addon manager, and adding a comment why we have to do that. This will be cleaner and more stable.
Attached patch fixtestplugindisabledv2.patch (obsolete) — Splinter Review
(In reply to Henrik Skupin (:whimboo) from comment #8) > So lets open about:blank explicitly before opening the addon manager, and > adding a comment why we have to do that. This will be cleaner and more > stable. Actually opening about:blank in a clean about:newtab page will leave the page history empty, so I decided to open about:home instead, before opening the addon manager.
Attachment #8555834 - Attachment is obsolete: true
Attachment #8556392 - Flags: review?(mihaela.velimiroviciu)
Attachment #8556392 - Flags: review?(andreea.matei)
Attachment #8556392 - Flags: feedback?(hskupin)
Attached patch fixtestplugindisabledv2.patch (obsolete) — Splinter Review
sorry, forgot to save the file in my text editor after a change.
Attachment #8556392 - Attachment is obsolete: true
Attachment #8556392 - Flags: review?(mihaela.velimiroviciu)
Attachment #8556392 - Flags: review?(andreea.matei)
Attachment #8556392 - Flags: feedback?(hskupin)
Attachment #8556394 - Flags: review?(mihaela.velimiroviciu)
Attachment #8556394 - Flags: review?(andreea.matei)
Attachment #8556394 - Flags: feedback?(hskupin)
Comment on attachment 8556394 [details] [diff] [review] fixtestplugindisabledv2.patch Review of attachment 8556394 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #8556394 - Flags: review?(mihaela.velimiroviciu) → review+
Please either land the fix patch or skip this test on mozilla-release and mozilla-beta ASAP.
Comment on attachment 8556394 [details] [diff] [review] fixtestplugindisabledv2.patch Review of attachment 8556394 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/functional/testAddons/testPluginDisableAffectsAboutPlugins.js @@ +63,1 @@ > addonsManager.open(); I think you misunderstood my last review comments. The AOM does not need any kind of history. Loading about:blank was meant that the AOM opens in the exact same tab, but no new tabs gets opened.
Attachment #8556394 - Flags: review?(andreea.matei)
Attachment #8556394 - Flags: review-
Attachment #8556394 - Flags: feedback?(hskupin)
(In reply to Henrik Skupin (:whimboo) from comment #13) > Comment on attachment 8556394 [details] [diff] [review] > fixtestplugindisabledv2.patch > > Review of attachment 8556394 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: > firefox/tests/functional/testAddons/testPluginDisableAffectsAboutPlugins.js > @@ +63,1 @@ > > addonsManager.open(); > > I think you misunderstood my last review comments. The AOM does not need any > kind of history. Loading about:blank was meant that the AOM opens in the > exact same tab, but no new tabs gets opened. In that case I don't think we need to open about:blank here, we can just open directly the AOM in the about:newtab tab, that remains from calling the closeAllTabs() method.
Attached patch patch_V1_betaSplinter Review
Created the skip patch for the beta branch to avoid the multiple failures for the beta day.
Attachment #8556483 - Flags: review?(mihaela.velimiroviciu)
Attachment #8556483 - Flags: review?(andreea.matei)
Attachment #8556483 - Flags: review?(mihaela.velimiroviciu) → review+
Comment on attachment 8556483 [details] [diff] [review] patch_V1_beta Review of attachment 8556483 [details] [diff] [review]: ----------------------------------------------------------------- https://hg.mozilla.org/qa/mozmill-tests/rev/d058bbfd87b1 (beta)
Attachment #8556483 - Flags: review?(andreea.matei) → review+
Attached patch patch_V1_releaseSplinter Review
Created the skip patcch for the release branch.
Attachment #8556506 - Flags: review?(mihaela.velimiroviciu)
Attachment #8556506 - Flags: review?(andreea.matei)
(In reply to Teodor Druta from comment #14) > In that case I don't think we need to open about:blank here, we can just > open directly the AOM in the about:newtab tab, that remains from calling the > closeAllTabs() method. This does not work, because a new tab will be opened in case of about:newtab. But with about:blank no new tab will be opened. Exactly this is the problem I'm trying to tell three times now. We won't hit this problem right now, but if there is a case when we have to disable about:newtab, this test will start to fail because of wrong tab indexes.
Attachment #8556506 - Flags: review?(mihaela.velimiroviciu) → review+
(In reply to Henrik Skupin (:whimboo) from comment #18) > This does not work, because a new tab will be opened in case of > about:newtab. But with about:blank no new tab will be opened. A new (AMO) tab will not open for 'about:newtab' (CLEAN) as well, their functionality is the same on this matter. Steps: 1. Open firefox 2. Open a new tab (At this point we have about:newtab open with no history at all) 3. Open the Addons Manager (Using shortcut or menu entry) - The addons manager will open in the current active tab 1. -/- 2. Open a new tab 3. Navigate to any remote/local resource in the same tab 4. Open about:newtab in the same tab 5. Open the Addons Manager - The addons manager will open in a different new tab 1. -/- 2. Open a new tab 3. Open 'about:blank' in the same tab 4. Open the Addons Manager - The addons manager will open in the same tab 1. -/- 2. Open a new tab 3. Navigate to any remote/local resource in the same tab 4. Open 'about:blank' in the same tab 5. Open the Addons Manager - The addons manager will open in a different new tab
Very interesting. Something might have been changed here. Thanks for the information.
Comment on attachment 8555834 [details] [diff] [review] fixtestplugindisabled.patch After looking more into this problem, I think that this is the best solution so far, we will open a new tab, and will use it for the AMO page, this tab will have index 1, while the 'about:plugins' page will be handled in the tab with index 0.
Attachment #8555834 - Flags: review?(mihaela.velimiroviciu)
Attachment #8555834 - Flags: review?(andreea.matei)
Attachment #8555834 - Attachment is obsolete: false
Attachment #8556394 - Attachment is obsolete: true
Comment on attachment 8556506 [details] [diff] [review] patch_V1_release Review of attachment 8556506 [details] [diff] [review]: ----------------------------------------------------------------- Don't need it in release, will be merged.
Attachment #8556506 - Flags: review?(andreea.matei)
Comment on attachment 8555834 [details] [diff] [review] fixtestplugindisabled.patch Review of attachment 8555834 [details] [diff] [review]: ----------------------------------------------------------------- lgtm. Henrik, do you agree?
Attachment #8555834 - Flags: review?(mihaela.velimiroviciu)
Attachment #8555834 - Flags: review?(andreea.matei)
Attachment #8555834 - Flags: review+
Attachment #8555834 - Flags: feedback?(hskupin)
Comment on attachment 8555834 [details] [diff] [review] fixtestplugindisabled.patch Review of attachment 8555834 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, yes. Lets just add a comment why we have to open a new tab here.
Attachment #8555834 - Flags: feedback?(hskupin) → feedback+
Attached patch fixtestplugindisabled.patch (obsolete) — Splinter Review
Added an explanatory comment to the openTab line.
Attachment #8555834 - Attachment is obsolete: true
Attachment #8559089 - Flags: review?(mihaela.velimiroviciu)
Attachment #8559089 - Flags: review?(andreea.matei)
Attachment #8559089 - Flags: review?(mihaela.velimiroviciu)
Attachment #8559089 - Flags: review?(andreea.matei)
Attachment #8559089 - Flags: review+
Actually, please add the unskip also in this patch, so we don't land 2 sets (fix and unskip) for each branch. Thanks.
Attached patch fixtestplugindisabled.patch (obsolete) — Splinter Review
(In reply to Andreea Matei [:AndreeaMatei] from comment #26) > Actually, please add the unskip also in this patch, so we don't land 2 sets > (fix and unskip) for each branch. Thanks. Done.
Attachment #8559089 - Attachment is obsolete: true
Attachment #8559102 - Flags: review?(andreea.matei)
...
Attachment #8559102 - Attachment is obsolete: true
Attachment #8559102 - Flags: review?(andreea.matei)
Attachment #8559103 - Flags: review?(andreea.matei)
Comment on attachment 8559103 [details] [diff] [review] fixtestplugindisabled.patch Review of attachment 8559103 [details] [diff] [review]: ----------------------------------------------------------------- https://hg.mozilla.org/qa/mozmill-tests/rev/3f0391299059 (default)
Attachment #8559103 - Flags: review?(andreea.matei) → review+
I think we should backport. The patch applies cleanly and runs well on aurora. Attached is the patch for beta.
Attachment #8559183 - Flags: review?(andreea.matei)
This will be the patch for the release branch.
Attachment #8559701 - Flags: review?(andreea.matei)
Comment on attachment 8559183 [details] [diff] [review] fixtestplugindisabled_beta.patch Review of attachment 8559183 [details] [diff] [review]: ----------------------------------------------------------------- https://hg.mozilla.org/qa/mozmill-tests/rev/d8c4e6c54b8e (beta)
Attachment #8559183 - Flags: review?(andreea.matei) → review+
Comment on attachment 8559701 [details] [diff] [review] fixtestplugindisabled_release.patch Review of attachment 8559701 [details] [diff] [review]: ----------------------------------------------------------------- https://hg.mozilla.org/qa/mozmill-tests/rev/6a9d5f025ae5 (release)
Attachment #8559701 - Flags: review?(andreea.matei) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: