Help ridding tests of unsafe CPOWs
Dave Townsend
dtownsend at mozilla.com
Wed Oct 19 17:49:29 UTC 2016
I am working on a patch that takes care of most of the warnings in
toolkit/mozapps/extensions/test/xpinstall in
https://bugzilla.mozilla.org/show_bug.cgi?id=1311459
On Tue, Oct 18, 2016 at 3:28 PM, Blake Kaplan <mrbkap at mozilla.com> wrote:
> Hello everybody,
>
> I've been seeing a pattern of "unsafe" CPOWs causing our browser-chrome
> mochitests to go intermittently orange. Generally, it seems that a test
> randomly turns orange, gets starred and ignored until RyanVM or another one
> of our sheriffs gets tired of seeing it and needinfos somebody in the hopes
> of fixing it.
>
> Rather than continue on this path, it would be good to just fix these
> unsafe CPOWs. They are already banned (via pref) in browser code proper for
> this very reason and we'd like to get rid of CPOWs entirely one day. To
> further that objective, I generated a list [1] of CPOW uses in a Linux
> mochitest run. The list has the filename of the test followed by a list of
> line numbers in the test file where we detected CPOW usage. If the CPOW was
> in a different file (i.e. head.js), that is listed below the test.
>
> In general, most of these tests should be easy to fix either with
> ContentTask or using an API on <browser> that has already done the correct
> forwarding. If you would like examples, I've fixed several tests in [2] and
> [3]. I'm also always happy to answer questions or help out.
>
> So, if you have a few spare cycles, please grab a test and fix it!
>
> Thanks.
>
> [1] https://docs.google.com/document/d/1EUUi3tMuhHsJA9iE9yNvjWcae4Unm
> qrl4uN2VwYxIqE/edit
> [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1304531
> [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1311197
>
> --
> Blake
>
> _______________________________________________
> firefox-dev mailing list
> firefox-dev at mozilla.org
> https://mail.mozilla.org/listinfo/firefox-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/firefox-dev/attachments/20161019/83fb6d39/attachment.html>
More information about the firefox-dev
mailing list