Closed
Bug 1258005
Opened 10 years ago
Closed 10 years ago
Intermittent browser_test_web_manifest.js | default-src 'none' blocks mochi.test:8888 - Got This test timed out., expected csp-on-violate-policy
Categories
(Core :: DOM: Security, defect)
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: KWierso, Assigned: marcosc)
References
Details
(Keywords: intermittent-failure, Whiteboard: [domsecurity-intermittent])
Attachments
(1 file, 2 obsolete files)
|
2.82 KB,
patch
|
Details | Diff | Splinter Review |
| Comment hidden (Intermittent Failures Robot) |
Updated•10 years ago
|
Whiteboard: [domsecurity-intermittent]
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Christoph Kerschbaumer [:ckerschb] from comment #2)
> Marcos, is that still an issue?
Yeah :_( Looking into it now.
Flags: needinfo?(mcaceres)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → mcaceres
| Assignee | ||
Comment 5•10 years ago
|
||
The code in bug 1250048 changes the tests a bit, so maybe... anyway, it's more important to land that one first.
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 13•10 years ago
|
||
Marcos, it seems landing bug 1250048 has increased the frequency of this failure:
https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=1258005&startday=2016-04-01&endday=2016-04-08&tree=all
Flags: needinfo?(mcaceres)
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 15•10 years ago
|
||
(In reply to Ben Kelly [:bkelly] from comment #13)
> Marcos, it seems landing bug 1250048 has increased the frequency of this
> failure:
>
> https://brasstacks.mozilla.com/orangefactor/
> ?display=Bug&bugid=1258005&startday=2016-04-01&endday=2016-04-08&tree=all
Sadness. I'll try upping the timeout value to 10 seconds:
https://github.com/mozilla/gecko-dev/blob/master/dom/security/test/csp/browser_test_web_manifest.js#L222
Flags: needinfo?(mcaceres)
Comment 16•10 years ago
|
||
Is there a less-flaky way this test could work? Using setTimeout is pretty much asking for orange.
| Comment hidden (Intermittent Failures Robot) |
Comment 18•10 years ago
|
||
Also, given the high frequency of this failure, it needs help or disabling sooner rather than later.
| Assignee | ||
Comment 19•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #16)
> Is there a less-flaky way this test could work? Using setTimeout is pretty
> much asking for orange.
You are right. I was using setTimeout during development should have removed it. If the observer that this code relies on doesn't fire, then we have bigger problems. As such, I will remove the timeout.
(In reply to Ryan VanderMeulen [:RyanVM] from comment #18)
> Also, given the high frequency of this failure, it needs help or disabling
> sooner rather than later.
Sorry, I thought bug 1250048 would fix this (landed friday). But it didn't:( I'm on it.
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 21•10 years ago
|
||
Removes setTimeout(). Just waits for promise to settle instead.
In theory, the following is an invariant that should always fire:
SpecialPowers.addObserver(observer, "csp-on-violate-policy", false);
Otherwise, it's an actual regression or we have bigger problems in the underlying CSP machinery.
Attachment #8739816 -
Flags: review?(ryanvm)
Comment 22•10 years ago
|
||
Comment on attachment 8739816 [details] [diff] [review]
Remove setTiemout
Wish I could help you, but I'm not a peer of this code. That said, this doesn't look like the right patch? :)
Attachment #8739816 -
Flags: review?(ryanvm)
| Assignee | ||
Comment 23•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #22)
> Comment on attachment 8739816 [details] [diff] [review]
> Remove setTiemout
>
> Wish I could help you, but I'm not a peer of this code. That said, this
> doesn't look like the right patch? :)
Woops! Too many patches starting 000*. Will ask bkelly for review.
| Assignee | ||
Comment 24•10 years ago
|
||
| Assignee | ||
Comment 25•10 years ago
|
||
Attachment #8739816 -
Attachment is obsolete: true
Attachment #8739817 -
Flags: review?(bkelly)
| Comment hidden (Intermittent Failures Robot) |
Comment 27•10 years ago
|
||
Comment on attachment 8739817 [details] [diff] [review]
0001-Bug-1258005-Remove-setTimeout-to-avoid-intermittent-.patch
Review of attachment 8739817 [details] [diff] [review]:
-----------------------------------------------------------------
Looks reasonable, but I didn't reverse engineer the entire test. It seems we don't need the timeout because the try/catch checks that the block occurs. Is that correct?
Attachment #8739817 -
Flags: review?(bkelly) → review+
| Assignee | ||
Comment 28•10 years ago
|
||
> Looks reasonable, but I didn't reverse engineer the entire test. It seems we don't need the timeout because the try/catch checks that the block occurs. Is that correct?
Yep, that is correct.
| Assignee | ||
Comment 29•10 years ago
|
||
Attachment #8739817 -
Attachment is obsolete: true
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 30•10 years ago
|
||
Keywords: checkin-needed
| Reporter | ||
Comment 31•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 33•10 years ago
|
||
I can't tell if the Robot is still reporting failures from after the bug was fixed. I guess I'll wait another day to see if the OrangeFactor bot comes back.
| Comment hidden (Intermittent Failures Robot) |
Comment 35•10 years ago
|
||
Looks like this is indeed fixed on trunk. Any chance we can get a rebased patch for Aurora47 as well? :)
status-firefox47:
--- → affected
Flags: needinfo?(mcaceres)
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 37•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #35)
> Looks like this is indeed fixed on trunk. Any chance we can get a rebased
> patch for Aurora47 as well? :)
Sure, but when I `git checkout remote/aurora`, it seems that the patch is already applied? Or is that different from 47? If so, how do I checkout version 47 to make a patch for it?
Flags: needinfo?(mcaceres) → needinfo?(ryanvm)
| Reporter | ||
Comment 38•10 years ago
|
||
The trees moved today. 47 is now on beta.
Flags: needinfo?(ryanvm)
| Assignee | ||
Comment 39•10 years ago
|
||
Woot!
Comment 41•10 years ago
|
||
Gah, s/46/47
| Assignee | ||
Comment 42•10 years ago
|
||
I tried cherry-picking the patch onto `remote/mozilla/beta`, but it seems beta is missing other things so the tests fail, unfortunately.
Tomorrow, I can try just removing the setTimeout and seeing how we go... might save me having to back-port other stuff.
Flags: needinfo?(mcaceres)
Comment 43•10 years ago
|
||
Not worth it at this point.
| Comment hidden (Intermittent Failures Robot) |
You need to log in
before you can comment on or make changes to this bug.
Description
•