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

706589 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke 8118041984 Bug 1627892 - Make StreamList derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
Differential Revision: https://phabricator.services.mozilla.com/D69959
2020-05-11 12:11:33 +00:00
Simon Giesecke 32076b1063 Bug 1627892 - Make InternalRequest derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
Differential Revision: https://phabricator.services.mozilla.com/D69958
2020-05-11 12:10:53 +00:00
Simon Giesecke c4c6f0c42c Bug 1627892 - Make Context derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry
Differential Revision: https://phabricator.services.mozilla.com/D69957
2020-05-11 12:09:55 +00:00
Simon Giesecke 33a08c2818 Bug 1627892 - Make Manager derive from SafeRefCounted. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D69956
2020-05-11 12:09:02 +00:00
Simon Giesecke 521c25b58c Bug 1627892 - Replace custom AutoLock by BaseAutoLock. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D69945
2020-05-11 12:08:14 +00:00
Dão Gottwald c25aee166f Bug 1636112 - Make post-prompt animation obey prefers-reduced-motion. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D74231
2020-05-11 12:06:50 +00:00
Simon Giesecke f07c441f41 Bug 1636114 - Add Span::AsConst method. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D74232
2020-05-11 09:27:40 +00:00
James Teh 09a25365d2 Bug 1572860: Remove the ability for an outer document to override live region markup in an inner iframe document. r=MarcoZ
This is something that was implemented a long time ago, but it isn't covered in any spec, other browsers don't implement it and I don't know of any usage in the wild.
This doesn't work with OOP iframes, since what we're doing here requires the documents to be in the same process.
Given it isn't used or specified, the simplest solution is to just remove the behaviour altogether.

Differential Revision: https://phabricator.services.mozilla.com/D74628
2020-05-11 11:13:43 +00:00
Neil Deakin 4e865e037b Bug 1628053, don't get the root window when adding the unload listener, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D71453
2020-05-11 10:33:28 +00:00
Andrea Marchesini fa593c827a Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions - tests, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D73616
2020-05-11 10:59:55 +00:00
Andrea Marchesini f697165e60 Bug 1635050 - Implement a whitelist system for cookieBehavior REJECT_FOREIGN with exceptions, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D73615
2020-05-11 10:59:51 +00:00
Nicolas Chevobbe deffb48922 Bug 1635437 - Directly store targetFronts in toolbox redux store. r=ochameau.
We add `targetType` and `isTopLevel` properties on the target front, which
are set from the targetList and are used in the EvaluationContextSelector.

As a result we are able to directly call targetFront.targetType in a few
places instead of calling `getTargetType` again.

Differential Revision: https://phabricator.services.mozilla.com/D73890
2020-05-11 10:51:52 +00:00
Nicolas Chevobbe 1c52c579d2 Bug 1595046 - Display thrown object as inspectable elements. r=Honza,perftest-reviewers,davehunt.
This patch use the new `exception` and `hasException` field from nsIScriptError
so we can render the actual object in the message error instead of a stringified
version.
Error object are still displayed using the `customFormat` prop, so we display
only the type + message + stacktrace (but we'll have a way to inspect them
in the sidebar soon).
Existing tests were updated to fix failures, and some tests/test cases were
added to make sure we cover all the different kind of errors we can display
in the console.

Differential Revision: https://phabricator.services.mozilla.com/D71288
2020-05-11 10:38:57 +00:00
Nicolas Silva 96e70c7f92 Bug 1636038 - Only rebuild the scene if the a displaylist or root pipeline was updated. r=gw
This reverts to the behavior before https://phabricator.services.mozilla.com/D71781 which introduced a talos regression.

Differential Revision: https://phabricator.services.mozilla.com/D74228
2020-05-07 19:43:07 +00:00
Andrea Marchesini 68dab10ed9 Bug 1629274 - Fix Intermittent failure in test_permmanager_removeall.js, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D74590
2020-05-11 08:34:04 +00:00
Andrea Marchesini 431d63fa33 Bug 1636847 - Update WebSocket CTOR definition, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D74589
2020-05-11 09:06:20 +00:00
Mirko Brodesser 194a3b964e Bug 1635709: part 5) Annotate `Selection::ReplaceAnchorFocusRange` with `MOZ_CAN_RUN_SCRIPT`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D74383
2020-05-11 09:39:33 +00:00
Mirko Brodesser 6ddb867610 Bug 1635709: part 4) Transform `Selection::DoAutoScroll` to `AutoScroller::DoAutoScroll`. r=masayuki
Allows defriending `AutoScroller` from `Selection` and removes the
direct dependency of `AutoScroller` to `Selection`.

Differential Revision: https://phabricator.services.mozilla.com/D74382
2020-05-11 09:38:00 +00:00
Tom Schuster c585c049dc Bug 1635958 - Warp: Transpile GuardIsNull/Undefined. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D74460
2020-05-11 08:51:22 +00:00
Simon Giesecke e6422e2afd Bug 1626570 - Remove obsolete copy enabling machinery. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D72176
2020-05-11 08:23:03 +00:00
Simon Giesecke 2a7be3ea65 Bug 1626570 - Make nsTArray non-copyable. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D73686
2020-05-11 08:22:45 +00:00
Simon Giesecke 007d920362 Bug 1626570 - Improve handling of copying arrays in dom/bindings/. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D72341
2020-05-11 08:22:37 +00:00
Simon Giesecke bc5cc237af Bug 1626570 - Improve handling of copying arrays in toolkit/mozapps/. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D73818
2020-05-11 08:22:25 +00:00
Simon Giesecke da93ce54da Bug 1626570 - Improve handling of copying arrays in dom/workers/. r=dom-workers-and-storage-reviewers,ytausky
Differential Revision: https://phabricator.services.mozilla.com/D73668
2020-05-11 08:22:17 +00:00
Simon Giesecke fdd762b2fb Bug 1626570 - Improve handling of copying arrays in dom/serviceworkers/. r=dom-workers-and-storage-reviewers,ytausky
Differential Revision: https://phabricator.services.mozilla.com/D73664
2020-05-11 08:22:14 +00:00
Simon Giesecke 828e4c9c4e Bug 1626570 - Improve handling of copying arrays in dom/xslt/. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D73661
2020-05-11 08:21:08 +00:00
Simon Giesecke 200e2d6504 Bug 1626570 - Improve handling of copying arrays in dom/gamepad/. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D73649
2020-05-11 08:20:52 +00:00
Simon Giesecke c3067cb5c7 Bug 1635364 - Make netwerk/dns build outside unified build environment. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D73800
2020-05-11 08:20:34 +00:00
Christoph Kerschbaumer c65e97cd1c Bug 1635365: Move field mixed content IsSecure from BrowsingContext to WindowContext. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D74269
2020-05-11 08:11:17 +00:00
Andrea Marchesini 2927c5611c Bug 1585941 - Split browser_blockingIndexedDbInWorkers.js, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74519
2020-05-11 08:04:46 +00:00
Andrea Marchesini 0f4efcecab Bug 1633197 - WebSocket bufferedAmount must be unsigned long long (uint64_t), r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D74558
2020-05-11 07:44:10 +00:00
Sylvestre Ledru 8305e1a99e no bug - contribution doc: Document how to install moz-phab r=glob DONTBUILD
Depends on D74437

Differential Revision: https://phabricator.services.mozilla.com/D74438
2020-05-11 07:59:47 +00:00
Mihai Alexandru Michis ee28f3da05 Backed out changeset f2508a6e4c53 (bug 1636572) for causing wpt failures in track-element/cors/*
CLOSED TREE
2020-05-11 10:47:22 +03:00
Masayuki Nakano e317a8bfb7 Bug 1622231 - Make `HTMLEditor::SetInlinePropertyAsAction()` override property if it's called for XUL `cmd_fontFace` with a magic value "tt" r=m_kato
`FontFaceStateCommand::SetState()` called
`HTMLEditor::SetInlinePropertyAsAction()` with `nsGkAtoms::tt` when given value
is "tt".
https://searchfox.org/mozilla-central/rev/bc5737c51b8da4e758cf4db0ddb606f0aea81a7d/editor/libeditor/HTMLEditorCommands.cpp#626-627

However, I accidentally not ported this to
`HTMLEditor::SetInlinePropertyAsAction()`.  Therefore, this patch restores the
old code for the magic value.

Differential Revision: https://phabricator.services.mozilla.com/D74379
2020-05-11 07:30:47 +00:00
Nikita Kozhemiakin 2158dd66ed Bug 1523544 - Change exoplayer2 package name. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D74068
2020-05-11 07:24:57 +00:00
Nicolas Chevobbe db468890fa Bug 1594750 - Distinguish workers in the TargetList. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D73803
2020-05-11 07:13:57 +00:00
Dimi Lee dde23f5029 Bug 1628732 - Don't notify block decision when uri is chrome r=timhuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D73867
2020-05-10 11:25:06 +00:00
alwu a997790dad Bug 1636572 - prevent start a non-necessary new load if we're running another load for the same URL. r=jya
This patch will do :
- prevent starting another new load if that load is the same as the currently running load

The advantage of doing so is to avoid running same process again, which is unnecessary

More details :
When applying patches from bug1633935, it exposed an issue of the previous load interfering the track element when a new load was started.
It happens on `test_texttrack_mode_change_during_loading.html`. In that test, the first load happens when we set the src to the track element [1] and the second load happens when we change the mode of the track element [2].

In this situation, the first load an the second load is actually the same, they are going to fetch data from the same resource. According to the step 1 in the spec [3], we should prevent running another load if there is another same running occurrence of this algorithm.

[1] https://searchfox.org/mozilla-central/rev/dc4560dcaafd79375b9411fdbbaaebb0a59a93ac/dom/media/test/test_texttrack_mode_change_during_loading.html#53
[2] https://searchfox.org/mozilla-central/rev/dc4560dcaafd79375b9411fdbbaaebb0a59a93ac/dom/media/test/test_texttrack_mode_change_during_loading.html#62
[3] https://html.spec.whatwg.org/multipage/media.html#start-the-track-processing-model

Differential Revision: https://phabricator.services.mozilla.com/D74514
2020-05-09 10:42:53 +00:00
Dmitry Bezhetskov 446160560b Bug 1599722 - Make Ion address stack arguments from FP r=lth,wingo
Make the WebAssembly ion compiler address incoming stack arguments from the frame pointer instead of from the stack pointer.

We have a plan to allow interstitial trampoline frames to be inserted between callers and callees, but only for cross-instance calls. This will mean offset to incoming stack arguments from SP is no longer a constant. The design has us instead address stack arguments from the frame pointer, as adding an interstitial trampoline frame won't modify the frame pointer.

Differential Revision: https://phabricator.services.mozilla.com/D73030
2020-05-11 05:53:52 +00:00
Henrik Skupin b87caead47 Bug 1636557 - [remote] Return class name and description for DOM nodes in Runtime.callFunctionOn and Runtime.evalute. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D74454
2020-05-09 15:06:30 +00:00
Emma Malysz 870c5c304f Bug 1610134: Part 2: Increase timeout pref that turns on late write checking r=dthayer
Increasing toolkit.asyncshutdown.report_writes_after to 40s to advance this investigation.

Differential Revision: https://phabricator.services.mozilla.com/D74159
2020-05-11 00:29:13 +00:00
Jean-Yves Avenard 28d4ac9c33 Bug 1634982 - Don't call DocumentChannelBridgeDisconnected when already being disconnected from the DocumentLoadListener. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D74517
2020-05-11 00:42:09 +00:00
Cameron McCormack 3ccaaa0422 Bug 1621773 - Gracefully handle errors creating shared memory UA style sheets. r=emilio
We still panic in a debug build, so that developers can notice when they
need to add a new static atom after modifying UA sheets.

We also add telemetry to note when this happens, add an app note to a
crash report, in case any crash later on occurs, and re-up the existing,
expired shared memory sheet telemetry probes so we can look at them
again.

Differential Revision: https://phabricator.services.mozilla.com/D73188
2020-05-11 00:11:45 +00:00
Glenn Watson 73cf21cd23 Bug 1636320 - Part 2 - Remove spatial node from clip interning. r=Bert
Previously, the spatial node index for a clip was stored as part
of the interning key.

However, if a new display list is sent where the clip has the same
transform, but the shape of the spatial-tree had changed (e.g.
due to a new transform being inserted due to a DOM change), this
could result in those clip(s) being detected as different. This
can cause unnecessary invalidations of picture cache tiles.

With this patch, the spatial node index is stored inside the
instance structures (ClipInstance and ClipChainNode), meaning that
picture cache tiles are no longer invalidated if the spatial
tree shape changes.

Differential Revision: https://phabricator.services.mozilla.com/D74363
2020-05-10 21:32:43 +00:00
Glenn Watson 0c7e6cd638 Bug 1636320 - Part 1 - Separate internal clip chains from public API. r=Bert
The public clip API allows clips to be defined with either
a parent hierarchy, or via a clip-chain display item where
a list of clips are provided.

The WR internals represent both of these as an internal
clip-chain, where clips are parented and stored in a
linked list (although the elements themselves are in
a contiguous array).

Previously, WR would convert the public clip nodes into
clip-chains as soon as the clips were defined. However,
this complicates many other parts of the code. For example,
we want to be able to re-parent clips to the root clip
node of an iframe, and we need to extract shared clips
that can be handled by parent surfaces.

With this change, clips defined in the public API are
mapped into a ClipTemplate. The internal clip-chains
that WR uses are not created until the primitive is
defined. With this change, we can easily insert or
modify how the primitive's clip-chain is created. In
this patch, the `ClipChainBuilder` is used to add
the iframe clip root to any primitives inside the
iframe. In future patches, it will also be used to
handle clips from redundant stacking contexts, which
will allow the removal of all the Push/PopClipChain
display items.

Differential Revision: https://phabricator.services.mozilla.com/D74347
2020-05-10 21:31:16 +00:00
Julian Descottes 9181073a32 Bug 1635467 - Test calling ResourceWatcher::unwatch for several resources r=nchevobbe
Depends on D72854

Differential Revision: https://phabricator.services.mozilla.com/D73904
2020-05-10 18:42:38 +00:00
Julian Descottes a61fda7ffd Bug 1625961 - Throw when calling ResourceWatcher::watch twice for the same type r=nchevobbe,ochameau
Depends on D72668

Differential Revision: https://phabricator.services.mozilla.com/D72854
2020-05-10 18:42:15 +00:00
Julian Descottes 0d4c2cbb28 Bug 1625961 - Use the ResourceWatcher API to fetch Root NodeFront r=ochameau,nchevobbe
Depends on D62625

Differential Revision: https://phabricator.services.mozilla.com/D72668
2020-05-10 18:41:58 +00:00
Razvan Maries 917859d20b Backed out 3 changesets (bug 1635467, bug 1625961) for mochitest perma failures at browser_harautomation_simple.js
Backed out changeset 1d258bab62d7 (bug 1635467)
Backed out changeset cf46002eefb0 (bug 1625961)
Backed out changeset c7757cea8327 (bug 1625961)
2020-05-10 19:01:23 +03:00
Julian Descottes 210bc20606 Bug 1635467 - Test calling ResourceWatcher::unwatch for several resources r=nchevobbe
Depends on D72854

Differential Revision: https://phabricator.services.mozilla.com/D73904
2020-05-10 14:40:58 +00:00