Closed
Bug 681920
Opened 14 years ago
Closed 14 years ago
Failure in /testSecurity/testSafeBrowsingNotificationBar.js | Expression "{"value":"blocked-badware-page"}" returned null. Anonymous == false
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: AlexLakatos, Assigned: AlexLakatos)
References
()
Details
(Whiteboard: [mozmill-test-failure][mozmill-test-skipped])
Attachments
(3 files, 1 obsolete file)
1.63 KB,
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
1.49 KB,
patch
|
AlexLakatos
:
review+
u279076
:
review+
|
Details | Diff | Splinter Review |
5.95 KB,
patch
|
vladmaniac
:
review+
u279076
:
review+
|
Details | Diff | Splinter Review |
TEST: testSafeBrowsingNotificationBar.js::testNotificationBar
ERROR: Expression "{"value":"blocked-badware-page"}" returned null. Anonymous == false
WHEN: 2011-08-25
FIRST: 2011-08-25
FREQ: 9
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/17462921
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → alex.lakatos
Status: NEW → ASSIGNED
Comment 2•14 years ago
|
||
Alex, please use the template we have created on the wiki page when you file a new test failure.
On which branches is that test failing? Also provide a link to the failure details list with a start time only and not a single report in the URL field. thanks.
Assignee | ||
Comment 3•14 years ago
|
||
I've used the template from https://wiki.mozilla.org/QA/Mozmill_Test_Automation/Fixing_Broken_Tests#Filing_a_Bug . Is that deprecated in any way? Have I missed anything from there?
I've also updated the link to failure details. Sorry about that, I copied the wrong link.
The test is only failing on mozilla-beta as far as I can see.
(In reply to Alex Lakatos from comment #3)
> I've used the template from
> https://wiki.mozilla.org/QA/Mozmill_Test_Automation/
> Fixing_Broken_Tests#Filing_a_Bug . Is that deprecated in any way? Have I
> missed anything from there?
The template there was missing the BRANCH field -- I've added it.
Assignee | ||
Comment 5•14 years ago
|
||
Patch for skipping the test while I'm debugging it, as per the 24h skip policy.
Attachment #555757 -
Flags: review?(anthony.s.hughes)
Comment on attachment 555757 [details] [diff] [review]
skip patch
>+// Bug 681920 - Failure in /testSecurity/testSafeBrowsingNotificationBar.js
>+// Expression "{"value":"blocked-badware-page"}" returned null. Anonymous == false
>+setupModule.__force_skip__ = "Bug 681920 - Failure in /testSecurity/testSafeBrowsingNotificationBar.js |" +
>+ "Expression '{'value':'blocked-badware-page'}' returned null. Anonymous == false";
>+teardownModule.__force_skip__ = "Bug 681920 - Failure in /testSecurity/testSafeBrowsingNotificationBar.js |" +
>+ "Expression '{'value':'blocked-badware-page'}' returned null. Anonymous == false";
A space should be added after the "|" -- I will do this prior to check-in.
Attachment #555757 -
Flags: review?(anthony.s.hughes) → review+
Attachment #555757 -
Attachment is obsolete: true
Attachment #555798 -
Flags: review+
Comment on attachment 555798 [details] [diff] [review]
skip patch (all) [checked-in]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/5280734e7c4a (mozilla-beta)
Attachment #555798 -
Attachment description: skip patch (beta) → skip patch (beta) [checked-in]
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][mozmill-test-skipped]
Comment 9•14 years ago
|
||
This failure happens from the .com to .org redirection.
The tab bar that should be visible with 2 buttons disappears after the redirection.
There is another way to avoid the redirection if that is not needed. We can set the pref network.http.redirection-limit to 0 and in this case the tab bar with the 2 buttons will remain visible.
After the avoidance we can set the pref back to default (20) and continue the test normally.
Comment 10•14 years ago
|
||
Good idea. I don't have a problem with it if we reset the pref right after we were able to access the notification bar and not at the end of the test. Does that full fix this failure?
Comment 11•14 years ago
|
||
I've searched for a workaround with no luck.
We may have a chance in https://bugzilla.mozilla.org/show_bug.cgi?id=662213 and just modify the test urls.
Comment 12•14 years ago
|
||
(In reply to Remus Pop (:RemusPop) from comment #11)
> I've searched for a workaround with no luck.
> We may have a chance in https://bugzilla.mozilla.org/show_bug.cgi?id=662213
> and just modify the test urls.
I'm not completely clear about the reasoning behind deprecating the attack/trap pages. This change will affect all of our safe browsing tests. I'm inclined to think that we should create our own copies of these pages (on mozqa.com).
Comment 13•14 years ago
|
||
(In reply to Anthony Hughes, Mozilla QA (irc: ashughes) from comment #12)
> I'm not completely clear about the reasoning behind deprecating the
> attack/trap pages. This change will affect all of our safe browsing tests.
> I'm inclined to think that we should create our own copies of these pages
> (on mozqa.com).
We should do. At the same time we have to find out how we can get marked those pages as fraudulent. Seems like we have to talk to Kev, so we can get the URLs included by default. For the pages themselves I would propose to use those from mozilla.org. Anthony, can you take care of it? We should get a bug filed in the infrastructure component.
Comment 14•14 years ago
|
||
This skips the test on 1.9.2 branch.
I think we can apply that patch (that skips the test) from beta to aurora and default too because this issue is also present to those.
Attachment #561675 -
Flags: review?(alex.lakatos)
Assignee | ||
Updated•14 years ago
|
Attachment #561675 -
Flags: review?(anthony.s.hughes)
Attachment #561675 -
Flags: review?(alex.lakatos)
Attachment #561675 -
Flags: review+
Comment 15•14 years ago
|
||
Comment on attachment 561675 [details] [diff] [review]
skip patch (1.9.2) [checked-in]
We should include a teardownModule skip as well. FWIW, I don't see why the beta patch can't be applied to other branches as well. We should definitely skip the test on all branches given the prevalence of this failure. I will test the beta patch and if it passes I will land it everywhere.
Attachment #561675 -
Flags: review?(anthony.s.hughes) → review-
Comment 16•14 years ago
|
||
Comment on attachment 561675 [details] [diff] [review]
skip patch (1.9.2) [checked-in]
Nevermind, I see there is no teardownModule in this test. r+
Attachment #561675 -
Flags: review- → review+
Comment 17•14 years ago
|
||
Comment on attachment 561675 [details] [diff] [review]
skip patch (1.9.2) [checked-in]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/fcb936fa0363 (mozilla-1.9.2)
Attachment #561675 -
Attachment description: skip patch (1.9.2) → skip patch (1.9.2) [checked-in]
Comment 18•14 years ago
|
||
Comment on attachment 555798 [details] [diff] [review]
skip patch (all) [checked-in]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/f035862253d6 (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/582053c7ee32 (mozilla-aurora)
http://hg.mozilla.org/qa/mozmill-tests/rev/5d6989178619 (mozilla-release)
http://hg.mozilla.org/qa/mozmill-tests/rev/c6bdf2411e6f (mozilla-2.0)
Test is skipped across all branches.
Attachment #555798 -
Attachment description: skip patch (beta) [checked-in] → skip patch (all) [checked-in]
Comment 19•14 years ago
|
||
For the time being we could use a similar technique as given by the following code to add our own entries for mozilla.org:
http://mxr.mozilla.org/mozilla-central/source/browser/components/safebrowsing/content/malware-warden.js
Comment 20•14 years ago
|
||
I'm not really sure what we could use from there.
I've found something else. Adding an entry to the database which Firefox uses to check if a website contains malware.
Here it is:
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp#474
Comment 21•14 years ago
|
||
Is this just a workaround until they resolve bug 662213? If so, I would rather this test remain disabled until then and work on a final solution then.
Comment 22•14 years ago
|
||
This has been fixed on mozilla-central. Simply change the URL from mozilla.com to mozilla.org in the test.
Comment 23•14 years ago
|
||
Remus, can you please implement the change in comment 22 and see if it resolves this issue? Thanks.
Comment 24•14 years ago
|
||
This only works for the default channel for now.
Attachment #574283 -
Flags: review?(vlad.mozbugs)
Updated•14 years ago
|
Attachment #574283 -
Flags: review?(vlad.mozbugs) → review+
Comment 25•14 years ago
|
||
Can we get any progress on this bug? Probably we should auto-forward a review request to Anthony, once it has been internally reviewed by you.
Updated•14 years ago
|
Attachment #574283 -
Flags: review?(anthony.s.hughes)
Attachment #574283 -
Flags: review?(anthony.s.hughes) → review+
Comment 26•14 years ago
|
||
Just a quick note before check-in; you can simplify the commit message to:
"Bug 681920 - Failure in /testSecurity/testSafeBrowsingNotificationBar.js. r=vlad.maniac r=ashughes"
I will make this change on check-in.
Comment 27•14 years ago
|
||
Comment on attachment 574283 [details] [diff] [review]
patch v1 (default) [checked-in]
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/e3488952343d (default)
Please submit follow up patches for other branches.
Attachment #574283 -
Attachment description: patch v1 (default) → patch v1 (default) [checked-in]
Comment 28•14 years ago
|
||
We can't check-in this change on other branches. At least not now. We have to wait for the usual train ride, or for additional check-ins on bug 693389.
For now we should close this bug, because there is nothing we can do.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 29•14 years ago
|
||
Remus, please verify with the next recent testrun and update the spreadsheet.
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
•