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

89559 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione a737bd2c6a Bug 1604889: Don't rethrow receiveMessage exceptions as NS_ERROR_UNEXPECTED. r=mccr8
When we let the WebIDL callback wrapper report exceptions, it returns an error
result of NS_ERROR_UNEXPECTED, which winds up getting set as a promise
rejection reason or re-reported to the console. This just causes unnecessary
confusion for callers, especially since the error has no location information.

Differential Revision: https://phabricator.services.mozilla.com/D57657

--HG--
extra : moz-landing-system : lando
2020-01-09 21:27:25 +00:00
Edwin Takahashi 2b5519636e Bug 1602863 - run mochitest-webgl suites on ubuntu1804 docker image r=jmaher
Changes:

Run mochitest-webgl suites on ubuntu1804.

Update the expectation of a test to remove the `headless` specification.

Differential Revision: https://phabricator.services.mozilla.com/D59401

--HG--
extra : moz-landing-system : lando
2020-01-09 20:49:35 +00:00
Olli Pettay 03c717bd41 Bug 1608093 - Remove support for multiple CycleCollectedJSContexts per CycleCollectedJSRuntime, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D59338

--HG--
extra : moz-landing-system : lando
2020-01-09 17:27:10 +00:00
Edwin Takahashi 5046dc5402 Bug 1536179 - cast the PosixPath to a string r=jgilbert
Changes:

Silence the `os.chdir` posixpath error when run in python3.

Differential Revision: https://phabricator.services.mozilla.com/D59254

--HG--
extra : moz-landing-system : lando
2020-01-09 18:25:11 +00:00
John Lin 7c920d7905 Bug 1602996 - assert if Android decoder is used after shutdown. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D59194

--HG--
extra : moz-landing-system : lando
2020-01-09 06:22:19 +00:00
Johann Hofmann b61a4aacf6 Bug 1597029 - Set securityInfo for all document types. r=baku
In StartDocumentLoad we copy the securityInfo reference from the load channel into a document
member variable. This used to happen only for HTML documents, but other documents (e.g. media)
can be loaded via secure channels, too and thus should have securityInfos. We're using the
securityInfo object to display information in the UI, which would previously fail for images and videos.

Differential Revision: https://phabricator.services.mozilla.com/D59327

--HG--
extra : moz-landing-system : lando
2020-01-09 14:55:02 +00:00
Simon Giesecke 1566419852 Bug 1600906 - Avoid copying key buffers. r=dom-workers-and-storage-reviewers,ytausky
Depends on D57991

Differential Revision: https://phabricator.services.mozilla.com/D57992

--HG--
extra : moz-landing-system : lando
2020-01-06 14:16:33 +00:00
Simon Giesecke 0d5b4fd7af Bug 1600906 - Use scoped enums in IDBCursor. r=dom-workers-and-storage-reviewers,ytausky
Depends on D57990

Differential Revision: https://phabricator.services.mozilla.com/D57991

--HG--
extra : moz-landing-system : lando
2020-01-06 14:19:39 +00:00
Simon Giesecke 34a5e80ee4 Bug 1600906 - Use InitializedOnce in DirectoryInfo to allow moving instances without additional state. r=dom-workers-and-storage-reviewers,ytausky
Depends on D57989

Differential Revision: https://phabricator.services.mozilla.com/D57990

--HG--
extra : moz-landing-system : lando
2020-01-09 14:58:17 +00:00
Simon Giesecke e4ec4856f2 Bug 1600906 - Use std::move instead of swap, use const where then possible. r=dom-workers-and-storage-reviewers,ytausky
Depends on D57988

Differential Revision: https://phabricator.services.mozilla.com/D57989

--HG--
extra : moz-landing-system : lando
2020-01-09 14:43:57 +00:00
Mirko Brodesser 8cffae0b13 Bug 1607783: check precondition in `nsRange::IsNodeSelected`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59284

--HG--
extra : moz-landing-system : lando
2020-01-09 11:53:52 +00:00
Masatoshi Kimura ef626b5951 Bug 1448967 - Remove enablePrivilege. r=mccr8,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D57243

--HG--
rename : testing/firefox-ui/resources/security/enable_privilege.html => js/xpconnect/tests/mochitest/test_enable_privilege.html
extra : moz-landing-system : lando
2020-01-08 23:14:48 +00:00
Andrea Marchesini 502fbbd9f7 Bug 1472158 - Broadcast BlobURLs only to processes with the same loaded origins, r=farre,asuth
Differential Revision: https://phabricator.services.mozilla.com/D57637

--HG--
extra : moz-landing-system : lando
2020-01-09 08:15:49 +00:00
alwu ba4fab1cc2 Bug 1607051 - do not access browsing context after XPCOM is shutdown. r=bryce
After XPCOM is shutdown, `sBrowsingContext` would be released, so using `BrowsingContext::Get()` would cause crash. Therefore, after shutdown XPCOM, we should not access browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D59079

--HG--
extra : moz-landing-system : lando
2020-01-08 17:11:34 +00:00
Perry Jiang 21f081cf61 Bug 1588838 - be able to terminate remote workers while their script is evaluating r=dom-workers-and-storage-reviewers,asuth
- Make the worker thread's associated WorkerPrivate available from
  RemoteWorkerChild' "Pending" state (which is the state while the script
  is evaluating). WorkerPrivate is needed to forcefully terminate the worker,
  and previously it wasn't available until the script finished evaluating, so
  a script like `while (true);` wouldn't be able to be stopped because its
  WorkerPrivate wouldn't ever be available.
- Refactor some RemoteWorkerChild states to clean up WorkerPrivate/WeakWorkerRef.

Differential Revision: https://phabricator.services.mozilla.com/D59246

--HG--
extra : moz-landing-system : lando
2020-01-09 00:43:43 +00:00
Perry Jiang 2ac1c6112f Bug 1588838 - decrease "idle extended timeout" to 30 seconds r=dom-workers-and-storage-reviewers,asuth
This gives each ServiceWorker a total of 1 minute to finish doing "something"
(unless the timeout is reset by something else the ServiceWorker needs to do).
1 minute is chosen to be roughly consistent with Chrome/Safari (as opposed to
a total of 5 minutes 30 seconds).

Differential Revision: https://phabricator.services.mozilla.com/D59245

--HG--
extra : moz-landing-system : lando
2020-01-09 00:30:27 +00:00
Jeff Gilbert f26e4d546b Bug 1477756 - Fix non-webgl CI tests. r=handyman
* Revert some partial webgl+oop+vr code.
* More missing FuncScope.
* Fix compile errors.
* Refactor some ifdef'd code to branch and compile on all platforms.
* -Wno-error=unused-result for GCC to allow for (void)MustUse().

Depends on D55739

Differential Revision: https://phabricator.services.mozilla.com/D56169

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:26 +00:00
Jeff Gilbert 0dfd1a2a0d Bug 1477756 - Fix all webgl regression tests according to CI. r=handyman
(This is a combination of 31 commits)

* Fix Linux compilation.

* Fix mac compilation.

* CI compile fixes.

* printf's size_t is %zu. %tu would be unsigned ptrdiff_t.

* No non-ref Maybe args.

* MOZ_CRASH for noreturn

* Handle implied texture sizes, rewrite comment stripping.

* Replace e.g. WebGLProgramInner with simpler webgl::ProgramKeepAlive.

* Bounce ValidateProgram call off driver.

* Uniform name length limit, cubemap fb-attach, non-array uniforms, undersized texImage views.

* alignas for uint8_t[sizeof(float)*N] pun buffers.

* CC fixes?

* Fill attrib0Active.

* Repair max-warnings limit.

* This is basically required in order for CI's logging to not explode.

* Don't cache WebGLMemoryTracker.

* Deleted prog/shader error, no texSubImage(null), client-side fingerprint resist for exts.

* Fix GetUniformIndices and MakeRangeFromView.

* CC Traverse base class from within derived class to fix leaking the world. :(

* PauseTransformFeedback
* TexImage video fastpath
* GetFragLocation for arrays
* Forbid BindBufferRange during TF

* Mark tests and fix RBAB query and test.

* Change(!) query deletion behavior to match spec.
* Mark conformance2/query/query.html failing for now.

* Implicitly EndQuery on DeleteQuery while spec is in flux.

* Fix error code for test.

* RAII LruPosition for WebGL context limit.

* Include std::list.

* Mark CompileResult and LinkResult.pending as false when retrieved.

* Hold strong-ref to NotLostData during Run<> to prevent LoseContext=>UAF.

* Don't assume GetUniformLocation(foo+'[0]') means foo is an array.
* Don't assume !mCanvasElement means !!mOffscreenCanvas.

* Handle composition while context-lost.

* All non-value-init members must be const or have inline init.

* Mark passing tests on Linux.

Depends on D54019

Differential Revision: https://phabricator.services.mozilla.com/D55739

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:23 +00:00
Jeff Gilbert e1d0fe64bb Bug 1477756 - Client-side bindings mirror for precise CC, and merge similar codepaths. r=handyman
* Context loss using RAII
* Move Program reflection Client-side

Depends on D54018

Differential Revision: https://phabricator.services.mozilla.com/D54019

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:16 +00:00
David Parks 198fa063c2 Bug 1477756 - Initial out-of-process WebGL implementation. r=mccr8,handyman
Splits WebGLContext into ClientWebGLContext and HostWebGLContext.  The Client enables the JS-control of a WebGL context in a content procecss while the Host executes the WebGL graphics operations (via a WebGLContext that maintains much of the existing code) in the compositor process.  At this point, the cross-process behavior is disabled -- this series of patches is an incremental step toward that final goal.

Differential Revision: https://phabricator.services.mozilla.com/D54018

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:14 +00:00
Emilio Cobos Álvarez 278b36aafb Bug 1607816 - Replace mozilla::{Max, Min}Value with std::numeric_limits. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59153

--HG--
extra : moz-landing-system : lando
2020-01-08 16:30:40 +00:00
Emilio Cobos Álvarez 3f5e15cdd8 Bug 1607796 - Simplify usage of std::enable_if with std::enable_if_t. r=bzbarsky
This one is manual.

Depends on D59145

Differential Revision: https://phabricator.services.mozilla.com/D59146

--HG--
extra : moz-landing-system : lando
2020-01-08 16:11:51 +00:00
Emilio Cobos Álvarez 80322da13a Bug 1607796 - Use <type_traits> in dom/bindings. r=bzbarsky
Automatic but manually checked via s/IsBaseOf</std::is_base_of</g and so on.

Differential Revision: https://phabricator.services.mozilla.com/D59145

--HG--
extra : moz-landing-system : lando
2020-01-08 16:40:12 +00:00
Brian Grinstead b96014d27c Bug 1596485 - Rename mXBLInvolved to mShadowDOMInvolved and XBLInvolved to ShadowDOMInvolved r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D59071

--HG--
extra : moz-landing-system : lando
2020-01-08 15:08:06 +00:00
Yaron Tausky 877a273a69 Bug 1603976 - Warn when getting session storage data for discarded browsing context r=dom-workers-and-storage-reviewers,sg,janv
Under some (yet) unclear conditions it's possible for a content
process to send session storage data for a browsing context that's
already been discarded. This leads to an assertion failure when
deserializing the IPC message. This commit works around this issue
by sending the browsing context's ID over IPC and issuing a warning
instead of asserting that the browsing context still exists.

Differential Revision: https://phabricator.services.mozilla.com/D59096

--HG--
extra : moz-landing-system : lando
2020-01-08 15:38:34 +00:00
Emilio Cobos Álvarez f210527c4f Bug 1607595 - Manual fixups, and remove mozilla::IsBaseOf. r=froydnj
This is manual, but hopefully trivial.

Differential Revision: https://phabricator.services.mozilla.com/D59014

--HG--
extra : moz-landing-system : lando
2020-01-08 14:52:18 +00:00
Emilio Cobos Álvarez e363a41bd4 Bug 1607595 - Remove uses of mozilla::IsBaseOf. r=froydnj
Automatically generated by:

$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/mozilla::IsBaseOf</std::is_base_of</g'
$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/IsBaseOf</std::is_base_of</g

Differential Revision: https://phabricator.services.mozilla.com/D59013

--HG--
extra : moz-landing-system : lando
2020-01-08 14:52:10 +00:00
Christoph Kerschbaumer 8335b185aa Bug 1585533: Add debug statements to fix intermittent test failure on fission for test_upgrade_insecure_reporting.html. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D59099

--HG--
extra : moz-landing-system : lando
2020-01-08 13:38:56 +00:00
Daniel Varga 9991e5cc37 Bug 1581862 - Updated disable for browser_windowProxy_transplant.js on macosx when Fission is not enabled. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D59081

--HG--
extra : moz-landing-system : lando
2020-01-08 11:04:31 +00:00
Tetsuharu OHZEKI d05bf2278f Bug 1597410 - Fix uses of nsIDocShellTreeItem in mozilla::dom::Document::IsThirdPartyForFlashClassifier in dom/base/Document.cpp. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D58952

--HG--
extra : moz-landing-system : lando
2020-01-08 09:37:33 +00:00
Tetsuharu OHZEKI 955fcd53a6 Bug 1597431 - Fix uses of nsIDocShellTreeItem in nsFrameLoader::MaybeUpdatePrimaryBrowserParent in dom/base/nsFrameLoader.cpp. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D58718

--HG--
extra : moz-landing-system : lando
2020-01-08 09:41:47 +00:00
Tetsuharu OHZEKI cdd3d0d1fe Bug 1597407 - Fix uses of nsIDocShellTreeItem in mozilla::dom::Document::SetContainer in dom/base/Document.cpp. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D58907

--HG--
extra : moz-landing-system : lando
2020-01-08 09:40:28 +00:00
Valentin Gosu 16ae7bd480 Bug 1552176 - pass TRRMode into nsHTMLDNSPrefetch methods r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D49159

--HG--
extra : moz-landing-system : lando
2020-01-07 19:33:51 +00:00
Valentin Gosu c7d9b630cb Bug 1552176 - Add nsIRequest.set/getTRRMode r=dragana
* Makes it possible to selectively enable TRR for pbmode/container/window/etc

Differential Revision: https://phabricator.services.mozilla.com/D48363

--HG--
extra : moz-landing-system : lando
2020-01-07 20:20:38 +00:00
Christoph Walcher 855264d3a5 Bug 1596476 - Remove nsuri_xbl static atom r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D53333

--HG--
extra : moz-landing-system : lando
2020-01-08 04:44:33 +00:00
sotaro 68439d9c26 Bug 1598998 - Fix CanvasContextType::ImageBitmap handling r=nical
Differential Revision: https://phabricator.services.mozilla.com/D56348

--HG--
extra : moz-landing-system : lando
2020-01-08 01:12:50 +00:00
Perry Jiang 044d7a6a91 Bug 1604943 - ServiceWorkerRegistration.update should capture newest worker script URL at call-time r=dom-workers-and-storage-reviewers,asuth
- Cleaned up some comments.
- Changed some const nsACString& parameter types to nsCString to accept r-value
  and l-value nsCStrings.

Differential Revision: https://phabricator.services.mozilla.com/D58877

--HG--
extra : moz-landing-system : lando
2020-01-08 03:21:27 +00:00
Brian Grinstead 52fd411ca5 Bug 1596970 - Remove reference to MOZ_XBL in test_bug375314.html r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D59031

--HG--
extra : moz-landing-system : lando
2020-01-08 03:38:06 +00:00
Matt Woodrow a59b688778 Bug 1598523 - Make DocumentChannelChild/ContentChild QI to the specific interfaces it wants, rather than assuming that only HttpChannelChild will have them. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D57890

--HG--
extra : moz-landing-system : lando
2020-01-08 01:00:39 +00:00
Matt Woodrow 87b0e83cf6 Bug 1598523 - Share code for creating a channel for a document between nsDocShell, DocumentChannelChild and ContentChild. r=kmag
Note that this also implicitly adds support for the view-source+srcdoc configuration, and setting of the BaseURI, which were both in the nsDocShell version but not the others.

Differential Revision: https://phabricator.services.mozilla.com/D57887

--HG--
extra : moz-landing-system : lando
2020-01-08 02:10:54 +00:00
alwu 04ff0260ac Bug 1554343 - always release the refptr of media cache on main thread. r=bryce
It's possible that `self` is the last pointer holding the media cache, so we have to ensure releasing `self` on main thread because media cache should always be destroyed on main thread only.

Differential Revision: https://phabricator.services.mozilla.com/D58900

--HG--
extra : moz-landing-system : lando
2020-01-07 16:59:11 +00:00
Emilio Cobos Álvarez 86a70df5d7 Bug 1607006 - Remove utf-16 versions of nsCSSProps::LookupProperty* and ServoCSSParser::ComputeColor. r=bzbarsky
Now that we have UTF8String in the WebIDL, we can remove quite a few of the
conversions. Do that, and lift the remaining string conversions up as needed.

Also deindent Servo_ComputeColor while touching it.

Most of the remaining copies are because either bug 1606994, or because they're
WebIDL attributes that we still need to serialize back as UTF-16 (bug 1606995).

Differential Revision: https://phabricator.services.mozilla.com/D58687

--HG--
extra : moz-landing-system : lando
2020-01-08 01:21:30 +00:00
Bogdan Tara 4e368405fa Backed out 6 changesets (bug 1598523) for geckoview failures complaining about NavigationDelegateTest.loadUnknownProtocol
Backed out changeset 2e7ea1ae7fa2 (bug 1598523)
Backed out changeset 6adc1062662b (bug 1598523)
Backed out changeset 141372c43f02 (bug 1598523)
Backed out changeset c5abcaabaf2d (bug 1598523)
Backed out changeset 5a22a20dd993 (bug 1598523)
Backed out changeset e0df103c9cf3 (bug 1598523)
2020-01-08 02:56:18 +02:00
Edwin Takahashi 954f7f115c Bug 1599937 - mark test_2_conformance__textures__misc__texture-corner-case-videos.html with fail-if annotation for ubuntu1804 r=jmaher,jgilbert
Changes:

Mark this test as expected failure on ubuntu1804 and webrender.

Differential Revision: https://phabricator.services.mozilla.com/D58896

--HG--
extra : moz-landing-system : lando
2020-01-08 00:07:23 +00:00
Jeff Gilbert dfde69a462 Bug 1585683 - Add mochitest-webgpu jobs, add subsuite = webgpu. r=jmaher,kvark
Differential Revision: https://phabricator.services.mozilla.com/D58892

--HG--
extra : moz-landing-system : lando
2020-01-07 22:42:07 +00:00
Edgar Chen 31a6064874 Bug 1607223 - Part 4: Avoid performing check of next tabbable content on the first element of shadow dom duplicatedly; r=smaug
See https://bugzilla.mozilla.org/show_bug.cgi?id=1607223#c1 for the details.

Differential Revision: https://phabricator.services.mozilla.com/D58876

--HG--
extra : moz-landing-system : lando
2020-01-07 18:36:25 +00:00
Edgar Chen 043836c459 Bug 1607223 - Part 3: Simplify the logic of handling *topLevelScopeOwner; r=smaug
This patch contains three changes, but we just simpliy the logic, the result is the same,

1). s/oldTopLevelScopeOwner/currentTopLevelScopeOwner/
We can use either `oldTopLevelScopeOwner` or `currentTopLevelScopeOwner` in if-check, they point to the same element at that point.
Using `currentTopLevelScopeOwner` is clearer given that it is updated in the if-block.

2). remove else-block
We run into this else-block when `aForward && oldTopLevelScopeOwner == currentContent`,
so  `oldTopLevelScopeOwner`, `currentTopLevelScopeOwner` and `currentContent` all point to the same element.
It is not necessary to set `currentTopLevelScopeOwner` to `currentContent` again.

3). s/IsHostOrSlot(currentTopLevelScopeOwner)/currentTopLevelScopeOwner/
After above two changes, `currentTopLevelScopeOwner` is always set to result of `GetTopLevelScopeOwner(currentContent)`,
so we don't need `IsHostOrSlot()` checks. And there is an asserion in `HostOrSlotTabIndexValue()` to ensure it is either a host or slot.

Differential Revision: https://phabricator.services.mozilla.com/D58810

--HG--
extra : moz-landing-system : lando
2020-01-07 15:31:08 +00:00
Edgar Chen 753aa1aefb Bug 1607223 - Part 2: Fix GetTopLevelScopeOwner; r=smaug
Currently if we call `GetTopLevelScopeOwner` with a <slot> which is in top-level-scope, e.g. `<body><slot></slot></body>`.
It returns <slot> itself, but it should returns `nullptr` per design.

Differential Revision: https://phabricator.services.mozilla.com/D58805

--HG--
extra : moz-landing-system : lando
2020-01-07 12:42:58 +00:00
Edgar Chen 2b6dc0d088 Bug 1607223 - Part 1: Update the comment of `FindOwner` and rename function name to `FindScopeOwner`; r=smaug
After bug 1544826, `FindOwner` returns only shadow host or slot, update the
comment and rename it to `FindScopeOwner` to reflect the current behavior.

Differential Revision: https://phabricator.services.mozilla.com/D58578

--HG--
extra : moz-landing-system : lando
2020-01-07 11:37:26 +00:00
Emma Malysz dcd4934531 Bug 1596478, remove references to kNameSpaceID_XBL except for instance in nsNameSpaceManager.cpp r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58872

--HG--
extra : moz-landing-system : lando
2020-01-07 21:51:27 +00:00