Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

[Breakpoints] Fix timing issue with showing breakpoints #7365

Merged
merged 3 commits into from Jan 8, 2019

Conversation

jasonLaster
Copy link
Contributor

Fixes #7289

Summary of Changes

breakpoints and other components wont try rendering unless there's a doc

@darkwing
Copy link
Contributor

@jasonLaster
Copy link
Contributor Author

yeah - i buy that

@@ -576,7 +576,7 @@ class Editor extends PureComponent<Props, State> {
const { horizontal, selectedSource, conditionalPanelLocation } = this.props;
const { editor } = this.state;

if (!editor || !selectedSource) {
if (!selectedSource || !editor || !getDocument(selectedSource.id)) {
Copy link
Contributor

@darkwing darkwing Jan 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two tests fail, each test containing the following line:

await waitForElementWithSelector(dbg, ".CodeMirror-code > .highlight-line");

The addition of || !getDocument(selectedSource.id) is causing the failure; if it is removed, the tests pass.

@jasonLaster jasonLaster merged commit b03cbf5 into firefox-devtools:master Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants