diff options
author | Gaming4JC <g4jc@bulletmail.org> | 2018-10-20 19:09:40 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@bulletmail.org> | 2018-10-20 19:09:40 -0400 |
commit | c4cbed0a687d22dece072f02a3d3cfbde1e85a70 (patch) | |
tree | dce9fa2683aaadbfe4f9eada3c99922d613ca9a7 /base | |
parent | 89fdeb9a9dda2574263c7b447a8af113c515d8b0 (diff) | |
download | iceweasel-uxp-c4cbed0a687d22dece072f02a3d3cfbde1e85a70.tar.gz |
Remove some additonal Contextual Identity referencesv2.2
Diffstat (limited to 'base')
-rw-r--r-- | base/content/content.js | 7 | ||||
-rw-r--r-- | base/content/tab-content.js | 27 |
2 files changed, 1 insertions, 33 deletions
diff --git a/base/content/content.js b/base/content/content.js index c19bd76..e21cedf 100644 --- a/base/content/content.js +++ b/base/content/content.js @@ -162,9 +162,6 @@ var handleContentContextMenu = function (event) { let selectionInfo = BrowserUtils.getSelectionDetails(content); - let loadContext = docShell.QueryInterface(Ci.nsILoadContext); - let userContextId = loadContext.originAttributes.userContextId; - if (Services.appinfo.processType == Services.appinfo.PROCESS_TYPE_CONTENT) { let editFlags = SpellCheckHelper.isEditable(event.target, content); let spellInfo; @@ -188,7 +185,7 @@ var handleContentContextMenu = function (event) { principal, docLocation, charSet, baseURI, referrer, referrerPolicy, contentType, contentDisposition, frameOuterWindowID, selectionInfo, disableSetDesktopBg, - loginFillInfo, parentAllowsMixedContent, userContextId }, + loginFillInfo, parentAllowsMixedContent }, { event, popupNode: event.target }); } else { @@ -211,8 +208,6 @@ var handleContentContextMenu = function (event) { selectionInfo: selectionInfo, disableSetDesktopBackground: disableSetDesktopBg, loginFillInfo, - parentAllowsMixedContent, - userContextId, }; } } diff --git a/base/content/tab-content.js b/base/content/tab-content.js index 6d053dd..5a06c31 100644 --- a/base/content/tab-content.js +++ b/base/content/tab-content.js @@ -889,33 +889,6 @@ var RefreshBlocker = { RefreshBlocker.init(); -var UserContextIdNotifier = { - init() { - addEventListener("DOMWindowCreated", this); - }, - - uninit() { - removeEventListener("DOMWindowCreated", this); - }, - - handleEvent(aEvent) { - // When the window is created, we want to inform the tabbrowser about - // the userContextId in use in order to update the UI correctly. - // Just because we cannot change the userContextId from an active docShell, - // we don't need to check DOMContentLoaded again. - this.uninit(); - - // We use the docShell because content.document can have been loaded before - // setting the originAttributes. - let loadContext = docShell.QueryInterface(Ci.nsILoadContext); - let userContextId = loadContext.originAttributes.userContextId; - - sendAsyncMessage("Browser:WindowCreated", { userContextId }); - } -}; - -UserContextIdNotifier.init(); - #ifdef MOZ_WEBEXTENSIONS ExtensionContent.init(this); addEventListener("unload", () => { |