Files
servo/components
CYBAI 28e64fc701 Assert incumbent global is always some in get_incumbent_global hook
While working on module script, I'd like to use Promise with a custom
callback with type `Box<dyn TaskBox>` which means we didn't use web API
callbacks as native handlers. However, we'll get a panic from
`enqueue_promise_job` and the panic says we have a `null` incumbent
global. The main problem here is, the Promise API is strongly tied to JS
engine and it always assumes there's a meaningful answer for "what
specific global is this promise associated with". So, when I don't use
the Promise for a specific web API, our engine cannot find a proper
incumbent global for us so that we get the `null` incumbent global
panic.

To make us catch this case easier in the future, we should add the
assertion inside `get_incumbent_global` hook so that we can know this
quickly next time.

Ref: https://mozilla.logbot.info/servo/20190807#c16525481
2019-08-08 12:39:56 +09:00
..
2019-07-22 09:32:01 -07:00
2019-04-29 22:25:12 +09:00
2019-07-23 23:09:55 +02:00
2019-06-12 15:01:03 -04:00
2019-05-23 12:14:56 +02:00
2019-04-20 22:39:22 +02:00
2019-07-23 23:09:55 +02:00
2019-07-23 23:09:55 +02:00
2019-06-12 15:01:03 -04:00
2019-07-23 23:09:55 +02:00
2019-07-23 23:09:55 +02:00
2019-07-23 23:09:55 +02:00
2019-07-25 12:55:26 -05:00
2019-07-23 23:09:55 +02:00
2019-07-01 14:55:01 +02:00
2019-07-23 23:09:55 +02:00
2019-08-06 18:07:31 +02:00
2019-05-23 12:14:56 +02:00
2019-07-23 23:09:55 +02:00
2019-05-23 12:14:56 +02:00
2019-07-23 23:09:55 +02:00
2019-07-23 23:09:55 +02:00
2019-07-01 17:42:46 -07:00