-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Expose navigator.appCodeName and navigator.product in Worker #1870
Conversation
Tests: web-platform-tests/wpt#3881 Attempting to write tests for the current spec revealed that product was already exposed in all engines, and appCodeName in all but Edge. This leaves productSub, vendor and vendorSub restricted, where there is a 2/2 split between engines. Follow up to #216.
@cdumez. It looks like Safari began exposing productSub, vendor and vendorSub in Safari 10. Because this was until recently a 3/1 split, I've left those alone. |
@foolip: Yes, I believe I worked on aligning WorkerNavigator with the specification for Safari 10. |
Makes sense, if you didn't change |
I don't really mind exposing those 2 although they are constant and therefore kind of pointless. (Why bother exposing them?) Note sure what you mean by sprinkling exposed=window since it seems like you want us to expose more things to workers and not restrict more things to Window. |
@cdumez, right, I'm only removing |
Ok, will fix WebKit via https://bugs.webkit.org/show_bug.cgi?id=163124 |
LGTM, if a bit sad. Do you plan to file bugs on Edge for appCodeName, and the other 2 browsers for productSub, vendor, and vendorSub? |
…posed on WorkerNavigator https://bugs.webkit.org/show_bug.cgi?id=163124 Reviewed by Ryosuke Niwa. Source/WebCore: productSub / vendor / vendorSub should not be exposed on WorkerNavigator: - https://html.spec.whatwg.org/#navigatorid Test case: - http://w3c-test.org/submissions/3881/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker Note that the specification also restricts NavigatorID's appCodeName and product attributes to Window. However, it seems the HTML specification is about to get updated so that these get exposed to workers: - whatwg/html#1870 No new tests, updated existing test. * bindings/scripts/generate-bindings.pl: (shouldPropertyBeExposed): * page/NavigatorID.idl: LayoutTests: Update existing test to reflect behavior change. * fast/workers/resources/worker-navigator.js: * fast/workers/worker-navigator-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@206926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Yes, I'll file an Edge bug when the test is landed, https://bugs.webkit.org/show_bug.cgi?id=163124 should suffice for WebKit. |
Tests: web-platform-tests/wpt#3881
Attempting to write tests for the current spec revealed that product was
already exposed in all engines, and appCodeName in all but Edge.
This leaves productSub, vendor and vendorSub restricted, where there is
a 2/2 split between engines.
Follow up to #216.