Closed Bug 1012659 Opened 10 years ago Closed 10 years ago

[Settings] Remove inline style for CSP compliance

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1023682

People

(Reporter: gerard-majax, Unassigned)

References

Details

Attachments

(1 file)

Confere bug 968907 and bug 858787. We need to remove all CSS inline usage in certified apps.

https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/elements/app_permissions.html#L18
Depends on: 817674
This part of settings is never displayed...
Attachment #8437332 - Flags: review?(lissyx+mozillians)
It looks okay but I'm not peer of this module, I can't stamp a review for this :)
Comment on attachment 8437332 [details] [diff] [review]
csp.settings.patch

Review of attachment 8437332 [details] [diff] [review]:
-----------------------------------------------------------------

Let's ask to Arthur then.
Attachment #8437332 - Flags: review?(lissyx+mozillians) → review?(arthur.chen)
Comment on attachment 8437332 [details] [diff] [review]
csp.settings.patch

Review of attachment 8437332 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for cleaning the style and catching the bug. I've filed bug 1023682 tracking the issue.

::: apps/settings/elements/app_permissions.html
@@ -12,5 @@
>        <ul class="app-list"></ul>
>  
>        <ul>
>          <li>
>            <button id="clear-bookmarks-app"

There should not be id in a panel. Could you help remove it while you are on it?

@@ -14,5 @@
>        <ul>
>          <li>
>            <button id="clear-bookmarks-app"
>                    class="clear-bookmarks-app"
> -                  style="visibility: hidden"

Please use a "hidden" attribute.
Attachment #8437332 - Flags: review?(arthur.chen)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: