Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the sourceEventType from the viewer (bug 1757771 follow-up) #14926

Merged
merged 2 commits into from
May 21, 2022

Commits on May 15, 2022

  1. Remove the sourceEventType from the viewer (bug 1757771 follow-up)

    After the changes in https://bugzilla.mozilla.org/show_bug.cgi?id=1757771, that simplified the MOZCENTRAL downloading code, the `sourceEventType` is now completely unused and should thus be removed (in my opinion).
    
    Furthermore, with these changes, we also no longer need a *separate* internal "save"-event and can instead just use the older "download"-event everywhere.
    Snuffleupagus committed May 15, 2022
    Configuration menu
    Copy the full SHA
    4f1cd6a View commit details
    Browse the repository at this point in the history
  2. [Firefox viewer] Stop using FirefoxCom.requestAsync in the `Downloa…

    …dManager`
    
    After the changes in https://bugzilla.mozilla.org/show_bug.cgi?id=1757771, that simplified the MOZCENTRAL downloading code, the `ChromeActions.download`-method will no longer invoke the `sendResponse`-callback.
    Hence it should no longer be necessary for the `DownloadManager`, in the MOZCENTRAL viewer, to use `FirefoxCom.requestAsync` since no response is ever provided.[1] For the allocated BlobURLs, they should (hopefully) be released when navigating away from the viewer.
    
    ---
    [1] Note that that was *already* the case, for one of the previous code-paths in the `ChromeActions.download`-method.
    Snuffleupagus committed May 15, 2022
    Configuration menu
    Copy the full SHA
    8a34980 View commit details
    Browse the repository at this point in the history