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

98693 Коммитов

Автор SHA1 Сообщение Дата
Edgar Chen 00dc0793aa Bug 1686045 - Part 1: Rewrite popup blocker tests for mouse/pointer event; r=smaug
And add more tests for different button value.

Differential Revision: https://phabricator.services.mozilla.com/D101507
2021-01-13 23:33:10 +00:00
Tooru Fujisawa a8ebb3a149 Bug 1674305 - Always use off-thread parse global in decode task and instantiate off-thread. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D101126
2021-01-13 23:31:16 +00:00
Emma Malysz 1ec5d6778d Bug 1686335, fix test for PathUtils.createUniquePath() r=barret
Differential Revision: https://phabricator.services.mozilla.com/D101645
2021-01-13 22:53:23 +00:00
Mihai Alexandru Michis 2abb23a415 Backed out 4 changesets (bug 1680637, bug 1682395) for causing mochitest failures in browser_javascriptDialog*.js
CLOSED TREE

Backed out changeset f5c4603fc02d (bug 1680637)
Backed out changeset 2f89ad4b915e (bug 1682395)
Backed out changeset 2b7e1df00a1c (bug 1680637)
Backed out changeset c35335c49551 (bug 1680637)
2021-01-14 01:51:52 +02:00
Mihai Alexandru Michis d40c24714c Backed out changeset 6149f5b15c5e (bug 1640607) for causing bustages in WebGLTextureUpload.cpp
CLOSED TREE
2021-01-14 00:43:40 +02:00
Steve Fink 9738113572 Bug 1684122 - Demarcate region where GC would break stuff r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D100427
2021-01-13 22:24:36 +00:00
Steve Fink 613e55711f Bug 1682068 - Fix rooting hazard in ImageBitmap::CreateInternal by avoiding movable data r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100428
2021-01-13 22:17:51 +00:00
Steve Fink 4bf3434c15 Bug 1686532 - Add dom::TypedArray_base::Reset() as a signal to the hazard analysis that no invalidatable data is being held onto r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D100429
2021-01-13 22:18:00 +00:00
Steve Fink a75149f6b8 Bug 1684123 - Implement GetArrayBufferViewFixedData and dom::TypedArray_base::FixedData(). r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D100426
2021-01-13 22:17:40 +00:00
Jeff Gilbert 580169fbfc Bug 1640607 - Send SurfaceDescriptors for GPU blitting for video-to-webgl. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101061
2021-01-13 21:49:40 +00:00
Mihai Alexandru Michis bf411e8d30 Backed out 2 changesets (bug 1684123, bug 1682068) for causing bustages.
CLOSED TREE

Backed out changeset e6df68a131a3 (bug 1682068)
Backed out changeset 91ad893cc4d4 (bug 1684123)
2021-01-13 20:34:56 +02:00
Steve Fink 67a0878c54 Bug 1682068 - Fix rooting hazard in ImageBitmap::CreateInternal by avoiding movable data r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100428
2021-01-08 20:14:53 +00:00
Steve Fink 7f06a7503b Bug 1684123 - Implement GetArrayBufferViewFixedData and dom::TypedArray_base::FixedData(). r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D100426
2021-01-13 18:03:25 +00:00
Christoph Kerschbaumer 712f8f4387 Bug 1671166: Validate received Principal in ContentParent r=nika
Differential Revision: https://phabricator.services.mozilla.com/D96071
2021-01-13 17:29:30 +00:00
Micah Tigley 298219ee45 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs,marionette-reviewers,whimboo
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-13 13:27:08 +00:00
Dorel Luca 2a0e56c384 Backed out changeset 760123aa1758 (bug 1665330) for WPT failures in /html/webappapis/dynamic-markup-insertion/document-write/module-tla-import.html. CLOSED TREE 2021-01-13 16:57:11 +02:00
smolnar f4821a90be Backed out changeset 5cdc1511d8ca (bug 1686200) for causing multiple perma failures. CLOSED TREE 2021-01-13 15:23:32 +02:00
Simon Giesecke f5cc97cd7c Bug 1686271 - Fix sort predicate in assertion in QuotaManager::CollectOriginsForEviction. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D101562
2021-01-13 12:34:15 +00:00
Christoph Kerschbaumer b7e9e79c85 Bug 1686200: Use NullPrincipal for pdf.js in CreateObjectURL. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D101586
2021-01-13 12:09:26 +00:00
yulia c897e5a544 Bug 1665330 - If a script is a module, increment the IgnoreDestructiveWrites counter r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D99898
2021-01-13 11:41:01 +00:00
Tooru Fujisawa 33a5756351 Bug 1681308 - Add alignment requirement to XDR buffer. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D101125
2021-01-13 02:18:26 +00:00
Masayuki Nakano 269faceec3 Bug 1357365 - part 5: Make `TypeInState::OnSelectionChange` stop keeping link style for new inserting content when selection is changed by JS r=m_kato,edgar
This is the most important situation.  If selection is collapsed to a edge of a
link, the other browsers does not insert new content into the link.  So, from
the point of view of web developers, this cause should work exactly same as
the other browsers.

Note that the new failures in `editing/run/inserttext.html` are passed only
on Gecko.  So, the test should be updated after fixing this bug.

Differential Revision: https://phabricator.services.mozilla.com/D101004
2021-01-13 01:55:40 +00:00
Masayuki Nakano b12d5c9e83 Bug 1357365 - part 4: Make `TypeInState` stop keeping link style when selection change command is performed, but it didn't change selection r=m_kato,edgar
When caret is not moved but selection change command is fired, it means that
the caret is already set to start or end of editing host.  In this case, we
should stop keeping link style for new inserting content because otherwise,
user cannot exit from the first or last link with arrow keys.

Differential Revision: https://phabricator.services.mozilla.com/D101003
2021-01-13 01:55:32 +00:00
Masayuki Nakano 201d289381 Bug 1357365 - part 3: Make `TypeInState::OnSelectionChange()` stop keeping link style if caret is positioned at edge of a link element and not moved in the link r=m_kato,edgar
Although different from the other browsers' behavior, our traditional behavior
might be better than them because the behavior on the other browser does not
allow users to insert new content at start nor end of a link.

However, we can relax more about keeping traditional behavior for web-compat.
Perhaps, only when caret is moved from the other side of first or last character
in the link and moves caret to the edge of the link with arrow key, we should
allow users to modify the link text.

Otherwise, e.g., `Home` and `End` key press should make it stop keeping the
link style.  This helps advanced users who are familiar with keyboard navigatin
in editor.

Note that this patch also changes the condition which checks
`aReason & nsISelectionListener::KEYPRESS_REASON` to check also
`nsISelectionListener::COLLAPSETO_START_REASON` and
`nsISelectionListener::COLLAPSETO_END_REASON` because all of them are
set by `nsFrameSelection::MoveCaret` exclusively.
https://searchfox.org/mozilla-central/rev/a0ccd492719b1ad2106f6456549be62a76f45acb/layout/generic/nsFrameSelection.cpp#738,741,745
Therefore, they should be treated as same as a key press.

Note that they are also set by `Selection::CollapseToStart` and
`Selection::CollapseToEnd` too.  But a following patch will add a new
reason to notify selection listeners of caused by JS.  So, the problem
will be fixed by the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D101002
2021-01-13 01:55:29 +00:00
Masayuki Nakano 4b218fc374 Bug 1357365 - part 2: Make `TypeInState::OnSelectionChange()` stop inserting new content into the link if clicked outside it r=m_kato
When mouse button is clicked outside a link element but caret is positioned
start or end of the link, our traditional behavior keeps inserting new content
into the link.  But this is different from the other browsers, and it does
not make sense to treat such selection change is intended to keep typing in
the link element.

Therefore, this patch makes `TypeInState::OnSelectionChange()` handle
selection change reason is `mousedown` and `mouseup` cases.  However,
it cannot know whether the event was fired in the parent link element or
not.  Therefore, this patch makes `HTMLEditorEventListener` notifies
`TypeInState` of mouse events via `HTMLEditor`.

Differential Revision: https://phabricator.services.mozilla.com/D101001
2021-01-13 01:55:27 +00:00
Aaron Klotz 48a50615fb Bug 1682987: Unconditionally return true from ServiceWorkerParentInterceptEnabled; r=dom-workers-and-storage-reviewers,asuth
The [current implementation](https://searchfox.org/mozilla-central/rev/c7cf087b6e1384608ca3989f042f12f7cabd0a5f/dom/serviceworkers/ServiceWorkerUtils.cpp#25)
of `ServiceWorkerParentInterceptEnabled` uses two atomics to load the
`dom.serviceWorkers.parent_intercept` pref.

As-is, there is a slight chance that this function could return a false-negative,
given that `sInitialized` is set to `true` before `sEnabled` is set.

Per asuth, we now unconditionally return `true`.

Differential Revision: https://phabricator.services.mozilla.com/D99957
2021-01-12 23:12:53 +00:00
Butkovits Atila 7742c03714 Backed out 4 changesets (bug 1680637, bug 1682395) for causing Marionette failures. CLOSED TREE
Backed out changeset 073e0be7db95 (bug 1680637)
Backed out changeset 552b91b31b0f (bug 1682395)
Backed out changeset c80de6c72779 (bug 1680637)
Backed out changeset d513e228b0ad (bug 1680637)
2021-01-13 02:13:06 +02:00
Micah Tigley 06e7942185 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-12 22:32:24 +00:00
Barret Rennie 99ec0104cf Bug 1684999 - Call RunOnShutdown on main thread in PathUtils r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D101382
2021-01-12 20:38:28 +00:00
nirmay 51171d43ab Bug 1684646 - Removed 'else' after 'return'. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D101223
2021-01-12 20:52:29 +00:00
Emma Malysz 1fb61f9730 Bug 1679704, support createUniquePath in PathUtils r=barret
Differential Revision: https://phabricator.services.mozilla.com/D101419
2021-01-12 20:44:46 +00:00
Butkovits Atila dc4510e256 Backed out changeset 3587cb6cc383 (bug 1684999) for causing failure at send_alert_text.py. CLOSED TREE 2021-01-12 21:26:40 +02:00
alwu 39938d7473 Bug 1684126 - part2 : add test. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D101408
2021-01-12 18:48:39 +00:00
alwu 80632b032f Bug 1684126 - part1 : modify `mTime` and `mOriginalTime` together. r=padenot,bryce
In AudioData, we use `mOriginalTime` to store the original start time before trimming, which should keep sync to `mTime` if data hasn't been trimmed before. Otherwise, if they are not equal, it would cause a problem when handling trimming.

For example.
If audio data's time is X, original time is X-1 and duration is T. When MDSM performs seeking, it would use (X + T) as trimming window's end time. However, in `AudioData::SetTrimWindow()`, original time + duration (X - 1 + T) would be less than the trimming end time, which causes an error.

Differential Revision: https://phabricator.services.mozilla.com/D100825
2021-01-12 14:14:01 +00:00
Barret Rennie f32a9ef091 Bug 1684999 - Call RunOnShutdown on main thread in PathUtils r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D101382
2021-01-12 16:36:56 +00:00
Simon Giesecke 384617594d Bug 1682543 - Make use of standard algorithms in dom/quota. r=dom-workers-and-storage-reviewers,janv
Specifically, instead of using custom loops
- use range-based for in QuotaManager::CreateDirectoryLock,
  QuotaManager::CollectOriginsForEviction,
  QuotaManager::CollectPendingOriginsForListing,
  QuotaManager::CheckTemporaryStorageLimits
- use range-based for in QuotaManager::RemoveQuota
  and clear the hashtable after the loop rather than removing individual entries
- extract a new overload GroupInfo::LockedRemoveOriginInfo that's called from
  within the two existing overloads, and use std::find_if resp. range-based for
  in those overloads
- use std::any_of in GetInactiveOriginInfos
- use std::is_sorted in GetInactiveOriginInfos
- use std::accumulate in QuotaManager::CheckTemporaryStorageLimits
- use std::transform in QuotaRequestChild::HandleResponse

Differential Revision: https://phabricator.services.mozilla.com/D99790
2021-01-12 14:45:50 +00:00
Razvan Maries 2947602bcd Backed out 3 changesets (bug 1677253) for multiple perma failures. CLOSED TREE
Backed out changeset 01b34d4be08c (bug 1677253)
Backed out changeset aabba45e0b43 (bug 1677253)
Backed out changeset 171689d8d386 (bug 1677253)
2021-01-12 17:18:04 +02:00
Bryce Seager van Dyk c2d4dcad38 Bug 1673525 - Don't try and process audio with no frames in DecodedStream. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D100400
2021-01-11 20:24:03 +00:00
Bryce Seager van Dyk a42d59200f Bug 1673525 - Add crashtest. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D100399
2021-01-12 08:29:49 +00:00
Kagami Sascha Rosylight fd004def2f Bug 1677253 - Part 2: Detect direction change in SelectionChangeEventDispatcher r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101246
2021-01-12 02:01:00 +00:00
Kagami Sascha Rosylight 8bbd008864 Bug 1677253 - Part 1: Fire select event from SelectionChangeEventDispatcher r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101245
2021-01-12 08:59:34 +00:00
Emilio Cobos Álvarez 229ea0d95c Bug 1685056 - For an initial, same-origin iframe, consume activation on the parent page for multiple-popup blocking. r=edgar
Sadness. Test times out without the fix.

Differential Revision: https://phabricator.services.mozilla.com/D101378
2021-01-12 11:28:50 +00:00
Tom Schuster a865c88907 Bug 1684634 - Use InternalHeaders for MimeType instead of caching in the Response/Request constructor. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D101159
2021-01-12 10:38:25 +00:00
Simon Giesecke 37d1a8c6b9 Bug 1683828 - Use QM_TRY et al in QueryCache. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D100319
2021-01-11 13:35:54 +00:00
Andreas Pehrson 37c143a9fa Bug 1601385 - Don't continue UpdateOutputTrackSources if the tracks-captured state changed. r=jib
Changing the tracks-captured state will trigger another run of
UpdateOutputTrackSources, so continuing the current one is futile. The next run
will properly re-evaluate all input state to this function.

Differential Revision: https://phabricator.services.mozilla.com/D100004
2021-01-12 09:35:20 +00:00
Andreas Pehrson 08755a6c85 Bug 1601385 - Add crashtest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D100003
2021-01-12 02:10:58 +00:00
Andreas Pehrson f89d8c9d0e Bug 1663674 - Use WeakPtr instead of cycle collection in PlaybackTrackListener. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D99934
2021-01-12 09:31:34 +00:00
Andreas Pehrson 73fccbfe24 Bug 1601422 - Update output track sources synchronously when aborted by content. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D99936
2021-01-12 02:05:36 +00:00
Andreas Pehrson 8815d95804 Bug 1601422 - Add crashtest. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D99935
2021-01-12 09:21:42 +00:00
Emilio Cobos Álvarez e01e74c71e Bug 1685153 - Null check mBoundFrame before scrolling to it. r=masayuki
SetSelectionRange may kill the frame (in the test-case, AccessibleCaret
flushes layout).

No crashtest as there doesn't seem to be one available.

Differential Revision: https://phabricator.services.mozilla.com/D101253
2021-01-11 23:25:04 +00:00
Jonathan Kew 485e86e361 Bug 1670233 - Disable async font fallback in useractivation test directory. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D101413
2021-01-11 23:29:30 +00:00
alwu b8c6ef7b92 Bug 1685215 - 'AdjustForStartTime()' should only exist on decoded data type. r=padenot
`AdjustForStartTime()` is only used for decoded data type in order to adjust their start time to zero, such as `VideoData` and `AudioData`.

However, some other types inherited from `MediaData` don't need that function. Eg. `MediaRawData`, so it's not necessary to put it on the `MediaData`, we should move that function to `VideoData` and `AudioData` separately.

Differential Revision: https://phabricator.services.mozilla.com/D100846
2021-01-11 08:13:12 +00:00
Edgar Chen f3d1dfa460 Bug 1684837 - Adjust pointer lock request handling; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100960
2021-01-08 21:18:07 +00:00
Anny Gakhokidze 1f803838aa Bug 1671179 - Make test_bug607145.html xorigin compatible, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D101205
2021-01-11 21:32:20 +00:00
Gerald Squelart 01ace6a322 Bug 1685939 - Fix AUTO_PROFILER_STATS identifier in ChromeUtils.cpp - r=canaltinova
Name must be a valid C++ variable identifier, "::" is not allowed.

Depends on D100860

Differential Revision: https://phabricator.services.mozilla.com/D101331
2021-01-11 20:49:20 +00:00
yulia 0ff486bf16 Bug 1681664 - Allow Top-level await modules which fail to evaluate due to user action to fail without crashing. r=jonco,mconley
Differential Revision: https://phabricator.services.mozilla.com/D99809
2021-01-11 17:08:59 +00:00
Mirko Brodesser da6e185d60 Bug 1685303: part 4) Add logging to `Selection::AddRangesForSelectableNodes`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101354
2021-01-11 15:03:05 +00:00
Mihai Alexandru Michis a98f137ea0 Backed out changeset ed88b1f03a11 (bug 1670233) for causing test_clipboard_noeditor.html to fail instead.
CLOSED TREE
2021-01-11 18:47:04 +02:00
Olli Pettay ab0946f508 Bug 1685869, enable sync XHR tests also in beta, r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D101343
2021-01-11 15:12:15 +00:00
Simon Giesecke 68936a96cf Bug 1679541 - Change GetDirectoryMetadata2 to return mozilla::Result. r=dom-workers-and-storage-reviewers,ttung,janv
Differential Revision: https://phabricator.services.mozilla.com/D98076
2021-01-11 15:06:13 +00:00
Edgar Chen 7330687550 Bug 1221868 - Correct the document check for appending a document fragment node; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101339
2021-01-11 15:01:09 +00:00
Andreea Pavel d2bc45d2a5 Bug 1670233 - disable test_clipboard_editor.html on linux64-qr and win7 r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101297
2021-01-11 13:40:46 +00:00
Simon Giesecke 37567c5f85 Bug 1685298 - Fix uninitialized variable in non-diagnostic builds. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D100925
2021-01-11 09:20:25 +00:00
Ting-Yu Lin 59be07e5b4 Bug 1685828 - Stop calling SVG and MathML enabling helpers every time we check their enabling status. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D101244
2021-01-11 03:56:18 +00:00
Emilio Cobos Álvarez 40dc6e911d Bug 1685832 - Add a missing include to fix non-unified bustage.
MANUAL PUSH: bustage on a CLOSED TREE
2021-01-11 05:20:06 +01:00
Emilio Cobos Álvarez 3339819a8e Bug 1685832 - Remove some includes from PreloadService.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101249
2021-01-11 02:35:41 +00:00
Emilio Cobos Álvarez 1dcf18b440 Bug 1685830 - Remove spurious check that prevents preload from working in non-http(s) sites. r=smaug
As it doesn't match other implementations, and it's confusing.

Differential Revision: https://phabricator.services.mozilla.com/D101248
2021-01-11 02:37:15 +00:00
Emilio Cobos Álvarez 7b71f0fb8a Bug 1685816 - Fix a mochitest which expected the wrong thing.
MANUAL PUSH: Orange on a CLOSED TREE
2021-01-10 23:03:05 +01:00
Emilio Cobos Álvarez 72d0992fec Bug 1685816 - Don't fire rel=preload error events for invalid type/media/as attributes. r=smaug
This matches other browsers, https://github.com/w3c/preload/issues/155
is the spec issue. There was a test for invalid as values.

Differential Revision: https://phabricator.services.mozilla.com/D101243
2021-01-10 20:50:02 +00:00
Christoph Kerschbaumer cd9e96dc19 Bug 1677179: Allow module scripts in sandboxed iframe within about: page to load. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D98765
2021-01-10 18:42:04 +00:00
Kris Maglione 4455a70039 Bug 1676490: Fix some confusing `NS_WARN_IF`s in non-failure cases. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D96622
2021-01-08 20:15:36 +00:00
Alexis Beingessner b1d3b28ef7 Bug 1683730 - disabled tests failing with tsan full shutdown. r=decoder
Seems like all timeouts at various levels.

Differential Revision: https://phabricator.services.mozilla.com/D100269
2021-01-08 20:08:29 +00:00
Andi-Bogdan Postelnicu e161d1f5a1 Bug 1685580 - fix `non-unified` build issue caused by Bug 1662138. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D101200
2021-01-08 19:24:54 +00:00
Jan Varga c912945218 Bug 1682100 - Improve iteration of blocking directory locks; r=sg,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D101153
2021-01-08 14:39:39 +00:00
Olli Pettay 2371718010 Bug 1685577 - Disable dom.input_events.canSuspendInBCG.enabled for now, r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D101051
2021-01-08 12:58:24 +00:00
Emilio Cobos Álvarez cbe57e88f7 Bug 1683188 - BrowserChild::MakeHidden() shouldn't mess with tab state. r=nika
I flagged this as sketchy before (though it was trying to preserve
existing behavior).

However now that that state propagates to the parent process and races
with the state that the parent process reads, it started causing
correctness issues.

Just remove this line, it shouldn't be needed. I'm not sure how to write
a test for this, unfortunately :(

Differential Revision: https://phabricator.services.mozilla.com/D100971
2021-01-08 00:48:26 +00:00
Mirko Brodesser 0f072d71a2 Bug 1685303: part 2) Add debug logging for `Selection::NotifySelectionListeners`. r=smaug
Depends on D100984

Differential Revision: https://phabricator.services.mozilla.com/D100985
2021-01-07 22:51:13 +00:00
longsonr 749233d55b Bug 1685543 - Expose auto-start-reverse enum value r=emilio
Per https://github.com/w3c/svgwg/issues/424 we should expose the new value in webidl

Differential Revision: https://phabricator.services.mozilla.com/D101089
2021-01-08 00:05:11 +00:00
Sean Feng 57394dfeed Bug 1646604 - Fix cross docGroup node adoption may not correctly keep the arena alive r=smaug
We use nsINode::Adopt to store the arenas to a hashtable to keep them
alive, however this method is not guaranteed to be called, so it
may cause arenas to be disposed before all nodes are destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D101042
2021-01-08 00:24:53 +00:00
John Lin 0c108876a0 Bug 1662507 - don't use mEncoder outside webrtc.org thread. r=jya
Dispatching the `MediaDataEncoder::Encode()` invocation is not really
necessary because the callback is desinated to run in task queue anyway.
Also make `Shutdown()` wait for completion to make sure resource is
released before next allocation.

Differential Revision: https://phabricator.services.mozilla.com/D97027
2021-01-07 14:26:10 +00:00
Olli Pettay e831069d3a Bug 1682394 - Consider to not check *unload event listeners for bfcache, r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D99716
2021-01-07 23:43:44 +00:00
Simon Giesecke 68f581dcca Bug 1685498 - Include sequence numbers in dom.quota.try telemetry event. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D101022
2021-01-07 16:18:32 +00:00
Michael Froman 56e67b321d Bug 1681025 - don't call GetDtlsTransport on transceiver if RTCRtpReceiver has been shutdown. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D100952
2021-01-07 15:57:41 +00:00
Masatoshi Kimura 64e86892a9 Bug 1683464 - Improve nsCSPParser::directiveName. r=ckerschb
This function converts between enums and strings over and over. It is
sufficient to call CSP_StringToCSPDirective only once.

Differential Revision: https://phabricator.services.mozilla.com/D100183
2021-01-07 15:19:23 +00:00
Masatoshi Kimura 4b3e1792af Bug 1683464 - Remove InternalContentPolicyTypeToExternalOrWorker. r=ckerschb
Now this function is used just to create a parameter to
CSP_ContentTypeToDirective.

Differential Revision: https://phabricator.services.mozilla.com/D100182
2021-01-07 15:19:05 +00:00
Masatoshi Kimura 3f402bfcc4 Bug 1683464 - Reduce nsContentPolicyType usage. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D100181
2021-01-07 15:18:52 +00:00
Masatoshi Kimura ada333728d Bug 1683464 - Remove aIsPreload. r=ckerschb
The only effect of this parameter is suppressing the violation reports and it
is redundant because aSendViolationReports is present.

Differential Revision: https://phabricator.services.mozilla.com/D100180
2021-01-07 15:18:19 +00:00
Simon Giesecke 46e1577a5d Bug 1683863 - Log sources of negative usage values to browser console. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D101016
2021-01-07 13:14:56 +00:00
Razvan Maries 6565293451 Backed out changeset 8f99f3809630 (bug 1683220) for performance regression (bug 1684434). CLOSED TREE 2021-01-07 14:55:07 +02:00
Sebastian Streich 9f99b10883 Bug 1662138 - Do not rely on Type::SaveAs for MCB download check r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D88865
2021-01-07 12:19:27 +00:00
Andreas Pehrson 8da798d630 Bug 1673526 - Simplify send track recreation condition. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D98354
2021-01-07 10:56:38 +00:00
Andreas Pehrson 7a80c84f43 Bug 1663736 - Also check mSinks for explicitly removed sinks. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D99463
2021-01-07 10:15:10 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Sylvestre Ledru b58ddc19df Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with Debian clang-format version 11.0.1-1

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D100934
2021-01-06 17:17:23 +00:00
Daniel Holbert 31c970eb51 Bug 1685364: Add ifdef guard around some AV1-specific code, to fix --disable-av1 build bustage. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D100949
2021-01-06 20:41:44 +00:00
Paul Adenot 924465d3c7 Bug 1681772 - Put an hard-coded but non-empty label for audio devices on Android. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D100929
2021-01-06 18:17:02 +00:00
Mihai Alexandru Michis 67eecb03bf Backed out changeset 5eacf74bc04f (bug 1643450) for causing android mochitest failures in test_window_open_from_closing.html
CLOSED TREE
2021-01-06 19:44:21 +02:00
Nika Layzell 6f44867564 Bug 1643450 - Allow creating windows from closing tabs, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D100165
2021-01-06 15:19:32 +00:00
Andi-Bogdan Postelnicu 68d22d4e10 Bug 1685281 - Fix IndexedDatabaseManager in the non-unified environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D100890
2021-01-06 12:00:56 +00:00
Edgar Chen 030aaf9626 Bug 1489437 - Part 2: HTML parser should invoke custom element's callbacks before appending child nodes if it is not created for fragment; r=smaug
See https://github.com/whatwg/html/issues/4025.

Depends on D10226

Differential Revision: https://phabricator.services.mozilla.com/D10228
2021-01-05 21:40:26 +00:00
Jean-Yves Avenard 5c7a830260 Bug 1681043 - P6. Remove no longer necessary workaround. r=alwu,bryce
The WMFDecoderModule now uses a crash guard around the loading of the VP9/VP8 MFT. We don't want to always assume that we have a VPx decoder in the GPU process in particular, as it will only be true if a HW decoder is available.

Differential Revision: https://phabricator.services.mozilla.com/D100309
2021-01-06 08:33:35 +00:00
Jean-Yves Avenard 6f1544075f Bug 1681043 - P5. Recalculate decoder capabilities if CanUseHardwareVideoDecoding changes. r=alwu,bryce
Not the most elegant, but reworking the PDMFactory to be fully re-initialized would be a significant change, as only the WMFDecoderModule requires it we take some shortcuts.

Differential Revision: https://phabricator.services.mozilla.com/D100308
2021-01-06 08:33:28 +00:00
Jean-Yves Avenard 3631cb632e Bug 1681043 - P4. Stop checking on gfxVars::CanUseHardwareVideoDecoding on mac. r=alwu
gfxVars::CanUseHardwareVideoDecoding is often set after the first use of the PDMFactory; in this case this would disable HW VP9 decoding for the entire session of the browser.

This value will always end up being true on macOS, so ignore its value in the static Init method.

Differential Revision: https://phabricator.services.mozilla.com/D100307
2021-01-06 08:33:20 +00:00
Jean-Yves Avenard dfb40277e0 Bug 1681043 - P3. Retrieve decoding capabilities in GPU or RDD process and pass it to content. r=alwu,bryce
Upon starting the RDD and GPU process; we check their decoding capabilities and send it to the parent process. It will then broadcast this information to all content children so that RemodeDecoderModule::Supports can return if a codec is supported or not.

Differential Revision: https://phabricator.services.mozilla.com/D100306
2021-01-06 09:05:31 +00:00
Jean-Yves Avenard 50a06cc6c5 Bug 1681043 - P2. Don't reject outright support for a GPU decoder if compositor isn't known. r=alwu,bryce
When calling PDM::SupportsMimeType not enough information is provided for the PDM to categorically state that a codec isn't supported.

Only  creating the decoder successfully matters and the PDMFactory only uses the value returned by Support as a hint to further query the PDM.

Without this change WMFDecoderModule::SupportsMimeType in the GPU process would always return false as it doesn't know yet the KnownCompositor.

Differential Revision: https://phabricator.services.mozilla.com/D100305
2021-01-06 08:32:59 +00:00
Jean-Yves Avenard db79f94d4f Bug 1681043 - P1. Create method to launch RDD process early. r=alwu
We can launch the RDD process early now that it is a fully asynchronous process and doesn't block anything.

This will allow to retrieve the decoding capabilities of the RDD process right away.

Calling this method will actually be handled in bug 1684991 once blockers are sorted (tests and sandbox)

Differential Revision: https://phabricator.services.mozilla.com/D100304
2021-01-06 08:53:38 +00:00
longsonr f518393a92 Bug 1518099 - Add support for lighter operator in feComposite r=jrmuizel,emilio
Spec: https://www.w3.org/TR/filter-effects-1/#attr-valuedef-operator-lighter

Lighter is defined in the compositing & blending spec as equivalent to porter-duff plus, https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus.

The 'lighter' composite mode already works in <canvas> (via globalCompositeOperation), and it's the same there.

Chrome implemented support in https://bugs.chromium.org/p/chromium/issues/detail?id=439037

Per https://github.com/w3c/svgwg/issues/424 we should expose the new value in webidl and Chrome uses 7 too (https://codereview.chromium.org/779963002/patch/120001/130009)

Differential Revision: https://phabricator.services.mozilla.com/D100605
2021-01-05 20:49:00 +00:00
nchevobbe 1624b5bc35 Bug 1683882 - Parse console.trace for custom styling. r=baku.
Differential Revision: https://phabricator.services.mozilla.com/D100669
2021-01-06 06:03:49 +00:00
Daniel Holbert ac4480af11 Bug 1685231: Fix the typo "ot" in various code-comments (to "to", "of", or "not"). r=mccr8
DONTBUILD because this is a comment-only change and hence doesn't affect
behavior at all.

I ran across this typo in nsPageFrame.cpp, and figured I might as well grep for
it and fix it more comprehensively. And while I'm at it, I also fixed some
neighboring instances of a duplicated word around a linebreak, in
nsXMLContentSerializer.h.

Differential Revision: https://phabricator.services.mozilla.com/D100852
2021-01-06 04:54:51 +00:00
Noemi Erli ebe9167de8 Backed out changeset 4de429b6ad64 (bug 1572798) for causing browser chrome failures CLOSED TREE 2021-01-06 07:05:57 +02:00
Ping Chen 93f7b2f2b0 Bug 1683228 - Check maxLogLevelPref value each time and use it when available. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100204
2021-01-06 01:11:24 +00:00
Nika Layzell db4e8fccc0 Bug 1680418 - avoid clobbering shared state in same-document navigations, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D100166
2021-01-05 13:31:27 +00:00
Emilio Cobos Álvarez 9501e93bb6 Bug 1572798 - Should call MaybeActiveMediaComponents from SetScriptGlobalObject if becoming visible. r=bzbarsky,farre
Windows start blocking media by default (see the
media.block-autoplay-until-in-foreground pref).

If the document becomes visible from GetScriptHandlingObject(), we
hand-rolled our own UpdateVisibilityState and didn't call
MaybeActiveMediaComponents (which unblocks media playback).

It couldn't call it there before since given content docshells used
start as active, but now that they don't we can do that and fix the bug.

Differential Revision: https://phabricator.services.mozilla.com/D41438
2021-01-05 23:27:12 +00:00
Sean Feng cab1fa2b49 Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug
Without the `Get` method, it's hard to extract the values for keys from
Maplike interface in C++.

Differential Revision: https://phabricator.services.mozilla.com/D97247
2021-01-05 23:19:26 +00:00
Kershaw Chang d08af9bb8d Bug 1652723 - Prefetch https rr in HTMLDNSPrefetch r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D98689
2021-01-05 21:14:20 +00:00
Byron Campen [:bwc] 0c10fa6898 Bug 1680771: Use a real LoadInfo for WebrtcTCPSocket, ensure we use that LoadInfo's CookieJarSettings for our DNS/proxy lookup, and remove a flag that was breaking http proxy support for webrtc. r=timhuang,mjf
Differential Revision: https://phabricator.services.mozilla.com/D99362
2021-01-05 12:59:41 +00:00
Emilio Cobos Álvarez 5279ef0ebd Bug 1684973 - Return mouse offset coordinates in SVG relative to the SVG root. r=smaug
This matches other browsers. Needs a test, if the try server comes back
green.

Differential Revision: https://phabricator.services.mozilla.com/D100762
2021-01-05 15:44:28 +00:00
Razvan Maries 6a4eb25b10 Backed out 4 changesets (bug 1683464) for multiple perma failures. CLOSED TREE
Backed out changeset a5d315c017d0 (bug 1683464)
Backed out changeset 5f91001e4923 (bug 1683464)
Backed out changeset 1b7fe904e8af (bug 1683464)
Backed out changeset eb1c479fddca (bug 1683464)
2021-01-05 16:47:22 +02:00
Masatoshi Kimura a37aa9ff1e Bug 1683464 - Improve nsCSPParser::directiveName. r=ckerschb
This function converts between enums and strings over and over. It is
sufficient to call CSP_StringToCSPDirective only once.

Depends on D100182

Differential Revision: https://phabricator.services.mozilla.com/D100183
2021-01-05 12:24:00 +00:00
Masatoshi Kimura 0fa6b4d30c Bug 1683464 - Remove InternalContentPolicyTypeToExternalOrWorker. r=ckerschb
Now this function is used just to create a parameter to
CSP_ContentTypeToDirective.

Depends on D100181

Differential Revision: https://phabricator.services.mozilla.com/D100182
2021-01-05 12:22:22 +00:00
Masatoshi Kimura dfb97ca7cf Bug 1683464 - Reduce nsContentPolicyType usage. r=ckerschb
Depends on D100180

Differential Revision: https://phabricator.services.mozilla.com/D100181
2021-01-05 12:21:46 +00:00
Masatoshi Kimura 672dd7fa13 Bug 1683464 - Remove aIsPreload. r=ckerschb
The only effect of this parameter is suppressing the violation reports and it
is redundant because aSendViolationReports is present.

Depends on D100179

Differential Revision: https://phabricator.services.mozilla.com/D100180
2021-01-05 12:19:10 +00:00
Simon Giesecke b3d468a5e8 Bug 1684854 - Consistently handle non-existence of usage file in QuotaClient::InitOrigin. r=dom-workers-and-storage-reviewers,janv
Specifically, do not attempt and fail removal of the usage file in
CreateStorageConnection if the usage file did not exist.

Differential Revision: https://phabricator.services.mozilla.com/D100675
2021-01-05 10:19:04 +00:00
Simon Giesecke 1c274b2331 Bug 1588512 - Avoid blocking progress during a clear operation on failure to remove a directory. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100093
2021-01-05 10:13:14 +00:00
Edgar Chen f8fb06fea1 Bug 1662363 - Rename eTopLevel/eChild to ePlatformTopLevel/ePlatformChild; r=smaug
This is a follow-up of bug 1653949.

Differential Revision: https://phabricator.services.mozilla.com/D100729
2021-01-05 09:48:24 +00:00
Simon Giesecke aa680355aa Bug 1679540 - Extract CollectEachFile function and use in quota manager and clients. r=dom-workers-and-storage-reviewers,ttung,janv
Differential Revision: https://phabricator.services.mozilla.com/D98075
2021-01-05 09:27:18 +00:00
Andreas Pehrson 1df5aff0c0 Bug 1601799 - Use a SharedDummyTrack for graph access in DecodedStream. r=karlt
When enabling our MediaTrack implementation (which we don't plan to by default,
NB) and disabling all audio tracks and unselecting all video tracks while having
an active captureStream leads to having no output tracks in DecodedStream.

In this case, DecodedStream doesn't know which graph to use for creating the
intermediary tracks it feeds data to. We don't want to resort to the default
graph either, since two graphs on different clocks could then race each other.

With this patch we plumb down a SharedDummyTrack from the media element where
the captureStream was triggered, through MediaDecoder, to DecodedStream. The
SharedDummyTrack guarantees to keep the graph alive, and holds the graph used
for the output tracks.

Differential Revision: https://phabricator.services.mozilla.com/D99822
2021-01-05 07:43:34 +00:00
Andreas Pehrson a37786a190 Bug 1601799 - Allow running DecodedStream without output tracks. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D99821
2021-01-04 14:35:09 +00:00
Andreas Pehrson 8689b6a97e Bug 1601799 - Add mochitest for disabled MediaTracks with mozCaptureStream. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D99820
2021-01-04 14:35:10 +00:00
Kagami Sascha Rosylight 6e9c5ba160 Bug 1682706 - Use SelectionBatcher in SetRangeText r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D100705
2021-01-04 23:29:36 +00:00
Masatoshi Kimura 44274c030b Bug 1683464 - Remove aMimeTypeGuess from nsIContentSecurityPolicy::ShouldLoad. r=ckerschb
This parameter is unused.

Depends on D100178

Differential Revision: https://phabricator.services.mozilla.com/D100179
2021-01-04 17:05:01 +00:00
Masatoshi Kimura 60442b1dea Bug 1683464 - Make CSPDirective a CEnum type. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D100178
2021-01-04 17:01:31 +00:00
Chris Martin 81592aa52c Bug 1657404 - Add diag asserts to catch potential double IPDL shutdown r=handyman
Based on evidence from crash reports in Bug 1682589, there may be a bug where
IPDL intermittently calls `ActorDestroy()` twice on GamepadEventChannelParent,
leading to a crash.

This attempts to catch this behavior in Nightly (assuming that I'm correct and
it does exist). If not, I will have to find some other explanation for the
crash behavior from that bug.

Differential Revision: https://phabricator.services.mozilla.com/D100714
2021-01-04 20:38:39 +00:00
Emilio Cobos Álvarez 925ab25267 Bug 1684220 - Remove some dead plugins code. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100472
2021-01-04 20:12:05 +00:00
Emilio Cobos Álvarez 5d6e4f2da2 Bug 1684673 - Use an AutoTArray for atom arrays in attributes (class / part). r=smaug
These are never empty, and storing 4 elements inline seems worth it
given we also heap-allocate the array itself.

Depends on D100592

Differential Revision: https://phabricator.services.mozilla.com/D100593
2021-01-04 17:56:33 +00:00
Emilio Cobos Álvarez 01ba28a5dd Bug 1684711 - Fix canvas ImageData signatures to match the spec. r=nical
Spec: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-createimagedata (and friends)

See https://github.com/whatwg/html/issues/6262 about [EnforceRange],
which isn't technically on the spec but matches all browsers' behavior.

This simplifies a bit the code, moving some conversions to WebIDL, fixes
a few WPT tests, and should throw better error messages too.

Differential Revision: https://phabricator.services.mozilla.com/D100608
2021-01-04 17:48:32 +00:00
Aryan Agal f80f706ecb Bug 1684689 - Check for 0 size after clamping in CanvasRenderingContext2D.createImageData r=emilio
Shifted the zero-check after width and height are clamped to int32_t. Fixes the use case where width and height are floats > 0 but < 1. These values are clamped to 0, but no error is thrown, as opposed to the desired behavior. Deleted corresponding test ini file, since it is now expected to PASS.

Now also fixes a test that started failing and checked something against the spec, (credit to @emilio)

Differential Revision: https://phabricator.services.mozilla.com/D100597
2021-01-03 20:58:32 +00:00
Oleg Skoromnik 7f10fee971 Bug 1684655 - Remove unused parameters left after Bug 1443511. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D100625
2021-01-04 12:25:16 +00:00
Mark Banner 098cf85cdd Bug 1683340 - Enable ESLint rule no-async-promise-executor for the remaining dom/ files. r=nika
Depends on D100135

Differential Revision: https://phabricator.services.mozilla.com/D100136
2020-12-18 18:31:21 +00:00
Mark Banner 7fcb23f319 Bug 1683340 - Enable ESLint rule no-async-promise-executor for dom/payments. r=baku
Depends on D100134

Differential Revision: https://phabricator.services.mozilla.com/D100135
2021-01-04 15:59:11 +00:00
Tom Tung af3b7a2b0f Bug 1683102 - Make the QM_QUOTA_INFO_LOAD_TIME permanent; r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100242
2021-01-04 09:44:06 +00:00
Mihai Alexandru Michis f8a41209af Backed out 6 changesets (bug 1681043) for causing multiple failures.
CLOSED TREE

Backed out changeset ea075101dc94 (bug 1681043)
Backed out changeset 64d8abe2104d (bug 1681043)
Backed out changeset 5ecb208a85d3 (bug 1681043)
Backed out changeset 9319fdd0389c (bug 1681043)
Backed out changeset 25a015e84cc4 (bug 1681043)
Backed out changeset e8fac91d4012 (bug 1681043)
2021-01-04 07:43:08 +02:00
nirmay f7895c0e34 Bug 1684638 - Remove 'else' after 'return' in dom/canvas/WebGLShaderValidator.cpp. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D100645
2021-01-04 04:51:45 +00:00
Emilio Cobos Álvarez 8558796b8d Bug 1351248 - nsFieldSetFrame should claim to be focusable if its inner scrollframe is. r=smaug
Otherwise we stop moving focus because, when we find the scrollable
area, we determine that we need to focus the fieldset, but then the
focus manager early-returns in `nsFocusManager::SetFocusInner`.

Depends on D100423

Differential Revision: https://phabricator.services.mozilla.com/D100424
2020-12-29 22:28:42 +00:00
Emilio Cobos Álvarez bd8cffdd58 Bug 1351248 - Simplify nsIFrame::IsFocusable API. r=layout-reviewers,mats
We always compute the tabindex value, so just return it to the caller
all the time. This allows us to use early-returns which makes the code a
bit easier to follow.

This patch shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D100423
2021-01-03 23:30:51 +00:00
Jean-Yves Avenard ea48adf8c2 Bug 1681043 - P6. Remove no longer necessary workaround. r=alwu,bryce
The WMFDecoderModule now uses a crash guard around the loading of the VP9/VP8 MFT. We don't want to always assume that we have a VPx decoder in the GPU process in particular, as it will only be true if a HW decoder is available.

Differential Revision: https://phabricator.services.mozilla.com/D100309
2021-01-03 23:24:35 +00:00
Jean-Yves Avenard 19f9c7de4d Bug 1681043 - P5. Recalculate decoder capabilities if CanUseHardwareVideoDecoding changes. r=alwu,bryce
Not the most elegant, but reworking the PDMFactory to be fully re-initialized would be a significant change, as only the WMFDecoderModule requires it we take some shortcuts.

Differential Revision: https://phabricator.services.mozilla.com/D100308
2021-01-03 23:24:07 +00:00
Jean-Yves Avenard ec7856abd7 Bug 1681043 - P4. Stop checking on gfxVars::CanUseHardwareVideoDecoding on mac. r=alwu
gfxVars::CanUseHardwareVideoDecoding is often set after the first use of the PDMFactory; in this case this would disable HW VP9 decoding for the entire session of the browser.

This value will always end up being true on macOS, so ignore its value in the static Init method.

Differential Revision: https://phabricator.services.mozilla.com/D100307
2021-01-03 23:23:34 +00:00
Jean-Yves Avenard ff614fdaa3 Bug 1681043 - P3. Retrieve decoding capabilities in GPU or RDD process and pass it to content. r=alwu,bryce
Upon starting the RDD and GPU process; we check their decoding capabilities and send it to the parent process. It will then broadcast this information to all content children so that RemodeDecoderModule::Supports can return if a codec is supported or not.

Differential Revision: https://phabricator.services.mozilla.com/D100306
2021-01-03 23:21:54 +00:00
Jean-Yves Avenard 1781f8be7f Bug 1681043 - P2. Don't reject outright support for a GPU decoder if compositor isn't known. r=alwu,bryce
When calling PDM::SupportsMimeType not enough information is provided for the PDM to categorically state that a codec isn't supported.

Only  creating the decoder successfully matters and the PDMFactory only uses the value returned by Support as a hint to further query the PDM.

Without this change WMFDecoderModule::SupportsMimeType in the GPU process would always return false as it doesn't know yet the KnownCompositor.

Differential Revision: https://phabricator.services.mozilla.com/D100305
2021-01-03 23:20:25 +00:00
Jean-Yves Avenard a68d444ad0 Bug 1681043 - P1. Launch RDD process early. r=alwu
We can launch the RDD process early now that it is a fully asynchronous process and doesn't block anything.

This will allow to retrieve the decoding capabilities of the RDD process right away.

Ideally, we should have been able to start the RDD process at the same time as the GPU process; however setting up the RDD sandbox is dependent of having mozilla::SandboxBroker::GeckoDependentInitialize() called first ; and it is called in the most awkward of places; so finding a place suitable for all platforms gets affected.
For now we will ensure it's been started around the time the first content process is started.

Differential Revision: https://phabricator.services.mozilla.com/D100304
2021-01-03 23:20:38 +00:00
Butkovits Atila 2fcab99704 Backed out 2 changesets (bug 1684689) for causing damp failures. CLOSED TREE
Backed out changeset f70abb51ec6d (bug 1684689)
Backed out changeset 636bed8f02dc (bug 1684689)
2021-01-03 03:45:02 +02:00
Emilio Cobos Álvarez b05032895c Bug 1684689 - Fix a test that started failing and checked something against the spec.
MANUAL PUSH: Orange fix on a CLOSED TREE
2021-01-02 21:52:48 +01:00
longsonr d8af75a6ae Bug 987432 - remove unnecessary float casts in SkewX and SkewY r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D100595
2021-01-02 17:17:26 +00:00
Aryan Agal 3761bb4652 Bug 1684689 - Check for 0 size after clamping in CanvasRenderingContext2D.createImageData r=emilio
Shifted the zero-check after width and height are clamped to int32_t. Fixes the
use case where width and height are floats > 0 but < 1. These values are clamped
to 0, but no error is thrown, as opposed to the desired behavior. Deleted
corresponding test ini file, since it is now expected to PASS.

Differential Revision: https://phabricator.services.mozilla.com/D100597
2021-01-02 16:26:07 +00:00
Aryan Agal 8e8a8fc213 Bug 1627014 - Implement CanvasRenderingContext2D.createConicGradient r=emilio
Added an option to use ConicGradient API as a preference and removed the
corresponding expected FAILing test, over @ntim's implementation.

Differential Revision: https://phabricator.services.mozilla.com/D100554
2021-01-01 01:50:52 +00:00
longsonr 50c0681324 Bug 1684567 - don't round unspecified image dimensions to integers r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D100562
2020-12-31 12:34:02 +00:00
Jonathan Kew 809ac36608 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-31 00:33:48 +00:00
Cosmin Sabou 74039caf3c Backed out changeset 345d6be71db1 (bug 1676966) for mochitest without e10s failures. CLOSED TREE 2020-12-30 15:36:10 +02:00
Jonathan Kew c19e845492 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-30 12:34:49 +00:00
Masayuki Nakano 525ffa0f23 Bug 1683226 - part 16: Get rid of `WidgetPluginEvent` r=smaug
Depends on D100389

Differential Revision: https://phabricator.services.mozilla.com/D100390
2020-12-29 21:19:45 +00:00
Masayuki Nakano 1b07095476 Bug 1683226 - part 15: Get rid of plugin specific members of `WidgetKeyboardEvent` r=m_kato,smaug
Depends on D100388

Differential Revision: https://phabricator.services.mozilla.com/D100389
2020-12-29 21:16:48 +00:00
Mihai Alexandru Michis d50d8d795e Backed out changeset 52eb1fa54b88 (bug 1676966) for causing mochitest failures in AsyncCompositionManager.cpp 2020-12-30 00:16:44 +02:00
Jonathan Kew 12c934e612 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-29 16:03:45 +00:00
Razvan Maries 0cb7aac5bd Backed out changeset 4a6818e6c81a (bug 1676966) for perma failures on AsyncCompositionManager.cpp. CLOSED TREE 2020-12-29 04:06:23 +02:00
Robert Mader 820fe68cd4 Bug 1681030 - Fix some regressions from bug 1645528, r=emilio
This fixes a bunch of regressions:
 - a wrong calculation in `GetIdleDeadlineHint()`, leading to pageload
regressions.
 - in certain situations we'd use `StartupRefreshDriverTimer` instead
of `VsyncRefreshDriverTimer` when initializing timers early
 - unnecessary use of `BrowserChild` on backends that don't opt for
per-browser-child vsync - i.e. all but Wayland.

This is partly done by reverting to pre-1645528 behaviour, although
with some code simplifications.

FTR: I also played with some more radical changes, but given the
complexity of the code involved I found the regression potential too
big. Thus this is the most conservative solution I could come up with.

Differential Revision: https://phabricator.services.mozilla.com/D100471
2020-12-26 23:26:49 +00:00
Narcis Beleuzu 49264e13c2 Backed out changeset f64bb4f21c91 (bug 1681030) for causing crashes. 2020-12-28 19:51:40 +02:00
Emilio Cobos Álvarez ebb8fa1e75 Bug 1684352 - Don't assume that there's a vsync dispatcher handy when observing. r=rmader
My guess is that if Observe() gets called too early, we can receive the
message before updating the vsync source the first time, which would
trigger this crash.

With this patch, we handle it nicely and UpdateVsyncSource will
re-observe as needed.

It's not 100% clear to me if this is actually the issue (and thus
whether this patch is the right solution), since I haven't been able to
repro locally, though. There might be a more subtle race.

Differential Revision: https://phabricator.services.mozilla.com/D100501
2020-12-28 14:34:30 +00:00
Jonathan Kew 9e08463270 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-28 13:15:02 +00:00
Cosmin Sabou 2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam 775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Robert Mader 31f99b1a13 Bug 1681030 - Fix some regressions from bug 1645528, r=emilio
This fixes a bunch of regressions:
 - a wrong calculation in `GetIdleDeadlineHint()`, leading to pageload
regressions.
 - in certain situations we'd use `StartupRefreshDriverTimer` instead
of `VsyncRefreshDriverTimer` when initializing timers early
 - unnecessary use of `BrowserChild` on backends that don't opt for
per-browser-child vsync - i.e. all but Wayland.

This is partly done by reverting to pre-1645528 behaviour, although
with some code simplifications.

FTR: I also played with some more radical changes, but given the
complexity of the code involved I found the regression potential too
big. Thus this is the most conservative solution I could come up with.

Differential Revision: https://phabricator.services.mozilla.com/D100471
2020-12-26 23:26:49 +00:00
longsonr df56c9a52e Bug 1683907 - use the same logic for rendering and bounds checking r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D100481
2020-12-26 16:29:05 +00:00
Jonathan Kew 73688b3c3d Bug 1669855 - Return a boolean from InitOtherFamilyNames to indicate whether the initialization is complete. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D96393
2020-12-26 17:11:44 +00:00
Nico Grunbaum 198e61d242 Bug 1679084 - fix default H264 channels in RTPMAP;r=drno
Differential Revision: https://phabricator.services.mozilla.com/D97898
2020-12-08 07:16:22 +00:00
Sylvestre Ledru 4c0c328c0a Bug 1683840 - Fix some array-parameter errors found by gcc 11 r=necko-reviewers,dragana
I am aware they are third party code. pushing to keep a trace

Differential Revision: https://phabricator.services.mozilla.com/D100323
2020-12-24 12:41:28 +00:00
alwu df9c134aa6 Bug 1683788 - add telemetry probe for the audio competition. r=bryce
If multiple audible tabs play at the same time, we call it as `Audio Competition`.

When the audio competition happens, there are several possibilities

(1) ignore that and keep multiple tabs playing at the same time
(2) user manually handles that by pausing or muting audible playing tabs, remaining only an audible playing tab
(3) user enables audio focus management, so gecko would pause them and only allow one audible tab playing at a time

By collecting these situations, we can know the details of how user would react for the audio compeition.

In addition, we also collect the situation where no audio competition happens, in order to know whether the audio competition is common to users.

Differential Revision: https://phabricator.services.mozilla.com/D100292
2020-12-24 02:42:56 +00:00
Masayuki Nakano d047e80060 Bug 1683226 - part 14: Get rid of `ComplexTextInputPanel` r=m_kato
It's used only for a placeholder of composition string in plugins.

Depends on D100387

Differential Revision: https://phabricator.services.mozilla.com/D100388
2020-12-24 02:49:02 +00:00
Masayuki Nakano 44dced1d87 Bug 1683226 - part 13: Get rid of `nsIWidget::StartPluginFocused()` r=m_kato,ipc-reviewers,mccr8
Depends on D100386

Differential Revision: https://phabricator.services.mozilla.com/D100387
2020-12-24 02:46:46 +00:00
Masayuki Nakano 968d02a1a9 Bug 1683226 - part 12: Get rid of `nsIWidget::SetPluginFocus()` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D100386
2020-12-24 02:46:02 +00:00
Jean-Yves Avenard cdb7b9878d Bug 1674315 - Fix logic error to determine if playback succeeded. r=alwu,bryce
Differential Revision: https://phabricator.services.mozilla.com/D100315
2020-12-23 18:15:50 +00:00
Karl Tomlinson 6c9560fd42 Bug 1679735 require recent user gesture for getDisplayMedia() r=jib
Previous behavior was to allow requests if the user has ever interacted with
the window.  This patch changes from sticky activation to transient
activation.

WindowContext is used rather than Document for the
HasValidTransientUserGestureActivation() test because user activation is a
property of the Window/global.

The error reported when WindowContext is null is the same as that for missing
transient activation, which is keeping the existing behavior.
https://searchfox.org/mozilla-central/rev/66547980e8e8ca583473c74f207cae5bac1ed541/dom/base/Document.cpp#15806
i.e. a missing WindowContext is still treated as missing transient activation.

Differential Revision: https://phabricator.services.mozilla.com/D98275
2020-12-09 22:19:01 +00:00
Bryce Seager van Dyk f7949b6a83 Bug 1683789 - Fix typo in WmfDecoderModuleMarkerAndLog function. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D100342
2020-12-23 14:38:51 +00:00
Daisuke Akatsuka ac34979ed4 Bug 1678606: Imlement a mechanism to fire history-cleared event. r=mak
Depends on D99424

Differential Revision: https://phabricator.services.mozilla.com/D99750
2020-12-23 08:15:50 +00:00
Emilio Cobos Álvarez 7d03492002 Bug 1682988 - Use UTF8String for querySelector and similar OM methods. r=heycam
This has no observable behavior change because we were converting to
UTF-8 in ParseSelectorList.

Differential Revision: https://phabricator.services.mozilla.com/D99961
2020-12-23 05:42:00 +00:00
Sean Feng 851fe92332 Bug 1682866 - Always use normal priority for DelayedDeleteRunnable r=smaug
DelayedDeleteRunnable would schedule itself twice and use input priority
for the second time because it only wants to run after everything
that could possibly touch this tab. This was needed because we were
strict with IPC messages. However, this is no longer needed because
IPC messages with destroyed actors will be discarded nowadays, so
we don't have to use input priority anymore.

Another reason for making this change is that input events could be
suspended when the runnable is about to run, so we need to either
use a different priority or resume input events.

Differential Revision: https://phabricator.services.mozilla.com/D100345
2020-12-22 17:56:28 +00:00
alwu e77464e77c Bug 1613672 - return `NS_ERROR_DOM_MEDIA_CANCELED` to indicate that track buffer manager has been detached from the demuxer. r=jya
When we shutdown `MediaSourceDecoder`, it would trigger a shutdown for `MDSM` and a detaching for media source.

In the previous one, that would eventually shutdown `MediaFormatReader` via tasks going through different threads (main->MDSM->MFR's supervisor).

In the latter one, it would eventually detach the `TrackBufferManager` from the `MediaSourceTrackDemuxer`. (main->Demuxer's supervisor)

As these two tasks running in different threads, and the latter usually get finished before the former one, which would result in `MediaSourceTrackDemuxer` no longer being able to get a sample.

When that happens, the reader hasn't been shutdown yet, so it's still holding track demuxers and keeps requesting data from them. Then demuxers would return error because their corresponding track managers have been detached.

The reader would report the demuxing error to the console, but that's acutally not a fatal error, because in this situation the reader is going to be shutdown soon. Therefore, return `NS_ERROR_DOM_MEDIA_CANCELED` to allow MFR to treat this error differently.

Differential Revision: https://phabricator.services.mozilla.com/D100153
2020-12-22 06:06:04 +00:00
alwu 7b9e967b43 Bug 1683016 - listen to display playback change before calling video's `play()` r=bryce
Call `waitUntilDisplayedPlaybackChanged()` first to ensure that we won't miss the event. In addition, add more logs in order to help diagnosing issue if timeout happens again.

Differential Revision: https://phabricator.services.mozilla.com/D100277
2020-12-22 16:44:56 +00:00
Andreas Farre fdd0e482e7 Bug 1682141: Stop searching for top window if top contex has no window context. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100325
2020-12-22 14:52:27 +00:00
Mihai Alexandru Michis 5ad0b4b8bf Merge mozilla-central to autoland a=merge 2020-12-22 17:07:41 +02:00
Mihai Alexandru Michis a4520f52a9 Backed out changeset 9ef5f1fe26e8 (bug 1679540) for causing Bug 1683863. a=backout 2020-12-22 17:00:34 +02:00
Lee Salzman 00c0e09335 Bug 1678909 - mark image bitmap as premult when converted so that we don't repeatedly premultiply it. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D100287
2020-12-22 00:13:18 +00:00
Edgar Chen 0fd119dae0 Bug 582459 - Reset the focused element when a frame loses document focus; r=mikedeboer,NeilDeakin,hsivonen,jaws
Resetting focus would also clear selection on editable element, so get
current selected text before moving focus to findbar to make
prefill-with-selection work if the content is loaded in chrome process.

Differential Revision: https://phabricator.services.mozilla.com/D89557
2020-12-21 21:35:49 +00:00
Ping Chen affc98defc Bug 1683228 - Fallback to maxLogLevel when maxLogLevelPref doesn't exist. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100074
2020-12-21 10:35:36 +00:00
Alastor Wu 5a96f35156 Bug 1671626 - part2 : set metadata on nowPlayingInfo. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D100077
2020-12-21 18:09:16 +00:00
Alastor Wu 0bcbe2eae9 Bug 1671626 - part1 : remove `MediaPlayerWrapper`. r=spohl
As now the lowest version SDK we use for developing would be 10.12, so we don't need to this wrapper anymore and can import `MediaPlayer` directly.

Differential Revision: https://phabricator.services.mozilla.com/D97223
2020-12-21 18:10:30 +00:00
Simon Giesecke 0a86aba723 Bug 1679540 - Extract CollectEachFile function and use in quota manager and clients. r=dom-workers-and-storage-reviewers,ttung,janv
Differential Revision: https://phabricator.services.mozilla.com/D98075
2020-12-21 18:13:56 +00:00
Emilio Cobos Álvarez 6f72a71fea Bug 1683690 - Cleanup SVGGeometryElement::IsGeometryChangedViaCSS and related functions. r=longsonr
At the very least per our coding style star should be near the pointer
type, not the variable name, but while we're at it let's also make
IsGeometryChangedViaCSS a bit more efficient, and use references.

Differential Revision: https://phabricator.services.mozilla.com/D100244
2020-12-21 17:00:36 +00:00
Steve Fink fe76c7c194 Bug 1683220 - Remove nsJSContext::MaybeRunNextCollectorSlice entirely r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D96209
2020-12-21 17:23:26 +00:00
Yaron Tausky 1e7304d2f9 Bug 1675097 - Use the correct sandboxing flags for initial about:blank r=asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D99237
2020-12-16 13:06:56 +00:00
Alexis Beingessner d0ab79ff63 Bug 1682938 - fixup ReverbInputBuffer's writeIndex. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D100024
2020-12-21 17:10:29 +00:00
Simon Giesecke 498d14d420 Bug 1675868 - Store weak pointer to next parents. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D99662
2020-12-14 17:12:36 +00:00
Bryce Seager van Dyk 0f3a7c7723 Bug 1680310 - Gracefully handle functions running after we Shutdown in RemoteDecoderManagerChild. r=jya
RemoteDecoderManagerChild has a number of functions that may be called
asynchronously. Many such functions assert that they can get the manager thread
and that they are on that thread. However, if we've already shutdown, the thread
they fetch will be null. Since we can enter shutdown while async executions of
these functions are pending, we may fail our asserts.

To avoid this, we instead check if the manager thread is null in these
functions, if so, we assume we're in shutdown and bail. If the thread is not
null, we continue as before and assert we are running on the thread as expected.

Differential Revision: https://phabricator.services.mozilla.com/D99824
2020-12-21 15:03:01 +00:00
Emilio Cobos Álvarez 4ec02c259b Bug 1683652 - Clear cached path when reframed. r=longsonr
The issue here is caused (a bit surprisingly) by the counter-reset
declaration.

The underlying issue is that counter-reset causes us to rebuild the
frame tree for the whole `<body>`, in order to rebuild the counter tree.

That makes the geometry frame not get its updated style (because the
frame goes away), and the next frame getting constructed getting a null
aOldComputedStyle (as expected, as it's a new frame).

We can't rely on the cached path not to change while there's no frame,
so clear it out when there's no old style.

The test is a simpler version of the test-case, where instead of
`counter-reset`, I use `display: none` to trigger the bogus codepath.

Differential Revision: https://phabricator.services.mozilla.com/D100237
2020-12-21 14:34:18 +00:00
Masayuki Nakano 9e229babfa Bug 1683226 - part 11: Get rid of `IMEEnabled::Plugin` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D100123
2020-12-21 08:26:24 +00:00
Masayuki Nakano f13852f795 Bug 1683226 - part 10: Get rid of `nsIWidget::EnableIMEForPlugin()` r=m_kato
This is used only on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D100122
2020-12-21 06:31:16 +00:00
Simon Giesecke c1e0f526a1 Bug 1681987 - Add missing includes to fix build with --disable-accessibility. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D99658
2020-12-20 07:15:28 +00:00
Simon Giesecke 33fc668a0e Bug 1683132 - Include nsresult value in telemetry events. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100089
2020-12-21 09:32:12 +00:00
longsonr c59d310501 Bug 1682307 - use document URI rather than baseURI for local references with SMIL r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D100207
2020-12-21 03:49:33 +00:00
Masayuki Nakano deee66043a Bug 1683226 - part 6: Get rid of the path of `DefaultProcOfPluginEvent` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D100118
2020-12-21 06:13:09 +00:00
Masayuki Nakano b20f4bb5c2 Bug 1683226 - part 5: Get rid of the path setting candidate window position from plugin on Windows r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D100117
2020-12-21 06:03:33 +00:00
Masayuki Nakano 5599ddec3c Bug 1683226 - part 3: Get rid of pathes for handling plugin from `IMEStateManager`, `IMEContentObserver` and `ContentEventHandler` r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100102
2020-12-21 05:52:49 +00:00
Masayuki Nakano d876b20aaa Bug 1683226 - part 2: Make `HTMLEmbedElement` and `HTMLObjectElement` stop overriding `nsIContent::GetDesiredIMEState()` r=smaug
Currently, they are never focusable when its type is "plugin".
So, making stop them returning `IMEEnabled::Plugin` won't change
anything, but it guarantees that nobody will see `IMEEnabled::Plugin`
at runtime.  This is a preparation for the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D100101
2020-12-21 05:52:26 +00:00
Masayuki Nakano d27602eee6 Bug 1683226 - part 1: Make `IMEState::Enabled` an enum class r=m_kato,geckoview-reviewers
Before deleting `IMEState::Enabled::PLUGIN`, let's make it an enum class
for making the change safer.  Almost all of this change is done by
"replace" of VSCode.

Differential Revision: https://phabricator.services.mozilla.com/D100100
2020-12-21 05:52:03 +00:00
Emilio Cobos Álvarez f4a00bfc1f Bug 1683507 - Don't uselessly call GetCurrentInnerWindowInternal twice from nsGlobalWindowOuter::EnterModalState. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D100187
2020-12-20 20:41:13 +00:00
Edgar Chen 2b16b12d46 Bug 1680405 - Make mouse capture working on OOP iframe; r=smaug
This patch add a way to track remote target for mouse capturing. The tracking
remote target will be reset when capturing content is changed or
ReleaseCapturingContent() is called.

In order to make `mouseup` would also be dispatched to correct remote target, we
do ReleaseCapturingContent in EventSetateManager::PostHandleEvent, instead of
in nsIFrame::HandleRelease.

Differential Revision: https://phabricator.services.mozilla.com/D98592
2020-12-18 18:21:23 +00:00
Barret Rennie cff1a2c34d Bug 1682031 - Add PathUtils.appendRelative r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D99505
2020-12-17 23:55:45 +00:00
Dzmitry Malyshau 6b5716d415 Bug 1680376 - WebGPU error handling infrastructure r=jgilbert,webidl,smaug
the goal of this PR is to provide the necessary
infrastructure to handle errors on the GPU process side and send them
back to the client side, triggering the uncaptured error events.

Differential Revision: https://phabricator.services.mozilla.com/D98542
2020-12-18 20:07:47 +00:00
Razvan Maries 47f941747c Backed out changeset 540c9159c3c6 (bug 1681664) for perma failures on test_bug1681664.html. 2020-12-18 22:00:52 +02:00
Byron Campen [:bwc] a4b9ffa581 Bug 1681943: Remember how extmap was negotiated for later use in reoffers. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D100049
2020-12-18 17:59:07 +00:00
Andrew Sutherland dd7728004b Bug 1641715 - Normalize permission transmission. r=rpl
### Process Reuse

Prior to this patch, the logic was unintentionally specifying that
existing processes shouldn't be reused, which could lead to growing
the size of a process pool that we did not actually desire to grow.
We now pass the flag to request reuse of a process, which helps
compensate for the process selection decision process happening on
PBackground in a manner which inherently does not have as full an
understanding of what processes are in the act of being created on
the main thread.

See the comments in the code for more informationm.

### Permission Transmission

Prior to this patch, permissions would be transmitted when either:
1. The choice was made to use an existing process.
2. A new process was launched to be the home for a worker.

This seems like it covers all the bases but the actual mechanism by
which a remote worker would be launched for a new process is when its
RemoteWorkerServiceParent actor is registered.  The above would be
sufficient if the only way for processes to come into existence was at
the request of the RemoteWorkerService, but obviously this is not the
case.  When that happened, it would be possible for a remote worker to
be placed in a new process that was not the process we were
transmitting permissions for.

The changes in this patch normalize permission transmission so that
they are transmitted at the same time we attempt to spawn the worker
via the selected RemoteWorkerServiceParent.  This code path is used for
both an existing process and when a new process is spawned so there's
no longer any gap.

Differential Revision: https://phabricator.services.mozilla.com/D99753
2020-12-18 16:27:52 +00:00
yulia a1a1c495ea Bug 1681664 - Allow Top-level await modules which fail to evaluate due to user action to fail without crashing. r=jonco,mconley
Differential Revision: https://phabricator.services.mozilla.com/D99809
2020-12-18 12:37:36 +00:00
Sebastian Streich 4e9a38f624 Bug 1676221 - Add UX nits to unblock UI r=ckerschb,Gijs
Show save dialogue
***
Automaticly show Panel On Block
***
Keep Open/Save Dialogue with open panel
***
Keep User choise in downloadsView
***
Add Unblock option to Unblock panel
***
lint
***
add test

Differential Revision: https://phabricator.services.mozilla.com/D96448
2020-12-18 15:30:33 +00:00
Daisuke Akatsuka 636b8c9e9a Bug 1678611: Implement a mechanism to fire page-title-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D98278
2020-12-18 10:47:34 +00:00
Masatoshi Kimura 6a43b71a1d Bug 1679087 - Remove ability to create non-Unicode widgets. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D100007
2020-12-17 18:21:39 +00:00
Bogdan Tara 0e0311351e Backed out 9 changesets (bug 1656107) for frequent assertion failures on layout/style/nsComputedDOMStyle.cpp CLOSED TREE
Backed out changeset 2d9843871809 (bug 1656107)
Backed out changeset 87031ccf6c8e (bug 1656107)
Backed out changeset 1e06017a213c (bug 1656107)
Backed out changeset b51bae240379 (bug 1656107)
Backed out changeset 8d98b76de39a (bug 1656107)
Backed out changeset 0f4ea8cdd34a (bug 1656107)
Backed out changeset 95eeff5318e5 (bug 1656107)
Backed out changeset 469fa7a429c2 (bug 1656107)
Backed out changeset ec3d7e825bc9 (bug 1656107)
2020-12-17 22:19:09 +02:00
Chris Martin c24dc89ea6 Bug 1657404 - Back out changeset 6792f28b99bd keeping 349854c5ad56 r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D100031
2020-12-17 18:21:06 +00:00
Simon Giesecke 641ad4b8f6 Bug 1682536 - Use references/NotNull in Manager. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99776
2020-12-17 16:14:43 +00:00
Simon Giesecke 4756746f18 Bug 1682536 - Use references/NotNull in Context. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99775
2020-12-15 23:25:30 +00:00
Simon Giesecke 88142da40d Bug 1682536 - Use references/NotNull in CacheWorkerRef. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99774
2020-12-17 16:14:52 +00:00
Simon Giesecke 2cc4d91a28 Bug 1670555 - Include nsresult value when reporting an error via QM_TRY* macros. r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93192
2020-12-17 15:32:42 +00:00
Steven MacLeod a47b184119 Bug 1656107 - remove unused Document::FindContentForSubDocument. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98622
2020-12-17 13:54:40 +00:00
Steven MacLeod aee135115c Bug 1656107 - remove FindContentForSubDocument use from Document. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98621
2020-12-16 01:06:57 +00:00
Steven MacLeod 1c72bc8ce8 Bug 1656107 - remove FindContentForSubDocument use from EventStateManager. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98617
2020-12-16 01:06:39 +00:00
Steven MacLeod 063c946ad1 Bug 1656107 - remove obsolete comment from nsGlobalWindowOuter. r=farre
The code this comment refers to was changed/removed at some point.

Differential Revision: https://phabricator.services.mozilla.com/D98616
2020-12-16 01:06:36 +00:00
Steven MacLeod 1cb3847d1b Bug 1656107 - remove FindContentForSubDocument use from nsGlobalWindowOuter. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98615
2020-12-16 01:06:29 +00:00
Steven MacLeod 9d6ebdf094 Bug 1656107 - remove FindContentForSubDocument use from nsContentUtils. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98614
2020-12-16 01:06:21 +00:00
Jens Stutte 5d543ae053 Bug 1612928: Ensure mSyncLoopTarget is null at the end of Teardown to avoid assertion and change some MOZ_CRASH to more graceful behavior. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D97010
2020-12-17 14:44:55 +00:00
Simon Giesecke 9758d919eb Bug 1583109 - Use StringJoin(Append) where easily possible. r=nika
Bug 1583109 introduced new function templates StringJoin and StringJoinAppend.
These are now used to replace several custom loops across the codebase that
implement string-joining algorithms to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D98750
2020-12-17 14:58:18 +00:00
Emilio Cobos Álvarez 039592f4d8 Bug 1682003 - Avoid UTF-8 -> UTF-16 conversion during CSSOM serialization. r=heycam
This lifts a bunch of string conversions higher up the stack, but allows
us to make the servo code use utf-8 unconditionally, and seemed faster
in my benchmarking (see comment 0).

It should also make a bunch of attribute setters faster too (like
setting .cssText), now that we use UTF8String for them (we couldn't
because we couldn't specify different string types for the getter and
setters).

Differential Revision: https://phabricator.services.mozilla.com/D99590
2020-12-17 14:04:35 +00:00
Razvan Maries a7af908f30 Backed out changeset 5e9006d8c218 (bug 1680405) for perma failures on PresShell.cpp and browser_mouse_enterleave_switch_tab.js. CLOSED TREE 2020-12-17 13:24:39 +02:00
Simon Giesecke 238ab1826e Bug 1682639 - Fix diagnostic assertion failure in PrepareDatastoreOp::DatabaseWork. r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D100002
2020-12-17 10:44:29 +00:00
Edgar Chen 45ea02297b Bug 1680405 - Make mouse capture working on OOP iframe; r=smaug
This patch add a way to track remote target for mouse capturing. The tracking
remote target will be reset when capturing content is changed or
ReleaseCapturingContent() is called.

In order to make `mouseup` would also be dispatched to correct remote target, we
do ReleaseCapturingContent in EventSetateManager::PostHandleEvent, instead of
in nsIFrame::HandleRelease.

Differential Revision: https://phabricator.services.mozilla.com/D98592
2020-12-17 09:28:00 +00:00
Butkovits Atila a5ae3506b7 Backed out changeset 234ae5cb0ff8 (bug 1676221) for causing leaks. CLOSED TREE 2020-12-17 10:54:31 +02:00
Jens Stutte 1e1c03f0df Bug 1677747: Trust the caller's error handling on shutdown rather than assert. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D97487
2020-12-17 07:15:50 +00:00
Razvan Maries c1dc47efa6 Backed out changeset dbea74f0edd3 (bug 1682031) for perma faimures on test_pathutils.html. CLOSED TREE 2020-12-17 08:07:08 +02:00
smolnar 8fca43061d Backed out changeset 5d120a154a6b (bug 1674776) as requested. CLOSED TREE DONTBUILD 2020-12-17 03:22:33 +02:00
Hiroyuki Ikezoe f78a1ad627 Bug 1674776 - Update DocumentTimeline::mLastRefreshDriverTime outside parallel styling. r=boris,decoder
Note that we can probably use mLastRefreshDriverTime directly in
DocumentTimeline::GetCurrentTimeStamp(), i.e. we don't need to use the refresh
driver there, but I'd preserve the current behavior.

Differential Revision: https://phabricator.services.mozilla.com/D97823
2020-12-17 00:51:18 +00:00
Sebastian Streich ac54bcd9d6 Bug 1676221 - Add UX nits to unblock UI r=ckerschb,Gijs
Show save dialogue
***
Automaticly show Panel On Block
***
Keep Open/Save Dialogue with open panel
***
Keep User choise in downloadsView
***
Add Unblock option to Unblock panel
***
lint
***
add test

Differential Revision: https://phabricator.services.mozilla.com/D96448
2020-12-16 22:55:12 +00:00
Barret Rennie 502eea4257 Bug 1682031 - Add PathUtils.appendRelative r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D99505
2020-12-11 22:01:38 +00:00