Closed Bug 1149892 Opened 9 years ago Closed 6 years ago

[Meta] Features and capabilities of Firefox OS Browser App

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: yifan, Unassigned)

References

Details

(Whiteboard: [ft:conndevices])

Keeps track of browser app features and capabilities that had been puzzling Firefox OS developers.
Q: If below values are set, how is the scope of the value?
   I assume the current specification of FxOS is below. Is this correct?

      value                       : scope    : scope for a user
 -------------------------------------------------------------
  (1) Do Not Track header(ON/OFF) : all b2g  : all Apps (Web Browser app, YouTube app etc.)
  (2) Cookie for a site           : all b2g  : all Apps
  (3) localStorage for a site     : all b2g  : all Apps
  (4) private browsing(ON/OFF)    : iframe   : 1 tab in Web Browser app

A:
  (1) yes
  (2), (3) basically yes for all sites, mozapp.clearBrowserData clears all iframes with mozbrowser attribute inside the app, in this case all the mozbrowser iframes handled by the system browser (In v2.0, only the iframes in the browser app)
       https://bugzilla.mozilla.org/show_bug.cgi?id=792892#c12
       https://bugzilla.mozilla.org/show_bug.cgi?id=784378#c47
  (4) yes, for a single tab iframe with mozprivatebrowsing="true"
       https://bugzilla.mozilla.org/show_bug.cgi?id=832700
Q1: We found the function 'RemoveCookiesForApp( appId, browserOnly )' in nsCookieService.cpp . I think it can remove each Cookies for each apps by this function. Is it correct?

Q2: If the answer of Q1 is Yes, is there a function for removing 'localStorage' for each apps?

A1: yes, but we don't have an API that could be used in gaia

A2: according to bug 792892, there is no such function implemented and no API exposed to gaia for now.
Q: Is there the function to clear just browsing cache data?

    When a proxy setting for i-filter is reset or changed by a user from the browser menu,
    the browser should clear a cached 'user' and 'password' for the proxy auth,
    and the browser should not clear Cookies and local storage at this time.
    So, we would like the function of clearing just only cached data of browsing.

A: When clearBrowserData is called, what will be deleted is localstorage, app cache, cookies and indexeddb (https://bugzilla.mozilla.org/show_bug.cgi?id=784378#c47). Only the desktop Firefox has 'save password' feature so this shouldn't be a problem.
See Also: → 792892, 784378, 832700
Q1: The function of 'clearBrowserData()' does not clear the white list
    of the server certificate which is created by a user at the screen
    (please see attached file).

    Is it the specification of 'clearBrowserData()'?

A: Certificate white list is not included in the scope of 'clear cache and user data'. On desktop Firefox you can delete it individually when viewing certificates[1]. There is no API exposed to Gaia and no UI designed for this feature.

[1] https://support.mozilla.org/en-US/questions/986471

Q2: If the answer of Q1 is yes, is there the function to clear a user's
    white list of the server cert?

A: Certificate white list is stored in <profile-folder>/cert_override.txt . It can be accessed through nsICertOverrideService. The API we have in nsICertOverrideService can only delete certificate individually by domain. Need modifications to add remove all certificates feature [2].

[2] https://dxr.mozilla.org/mozilla-central/source/security/manager/ssl/public/nsICertOverrideService.idl
Summary: [Meta] Features and capabilities for Firefox OS Browser App → [Meta] Features and capabilities of Firefox OS Browser App
Whiteboard: [ft:conndevices]
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.