Skip to content
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

DOM: document.origin is historical now #20995

Merged
merged 2 commits into from
Jan 6, 2020
Merged

Conversation

annevk
Copy link
Member

@annevk annevk commented Jan 2, 2020

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Please separate the renames into a different commit or pull request from the actual additions.

@annevk annevk force-pushed the annevk/document-origin branch from bb38ff3 to 171e3dc Compare January 3, 2020 07:46
@annevk
Copy link
Member Author

annevk commented Jan 3, 2020

Okay...

@annevk annevk requested a review from domenic January 6, 2020 13:03
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Only reviewed the second commit

@annevk annevk merged commit c9ea677 into master Jan 6, 2020
@annevk annevk deleted the annevk/document-origin branch January 6, 2020 16:48
annevk added a commit to whatwg/dom that referenced this pull request Jan 6, 2020
Use self.origin instead.

Tests: web-platform-tests/wpt#20995.

Closes #410.
caiolima pushed a commit to caiolima/webkit that referenced this pull request Jan 8, 2020
https://bugs.webkit.org/show_bug.cgi?id=205681

Reviewed by Geoffrey Garen.

LayoutTests/imported/w3c:

Merge upstream changes from:
- web-platform-tests/wpt#20995

* web-platform-tests/dom/historical-expected.txt:
* web-platform-tests/dom/historical.html:
* web-platform-tests/dom/nodes/Document-constructor-svg.svg:
* web-platform-tests/dom/nodes/Document-constructor-xml.xml:
* web-platform-tests/dom/nodes/Document-constructor.html:
* web-platform-tests/dom/nodes/Node-cloneNode.html:
* web-platform-tests/html/browsers/windows/browsing-context.html:
* web-platform-tests/html/dom/usvstring-reflection.https.html:

Source/WebCore:

Remove document.origin, which was replaced by self.origin as per:
- whatwg/dom#815
- whatwg/dom#410

Gecko has never supported this and Blink has already dropped support for it.

No new tests, updated existing tests.

* dom/Document.cpp:
(WebCore::Document::origin const): Deleted.
* dom/Document.h:
* dom/Document.idl:
* dom/ScriptExecutionContext.h:
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::printAccessDeniedMessage const):
* workers/WorkerGlobalScope.h:
* worklets/WorkletGlobalScope.cpp:
(WebCore::WorkletGlobalScope::origin const): Deleted.
* worklets/WorkletGlobalScope.h:

Source/WebKitLegacy/mac:

* DOM/DOMDocument.mm:
(-[DOMDocument origin]):

LayoutTests:

* fast/dom/Document/document-constructor-expected.txt:
* fast/dom/Document/document-constructor.html:
* fast/dom/domparser-parsefromstring-origin-expected.txt:
* fast/dom/domparser-parsefromstring-origin.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ryanhaddad pushed a commit to WebKit/WebKit that referenced this pull request Dec 22, 2020
https://bugs.webkit.org/show_bug.cgi?id=205681

Reviewed by Geoffrey Garen.

LayoutTests/imported/w3c:

Merge upstream changes from:
- web-platform-tests/wpt#20995

* web-platform-tests/dom/historical-expected.txt:
* web-platform-tests/dom/historical.html:
* web-platform-tests/dom/nodes/Document-constructor-svg.svg:
* web-platform-tests/dom/nodes/Document-constructor-xml.xml:
* web-platform-tests/dom/nodes/Document-constructor.html:
* web-platform-tests/dom/nodes/Node-cloneNode.html:
* web-platform-tests/html/browsers/windows/browsing-context.html:
* web-platform-tests/html/dom/usvstring-reflection.https.html:

Source/WebCore:

Remove document.origin, which was replaced by self.origin as per:
- whatwg/dom#815
- whatwg/dom#410

Gecko has never supported this and Blink has already dropped support for it.

No new tests, updated existing tests.

* dom/Document.cpp:
(WebCore::Document::origin const): Deleted.
* dom/Document.h:
* dom/Document.idl:
* dom/ScriptExecutionContext.h:
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::printAccessDeniedMessage const):
* workers/WorkerGlobalScope.h:
* worklets/WorkletGlobalScope.cpp:
(WebCore::WorkletGlobalScope::origin const): Deleted.
* worklets/WorkletGlobalScope.h:

Source/WebKitLegacy/mac:

* DOM/DOMDocument.mm:
(-[DOMDocument origin]):

LayoutTests:

* fast/dom/Document/document-constructor-expected.txt:
* fast/dom/Document/document-constructor.html:
* fast/dom/domparser-parsefromstring-origin-expected.txt:
* fast/dom/domparser-parsefromstring-origin.html:


Canonical link: https://commits.webkit.org/219041@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants