Commit Graph
2556 Commits
Author SHA1 Message Date
Nathan Froyd 4a93d8e803 Bug 1405353 - stop using nsAutoPtr in nsGlobalWindow; r=mystor
UniquePtr is better.
2017-10-03 15:56:26 -04:00
Sebastian Hengst cfc08a475a Backed out changeset 4249adc2593a (bug 1401379) 2017-10-02 19:57:27 +02:00
Sebastian Hengst bb0fba471e Backed out changeset 436ecd081ffa (bug 1401379) 2017-10-02 19:57:06 +02:00
Sebastian Hengst 4b193ecf70 Backed out changeset 318b85f85682 (bug 1401379) 2017-10-02 19:57:00 +02:00
Nika Layzell 9fcd7adeb9 Bug 1401379 - Part 8: Avoid using mDocShell to check if the window has been closed, r=smaug
MozReview-Commit-ID: CyNanVzyyNp
2017-10-02 11:58:03 -04:00
Nika Layzell 6332e70807 Bug 1401379 - Part 7: Don't try to break nsDocShell <-> nsGlobalWindow references when cleaning up, r=smaug
MozReview-Commit-ID: CnAiOaAOTkw
2017-10-02 11:58:03 -04:00
Nika Layzell a78e0db4db Bug 1401379 - Part 3: Make nsGlobalWindow's reference to nsDocShell strong, r=smaug
MozReview-Commit-ID: DxCjgWGRR0G
2017-10-02 11:58:02 -04:00
Andreas Farre c0153ce59d Bug 1403586 - Don't disble budget throttling due to gUM. r=smaug,padenot 2017-09-29 15:21:45 +02:00
Brad Werth a7f61d9aad Bug 1402942 Part 1: Use double precision math in computation of Window.devicePixelRatio. r=bz,heycam
MozReview-Commit-ID: 9OCtSgE6jYj
2017-09-25 11:53:09 -07:00
Chris Peterson abda5bf615 Bug 1402666 - Part 3: Replace Replace(NS_LITERAL_STRING("")) with ReplaceLiteral(u""). r=erahm
MozReview-Commit-ID: Ji6UdG32RF4
2017-09-15 19:32:55 -07:00
Michael Layzell e09fb761c7 Bug 1402969 - Merge nsGlobalChromeWindow into nsGlobalWindow, r=bz 2017-09-26 11:43:13 -04:00
Sebastian Hengst ccbde7fe75 Backed out changeset a50a428b23fc (bug 1377914) for frequent leaks during a11y run on Linux x64 asan. r=backout 2017-09-25 19:08:56 +02:00
Jonathan Kew 3447742c23 Bug 1402859 - Remove ENABLE_INTL_API conditional from webidl and dom/base code, now that it's true across all builds. r=smaug 2017-09-25 17:32:12 +01:00
Olli Pettay 29b2150075 Bug 1377914 - Don't trigger a full GC in nsGlobalWindow::DetachFromDocShell(), r=mccr8 2017-09-25 11:46:07 +03:00
Jan Henning 9c7a77a654 Bug 1391421 - Part 2 - Make script dialogues use the Unicode domain as title. r=baku
At least on Android, the domain still appears in the dialogue box's title, so we want to pretty-print IDN domains there.

MozReview-Commit-ID: 3MCeR4IUsuF
2017-09-15 21:05:14 +02:00
Andrew McCreight 1a7ea62d16 Bug 1176342, part 2 - De-COM the flags for InitClassesWithNewWrappedGlobal. r=mrbkap
MozReview-Commit-ID: 4QFtHPIzUd0
2017-09-19 13:12:50 -07:00
Boris Zbarsky c4c362a0fc Bug 1400898 part 4. Get rid of nsIDOMChromeWindow methods that are unused from C++, and mark the rest [noscript]. r=farre
MozReview-Commit-ID: GtYmfg6XiaQ
2017-09-19 10:13:23 -04:00
Boris Zbarsky 8d8c9876ac Bug 1400898 part 3. Make nsIDOMChromeWindow.browserDOMWindow readonly. r=farre
C++ code only reads this attribute.  Code that sets it comes via WebIDL bindings.

MozReview-Commit-ID: 2itFAxUVTBo
2017-09-19 10:13:23 -04:00
Boris Zbarsky 4409a52362 Bug 1400898 part 2. Get rid of the interface constants on nsIDOMChromeWindow. r=farre
MozReview-Commit-ID: 4FuJSgha5y3
2017-09-19 10:13:22 -04:00
Jon Coppeard 038756407d Bug 1396613 - Make proxy objects override handler's objectMoved method rather than using class hook r=sfink r=mccr8 r=peterv 2017-09-19 12:31:30 +01:00
Jon Coppeard 92628b5345 Bug 1396613 - Update the object moved hook to allow it to be called when tenuring nursery objects r=sfink r=mccr8 2017-09-19 12:31:30 +01:00
Boris Zbarsky 892dd533be Bug 1400139 part 3. Add a use counter when the window.content getter is called from untrusted code. r=mystor
MozReview-Commit-ID: LFMK7lxs46Z
2017-09-18 21:24:38 -04:00
J.C. Jones bce0ec4f07 Bug 1245527 - Rewrite U2F.cpp to use U2FTokenManager. r=keeler, r=ttaubert
- This patch reworks the U2F module to asynchronously call U2FManager,
  which in turn handles constructing and managing the U2FTokenManager
  via IPC.
- Add U2FTransaction{Parent,Child} implementations to mirror similar ones for
  WebAuthn
- Rewrite all tests to compensate for U2F executing asynchronously now.
  - Used async tasks, used the manifest parameters for scheme, and generally
    made these cleaner.
- The mochitest "pref =" functionality from Bug 1328830 doesn't support Android
  yet, causing breakage on Android. Rework the tests to go back to the old way
  of using iframes to test U2F.


NOTE TO REVIEWERS:
 Since this is huge, I recommend the following:

 keeler - please review U2F.cpp/h, the tests, and the security-prefs.js. Most
          of the U2F logic is still in U2F.cpp like before, but there's been
          some reworking of how it is called.

 ttaubert - please review U2FManager, the Transaction classes, build changes,
            and the changes to nsGlobalWindow. All of these should be very
            similar to the WebAuthn code it's patterned off.


MozReview-Commit-ID: C1ZN2ch66Rm
2017-09-11 12:56:59 -07:00
Andreas Farre 3972c1390b Bug 1396368 - Update WebSocket count on top inner window when unlinking. r=bkelly 2017-09-12 16:17:39 +02:00
Andrea Marchesini 20376c9152 Bug 1393044 - Remove a warning message in nsGlobalWindow::GetParentInternal(), r=erahm 2017-09-11 21:40:36 +02:00
Phil Ringnalda 2de74ce0d3 Backed out 3 changesets (bug 1245527) for ASan browser-chrome leaks and Android mochitest bustage
Backed out changeset 8ee1f7aebd62 (bug 1245527)
Backed out changeset e6a5de8d1246 (bug 1245527)
Backed out changeset be63e73426b4 (bug 1245527)

MozReview-Commit-ID: AU22LgPh9iB
2017-09-09 00:09:21 -07:00
J.C. Jones 127d6d2bc4 Bug 1245527 - Rewrite U2F.cpp to use U2FTokenManager. r=keeler, r=ttaubert
- This patch reworks the U2F module to asynchronously call U2FManager,
  which in turn handles constructing and managing the U2FTokenManager
  via IPC.
- Add U2FTransaction{Parent,Child} implementations to mirror similar ones for
  WebAuthn
- Rewrite all tests to compensate for U2F executing asynchronously now.
  - Used async tasks, used the manifest parameters for prefs and scheme,
    and generally made these cleaner.

NOTE TO REVIEWERS:
 Since this is huge, I recommend the following:

 keeler - please review U2F.cpp/h, the tests, and the security-prefs.js. Most
          of the U2F logic is still in U2F.cpp like before, but there's been
          some reworking of how it is called.

 ttaubert - please review U2FManager, the Transaction classes, build changes,
            and the changes to nsGlobalWindow. All of these should be very
            similar to the WebAuthn code it's patterned off.


MozReview-Commit-ID: C1ZN2ch66Rm
2017-09-05 12:32:42 -07:00
Andreas Farre e2c0006316 Bug 1398109 - Check if there is a mTopInnerWindow. r=bkelly 2017-09-08 16:10:32 +02:00
Andreas Farre 364cdcb2c8 Bug 1396368 - Follow up fix: Fixed Windows build error. CLOSED TREE 2017-09-07 11:55:11 +02:00
Andreas Farre 6f11932021 Bug 1396368 - Update mTopInnerWindow before unlinking it. r=bkelly 2017-09-07 10:15:48 +02:00
Andrea Marchesini d9c17e8169 Bug 791440 - nsGlobalWindow::SetInitialPrincipalToSubject should check the existence of mDoc, r=qdot 2017-09-07 10:06:29 +02:00
Kris Maglione 23f86a0885 Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa
Going through the extension policy service rather than using
WebExtensionPolicy objects directly adds a lot of unnecessary overhead to
common operations on extension principals, and also makes the code more
complicated than it needs to be.

We also use weak references to policy objects here, since principals should
ideally lose as much of their elevated privileges as possible once the
extension instance that created them has been destroyed (which is something we
couldn't handle easily when we simply tracked ID strings).

MozReview-Commit-ID: KDNvVdvLkIt
2017-09-05 11:04:43 -07:00
Andreas Farre eaa980abfb Bug 1393359 - Register active peer connections on top level window. r=smaug 2017-09-04 14:40:39 +02:00
Andreas Farre f912b82fb5 Bug 1393359 - Register active user media on top level window. r=smaug,jib 2017-09-04 14:40:30 +02:00
Andreas Farre 0478fbfcb2 Bug 1393056 - Make it possible to count open WebSockets on the main thread. r=smaug 2017-09-01 10:36:49 +02:00
Andrew McCreight 84ee98de3c Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Jan de Mooij edc8fc9f26 Bug 1393790 part 1 - Remove JS_STUBGETTER and JS_STUBSETTER. r=jorendorff 2017-08-28 10:39:57 +02:00
Jan de Mooij 333c72d25e Bug 1393715 - Remove JSFUN_STUB_GSOPS and JS_FS. r=arai 2017-08-25 17:04:12 +02:00
Nicholas Nethercote 5a298339f4 Bug 1390428 (part 7) - Remove a tricky nsXPIDLCString variable. r=erahm.
The existing comment was very helpful here.
2017-08-17 14:23:39 +10:00
Wes Kocher f4e87a1fb3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Kris Maglione e8f17cb030 Bug 1356334: Part 6 - Allow completely terminating a slow content script sandbox. r=billm
MozReview-Commit-ID: 5CDLHrAeuDt
2017-04-16 14:01:16 -07:00
Kris Maglione 0362e63fc4 Bug 1356334: Part 5 - Add add-on name to slow script messages. r=billm
MozReview-Commit-ID: 2nyDmoiBKp4
2017-08-17 20:17:51 -07:00
Ryan VanderMeulen 0980b8abd2 Backed out 8 changesets (bug 1356334) for frequent test_ext_contentscript_async_loading.html failures on Android debug on a CLOSED TREE.
Backed out changeset 9c677ebfdda0 (bug 1356334)
Backed out changeset 16b49fd1c38a (bug 1356334)
Backed out changeset 4f5bcd2b2dc6 (bug 1356334)
Backed out changeset d832803270ac (bug 1356334)
Backed out changeset b83aea215a82 (bug 1356334)
Backed out changeset b2a663ffd144 (bug 1356334)
Backed out changeset 805c56806930 (bug 1356334)
Backed out changeset 7c880eca810a (bug 1356334)
2017-08-18 11:32:18 -04:00
Kris Maglione 4e048dbe74 Bug 1356334: Part 6 - Allow completely terminating a slow content script sandbox. r=billm
MozReview-Commit-ID: 5CDLHrAeuDt
2017-04-16 14:01:16 -07:00
Kris Maglione dc384e8e07 Bug 1356334: Part 5 - Add add-on name to slow script messages. r=billm
MozReview-Commit-ID: 2nyDmoiBKp4
2017-08-11 22:11:25 -07:00
Milan Sreckovic 5e848ab767 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in dom/*. r=overholt
MozReview-Commit-ID: B9YWmM3C1oX
2017-08-14 08:30:10 -04:00
Sebastian Hengst 3443590645 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4cZJ3qFjvPY
2017-08-12 23:49:21 +02:00
Nicholas Nethercote ba95579e61 Bug 1387956 (part 2) - Overhaul handling of nsWindowSizes. r=mccr8.
This patch does the following.

- Moves nsWindowSizes from nsWindowMemoryReporter.h to its own file,
  nsWindowSizes.h, so it can be included more widely without exposing
  nsWindowMemoryReporter.

- Merges nsArenaMemoryStats.h (which defines nsTabSizes and nsArenaMemoryStats)
  into nsWindowSizes.h.

- Renames nsArenaMemoryStats as nsArenaSizes, and nsWindowSizes::mArenaStats as
  nsWindowSizes::mArenaSizes. This is the more usual naming scheme for such
  types.

- Renames FRAME_ID_STAT_FIELD as NS_ARENA_SIZES_FIELD.

- Passes nsWindowSizes to PresShell::AddSizeOfIncludingThis() and
  nsPresArena::AddSizeOfExcludingThis(), instead of a bunch of smaller things.
  One nice consequence is that the odd nsArenaMemoryStats::mOther field is no
  longer necessary, because we can update nsWindowSizes::mLayoutPresShellSize
  directly in nsPresArena::AddSizeOfExcludingThis().

- Adds |const| to a few methods.

MozReview-Commit-ID: EpgFWKFqy7Y
2017-08-10 14:14:09 +10:00
Nicholas Nethercote bcee59b0d8 Bug 1387956 (part 1) - Change |nsWindowSizes*| arguments to |nsWindowSizes&|. r=mccr8.
This makes it clear they are never null.

MozReview-Commit-ID: H4i8uqZs48H
2017-08-10 14:13:22 +10:00
Masatoshi Kimura 26299618f5 Bug 1389460 - Remove @deprecated nsIDOMEventTarget.DispatchDOMEvent. r=smaug
MozReview-Commit-ID: E88DZK5sfwx
2017-08-07 02:28:52 +09:00