Closed
Bug 601277
Opened 14 years ago
Closed 12 years ago
Write tests for document.domain
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: mounir, Assigned: mounir)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #482208 -
Flags: review?(jst)
Assignee | ||
Comment 2•14 years ago
|
||
FWIW, these tests are no longer working.
Comment 3•14 years ago
|
||
We'll need this test when mrbkap works on further document.domain related changes for beta8, so marking a blocker.
blocking2.0: --- → beta8+
Comment 4•14 years ago
|
||
We don't need to worry about this for beta8, pushing to beta9.
blocking2.0: beta8+ → beta9+
As per today's meeting, beta 9 will be a time-based release. Marking these all betaN+. Please move it back to beta9+ if you believe it MUST be in the next beta (ie: trunk is in an unshippable state without this)
blocking2.0: beta9+ → betaN+
Assignee | ||
Comment 6•14 years ago
|
||
Re-setting the CC list assuming this change wasn't intentional.
Fixing fields my automated script accidentally blanked. Apologies for the bugspam
Updated•14 years ago
|
Whiteboard: hardblocker
Updated•14 years ago
|
Whiteboard: hardblocker → [hardblocker]
Comment 8•14 years ago
|
||
I'm keeping this as a blocker because I believe in test driven development yatta yatta, but tests don't need permission for approval so I question whether or not this even needs soft blocking status.
It needs to be done, absolutely, but does it need to keep us from shipping? I assert not!
Whiteboard: [hardblocker] → [softblocker]
Assignee | ||
Comment 9•14 years ago
|
||
Updated tests to make sure the test actually finish on trunk (currently 8 passes and 10 fails).
Attachment #482208 -
Attachment is obsolete: true
Attachment #482208 -
Flags: review?(jst)
Assignee | ||
Comment 10•14 years ago
|
||
(In reply to comment #8)
> I'm keeping this as a blocker because I believe in test driven development
> yatta yatta, but tests don't need permission for approval so I question whether
> or not this even needs soft blocking status.
FWIW, the real purpose of the bug is to make trunk pass this test.
Comment 11•14 years ago
|
||
We're past feature freeze. This sounds like a non-blocker to me.
blocking2.0: betaN+ → ?
Whiteboard: [softblocker]
Comment 12•14 years ago
|
||
Yeah, we should get these tests in in a form where they pass, but we did change our minds on what the exact security policy is wrt document.domain. Either way, this is not a blocker any more due to the policy change.
Updated•14 years ago
|
Blocks: CVE-2012-3985
Comment 13•12 years ago
|
||
I spent some time with the tests on the bug this morning and found them inscrutable and impossible to extend. Here are some much cleaner ones.
Attachment #507485 -
Attachment is obsolete: true
Attachment #637462 -
Flags: review?(mrbkap)
Comment 14•12 years ago
|
||
Note that we're now explicitly testing for the behavior I proposed here: http://lists.w3.org/Archives/Public/public-script-coord/2012AprJun/0120.html
Comment 15•12 years ago
|
||
Comment on attachment 637462 [details] [diff] [review]
Better tests. v1
Review of attachment 637462 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/xpconnect/tests/chrome/test_documentdomain.xul
@@ +32,5 @@
> + function startTest() {
> +
> + // Grab all the content windows. We waive Xray here, and add it back with
> + // XPCNativeWrapper whenever we pass references into content.
> + var win1A = document.getElementById('test1A').contentWindow.wrappedJSObject;
All of this futzing around with .wrappedJSObject and XPCNativeWrapper shouldn't matter for the case where we're passing object around... I think you should be able to nuke it.
Attachment #637462 -
Flags: review?(mrbkap) → review+
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•