gecko-dev/toolkit/modules/addons
Luca Greco f02af2dbb2 Bug 1403349 - Prevent WebNavigation jsm to leak the sourceTab browser on unpaired CreatedNavigationTarget messages. r=aswan
This applies the following changes:

- store a weak reference to the browser element in the WebNavigation.jsm Manager's map
  of pending CreatedNavigationTarget messages

- when a CreatedNavigationTarget message is received from a sourceTab
  for a created window that is not currently tracked in the map
  (e.g. it has been immediately closed), the message received from the sourceTab
  is not saved in the map of the pending CreatedNavigationTarget (and a message
  is logged in the console to make easier to investigate issues related to discarded
  CreatedNavigationTarget events).

- adds an additional assertion to the related test case to ensure that no CreatedNavigationTarget
  message is still pending in the WebNavigation/jsm's Manager.

MozReview-Commit-ID: FijQ8IqiY8L

--HG--
extra : rebase_source : cd3c072301a1eb24de368c655a96891dd1287c7b
2017-09-27 19:07:41 +02:00
..
.eslintrc.js Bug 1371292 - Clean up more ESLint global definitions in configuration files in toolkit/ and browser/. r=mossop 2017-06-08 10:59:12 +01:00
MatchURLFilters.jsm Bug 1404172: Remove MatchPattern.jsm. r=aswan 2017-09-28 18:27:44 -07:00
WebNavigation.jsm Bug 1403349 - Prevent WebNavigation jsm to leak the sourceTab browser on unpaired CreatedNavigationTarget messages. r=aswan 2017-09-27 19:07:41 +02:00
WebNavigationContent.js Bug 1403349 - Fix wrong sourceTabId on webNavigation.onCreatedTarget event. r=aswan 2017-09-27 14:24:54 +02:00
WebNavigationFrames.jsm Bug 1317697: Split ExtensionContent.jsm into a stub process script. r=mixedpuppy 2017-04-14 17:00:51 -07:00
WebRequest.jsm Bug 1405286: Part 3 - Test that filterResponseData from cached onHeadersReceived doesn't crash. r=mixedpuppy 2017-10-14 19:25:35 -07:00
WebRequestCommon.jsm Bug 1366710 set webrequest type to xmlhttprequest for fetch requests, r=aswan 2017-05-23 13:33:55 -07:00
WebRequestContent.js Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb 2017-10-12 15:43:55 -07:00
WebRequestUpload.jsm Bug 1396856: Part 4 - Update WebRequest.jsm to use ChannelWrapper bindings. r=mixedpuppy 2017-09-06 21:52:24 -07:00