Skip to content

Implement window indexed getter - #20615

Merged
bors-servo merged 5 commits into
servo:masterfrom
KiChjang:window-indexed-getter
May 18, 2018
Merged

bors-servo merged 5 commits into
servo:masterfrom
KiChjang:window-indexed-getter

Conversation

@KiChjang

@KiChjang KiChjang commented Apr 10, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #4589.


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/windowproxy.rs, components/constellation/constellation.rs, components/script/dom/dissimilaroriginwindow.rs, components/script/script_thread.rs, components/script/dom/window.rs
  • @cbrewster: components/constellation/constellation.rs
  • @paulrouget: components/constellation/constellation.rs
  • @fitzgen: components/script/dom/windowproxy.rs, components/script_traits/script_msg.rs, components/script/dom/dissimilaroriginwindow.rs, components/script/script_thread.rs, components/script/dom/window.rs
  • @KiChjang: components/script/dom/windowproxy.rs, components/script_traits/script_msg.rs, components/script/dom/dissimilaroriginwindow.rs, components/script/script_thread.rs, components/script/dom/window.rs

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 10, 2018
@KiChjang

Copy link
Copy Markdown
Contributor Author

r? @asajeffrey

@highfive highfive assigned asajeffrey and unassigned pcwalton Apr 10, 2018
Comment thread components/script/dom/windowproxy.rs Outdated
index as usize,
result_sender
));
return result_receiver.recv().ok().and_then(|maybe_proxy| maybe_proxy).map(|proxy| proxy.root());

@cbrewster cbrewster Apr 13, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this will cause a deadlock since this will block the script thread on itself. We should probably call a method on the ScriptThread instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ohh, so that's why. I knew I overlooked something...

@KiChjang
KiChjang force-pushed the window-indexed-getter branch from 495ff56 to f859696 Compare April 13, 2018 13:13
@KiChjang

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit f859696 with merge aa3c81a...

bors-servo pushed a commit that referenced this pull request Apr 13, 2018
[WIP] Implement window indexed getter

Fixes #4589.

This does not work properly right now, local testing reveals that servo hangs even in the simplest form of `window[0]`. I suspect the receivers are being blocked on receiving data, but I cannot find anything obvious yet as to why it is not receiving anything.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20615)
<!-- Reviewable:end -->
@KiChjang
KiChjang force-pushed the window-indexed-getter branch from f859696 to 4288da6 Compare April 13, 2018 13:15
@KiChjang

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 4288da6 with merge 747a9ec...

bors-servo pushed a commit that referenced this pull request Apr 13, 2018
[WIP] Implement window indexed getter

Fixes #4589.

This does not work properly right now, local testing reveals that servo hangs even in the simplest form of `window[0]`. I suspect the receivers are being blocked on receiving data, but I cannot find anything obvious yet as to why it is not receiving anything.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20615)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-wpt

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Apr 13, 2018
@KiChjang
KiChjang force-pushed the window-indexed-getter branch from 4288da6 to 9803388 Compare April 13, 2018 22:07
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Apr 13, 2018
@KiChjang

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 9803388 with merge 3de4926...

bors-servo pushed a commit that referenced this pull request Apr 13, 2018
[WIP] Implement window indexed getter

Fixes #4589.

This does not work properly right now, local testing reveals that servo hangs even in the simplest form of `window[0]`. I suspect the receivers are being blocked on receiving data, but I cannot find anything obvious yet as to why it is not receiving anything.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20615)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-wpt

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Apr 13, 2018
@KiChjang
KiChjang force-pushed the window-indexed-getter branch from 9803388 to 3f22981 Compare April 24, 2018 23:36
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Apr 24, 2018
@KiChjang

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 3f22981 with merge 5a44af9...

bors-servo pushed a commit that referenced this pull request Apr 24, 2018
[WIP] Implement window indexed getter

Fixes #4589.

This does not work properly right now, local testing reveals that servo hangs even in the simplest form of `window[0]`. I suspect the receivers are being blocked on receiving data, but I cannot find anything obvious yet as to why it is not receiving anything.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20615)
<!-- Reviewable:end -->
@KiChjang

KiChjang commented May 8, 2018

Copy link
Copy Markdown
Contributor Author

@bors-servo retry

  • Still unknown segfault from unit test, RNGsus please give me something other than servo-mac2

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, arm32, arm64, linux-dev, mac-rel-css2, mac-rel-wpt2, windows-msvc-dev are reusable. Rebuilding only linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-wpt1, mac-rel-wpt3, mac-rel-wpt4...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css1

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label May 8, 2018
@KiChjang

KiChjang commented May 9, 2018

Copy link
Copy Markdown
Contributor Author

@bors-servo retry

  • intermittent tracker sever was down

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, arm32, arm64, linux-dev, mac-rel-css2, mac-rel-wpt2, windows-msvc-dev are reusable. Rebuilding only linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-wpt1, mac-rel-wpt3, mac-rel-wpt4...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-dev-unit

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label May 9, 2018
@KiChjang

Copy link
Copy Markdown
Contributor Author

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit df23f90 with merge bc1613d...

bors-servo pushed a commit that referenced this pull request May 17, 2018
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels May 17, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt1

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 17, 2018
@jdm

jdm commented May 17, 2018

Copy link
Copy Markdown
Member
error: unknown start of token: \u{820}
     --> /Users/servo/buildbot/slave/mac-rel-wpt1/build/target/release/build/style-14fd8c618059444a/out/properties.rs:69317:4
      |
69317 |    ࠠ/// Inherit `text_decoration_line` from our parent style.
      |    ^

error: aborting due to previous error

@KiChjang

Copy link
Copy Markdown
Contributor Author

That's a fun error, I didn't even touch properties.mako.rs in my PR at all!

@jdm

jdm commented May 17, 2018

Copy link
Copy Markdown
Member

Indeed.
@bors-servo retry
???

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit df23f90 with merge 3d109b4...

bors-servo pushed a commit that referenced this pull request May 17, 2018
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels May 17, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: emilio
Pushing 3d109b4 to master...

@bors-servo
bors-servo merged commit df23f90 into servo:master May 18, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants