Add ability to optionally load XUL reftests in a privileged context

RESOLVED FIXED in Firefox 67

Status

enhancement
RESOLVED FIXED
a year ago
3 months ago

People

(Reporter: Paolo, Assigned: bgrins)

Tracking

(Blocks 3 bugs, {dev-doc-complete})

Version 3
mozilla67
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox67 fixed)

Details

Attachments

(3 attachments, 4 obsolete attachments)

Reporter

Description

a year ago
Running the XUL reftests in a privileged context allows us to reduce the number of environments that we have to support for XBL bindings, especially once we convert them to Custom Elements. The infrastructure we are building for loading Custom Elements is only supported in privileged contexts at the moment.

Loading the tests from "chrome:" URLs instead of "file:" URLs will make them privileged. This will also help with bug 1460732 by removing one case where we require loading remote XUL from "file:" URLs.
Comment hidden (mozreview-request)
Assignee

Comment 3

a year ago
Just to make sure I'm understanding the issue at https://bugzilla.mozilla.org/show_bug.cgi?id=1457719#c21:

Would loosening the restriction at https://searchfox.org/mozilla-central/rev/5a744713370ec47969595e369fd5125f123e6d24/toolkit/components/processsingleton/MainProcessSingleton.js#85-89 to also load the custom elements for XUL file URIs when dom.allow_XUL_XBL_for_file is true get us back into the same state we are currently in? Where the widget renders, but incorrectly, in unpriv contexts.
Flags: needinfo?(paolo.mozmail)
Reporter

Comment 4

a year ago
(In reply to Brian Grinstead [:bgrins] from comment #3)
> Would loosening the restriction at
> https://searchfox.org/mozilla-central/rev/
> 5a744713370ec47969595e369fd5125f123e6d24/toolkit/components/processsingleton/
> MainProcessSingleton.js#85-89 to also load the custom elements for XUL file
> URIs when dom.allow_XUL_XBL_for_file is true get us back into the same state
> we are currently in? Where the widget renders, but incorrectly, in unpriv
> contexts.

For Custom Elements, if we want to use anything like Services.scriptloader for lazy loading, we can only execute the "customElements.js" file in a privileged context, so this wouldn't effectively change anything. We may consider having a subset of Custom Elements that are also able to run unprivileged, which I guess could be the equivalent of loading them with a <script> tag, but I don't know if it is worth the effort if we don't use unprivileged XUL and plan to deprecate it.
Flags: needinfo?(paolo.mozmail)
Reporter

Comment 5

a year ago
With regard to the work-in-progress patches in this bug, this is one of several possible approaches to loading the files from "chrome:" URIs. This involves registering an override for each test file. The patch is incomplete because we would also need a way to specify additional dependencies for each test, for example an external CSS file.

Also, on Android the tests are loaded using HTTP. I don't know how well the "chrome" to "http" mapping would work, but if it works it's relatively simple to update the patch to support it.

The advantage of the approach above is that we don't need to change the build system or the test runner. Another approach involves adding a ".manifest" file to each of the "reftest" source directories, similarly to what in-tree extensions do. We would then register them at runtime and handle the mapping in the test suite. This works when tests are run locally, but I'm not sure about the Android case of loading over HTTP, which might make this whole approach unfeasible.

A third way involves making the way the tests are loaded more similar to other test suites like mochitest. The build system would take care of copying the files to a central location where they are then loaded from. This might involve changes to both the build system and the test runner, and again this may require listing the external dependent files.

The latter solution is definitely more laborious, and it's probably not something the XBL removal team could do, unless we find out it's simpler than it seems. Implementing it might reduce the number of special cases we have to handle in the build system for Desktop and Android. Greg, do you know to whom we can talk to help evaluate the cost of each of the solutions above, or suggest new approaches?
Flags: needinfo?(gps)
Reporter

Updated

a year ago
Blocks: 1465730
Reporter

Comment 6

a year ago
There is an assertion failure on debug builds when running the test in the content process, because IsOverlayAllowed is true for "chrome:" URLs and this requires accessing the chrome registry:

https://treeherder.mozilla.org/logviewer.html#?job_id=181085756&repo=try&lineNumber=17153

I guess this means we simply shouldn't run XUL reftests in the content process.

Anyways, if fixing this bug turns out to be required to unblock bug 1457719, I'll probably end up using the solution in the attached patches, and add a manifest directive to set an individual XUL test to run as privileged.
Reporter

Updated

a year ago
Blocks: 1375012

Comment 7

11 months ago
Those of us who hack on the test harnesses and the build system have long wanted to standardize on a common manifest format for declaring tests so the overall system is simpler.

I could probably dig up old bugs and email threads about this topic, but my recollection is essentially:

1) dbaron is the "owner" for the reftest harness and change proposals should go through him
2) dbaron and others have previously enumerated concerns with porting reftests to the ini-like manifest format
3) one such concern is around filtering; the reftest manifests rely on JS execution for filtering tests and the ini manifests aren't as expressive as JS expressions and porting the JS expressions to ini manifests programmatically would be difficult

I hope I summarized things accurately! TBH this isn't a problem I've thought about in a long time, so my recollection or understanding of the current world may be wrong!

I think you should reach out to the reftest harness maintainer (presumably dbaron) and ask for opinions.
Flags: needinfo?(gps)
The reftest overlay was removed awhile ago and IsOverlayAllowed was also removed. Maybe it's now possible to run the reftests in the content process?
Flags: needinfo?(paolo.mozmail)
Reporter

Updated

10 months ago
Flags: needinfo?(paolo.mozmail) → needinfo?(dbaron)
(In reply to Gregory Szorc [:gps] from comment #7)
> 3) one such concern is around filtering; the reftest manifests rely on JS
> execution for filtering tests and the ini manifests aren't as expressive as
> JS expressions and porting the JS expressions to ini manifests
> programmatically would be difficult

I think the concern around filtering wasn't so much expressiveness as rather the importance of conditions that are evaluated at runtime.  Many conditions around graphics acceleration, etc., are really determined on a per-machine basis rather than per-platform.  While there are many directories where we don't maintain these conditions accurately because developers don't run the tests locally, there are some reftest directories where developers do run the tests locally (because that's a much faster way to iterate) and the conditions are maintained for more than just the set of 5 or so configurations that we run in automation.

I think there's something else you wanted to ask me with this needinfo?... but it's not clear to me what it is, so could you ask it explicitly?
Flags: needinfo?(dbaron)
Reporter

Comment 10

10 months ago
Yes, my original question in comment 5 was more related to the process of making the test files available on the machines, in other words the test running infrastructure.

The goal here is to run the XUL reftests in a privileged environment, because this is now the only supported case, and the only environment where we can use our lazy-loaded Custom Element scripts instead of XBL bindings. The steps to achieve this properly are unclear to me.

The proof-of-concept patch maps "chrome:" URLs to local test files, and this seems to work on Desktop, but for Android if I remember correctly this didn't work. On the other hand, we may not need to run XUL reftests on Android at all anymore. Is this correct?

There are also other approaches I mentioned in comment 5, and I'm trying to get a very high-level understanding of the costs and benefits of different solutions. In general, would it be better to try and patch the reftest infrastructure, or to migrate the XUL reftests to something more similar to a mochitest loader? In the latter case, in the future we may be able to extend this to all reftests and get rid of the old infrastructure. However, it seems to be more work, and I'm not sure our XBL removal team can do it. What's your take?
Flags: needinfo?(dbaron)
(In reply to :Paolo Amadini from comment #10)
> Yes, my original question in comment 5 was more related to the process of
> making the test files available on the machines, in other words the test
> running infrastructure.
> 
> The goal here is to run the XUL reftests in a privileged environment,
> because this is now the only supported case, and the only environment where
> we can use our lazy-loaded Custom Element scripts instead of XBL bindings.
> The steps to achieve this properly are unclear to me.
> 
> The proof-of-concept patch maps "chrome:" URLs to local test files, and this
> seems to work on Desktop, but for Android if I remember correctly this
> didn't work. On the other hand, we may not need to run XUL reftests on
> Android at all anymore. Is this correct?

I'd be hesitant to stop running XUL reftests on Android without a reasonably formal and high-level decision that XUL is no longer supported on Android.  It's not clear to me whether that's a reasonable step at this point, and it might depend on what the relevant definition of "XUL" is.  For example, there are some relatively lower-level parts that are, I think, still used within HTML rendering in a number of places (e.g., for scrollbars, and I think still inside of some form controls).  However, these (other than scrollbars, at least... and scrollbars may be different on Android) may be separable from the higher level "set of XBL bindings" concept of XUL that maybe we don't support on Android, and maybe that's the part you need to be unsupported here.

> There are also other approaches I mentioned in comment 5, and I'm trying to
> get a very high-level understanding of the costs and benefits of different
> solutions. In general, would it be better to try and patch the reftest
> infrastructure, or to migrate the XUL reftests to something more similar to
> a mochitest loader? In the latter case, in the future we may be able to
> extend this to all reftests and get rid of the old infrastructure. However,
> it seems to be more work, and I'm not sure our XBL removal team can do it.
> What's your take?

So the reftest harness has a lot of features.  That said, we also have the ability to run reftests-in-mochitests, and we use that for a number of special cases (e.g., caret tests, CSS :visited tests) -- though the reftest-in-mochitest has much fewer capabilities.  It may be sufficient depending on how many of the capabilities we're using in the reftests that use XUL.

I think whether this latter approach is feasible depends on which interesting features of the reftest harness are used by XUL reftests.
Flags: needinfo?(dbaron)
Assignee

Updated

7 months ago
Blocks: 1455433
Assignee

Comment 12

7 months ago
Do you remember the source of Android failures over chrome://? That seems like it could be fixable, and sounds like there's not a general objection to loading over chrome at least for XUL as long as we can either accommodate Android or make a decision we aren't going to support it.
Flags: needinfo?(paolo.mozmail)
Reporter

Comment 13

7 months ago
If I remember correctly, that was because on Android the tests are loaded using HTTP. I don't know if the files are actually local or remote, relative to the device that hosts the processes. In the latter case, they might be unavailable for "chrome:" mapping.
Flags: needinfo?(paolo.mozmail)
files are remote- the host machine calls over adb to talk to android and launch the browser- the host machine also sets up web servers to serve files.  It gets more complex on Android to server test files locally- we have storage and file transfer issues.  If we are talking about an addon, those are already copied to the device in the profile creation.
Reporter

Comment 15

7 months ago
(In reply to David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-8 from comment #11)
> (In reply to :Paolo Amadini from comment #10)
> > On the other hand, we may not need to run XUL reftests on
> > Android at all anymore. Is this correct?
> 
> I'd be hesitant to stop running XUL reftests on Android without a reasonably
> formal and high-level decision that XUL is no longer supported on Android. 
> It's not clear to me whether that's a reasonable step at this point, and it
> might depend on what the relevant definition of "XUL" is.  For example,
> there are some relatively lower-level parts that are, I think, still used
> within HTML rendering in a number of places (e.g., for scrollbars, and I
> think still inside of some form controls).  However, these (other than
> scrollbars, at least... and scrollbars may be different on Android) may be
> separable from the higher level "set of XBL bindings" concept of XUL that
> maybe we don't support on Android, and maybe that's the part you need to be
> unsupported here.

Hm, so given comment 14 and the one above, there is maybe one thing we could do that doesn't involve changing how tests are loaded on Android. This would be to mark specific tests as privileged, and run them on Desktop only, from locally mapped "chrome:" URLs. We would do this for test related to chrome XBL bindings, that is a subset of XUL we already don't support on Android.
Assignee

Comment 16

7 months ago
(In reply to :Paolo Amadini from comment #15)
> (In reply to David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-8 from comment #11)
> > (In reply to :Paolo Amadini from comment #10)
> > > On the other hand, we may not need to run XUL reftests on
> > > Android at all anymore. Is this correct?
> > 
> > I'd be hesitant to stop running XUL reftests on Android without a reasonably
> > formal and high-level decision that XUL is no longer supported on Android. 
> > It's not clear to me whether that's a reasonable step at this point, and it
> > might depend on what the relevant definition of "XUL" is.  For example,
> > there are some relatively lower-level parts that are, I think, still used
> > within HTML rendering in a number of places (e.g., for scrollbars, and I
> > think still inside of some form controls).  However, these (other than
> > scrollbars, at least... and scrollbars may be different on Android) may be
> > separable from the higher level "set of XBL bindings" concept of XUL that
> > maybe we don't support on Android, and maybe that's the part you need to be
> > unsupported here.
> 
> Hm, so given comment 14 and the one above, there is maybe one thing we could
> do that doesn't involve changing how tests are loaded on Android. This would
> be to mark specific tests as privileged, and run them on Desktop only, from
> locally mapped "chrome:" URLs. We would do this for test related to chrome
> XBL bindings, that is a subset of XUL we already don't support on Android.

Yeah, there's no reason to run reftests for stuff like <xul:checkbox> in Android. AFAIK the only XUL widget that will be loaded customElements.js that gets rendered in Android is the <browser> element (I'm not sure if there are reftests for that but we will see in Bug 1441935 if so).

There are cases as dbaron points out in Comment 11 for stuff like form controls, but those are all wired through either just NAC or UA Widgets which will work over http. I guess the trick will be making a list of tests that we don't care to run on Android, but given that we don't ever render this stuff in the real world it's probably worth doing anyway to save resources. Nick, does this sound reasonable?
Flags: needinfo?(nalexander)
(In reply to Brian Grinstead [:bgrins] from comment #16)
> (In reply to :Paolo Amadini from comment #15)
> > (In reply to David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-8 from comment #11)
> > > (In reply to :Paolo Amadini from comment #10)
> > > > On the other hand, we may not need to run XUL reftests on
> > > > Android at all anymore. Is this correct?
> > > 
> > > I'd be hesitant to stop running XUL reftests on Android without a reasonably
> > > formal and high-level decision that XUL is no longer supported on Android. 
> > > It's not clear to me whether that's a reasonable step at this point, and it
> > > might depend on what the relevant definition of "XUL" is.  For example,
> > > there are some relatively lower-level parts that are, I think, still used
> > > within HTML rendering in a number of places (e.g., for scrollbars, and I
> > > think still inside of some form controls).  However, these (other than
> > > scrollbars, at least... and scrollbars may be different on Android) may be
> > > separable from the higher level "set of XBL bindings" concept of XUL that
> > > maybe we don't support on Android, and maybe that's the part you need to be
> > > unsupported here.
> > 
> > Hm, so given comment 14 and the one above, there is maybe one thing we could
> > do that doesn't involve changing how tests are loaded on Android. This would
> > be to mark specific tests as privileged, and run them on Desktop only, from
> > locally mapped "chrome:" URLs. We would do this for test related to chrome
> > XBL bindings, that is a subset of XUL we already don't support on Android.
> 
> Yeah, there's no reason to run reftests for stuff like <xul:checkbox> in
> Android. AFAIK the only XUL widget that will be loaded customElements.js
> that gets rendered in Android is the <browser> element (I'm not sure if
> there are reftests for that but we will see in Bug 1441935 if so).
> 
> There are cases as dbaron points out in Comment 11 for stuff like form
> controls, but those are all wired through either just NAC or UA Widgets
> which will work over http. I guess the trick will be making a list of tests
> that we don't care to run on Android, but given that we don't ever render
> this stuff in the real world it's probably worth doing anyway to save
> resources. Nick, does this sound reasonable?

For not testing XUL bits on Android: yes, this seems reasonable.  I'll flag snorp to confirm, since he's one of the last folks standing who probably knows what XUL bits are relevant to GeckoView (and Fennec).

For distinguishing tests that we don't care to run on Android: this could be a good deal of effort.  I'll flag gbrown to talk about alternate approaches to the chrome:// issue.

On a related note, I once did something that sounds exactly like what you are trying to do for improving the edit-deploy-test cycle in Fennec: https://github.com/ncalexan/fennec-bootstrapper.  From the README:

"In addition, the add-on provides a custom bootstrapper:// protocol which allows to load remote resources as chrome resources. This means you can register a chrome override pointing to a resource that will be dynamically fetched. This is not usually possible since it opens a major security hole: remember that chrome resources are privileged."

That's exactly what you want, right: to load a resource over HTTP and pretend it's chrome://.  Maybe you could bake that into a test harness add-on and punt on the real solution?
Flags: needinfo?(snorp)
Flags: needinfo?(nalexander)
Flags: needinfo?(gbrown)
(In reply to Nick Alexander :nalexander [he/him] from comment #17)
> (In reply to Brian Grinstead [:bgrins] from comment #16)
> > (In reply to :Paolo Amadini from comment #15)
> > > (In reply to David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-8 from comment #11)
> > > > (In reply to :Paolo Amadini from comment #10)
> > > > > On the other hand, we may not need to run XUL reftests on
> > > > > Android at all anymore. Is this correct?
> > > > 
> > > > I'd be hesitant to stop running XUL reftests on Android without a reasonably
> > > > formal and high-level decision that XUL is no longer supported on Android. 
> > > > It's not clear to me whether that's a reasonable step at this point, and it
> > > > might depend on what the relevant definition of "XUL" is.  For example,
> > > > there are some relatively lower-level parts that are, I think, still used
> > > > within HTML rendering in a number of places (e.g., for scrollbars, and I
> > > > think still inside of some form controls).  However, these (other than
> > > > scrollbars, at least... and scrollbars may be different on Android) may be
> > > > separable from the higher level "set of XBL bindings" concept of XUL that
> > > > maybe we don't support on Android, and maybe that's the part you need to be
> > > > unsupported here.
> > > 
> > > Hm, so given comment 14 and the one above, there is maybe one thing we could
> > > do that doesn't involve changing how tests are loaded on Android. This would
> > > be to mark specific tests as privileged, and run them on Desktop only, from
> > > locally mapped "chrome:" URLs. We would do this for test related to chrome
> > > XBL bindings, that is a subset of XUL we already don't support on Android.
> > 
> > Yeah, there's no reason to run reftests for stuff like <xul:checkbox> in
> > Android. AFAIK the only XUL widget that will be loaded customElements.js
> > that gets rendered in Android is the <browser> element (I'm not sure if
> > there are reftests for that but we will see in Bug 1441935 if so).
> > 
> > There are cases as dbaron points out in Comment 11 for stuff like form
> > controls, but those are all wired through either just NAC or UA Widgets
> > which will work over http. I guess the trick will be making a list of tests
> > that we don't care to run on Android, but given that we don't ever render
> > this stuff in the real world it's probably worth doing anyway to save
> > resources. Nick, does this sound reasonable?
> 
> For not testing XUL bits on Android: yes, this seems reasonable.  I'll flag
> snorp to confirm, since he's one of the last folks standing who probably
> knows what XUL bits are relevant to GeckoView (and Fennec).

Right, we really only use <browser>. Popups, prompts, etc, don't use XUL.
Flags: needinfo?(snorp)
(In reply to Nick Alexander :nalexander [he/him] from comment #17)
> For distinguishing tests that we don't care to run on Android: this could be
> a good deal of effort.  I'll flag gbrown to talk about alternate approaches
> to the chrome:// issue.

Thanks, but I can't think of anything to add to the discussion - sorry!
Flags: needinfo?(gbrown)
Assignee

Comment 20

7 months ago
(In reply to Nick Alexander :nalexander [he/him] from comment #17)
> On a related note, I once did something that sounds exactly like what you
> are trying to do for improving the edit-deploy-test cycle in Fennec:
> https://github.com/ncalexan/fennec-bootstrapper.  From the README:
> 
> "In addition, the add-on provides a custom bootstrapper:// protocol which
> allows to load remote resources as chrome resources. This means you can
> register a chrome override pointing to a resource that will be dynamically
> fetched. This is not usually possible since it opens a major security hole:
> remember that chrome resources are privileged."
> 
> That's exactly what you want, right: to load a resource over HTTP and
> pretend it's chrome://.  Maybe you could bake that into a test harness
> add-on and punt on the real solution?

I think that's exactly what we want. Paolo, what do you think?
Flags: needinfo?(paolo.mozmail)
Reporter

Comment 21

7 months ago
Yes, I also thought about a custom protocol handler, if we're not using the "chrome" scheme itself but just the protocol flags to determine what is available in relation to Custom Elements. This way, we could use this protocol for all the ".xul" reftests. I thought it would have been more work than adding the chrome annotation to the manifest, but if we have that prototyped already, it could work for our use case. Thanks, Nick!

One thing to be aware of though is that this may surface existing, potential intermittent failures due to the different pipeline of the load.
Flags: needinfo?(paolo.mozmail)
(In reply to :Paolo Amadini from comment #21)
> Yes, I also thought about a custom protocol handler, if we're not using the
> "chrome" scheme itself but just the protocol flags to determine what is
> available in relation to Custom Elements. This way, we could use this
> protocol for all the ".xul" reftests. I thought it would have been more work
> than adding the chrome annotation to the manifest, but if we have that
> prototyped already, it could work for our use case. Thanks, Nick!

"Prototyped" is a little strong: I built a bootstrapped addon that did this years ago, but it may have rotted or may have never been correct :)  See https://github.com/ncalexan/fennec-bootstrapper/blob/1824fc47db5783e55a95b15511d0775df7460bf6/extension/bootstrap.js#L28-L74.  The real magic of the addon is getting than in place really early in the startup process, IIRC.
Assignee

Comment 23

7 months ago
I think probably the most correct thing to do here is finding reftests that are specifically testing XUL widgets that aren't relevant to android and flagging them as such, which would:

1) Skip them on Android
2) Turn on "chrome" mode

That way we could save resources and intermittents and also avoid automatically enabling chrome for _all_ reftests (even HTML stuff that really should be tested with content priv, I guess).

It may be a pain to do that, but we can find them as we go with binding conversions. The checkbox bug found the test in this folder: https://searchfox.org/mozilla-central/source/toolkit/themes/osx/reftests, and I suspect that entire folder should be flagged. Of course in this particular case they would already be skipped on Android but we will want to have (2) happen.
Assignee

Comment 24

7 months ago
(In reply to :Paolo Amadini from comment #6)
> There is an assertion failure on debug builds when running the test in the
> content process, because ...

We will want these chrome reftests to run in the parent process (so that MainProcessSingleton picks them up and loads CEs). I think this can be done by setting g.browserIsRemote to false: https://searchfox.org/mozilla-central/rev/4e094f66ced333d69b24cd49273789e3a1173dfc/layout/tools/reftest/reftest.jsm#185, although I don't know if we know which URL is going to be loaded at that point.
Assignee

Comment 25

7 months ago
If we want to avoid running all reftests in chrome (Comment 23) then I think we'll either need two different browser nodes (instead of the single g.browser) and choose which one to load the file in based on the URI, or deal with process flips on the g.browser node (to handle cases where we are loading some of the reftests in parent and some in content).
Assignee

Comment 26

7 months ago
MozReview-Commit-ID: IgLcidpoDfq
Assignee

Comment 27

7 months ago
MozReview-Commit-ID: 92yRtpn7k2g
Assignee

Comment 28

7 months ago
Pushed up Paolo's MozReview patches to phab, and added the change to make them always load in parent process temporarily. I've confirmed that with these applied, the checkbox CE reftest from Bug 1455433 is passing.
Assignee

Updated

7 months ago
Summary: Load XUL reftests in a privileged context → Add ability to optionally load XUL reftests in a privileged context
Assignee

Updated

6 months ago
Blocks: 1448213

I am worried that if we don't address this first, many of the tests will be in a false positive state as we migrate more bindings to custom elements.

In bug 1518932, I am forced to manually generate "anonymous nodes" in toolkit/themes/osx/reftests/nostretch.xul and its reference in order to make the test pass.

Assignee

Comment 30

4 months ago

(In reply to Tim Guan-tin Chien [:timdream] (please needinfo) from comment #29)

I am worried that if we don't address this first, many of the tests will be in a false positive state as we migrate more bindings to custom elements.

In bug 1518932, I am forced to manually generate "anonymous nodes" in toolkit/themes/osx/reftests/nostretch.xul and its reference in order to make the test pass.

Yeah, this is going to block a lot of the remaining bindings and we should take it ASAP. There's a bit of discussion going on in the phab review about how to make this happen. Should we make this block bug 1518932 so you don't need to manually generate the nodes?

Flags: needinfo?(timdream)

(In reply to Brian Grinstead [:bgrins] from comment #30)

Yeah, this is going to block a lot of the remaining bindings and we should take it ASAP. There's a bit of discussion going on in the phab review about how to make this happen. Should we make this block bug 1518932 so you don't need to manually generate the nodes?

It's really depends on the timeline of this bug. I am hoping to land bug 1518932 this month so I am going for the //XXX generate "anonymous" nodes manually route for now.

Flags: needinfo?(timdream)
Assignee

Updated

4 months ago
Attachment #8981896 - Attachment is obsolete: true
Assignee

Updated

4 months ago
Attachment #8981897 - Attachment is obsolete: true
Attachment #9024227 - Attachment description: Bug 1465457 - Part 2 - Load XUL reftests in a privileged context. → Bug 1465457 - Part 1 - Add a new reftest-chrome suite for reftests
Attachment #9024226 - Attachment description: Bug 1465457 - Part 1 - Add a function to register chrome URL overrides in test harnesses. → Bug 1465457 - Part 2 - Load documents over chrome URIs in reftest-chrome
Assignee

Updated

4 months ago
Blocks: 1523712
Assignee

Updated

4 months ago
Blocks: 1500626
Assignee

Updated

3 months ago
Assignee: nobody → bgrinstead
Status: NEW → RESOLVED
Last Resolved: 3 months ago
Resolution: --- → FIXED
Assignee

Updated

3 months ago
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee

Updated

3 months ago
Status: REOPENED → ASSIGNED
Attachment #9024227 - Attachment is obsolete: true
Attachment #9024226 - Attachment is obsolete: true
Assignee

Comment 34

3 months ago

We are running certain xul reftests in the content process registered in chrome://reftest,
and it's OK for them to call this function (which is triggered at end of XUL doc loading).

Assignee

Updated

3 months ago
Blocks: 1508446
Assignee

Updated

3 months ago
No longer blocks: 1508446

Comment 35

3 months ago
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ec6c7dcf2f31
Add support for chrome reftests r=dbaron
https://hg.mozilla.org/integration/autoland/rev/ed020882a318
Load osx theme reftests over chrome r=dbaron
https://hg.mozilla.org/integration/autoland/rev/d7779ef1fa2f
Remove assertion in nsChromeRegistryContent::IsLocaleRTL requiring "global" package r=NeilDeakin

Comment 36

3 months ago
bugherder
Status: ASSIGNED → RESOLVED
Last Resolved: 3 months ago3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.