-
emilio
smaug: ping/
-
emilio
*?
-
emilio
smaug: Document::Destroy() isn't guaranteed to be called for every document, right?
-
smaug
right
-
» emilio is missing where that'd happen
-
emilio
smaug: why do we report use counters from there then?
-
emilio
smaug: i.e., aren't we missing use counters?
-
smaug
I think we were reporting use counters anyhow for non-data documents only
-
emilio
smaug: I was looking into how to hook a use counter per CSS property into telemetry
-
emilio
smaug: but is Document::Destroy() called for iframes and such? If so, in which order does that happen?
-
smaug
it is called for iframes
-
smaug
order is whatever order contentviewer gets destroyed
-
smaug
does order matter?
-
emilio
smaug: ah, cool... for any Document::Destroy() that happens, then I guess we have the guarantee of the iframe's Document::Destroy() being called before the parent, right?
-
emilio
smaug: right now it does not
-
emilio
smaug: but I want to make SetPageAndDocumentUseCounter just a bit flip
-
smaug
I don't know why there would be such guarantee
-
emilio
smaug: and propagate to the "page" when we report the other use counters
-
smaug
ah, right
-
emilio
smaug: I assume the content viewer of an iframe gets destroyed when we tear down the frame tree of the parent
-
emilio
smaug: which must necessarily happen before the parent's Destroy() is called
-
emilio
Maybe mod. bfcache or what not? I'm not sure how bfcache works with iframes
-
smaug
I think we might have a bug
-
smaug
-
smaug
use counter reporting should be later
-
smaug
edgar: ^
-
emilio
smaug: well, right now it doesn't matter, but it matters for my purposes
-
emilio
smaug: right now we eagerly propagate to the page
-
smaug
but you want some different setup because ?
-
emilio
smaug: because I want CSS use counters for all properties, and it cannot be something expensive
-
emilio
smaug: (where I == product, I guess)
-
smaug
and it is currently too expensive ?
-
emilio
smaug: right now it's not, but it's not hooked into telemetry. If I wanted to record the page use counters it'd be too expensive, yeah
-
emilio
smaug: basically, it is not right now, because we record a bit in the document. But if I have to do the "propagate to page" dance then that wouldn't make me happy
-
smaug
emilio: because you don't want to do all the parent doc finding etc
-
emilio
smaug: right
-
smaug
ok, makes sense
-
emilio
smaug: ok, I'll send a patch changing the existing setup, thanks for pointing me at DestroyContent()... I'll also keep an eye on the data this week to ensure we keep reporting the same
-
emilio
smaug: (this makes the setup for image documents and regular documents more similar, which is kinda nice, I think)
-
smaug
thanks for asking. Use counter setup might still require some tweaking, depending on these kinds of new requirements
-
emilio
smaug: how is the document / page distinction going to work with fission?
-
smaug
Well, the implementation will need to be changed
-
smaug
I guess one will have to send data to the top browsing context
-
nika
emilio: I'm guessing document/page refers to data documents and non-data documents etc?
-
emilio
nika: no, page is "top level content document or any subdocument" in this case, afaict
-
nika
So documents which are active in a nsGlobalWindow at some point sorta?
-
nika
emilio: just wanting to figure out if I already have an answer for how fission is handling it
-
emilio
nika: we only propagate use counters to parent documents in-process, so pretty sure we're not handling it, or are treating every oop iframe as top-level
-
emilio
-
Gijs
for webidl, if I have a [Func="..."] annotation, how do I figure out the `this` object, or is that impossible or something?
-
Gijs
ie on instance of Foo, for property bar, I want whether or not it's there to depend on *handwave* something else about the instance of Foo
-
bdahl
Gijs: do you know what's responsible for re-filling form values on refresh?
-
Gijs
bdahl: not 100%... I assume session restore but not super sure.
-
bdahl
hmm...yeah i thought it was something in there, but all the places i keep looking at don't seem to be it
-
Gijs
-
Gijs
hm, maybe not
-
Gijs
-
Gijs
bdahl: maybe set a breakpoint in htmlinputelement value setter and refresh?
-
bdahl
was only getting one triggered for the url bar, but there's also SetValueInternal
-
bdahl
found it now
-
bdahl
and i think i see the issue
-
Gijs
bdahl: so where is the code that does this, out of interest? :)
-
bdahl
-
bdahl
which we don't have when using the prototype
-
bdahl
i'm going to extract that "if" out of the xml content sink and the html tree builder and put it all on one place so they all share it
-
bdahl
and same with DoneAddingChildren
-
bdahl
seems bad to have that copied in three places that need to be in sync
-
emilio
nika: ping?
-
emilio
mccr8: ping?
-
nika
emilio: Sorry, in a meeting
-
nika
emilio: What's up?
-
emilio
nika: np, I think mccr8 may know some / better.
-
emilio
-
emilio
nika: I see mccr8 reviewed that... But you're to blame for the PHF code :)
-
nika
emilio: Ah, yeah. It just changes the size of a table
-
emilio
nika: I basically added a bunch of telemetry histograms, and the build time blows up if I keep it at 512
-
nika
emilio: Just a binary size increase which is super small
-
emilio
nika: ok, so super-small is what I was looking for
-
emilio
nika: does doubling it sound fair?
-
nika
Yeah, it has to be a power of 2 to be efficient iirc
-
nika
emilio: It's like N shorts, so it's almost irrelevant
-
emilio
nika: ahá, amazing. Thanks!
-
emilio
nika: congrats for being an xpcom peer btw! ^.^
-
emilio
nika: congrats^W^W^W^W^Wdolences I guess :)
-
jdm
"bringing the excitement of XPIDL to Rust"
-
jdm
nice
-
nika
thanks :-)
-
johannh
asuth: ping
-
johannh
asuth: was hoping you can point me to the code that prevents IndexedDB from working because we're in a private window? :)
-
johannh
I'll start digging...
-
asuth
-
asuth
but there are also checks lower down in that first method to save off the private-browsing mode
-
johannh
asuth: specifically, I was wondering if there could be an exception if a principal doesn't have the privateBrowsingId but is still in a private browsing window
-
johannh
asuth: it doesn't seem to work off-hand
-
johannh
(just opening a page in a private window that has its pBId stripped)
-
johannh
(trying to solve
bug 1427986 while solving
bug 1554805, but I don't mind if they stay separate)
-
firebot
bugzil.la/1427986 — NEW — indexedDB access when "Always use Private Browsing Mode" is set
-
firebot
bugzil.la/1554805 — ASSIGNED, jhofmann — feed reader WX (Brief) not working with FPI enabled
-
johannh
anyway, thanks for the info!
-
johannh
ok, doesn't seem trivial, I'll drop it
-
asuth
johannh: Yeah, I think there are a lot of special-cases around webextensions that complicate things in terms of what they should be able to see versus how they should be partitioned from each other/etc.
-
asuth
Also that background pages are implemented as real pages that you can't see is weird.
-
johannh
yup
-
Gijs
bdahl++