Fixes regression from bug 1398630, where nsIURI was replaced with DOM
URL. In nsIURI, "host" does not include a port number, but in a DOM URL,
"host" does include a port number and "hostname" has to be used to
obtain the original result.
MozReview-Commit-ID: KxCF6Srn7X4
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.
MozReview-Commit-ID: IE7B8Czv8DH
This commit ensures that WebExtension principals always get a nsICookieService::BEHAVIOR_ACCEPT
cookieBehavior and a nsICookieService::ACCEPT_NORMALLY aLifetimePolicy:
- the webextension pages are still able to use indexedDB and localStorage on a globally
configured:
"network.cookie.cookieBehavior = 2"
("Accept cookies from websites" unchecked in the about:preferences
"use custom settings for history" section)
- the webextension pages' localStorage does not switch in session-only mode on a globally
configured:
"network.cookie.lifetimePolicy = 2"
("Keep until I close Firefox" in the about:preferences
"use custom settings for history" section)
MozReview-Commit-ID: 5LOCvCgcokM
This introduces browserSettings.openSearchResultsInNewTabs which exposes
the browser.search.openintab preference to extensions.
Note that until bug 1394304 is fixed this only works for searches performed
via the search box, and not for searches performed via the address bar.
MozReview-Commit-ID: HuoJ0uOvMjX
This introduces browserSettings.openBookmarksInNewTabs which exposes
the browser.tabs.loadBookmarksInTabs preference to extensions.
MozReview-Commit-ID: AZlir2GoiCo
This new API exposes the ui.context_menus.after_mouseup preference to extensions
so mouse gesture add-ons can modify it.
Note that this is not supported on Android, and also calling it with a value of
"mousedown" on Windows is a no-op.
MozReview-Commit-ID: AkhRmAyzuSp
This new API exposes the ui.context_menus.after_mouseup preference to extensions
so mouse gesture add-ons can modify it.
Note that this is not supported on Android, and also calling it with a value of
"mousedown" on Windows is a no-op.
MozReview-Commit-ID: AkhRmAyzuSp
Prior to this patch, the map that holds the list of notifications for an extension was recreated
for each context. This fixes that issue and maintains a list for the extension across all
contexts.
MozReview-Commit-ID: 2wfABoyyqvF
This code changes all of the functions in the ESS and the EPM to accept an extensionId rather than an
extension object, which is required for responding to the new onUpdate event.
MozReview-Commit-ID: FwMVa0fShGj
This test was failing when running locally during the second run (i.e., the non-oop run).
The problem ocurred because the cookies created during the first run were not removed
prior to the second run. This patch adds code to clean up any existing cookies before
running the test.
MozReview-Commit-ID: LieSZDudawN