Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[meta] DevTools HTML experiment fails to load in Servo #8973

Open
jryans opened this issue Dec 14, 2015 · 8 comments
Open

[meta] DevTools HTML experiment fails to load in Servo #8973

jryans opened this issue Dec 14, 2015 · 8 comments

Comments

@jryans
Copy link
Contributor

@jryans jryans commented Dec 14, 2015

The DevTools team has been working on an experimental HTML version of the Firefox DevTools UI in the joewalker/devtools.html repo. This is not something we plan to use anywhere directly, it's just an experiment to learn from for future deXULification. In any event, we thought it would be good to see how far Servo is from being able to load it. @bgrins has been working in the servo-client branch to tweak things as necessary to get something loading in Servo.

If you wish to try the experiment locally, I would suggest using Firefox as the DevTools server, and only testing the client UI in Servo to focus on this issue only. The repo's README.md explains how to get started and start a server in Firefox. So, the only modification from the README instructions would be to open the actual UI at http://localhost:8081/client/framework/toolbox-wrapper.html in Servo instead.

We'll use this issue to track the various individual issues as we find them:

P1

  • contentWindow null in frames #8978
  • Range.getBoundingClientRect is not defined inside CodeMirror frames #8982

P2

  • window.focus is undefined #8981

@bgrins @jdm @Ms2ger @larsbergstrom

@jdm
Copy link
Member

@jdm jdm commented Dec 15, 2015

This particular iframe problem is fixed by #8978, allowing us to progress to the next set of errors :)

bors-servo added a commit that referenced this issue Dec 15, 2015
Ensure that grandchild same-origin iframes are added to the children …

…of the child iframe of the root. Resolves #8973.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8978)
<!-- Reviewable:end -->
@bgrins
Copy link
Contributor

@bgrins bgrins commented Dec 15, 2015

Cool! The next set of errors I'm seeing:

  • this._markupFrame.contentWindow.focus is not a function
  • getBoundingClientRect not defined inside of codemirror
  • 'let' is used in codemirror/addon/search/search.js (I've just pushed a fix for that in the servo-client branch)
@bgrins
Copy link
Contributor

@bgrins bgrins commented Dec 15, 2015

Should we expect contentWindow.focus() to work on an iframe? I can comment that bit out if it's not yet implemented

@jdm
Copy link
Member

@jdm jdm commented Dec 15, 2015

We don't implement Window.focus() yet.

@jdm jdm reopened this Dec 15, 2015
@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Dec 15, 2015

@bgrins @jryans I recommend you to file one issue per bug. You can probably use this bug as a meta bug. See how we do for browser.html: browserhtml/browserhtml#562

@jryans jryans changed the title DevTools HTML experiment fails to load in Servo [meta] DevTools HTML experiment fails to load in Servo Dec 15, 2015
@jryans
Copy link
Contributor Author

@jryans jryans commented Dec 15, 2015

Okay, I've created a task list in this issue to use for tracking. Each new problem should be filed separately as it comes up, and we can use the task list to track overall progress.

@highfive
Copy link

@highfive highfive commented May 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.