Граф коммитов

702286 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley 7908818e65 Bug 1614502 - Expose utility functions for rendering Activity Stream. r=Mardak
These will be used by a later patch inside of a ChromeWorker using
ReactDOMServer.

Differential Revision: https://phabricator.services.mozilla.com/D68093
2020-04-17 15:31:11 +00:00
Mike Conley 06702cde13 Bug 1614502 - Vendor react-dom-server into the newtab component. r=k88hudson
Vendor react-dom-server from react-dom dependency installed (16.12.0).

Differential Revision: https://phabricator.services.mozilla.com/D68092
2020-04-17 15:31:06 +00:00
Johann Hofmann d262a2fe87 Bug 1627220 - Consider quota manager activity for cookie purging. r=ewright
We're using nsIStorageActivityService to get only principals that were using storage in the last 3 days.

A few notes on that:

- 3 days is based on the assumption that it's very unlikely that a client would miss idle daily for 3 days in a row.

- We're currently only persisting activity for up to 24 hours. Bug 1630598 tracks extension to 3 days.

- We're currently not persisting storage activity service across restarts. This is bug 1459974 which we're aiming to resolve.

- This will not immediately clear all old tracking storage, only when it is used another time. In the same vein
  there's a chance the we miss clearing if the user manages to persistently have Firefox sessions that are so short
  that idle-daily is rarely triggered. This would be problematic for cookie purging in general, though.

- This produces a significantly lower number of principals to check. We could consider switching cookies
  to the same approach (only get the last x days of activity).

I talked to Steve Englehardt and we're generally okay with these caveats in favor of the simplified implementation.

Differential Revision: https://phabricator.services.mozilla.com/D71173
2020-04-17 15:29:25 +00:00
Kagami Sascha Rosylight e92d0e2a79 Bug 1597267 - Remove dom.registerProtocolHandler.insecure.enabled r=annevk,emilio
Differential Revision: https://phabricator.services.mozilla.com/D69400
2020-04-17 12:06:19 +00:00
Jon Coppeard 9d03b9bd1a Bug 1629843 - Mark indexedDB classes as able to have pointers into more than one JS zone r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D71289
2020-04-17 14:57:57 +00:00
Emilio Cobos Álvarez 2769a14cc2 Bug 1629735 - Implement parsing / selector-matching for :is() and :where(). r=heycam
This implements the easy / straight-forward parts of the :where / :is
selectors.

The biggest missing piece is to handle properly invalidation when there
are combinators present inside the :where. That's the hard part of this,
actually.

But this is probably worth landing in the interim. This fixes some of
the visitors that were easy to fix.

Differential Revision: https://phabricator.services.mozilla.com/D70788
2020-04-17 13:37:59 +00:00
Mark Banner 9f8ac72bb9 Bug 1629680 - When determining the original default engine, fallback to the configuration set engine if the cached engine can't be found. r=daleharvey
This helps fix the case when language switching that we get the wrong default engine if the cache is out of date.

Modern is unaffected as it doesn't use ABSearch, but the test covers both to make sure.

Differential Revision: https://phabricator.services.mozilla.com/D71216
2020-04-17 14:10:08 +00:00
Marco Castelluccio e5bbfd6a2d Bug 1630708 - Rename bugbug_push_schedules shadow scheduler to bugbug_all for consistency. r=ahal
Depends on D71205

Differential Revision: https://phabricator.services.mozilla.com/D71327
2020-04-17 14:02:39 +00:00
Marco Castelluccio 65cb638d0e Bug 1630708 - Increase the confidence thresholds used by the bugbug-based strategies. r=ahal
Keeping the same for the currently chosen strategy for try auto, since we
don't want to decrease its regression detection rate.

We also add a new shadow scheduler which uses the reduced set with a higher
confidence threshold.

Differential Revision: https://phabricator.services.mozilla.com/D71205
2020-04-17 13:53:55 +00:00
Daniel Varga 779e62f1bc Backed out 4 changesets (bug 1624268) for causing brwoser-chrome failure at toolkit/components/antitracking/test/browser/browser_partitionedSharedWorkers.js
CLOSED TREE

Backed out changeset d58da2438eee (bug 1624268)
Backed out changeset 06adb66489b8 (bug 1624268)
Backed out changeset c947c72829a6 (bug 1624268)
Backed out changeset 8af99a5ecd54 (bug 1624268)
2020-04-17 17:16:26 +03:00
Eden Chuang f519d74b3b Bug 1598131 - Propagate the browsingContext's COEP to the new created one in nsFrameLoader::Recreate r=farre
The COEP header needs to propagate to the new created BrowsingContext for process switching.

Differential Revision: https://phabricator.services.mozilla.com/D69936
2020-04-17 11:29:13 +00:00
Daniel Varga 53533d14b8 Backed out changeset a6904ec3d1e0 (bug 1347710) for causing Bug 1630860 a=backout 2020-04-17 13:01:21 +03:00
Henrik Skupin 5bffe12d30 Bug 1599413 - [remote] Add executeSoon to sync helper methods. r=remote-protocol-reviewers,jgraham
There are needs to delay the execution of code on the main thread
until the next tick of the event loop has happened.

Differential Revision: https://phabricator.services.mozilla.com/D71291
2020-04-17 09:08:30 +00:00
Emma Malysz aec6359182 Bug 1629376, Revert the fragment caching changes to ensure downloads are shown in Library menu. r=emilio
DownloadsSubview and DownloadsView do not inherit from custom elements and cannot rely on the static getFragment method.
The individual download list items all need to be cloned in order to display.

Differential Revision: https://phabricator.services.mozilla.com/D71204
2020-04-17 05:07:49 +00:00
Ciure Andrei 3593787658 Backed out changeset 894ebe92bdae (bug 1628052) for causing failure increase in bug 1358898 CLOSED TREE 2020-04-17 07:20:16 +03:00
Masayuki Nakano 9f7fb5bb0f Bug 1630168 - Make `HTMLEditor` stop adding same runnable method into the queue r=m_kato
When `HTMLEditor` is notified of content changes, it may add a runnable method
`HTMLEditor::OnModifyDocument` or `HTMLEditor::NotifyRootChanged` for each
notification. However, their code do not need running twice nor more. This
could cause performance issues on complicated web apps which sets `innerHTML`
at every key press.

Differential Revision: https://phabricator.services.mozilla.com/D71001
2020-04-16 15:15:26 +00:00
Andrei Oprea 3ef497088e Bug 1624309 - Add persistent storage for ExperimentStore r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D68215
2020-04-17 11:02:36 +00:00
Masayuki Nakano 5a3a0d40e7 Bug 1627175 - part 10: Move `HTMLEditor::GetEnclosingTable()` to `HTMLEditUtils` r=m_kato
Depends on D70883

Differential Revision: https://phabricator.services.mozilla.com/D70884
2020-04-16 14:53:54 +00:00
Marco Bonardo 6d1242bea3 Bug 1628288. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D71191
2020-04-17 09:59:23 +00:00
AbdallahAfify 725fd3f4a8 Bug 1629431 - Use bool true instead of int 1. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D71244
2020-04-17 09:57:24 +00:00
Daniel Varga 23fb36c6a8 Backed out changeset d64c9eb2f326 (bug 1624309) for causing brwoser-chrome failures at toolkit/components/normandy/test/browser/browser_actions_MessagingExperimentAction.js
CLOSED TREE
2020-04-17 13:50:07 +03:00
Daniel Varga ca80197a2f Backed out 4 changesets (bug 1605209) for causing browser-chrome failures at dom/ipc/tests/JSWindowActor/browser_crash_report.js
CLOSED TREE

Backed out changeset 6eb1cc169dbf (bug 1605209)
Backed out changeset d81b566ad94f (bug 1605209)
Backed out changeset e0e6dbf1d48d (bug 1605209)
Backed out changeset 289f5bbac1ae (bug 1605209)
2020-04-17 13:49:04 +03:00
Daniel Varga e99eb8477c Backed out 2 changesets (bug 1625942) for causing devtools failures at devtools/client/netmonitor/test/browser_net_reload-markers.js
CLOSED TREE

Backed out changeset 4255bd054e34 (bug 1625942)
Backed out changeset 743e1ce65e06 (bug 1625942)
2020-04-17 13:39:11 +03:00
Andrei Oprea aab36ed374 Bug 1624309 - Add persistent storage for ExperimentStore r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D68215
2020-04-16 17:16:23 +00:00
sumagnadas 74de3ae4a1 Bug 1622687 - toolkit/crashreporter/: Make it flake8 compliant r=gsvelto,rstewart
Made the files in toolkit/crashreporter flake8 compliant
And some finishing touches in the symbolstore.py file for readability

Differential Revision: https://phabricator.services.mozilla.com/D68691
2020-04-16 14:40:31 +00:00
Yoshi Cheng-Hao Huang a44b1a30b1 Bug 1628201 : Use MOZ_NEVER_INLINE to prevent linking error on windows pgo build. r=dmajor
Filed Bug 1630189 for the weird linking error on windows pgo build and
use MOZ_NEVER_INLINE to prevent it.

Differential Revision: https://phabricator.services.mozilla.com/D71162
2020-04-16 17:36:55 +00:00
Yoshi Cheng-Hao Huang e68b3996b2 Bug 1628201: HelperThreadTaskHandler should use UniquePtr for mOffThreadTask. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D70155
2020-04-16 10:57:02 +00:00
Masayuki Nakano 1ee4f00529 Bug 1627175 - part 8: Move `EditorBase::IsContainer()` to `HTMLEditUtils` r=m_kato
It's a virtual method which always returns true if `TextEditor`.  Therefore,
we can move it into `HTMLEditUtils` and we can make the only caller of
`EditorBase` check `IsTextEditor()` instead.

Depends on D70880

Differential Revision: https://phabricator.services.mozilla.com/D70882
2020-04-16 10:32:26 +00:00
Andreea Pavel fad2d44798 Backed out changeset f055b35804d7 (bug 1630655) for multiple failures regarding/IOInterposer on a CLOSED TREE 2020-04-17 07:04:19 +03:00
Cameron McCormack e91f99f8e1 Bug 1616411 - Part 7: Tests. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70277
2020-04-17 02:57:49 +00:00
Cameron McCormack 78281a4d72 Bug 1616411 - Part 6a: Make OrientedImage::GetFrameAtSize return an appropriately sized surface. r=tnikkel
We need this since nsLayoutUtils::SurfaceFromElement expects the
returned frame size to be correct, and we are now wrapping a source
element's image with an OrientedImage.

Differential Revision: https://phabricator.services.mozilla.com/D71243
2020-04-17 02:57:46 +00:00
Cameron McCormack 557c7a0ed7 Bug 1616411 - Part 6: When -moz-element references an image, use the target orientation. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70276
2020-04-17 02:57:44 +00:00
Cameron McCormack 613c789b01 Bug 1616411 - Part 5: Make naturalWidth/naturalHeight getters take RasterImage orientation handling into account. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70275
2020-04-17 02:57:36 +00:00
Cameron McCormack 8ab9b44ae1 Bug 1616411 - Part 4a: Make SurfaceCache aware that native image sizes can be affected by orientation. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70983
2020-04-17 02:57:34 +00:00
Cameron McCormack 1bb5699b04 Bug 1616411 - Part 4: Make nsLayoutUtils::OrientImage undo any automatic RasterImage orientation when required. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70274
2020-04-17 02:57:32 +00:00
Cameron McCormack ca0466aa78 Bug 1616411 - Part 3: Make RasterImage deal with and apply image orientation. r=tnikkel
This makes EXIF orientation metadata honored by default.

Introduce OrientedPixel and UnorientedPixel typed rects and sizes and
use them throughout RasterImage so that we don't confuse which we want.

The reason for doing this rather than having the imgLoader wrap every
RasterImage it creates with an OrientedImage is that returning the
wrapper messes with various notifications, as OrientedImage is not an
ImageResource.

(It would be even better if the JPEG decoder could decode to imgFrames
handling the EXIF orientation itself, but that's a more complicated
change.)

Differential Revision: https://phabricator.services.mozilla.com/D70273
2020-04-17 02:57:30 +00:00
Cameron McCormack b23892c97a Bug 1616411 - Part 2: Don't bother passing in the size to OrientedImage::OrientSurface. r=tnikkel
We can get the size from the surface directly.

Differential Revision: https://phabricator.services.mozilla.com/D70272
2020-04-17 02:57:22 +00:00
Cameron McCormack 75f9b3902d Bug 1616411 - Part 1: Split out some helper methods from OrientedImage. r=tnikkel
RasterImage will make use of them.

Note that there is one bug fix in this patch, which is that
OrientedImage::OrientSurface now creates a surface of the correct size.

(Previously this code was creating a surface with the underlying
image's size, rather than the correctly oriented size.  But we must
not have been calling into that code with our current uses of
OrientedImage.)

Differential Revision: https://phabricator.services.mozilla.com/D70271
2020-04-17 02:57:20 +00:00
Doug Thayer 21c9b8214f Bug 1630655 - Actually advance lateWriteChecksStage to 3 r=erahm
The preprocessor does not handle "# ifdef" like the C preprocessor,
and I failed to test this appropriately after restructuring the
#if... clauses. This also reverts fastShutdownStage back to 1, so
we can be confident in the data we collect.

Differential Revision: https://phabricator.services.mozilla.com/D71190
2020-04-16 23:19:18 +00:00
Botond Ballo 6da7c16257 Bug 1629732 - Fix non-unified build errors in layout/mathml. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D71247
2020-04-17 01:43:08 +00:00
Ciure Andrei c95ead91a9 Backed out changeset c6490dad74ac (bug 1629376) for causing browser_toolbar_library_open_recent.js failures CLOSED TREE 2020-04-17 04:37:49 +03:00
David Teller 5435691b55 Bug 1605209 - Turn actor names into nsCString;r=nika
This should save (a little) memory and avoid quite a few conversions.

Differential Revision: https://phabricator.services.mozilla.com/D70341
2020-04-16 08:58:21 +00:00
David Teller acc935de46 Bug 1605209 - Extending BrowserTestUtils to allow out-of-stack crashing;r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D70191
2020-04-16 08:58:21 +00:00
David Teller b59500d568 Bug 1605209 - Testing JSWindowActor crash annotations;r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D70175
2020-04-16 08:05:45 +00:00
David Teller a6bda985ed Bug 1605209 - Annotate JSWindowActor's message exchanges to determine which actor is on the stack of a crash;r=gsvelto,nika
Differential Revision: https://phabricator.services.mozilla.com/D69993
2020-04-16 08:27:01 +00:00
Coroiu Cristina 71dbc5766d Backed out changeset 60f939d5d3bc (bug 1630607) for SM failure at workspace/breakpad-tools/libbreakpadinjector.so on a CLOSED TREE 2020-04-17 11:31:39 +03:00
Jeff Walden 3dddf97e18 Bug 1624266 - Add code to page/worker/worklet code so that the global "SharedArrayBuffer" property can be trivially omitted from their global objects by changing how a single C++ variable for each case is initialized. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D71253
2020-04-17 08:21:02 +00:00
Jeff Walden 1f028b4735 Bug 1624266 - Allow the SharedArrayBuffer global constructor property to be optionally omitted from a new global object. r=arai,baku
Differential Revision: https://phabricator.services.mozilla.com/D70990
2020-04-17 08:20:45 +00:00
Daisuke Akatsuka aee2e4a38a Bug 1625942: Add a browser test for document events ResourceWatcher. r=ochameau
Depends on D69329

Differential Revision: https://phabricator.services.mozilla.com/D71007
2020-04-17 08:14:51 +00:00
Daisuke Akatsuka 8253c44dc4 Bug 1625942: Introduce ResourceWatcher into network monitor to fetch DocumentEvents. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D69329
2020-04-17 08:13:23 +00:00