Streamline uses of LoadContext now that BrowsingContext implements the interface
Categories
(Core :: DOM: Navigation, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
References
Details
Attachments
(5 files)
Assignee | ||
Comment 1•5 years ago
|
||
This patch asserts in various places that our LoadContext value on
BrowsingContext is consistent. This is done in order to get better diagnostics
for crashes such as those in bug 1629527.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
The 'Id' variant was only used with b2g for remote mozbrowser
s, and is no
longer relevant. The new code instead uses PBrowser
directly in all cases.
Assignee | ||
Comment 4•5 years ago
|
||
This information is now redundant with 'BrowsingContext', meaning that it can be
omitted from the 'TabContext'.
Assignee | ||
Comment 5•5 years ago
|
||
This variant was only used for service workers' openWindow method, which has
been changed to no longer behave in this way, meaning that the type can be
removed. The follow-up simplification of removing
'ContentChild::ProvideWindowCommon', and moving the logic directly into
'BrowserChild' is not done in this bug, and will be done in a follow-up instead.
Comment 7•5 years ago
|
||
Backed out 5 changesets (bug 1633820) for bustages complaining about TabContext
Backout link: https://hg.mozilla.org/integration/autoland/rev/9bf8bfad28e6fa2b7bfb1d81ad38b28e4fa7e1bc
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=301084866&repo=autoland&lineNumber=28913
...
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/ipc/FileDescriptor.h:14:
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - /builds/worker/workspace/obj-build/dist/include/mozilla/ipc/IPDLParamTraits.h(39,26): error: no member named 'Write' in 'IPC::ParamTraits<nsSizeMode>'
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - IPC::ParamTraits<P>::Write(aMsg, std::forward<R>(aParam));
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - ~~~~~~~~~~~~~~~~~~~~~^
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - /builds/worker/workspace/obj-build/dist/include/mozilla/ipc/IPDLParamTraits.h(62,37): note: in instantiation of function template specialization 'mozilla::ipc::IPDLParamTraits<nsSizeMode>::Write<const nsSizeMode &>' requested here
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - IPDLParamTraits<std::decay_t<P>>::Write(aMsg, aActor,
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - ^
[task 2020-05-06T19:27:24.880Z] 19:27:24 INFO - /builds/worker/workspace/obj-build/ipc/ipdl/PlatformWidgetTypes.cpp(56,5): note: in instantiation of function template specialization 'mozilla::ipc::WriteIPDLParam<const nsSizeMode &>' requested here
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - WriteIPDLParam(aMsg, aActor, (aVar).sizeMode());
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - ^
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - In file included from UnifiedProtocols37.cpp:2:
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - In file included from /builds/worker/workspace/obj-build/ipc/ipdl/PlatformWidgetTypes.cpp:7:
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - In file included from /builds/worker/workspace/obj-build/ipc/ipdl/_ipdlheaders/mozilla/widget/PlatformWidgetTypes.h:15:
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/ipc/ProtocolUtils.h:22:
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - In file included from /builds/worker/workspace/obj-build/dist/include/mozilla/ipc/FileDescriptor.h:14:
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - /builds/worker/workspace/obj-build/dist/include/mozilla/ipc/IPDLParamTraits.h(45,33): error: no member named 'Read' in 'IPC::ParamTraits<nsSizeMode>'
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - return IPC::ParamTraits<P>::Read(aMsg, aIter, aResult);
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - ~~~~~~~~~~~~~~~~~~~~~^
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - /builds/worker/workspace/obj-build/dist/include/mozilla/ipc/IPDLParamTraits.h(70,30): note: in instantiation of function template specialization 'mozilla::ipc::IPDLParamTraits<nsSizeMode>::Read<nsSizeMode>' requested here
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - return IPDLParamTraits<P>::Read(aMsg, aIter, aActor, aResult);
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - ^
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - /builds/worker/workspace/obj-build/ipc/ipdl/PlatformWidgetTypes.cpp(94,12): note: in instantiation of function template specialization 'mozilla::ipc::ReadIPDLParam<nsSizeMode>' requested here
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sizeMode())))))) {
[task 2020-05-06T19:27:24.881Z] 19:27:24 INFO - ^
[task 2020-05-06T19:27:24.882Z] 19:27:24 INFO - 2 errors generated.
[task 2020-05-06T19:27:24.882Z] 19:27:24 INFO - /builds/worker/checkouts/gecko/config/rules.mk:750: recipe for target 'UnifiedProtocols37.obj' failed
[task 2020-05-06T19:27:24.882Z] 19:27:24 ERROR - make[4]: *** [UnifiedProtocols37.obj] Error 1
[task 2020-05-06T19:27:24.882Z] 19:27:24 INFO - make[4]: Leaving directory '/builds/worker/workspace/obj-build/ipc/ipdl'
[task 2020-05-06T19:27:24.882Z] 19:27:24 INFO - make[4]: *** Waiting for unfinished jobs....
...
Comment 9•5 years ago
|
||
Backed out for build bustages at TabContext.cpp.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=301304354&repo=autoland&lineNumber=29821
Backout: https://hg.mozilla.org/integration/autoland/rev/9c3bf20554fdb4740a2467a85663b941661746e0
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0028602d4931
https://hg.mozilla.org/mozilla-central/rev/9303a3c6c204
https://hg.mozilla.org/mozilla-central/rev/cb99aaea4365
https://hg.mozilla.org/mozilla-central/rev/8e5d97fb8238
https://hg.mozilla.org/mozilla-central/rev/c7ae6a948bf3
Assignee | ||
Updated•5 years ago
|
Description
•