Skip to content

Update rust-mozjs - #12954

Merged
bors-servo merged 1 commit into
servo:masterfrom
GuillaumeGomez:dictionary_error
Aug 24, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
GuillaumeGomez:dictionary_error

Conversation

@GuillaumeGomez

@GuillaumeGomez GuillaumeGomez commented Aug 20, 2016 •

Copy link
Copy Markdown
Contributor

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/bindings/codegen/CodegenRust.py, components/script/webdriver_handlers.rs, components/script/dom/bindings/error.rs, components/script/dom/bindings/conversions.rs, components/script/dom/htmlcanvaselement.rs, components/script/script_thread.rs, components/script/devtools.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 Aug 20, 2016
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

r? @nox

@highfive highfive assigned nox and unassigned jdm Aug 20, 2016
@nox

nox commented Aug 20, 2016

Copy link
Copy Markdown
Contributor

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit c0a2e36 with merge 53c0862...

bors-servo pushed a commit that referenced this pull request Aug 20, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 20, 2016
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

@nox: I fixed tidy issues.

@emilio

emilio commented Aug 21, 2016

Copy link
Copy Markdown
Member

@bors-servo: try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit fff48e3 with merge 43151f7...

bors-servo pushed a commit that referenced this pull request Aug 21, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - windows-dev

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 21, 2016
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

Retry please (windows tests didn't start apparently?)?

@nox

nox commented Aug 21, 2016

Copy link
Copy Markdown
Contributor

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit fff48e3 with merge 24ef817...

bors-servo pushed a commit that referenced this pull request Aug 21, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 21, 2016
@highfive

Copy link
Copy Markdown
  ▶ TIMEOUT [expected OK] /geometry-1_dev/html/DOMQuad-001.htm

  ▶ Unexpected subtest result in /geometry-1_dev/html/DOMQuad-001.htm:
  │ TIMEOUT [expected PASS] testConstructor1
  └   → Test timed out

@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

Is this intermittent?

@emilio

emilio commented Aug 22, 2016

Copy link
Copy Markdown
Member

Nope, and I think those are suspicious enough to deserve a bit of investigation. They're most likely caused by this changeset.

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Aug 22, 2016
@emilio

emilio commented Aug 22, 2016

Copy link
Copy Markdown
Member

@bors-servo: try

@nox nox removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 23, 2016
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

A generated file: https://gist.github.com/GuillaumeGomez/227ee9b8b3a4d7f23b1193be7fe1a2c4

However I don't understand what you want:

and please add some unions with dictionaries to TestBinding so these paths are tested.

@nox

nox commented Aug 23, 2016

Copy link
Copy Markdown
Contributor

Which part do you not understand?

This patch makes Servo cope with unions including a dictionary type, so I want TestBinding (see TestBinding.webidl) to include some stuff with such unions.

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 23, 2016
@jdm jdm mentioned this pull request Aug 23, 2016
4 tasks done
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

I added @Ms2ger's suggestion.

@jdm jdm mentioned this pull request Aug 23, 2016
4 tasks done
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

Appveyor error is: "error: failed to build archive: bad archive: permission denied". Intermittent failure?

@nox nox changed the title Dictionary error Update rust-mozjs Aug 24, 2016
@nox

nox commented Aug 24, 2016

Copy link
Copy Markdown
Contributor

-S-awaiting-review +S-needs-code-changes


Reviewed 9 of 9 files at r1.
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


components/script/dom/htmlcanvaselement.rs, line 163 [r1] (raw file):

            let attrs = if let Some(webgl_attributes) = attrs {
                if let Ok(ConversionResult::Success(ref attrs)) = unsafe {

You didn't throw in the case of ConversionResult::Failure here.


components/script/dom/bindings/conversions.rs, line 87 [r1] (raw file):

                         -> Result<ConversionResult<Finite<T>>, ()> {
        let result = match FromJSValConvertible::from_jsval(cx, value, option) {
            Ok(ConversionResult::Success(v)) => v,

Missing throw on failure here.


components/script/dom/bindings/codegen/CodegenRust.py, line 5307 [r1] (raw file):

            initParent = ("parent: match try!(%s::%s::new(cx, val)) {\n"
                          "            ConversionResult::Success(v) => v,\n"
                          "            _ => return Err(()),\n"

Missing throw here.


Comments from Reviewable

@nox nox added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 24, 2016
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

components/script/dom/htmlcanvaselement.rs, line 163 [r1] (raw file):

Previously, nox (Anthony Ramine) wrote…

You didn't throw in the case of ConversionResult::Failure here.

Because in case of errors, it returns None instead of an error so I tried to keep the same logic.

Comments from Reviewable

@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


components/script/dom/bindings/conversions.rs, line 87 [r1] (raw file):

Previously, nox (Anthony Ramine) wrote…

Missing throw on failure here.

Same as above.

components/script/dom/bindings/codegen/CodegenRust.py, line 5307 [r1] (raw file):

Previously, nox (Anthony Ramine) wrote…

Missing throw here.

Same as above.

Comments from Reviewable

@nox

nox commented Aug 24, 2016

Copy link
Copy Markdown
Contributor

Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed.


components/script/dom/htmlcanvaselement.rs, line 163 [r1] (raw file):

Previously, GuillaumeGomez (Guillaume Gomez) wrote…

Because in case of errors, it returns None instead of an error so I tried to keep the same logic.

When the trait returns `Err(())`, it threw something. So you need to throw on `ConversionResult::Failure` too otherwise it makes no sense.

components/script/dom/bindings/conversions.rs, line 87 [r1] (raw file):

Previously, GuillaumeGomez (Guillaume Gomez) wrote…

Same as above.

Same.

components/script/dom/bindings/codegen/CodegenRust.py, line 5307 [r1] (raw file):

Previously, GuillaumeGomez (Guillaume Gomez) wrote…

Same as above.

Same.

Comments from Reviewable

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Aug 24, 2016
@GuillaumeGomez

Copy link
Copy Markdown
Contributor Author

Updated.

@nox

nox commented Aug 24, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r+


Reviewed 3 of 3 files at r2.
Review status: all files reviewed at latest revision, 3 unresolved discussions.


Comments from Reviewable

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 2f3f4a5 has been approved by nox

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 24, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 2f3f4a5 with merge 3c4a08c...

bors-servo pushed a commit that referenced this pull request Aug 24, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@bors-servo
bors-servo merged commit 2f3f4a5 into servo:master Aug 24, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 24, 2016
@GuillaumeGomez
GuillaumeGomez deleted the dictionary_error branch August 24, 2016 12:18
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.

6 participants