Commit graph

2,186 commits

Author SHA1 Message Date
wolfbeast
6cba36850f Increase purple limit triggers for CC.
Making these much larger to allow more purple buffer buildup
and prevent overzealous cycle collection on purple buffer pressure.
2019-02-16 00:27:50 +08:00
wolfbeast
39d5eb7759 Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS 2019-02-16 00:27:49 +08:00
wolfbeast
e015efb999 Consolidate tracing and traversing. 2019-02-16 00:27:47 +08:00
Ascrod
13969c80a3 Pale Moon: Use file path for bookmarks import/export. 2019-02-16 00:27:46 +08:00
wolfbeast
5aa6fbb0ae Fix build error with JS_HAS_TOSOURCE undefined. 2019-02-16 00:27:44 +08:00
trav90
7c9325064a Update HSTS preload list
Tag #447
2019-02-16 00:27:43 +08:00
wolfbeast
191530d0cf Set incremental GC slice to 20 ms duration 2019-02-16 00:27:41 +08:00
NTD
e30598c519 [TychoAM] Fix GMP* so that EME works in Basilisk
Also, keep WebExAM working for the moment
2019-02-16 00:27:39 +08:00
adeshkp
521c918660 Remove telemetry leftovers from JS engine. 2019-02-16 00:27:38 +08:00
NTD
120aa8a81e Only state the stop notification for JSDownloads in nsWebBrowserPersist::EndDownload 2019-02-16 00:27:36 +08:00
wolfbeast
496aae0631 Revert "Fix bookmarks backup logic."
This reverts commit 99f5afe64b393809c4bdee6c92d0769091bd2ca0.
2019-02-16 00:27:35 +08:00
wolfbeast
eebdb819ea [AM] Remove spurious warning for staged cleanup.
This fixes #773.
2019-02-16 00:27:33 +08:00
trav90
a137fdb1c1 Always treat composition time offsets as signed
Even for version 0 ctts atoms that technically should contain only
unsigned values.
2019-02-16 00:27:32 +08:00
David Teller
7d0bef1093 Reduce number of allocations in AutoStopwatch
This patch fixes two related issues.
1. The AutoStopwatch uses a stack-allocated `mozilla::Vector` to
communicate with its callback during each compartment switch.
This vector was designed to allow its contents to be stack-allocated
but they turned out to be accidentally heap-allocated.

2. During each tick, the stopwatch fills a vector `recentGroups_`.
This vector always started with minimal capacity and had to grow
repeatedly as groups were added, causing repeated reallocations.
This patch preallocates `recentGroups_` to have the same capacity as the
previous tick. We expect that this should eventually reach a stable size
that closely matches the actual needs of the process.
2019-02-16 00:27:30 +08:00
wolfbeast
dce38e8d76 Revert "Reduce number of allocations in AutoStopwatch"
This reverts commit 3476c1d60ec29c5497123194acd7a9310b1023d2.
2019-02-16 00:27:29 +08:00
David Teller
059aeea416 Reduce number of allocations in AutoStopwatch
This patch fixes two related issues.
1. The AutoStopwatch uses a stack-allocated `mozilla::Vector` to
communicate with its callback during each compartment switch.
This vector was designed to allow its contents to be stack-allocated
but they turned out to be accidentally heap-allocated.

2. During each tick, the stopwatch fills a vector `recentGroups_`.
This vector always started with minimal capacity and had to grow
repeatedly as groups were added, causing repeated reallocations.
This patch preallocates `recentGroups_` to have the same capacity as the
previous tick. We expect that this should eventually reach a stable size
that closely matches the actual needs of the process.
2019-02-16 00:27:28 +08:00
wolfbeast
1e2c555484 [PALEMOON] Remove some dead code from browser glue
(plugin update service)
2019-02-16 00:27:26 +08:00
wolfbeast
8dab928cc3 [BASILISK] Align browser glue with TychoAM for enableable add-ons. 2019-02-16 00:27:25 +08:00
wolfbeast
b60487cfc9 Remove remote add-on debugging control. 2019-02-16 00:27:23 +08:00
wolfbeast
084eb46afa Add nullcheck for addons (pre-installed webextensions return null)
Tag #937.
2019-02-16 00:27:22 +08:00
FranklinDM
b8070842f1 Only use white audio indicator when using a lightweight theme [pinned tabs] 2019-02-16 00:27:21 +08:00
FranklinDM
e2b186d571 Only use white audio indicator when using a lightweight theme 2019-02-16 00:27:19 +08:00
wolfbeast
c2496a58d0 Fix incorrect file reference in onDownloadDragStart
Follow-up to Janek's port in 462332eee018e24d88255c708fa8acb67a717673
where this variable was changed creating a mismatch with surrounding
code.

This fixes #943.
2019-02-16 00:27:18 +08:00
wolfbeast
83dcf0f290 Fix bookmarks backup logic.
This is a follow-up to an incomplete patch submitted to Tycho:
https://github.com/MoonchildProductions/Pale-Moon/pull/1082

Also reduces the idle time before attempting to backup in the background
to 10 minutes (was 15).
2019-02-16 00:27:17 +08:00
wolfbeast
a1c22f3a76 Check for contiguous buffer state.
When we are reading large image data (i.e.: people using webp to stream
video instead of the native webm format; I'm looking at you, Giphy!)
we can run into the situation where the available data is not in a
contiguous buffer, and we need to either buffer additional data or
re-buffer from the start. If we don't do this, we can run into issues
because of buffer over-reading (causing corrupted data if allocated or
more likely crashes if not allocated).
Re-buffering is expensive, but this should be rare and limited to
dealing with unintended use for animated image formats.

This resolves #940.
2019-02-16 00:24:38 +08:00
wolfbeast
3640321580 Make Sourcebuffer::AppendFromInputStream handle canceled image loads. 2019-02-16 00:24:36 +08:00
wolfbeast
f84fdea422 Make resuming of decoding work for anonymous decoders. 2019-02-16 00:24:35 +08:00
wolfbeast
072fbe1a93 Update libwebp to version 1.0.2
This resolves #939.
2019-02-16 00:24:34 +08:00
wolfbeast
3cc2485e42 Properly camelCase dom.intersectionObserver.enabled pref. 2019-02-16 00:24:32 +08:00
wolfbeast
125d551bd6 Revert "Disable IntersectionObserver API because of crashes."
This reverts commit ac1beef5c10a114afe18897d5d3ced24ac378b92.
2019-02-16 00:24:31 +08:00
wolfbeast
7798af3c14 Actually unlink targets from registered intersection observers.
When a node is released/removed, and it has an intersection observer
attached to it, that observer should be unlinked at the time of release.

This resolves #935.
2019-02-16 00:24:29 +08:00
wolfbeast
bc84969432 Disable IntersectionObserver API because of crashes.
See #934 and #935.
2019-02-16 00:24:27 +08:00
Ascrod
b85fb498d9 Fix check for HSTS when service is disabled. 2019-02-16 00:24:25 +08:00
Ascrod
ecab329490 [PALEMOON] Fix the option to disable HSTS. 2019-02-16 00:24:24 +08:00
Ascrod
57ca286478 Add preference for fully disabling HSTS. 2019-02-16 00:24:23 +08:00
wolfbeast
dc2cf8544d Rewrite IntersectionObserver list handling to be more robust.
Tag #935.
2019-02-16 00:24:21 +08:00
wolfbeast
9222116f26 Add isIntersecting property to IntersectionObserverEntry.
Per updated spec.

This resolves the issue raised in #249.
2019-02-16 00:24:20 +08:00
wolfbeast
54b77893e2 New cycle version bump 2019-02-16 00:24:18 +08:00
wolfbeast
2c450f5ad9 Improve toolbar icons for all DPIs
Tag #576.

- Redraw toolbar SVG images, pixel-aligning them as best as possible
  with manual node placement on the pixel grid.
- Reintroduce PNG versions for < 1.33 dppx (with added glow arrow)
- Make the css adaptive around the 1.33 dppx border, using PNG below
  that threshold and SVG above it.
2019-02-16 00:24:17 +08:00
wolfbeast
7f9b5f6329 [PALEMOON] Add captive portal preference to the UI.
Tag #860
2019-02-16 00:24:16 +08:00
wolfbeast
199b74eb9d Add matching browser.newtab.choice pref to prevent error. 2019-02-16 00:24:14 +08:00
wolfbeast
226e8d98bb [PALEMOON] Move Advanced prefs l10n strings to their proper place 2019-02-16 00:24:13 +08:00
wolfbeast
7bd9777765 [PALEMOON] Clean up advanced prefs XUL
Remove commented out old Firefox prefs that haven't been used in a
loon while and aren't going to be reinstated.
2019-02-16 00:24:11 +08:00
wolfbeast
19f9451de0 [WebExAM] Use proper application name in WebExtension API error message. 2019-02-16 00:24:10 +08:00
adeshkp
a8a28d4537 Make AllowExperiments return false as it is not useful without telemetry 2019-02-16 00:24:08 +08:00
adeshkp
813140d8c7 Remove a pointless switch after telemetry cleanup 2019-02-16 00:24:07 +08:00
adeshkp
4c3713155e Remove unused telemetry timer from HTMLMediaElement.h 2019-02-16 00:24:06 +08:00
adeshkp
aea50f182f Telemetry: Remove stubs and related code 2019-02-16 00:24:04 +08:00
wolfbeast
10053448d6 Update basilisk blocklist header. 2019-02-16 00:24:01 +08:00
wolfbeast
14ea8bb121 Align Element.ScrollIntoView() with the spec.
This also removes the (unused) shadow alias from nsIDOMHTMLElement
which used the different calling convention.

This resolves #927
2019-02-16 00:24:00 +08:00