Closed Bug 812109 Opened 12 years ago Closed 12 years ago

Add new test page with mixed content to litmus-data repository

Categories

(Mozilla QA Graveyard :: Infrastructure, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: daniela.p98911, Assigned: daniela.p98911)

References

Details

(Whiteboard: [litmus-data])

Attachments

(1 file, 4 obsolete files)

We need the new page with mixed content because in test testSecurity/testEncryptedPageWarning.js we have a page that no longer produces a security warning (https://mail.mozilla.org) due to changes from bug 799009. This is needed for bug 810820
Blocks: 810820
Whiteboard: [litmus-data]
Whiteboard: [litmus-data] → [litmus-data] s=121119 u=enhancement c=security p=1
Whiteboard: [litmus-data] s=121119 u=enhancement c=security p=1 → [litmus-data]
Attached patch patch v1.0 (obsolete) — Splinter Review
Created page with mixed content
Attachment #684399 - Flags: review?(hskupin)
Attachment #684399 - Flags: review?(dave.hunt)
Comment on attachment 684399 [details] [diff] [review] patch v1.0 Review of attachment 684399 [details] [diff] [review]: ----------------------------------------------------------------- There is no js code necessary at all. Please make it a fully static page.
Attachment #684399 - Flags: review?(hskupin)
Attachment #684399 - Flags: review?(dave.hunt)
Attachment #684399 - Flags: review-
Attached patch patch v2.0 (obsolete) — Splinter Review
Changed to static content
Attachment #684399 - Attachment is obsolete: true
Attachment #684420 - Flags: review?(hskupin)
Attachment #684420 - Flags: review?(dave.hunt)
Comment on attachment 684420 [details] [diff] [review] patch v2.0 Review of attachment 684420 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/security/mixedcontent.html @@ +4,5 @@ > + <title>Mixed Content</title> > +</head> > +<body> > + <p>To ensure this testcase is working as expected, it has to be loaded via an SSL connection.</p> > + <img id="mozilla_logo" src="http://mozqa.com/data/firefox/images/mozilla_logo.jpg" /> Ok, I see now why some part of JS is necessary. Sorry for that. So what I would propose is that we change the link of the img to a relative one, so we can get rid of the domain name. Then we have some JS code which simply changes https to http, similar to the unencrypted search test file in the same folder. I hope that this would work too.
Attachment #684420 - Flags: review?(hskupin)
Attachment #684420 - Flags: review?(dave.hunt)
Attachment #684420 - Flags: review-
Attached patch patch v3.0 (obsolete) — Splinter Review
Changed page to contain the JS code for replacing https with http
Attachment #684420 - Attachment is obsolete: true
Attachment #684623 - Flags: review?(hskupin)
Attachment #684623 - Flags: review?(dave.hunt)
Assignee: nobody → dpetrovici
Comment on attachment 684623 [details] [diff] [review] patch v3.0 Review of attachment 684623 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/security/mixedcontent.html @@ +2,5 @@ > +<head> > + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > + <script> > + function init() { > + var imageElement, newImageLocation; nit: Try to keep names as short as possible. This one can still be `img`. @@ +7,5 @@ > + imageElement = document.getElementById("img"); > + > + newImageLocation = imageElement.src; > + newImageLocation = newImageLocation.replace("https", "http"); > + imageElement.src = newImageLocation; There is no need to declare a variable for the location. Just do it in-place: `img.src = img.src.replace("https", "http")`. Also please remove the trailing white-space here.
Attachment #684623 - Flags: review?(hskupin)
Attachment #684623 - Flags: review?(dave.hunt)
Attachment #684623 - Flags: review-
Attached patch patch v3.1 (obsolete) — Splinter Review
fixed whitespace and changed variable name
Attachment #684623 - Attachment is obsolete: true
Attachment #684664 - Flags: review?(hskupin)
Attachment #684664 - Flags: review?(dave.hunt)
Comment on attachment 684664 [details] [diff] [review] patch v3.1 Review of attachment 684664 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/security/mixedcontent.html @@ +3,5 @@ > + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > + <script> > + function init() { > + var img; > + img = document.getElementById("img"); Please make this a single line. There is no need to declare the variable separately. With that fixed you have my r+.
Attachment #684664 - Flags: review?(hskupin)
Attachment #684664 - Flags: review?(dave.hunt)
Attachment #684664 - Flags: review+
Attached patch patch v3.2Splinter Review
fixed variable declaration
Attachment #684664 - Attachment is obsolete: true
Attachment #684671 - Flags: review?(hskupin)
Attachment #684671 - Flags: review?(dave.hunt)
Attachment #684671 - Flags: review?(hskupin)
Attachment #684671 - Flags: review?(dave.hunt)
Attachment #684671 - Flags: review+
Status: NEW → RESOLVED
Closed: 12 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: