The Touch Bar API will make use of the HTML tags for menu and menuitem. Currently WebKit does not support menuitem, so this changes adds support for that tag.
Attachment 325362[details] did not pass style-queue:
ERROR: Source/WebCore/JSHTMLMenuitemElement.h:0: No copyright message found. You should have a line: "Copyright [year] <Copyright Owner>" [legal/copyright] [5]
Total errors found: 1 in 11 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 325362[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=325362&action=review> Source/WebCore/ChangeLog:7
> +
I think it should be possible to write a simple test for this. I'll look for one to mimic.
> Source/WebCore/JSHTMLMenuitemElement.h:1
> +/*
This doesn't seem right. The generated file shouldn't be in the WebKit source tree, it should get generated into the build directory (and not show up in your patch). You may need help getting Xcode to do the right thing, it's not exactly straightforward.
(In reply to Tim Horton from comment #3)
> Comment on attachment 325362[details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=325362&action=review
>
> > Source/WebCore/ChangeLog:7
> > +
>
> I think it should be possible to write a simple test for this. I'll look for
> one to mimic.
Maybe something in LayoutTests/fast/html? There are a bunch that end in -element that seem like sensible starting points.
(In reply to Tim Horton from comment #4)
> (In reply to Tim Horton from comment #3)
> > Comment on attachment 325362[details]
> > Patch
> >
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=325362&action=review
> >
> > > Source/WebCore/ChangeLog:7
> > > +
> >
> > I think it should be possible to write a simple test for this. I'll look for
> > one to mimic.
>
> Maybe something in LayoutTests/fast/html? There are a bunch that end in
> -element that seem like sensible starting points.
Sounds good! I think I fixed the issue with the JSHTML file, so I'll look into creating some tests.
Created attachment 325368[details]
Archive of layout-test-results from ews103 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 325370[details]
Archive of layout-test-results from ews105 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 325371[details]
Archive of layout-test-results from ews116 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 325373[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
(In reply to Ryosuke Niwa from comment #15)
> Comment on attachment 325364[details]
> Patch
>
> r- since the patch is failing to build.
It's not, the test is failing.
Aishwarya, you'll want to find out why imported/w3c/web-platform-tests/html/semantics/interactive-elements/contextmenu-historical asserts that HTMLMenuItemElement *doesn't* exist :P
(In reply to Tim Horton from comment #16)
> (In reply to Ryosuke Niwa from comment #15)
> > Comment on attachment 325364[details]
> > Patch
> >
> > r- since the patch is failing to build.
>
> It's not, the test is failing.
>
> Aishwarya, you'll want to find out why
> imported/w3c/web-platform-tests/html/semantics/interactive-elements/
> contextmenu-historical asserts that HTMLMenuItemElement *doesn't* exist :P
GTK+, Windows, and WPE seem to be failing to build? Have you confirmed that they build locally somehow?
It builds locally for me.
Looking at that file, imported/w3c/web-platform-tests/html/semantics/interactive-elements/contextmenu-historical, it seems that there are some tests ensuring that HTMLMenuItemElement does not exist. We probably don't want to check for this anymore, so I can work on editing the test.
(In reply to Aishwarya Nirmal from comment #18)
> It builds locally for me.
rniwa is right, something is up with the CMake build. I think it doesn't use DerivedSources.make, so maybe look for other files that mention an adjacent derived source to find out what mechanism it does use.
Created attachment 325398[details]
Archive of layout-test-results from ews100 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 325401[details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Created attachment 325404[details]
Archive of layout-test-results from ews115 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 325406[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
The test is failing because it's expecting HTMLMenuItemElement to be not defined in the global scope. You have run "run-webkit-tests LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/contextmenu-historical.html --reset" to reset the expected results.
This is because the feature had been removed from the HTML specification in https://github.com/whatwg/html/pull/2742.
Comment on attachment 325391[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=325391&action=review> Source/WebCore/ChangeLog:6
> + Reviewed by NOBODY (OOPS!).
You need to describe what kind of API you're implementing and what code changes you're making for it.
r- due to the lack of change log descriptions and the test failures.
> Source/WebCore/ChangeLog:8
> + * CMakeLists.txt:
Given the feature has been removed from the HTML specification, we should put this under a runtime flag.
Created attachment 325501[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
The test that is failing seems to be unrelated to my changes. When I run run-webkit-tests LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/sandbox_032.htm --debug locally, the test passes.
Comment on attachment 325635[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=325635&action=review> LayoutTests/fast/html/menuitem-element.html:1
> +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
Please use <!DOCTYPE html>
> LayoutTests/fast/html/menuitem-element.html:12
> +
You either need to skip this test in TestExpectations or enable the feature using settings, etc...
Created attachment 325776[details]
Archive of layout-test-results from ews103 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 325778[details]
Archive of layout-test-results from ews112 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 325795[details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Menuitem is noncorforming because Mozilla is the only implementor, but it does not seem to be entirely obsolete. The w3 folks seem to be willing to reconsider the removal of the menuitem if multiple browsers were to support it https://github.com/whatwg/html/issues/2929.
We are aiming to use menuitem to represent the touch bar menu items for the touch bar web API. The API is experimental, so we are planning to use any information gathered to better inform a web standard for menuitem.
(In reply to Aishwarya Nirmal from comment #49)
> Menuitem is noncorforming because Mozilla is the only implementor, but it
> does not seem to be entirely obsolete. The w3 folks seem to be willing to
> reconsider the removal of the menuitem if multiple browsers were to support
> it https://github.com/whatwg/html/issues/2929.
OK, makes sense.
Comment on attachment 325779[details]
Patch
r=me since this patch can't possibly cause the service worker test failure.
Sorry for the delay. In the future, please also set cq? flag so that the committer can set cq+ flag to land the patch via commit queue.
2017-10-30 11:27 PDT, Aishwarya Nirmal
2017-10-30 11:44 PDT, Aishwarya Nirmal
2017-10-30 12:46 PDT, Build Bot
2017-10-30 12:51 PDT, Build Bot
2017-10-30 13:04 PDT, Build Bot
2017-10-30 13:14 PDT, Build Bot
2017-10-30 17:15 PDT, Aishwarya Nirmal
2017-10-30 18:08 PDT, Build Bot
2017-10-30 18:23 PDT, Build Bot
2017-10-30 18:36 PDT, Build Bot
2017-10-30 18:44 PDT, Build Bot
2017-10-31 13:38 PDT, Aishwarya Nirmal
2017-10-31 14:44 PDT, Build Bot
2017-11-01 14:29 PDT, Aishwarya Nirmal
2017-11-01 14:40 PDT, Aishwarya Nirmal
2017-11-02 14:10 PDT, Aishwarya Nirmal
2017-11-02 15:13 PDT, Build Bot
2017-11-02 15:29 PDT, Build Bot
2017-11-02 15:31 PDT, Aishwarya Nirmal
2017-11-02 16:37 PDT, Build Bot