WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
87540
Allow synchronous XHRs to be disabled in documents
https://bugs.webkit.org/show_bug.cgi?id=87540
Summary
Allow synchronous XHRs to be disabled in documents
Mihai Parparita
Reported
2012-05-25 15:38:25 PDT
Allow synchronous XHRs to be disabled in documents
Attachments
Patch
(14.20 KB, patch)
2012-05-25 16:19 PDT
,
Mihai Parparita
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mihai Parparita
Comment 1
2012-05-25 16:19:50 PDT
Created
attachment 144166
[details]
Patch
WebKit Review Bot
Comment 2
2012-05-25 16:23:01 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Eric Seidel (no email)
Comment 3
2012-05-25 16:30:22 PDT
Are we disabling them in extensions or something? I support this change, but I'm curious why we'd have it.
Mihai Parparita
Comment 4
2012-05-25 16:33:44 PDT
(In reply to
comment #3
)
> Are we disabling them in extensions or something? I support this change, but I'm curious why we'd have it.
Yeah, for apps. See
https://chromiumcodereview.appspot.com/10443047
for the Chromium side that uses this.
Eric Seidel (no email)
Comment 5
2012-05-25 16:37:19 PDT
Comment on
attachment 144166
[details]
Patch LGTM.
Alexey Proskuryakov
Comment 6
2012-05-25 18:08:32 PDT
Comment on
attachment 144166
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=144166&action=review
> Source/WebCore/xml/XMLHttpRequest.cpp:489 > + logConsoleError(scriptExecutionContext(), "Synchronous XMLHttpRequests cannot be made in the current window context.");
Is there a way to explain the reason to authors seeing this? The current wording is a bit misleading (cannot be made in current context, so it can be made in another? what do I do to enable them again?)
Adam Barth
Comment 7
2012-05-25 18:14:48 PDT
Maybe "Synchronous XMLHttpRequests are disabled for this page" ?
WebKit Review Bot
Comment 8
2012-05-25 19:06:06 PDT
Comment on
attachment 144166
[details]
Patch Clearing flags on attachment: 144166 Committed
r118599
: <
http://trac.webkit.org/changeset/118599
>
WebKit Review Bot
Comment 9
2012-05-25 19:06:19 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 10
2012-05-29 14:48:12 PDT
This made a lot of tests "flaky" on bots, because the setting leaks from the added test to all future ones: --- /Volumes/Data/slave/lion-intel-release-tests-wk2/build/layout-test-results/fast/xpath/4XPath/Borrowed/od_20000608-expected.txt +++ /Volumes/Data/slave/lion-intel-release-tests-wk2/build/layout-test-results/fast/xpath/4XPath/Borrowed/od_20000608-actual.txt @@ -1,6 +1,6 @@ -PASS nodeset.snapshotLength is 0 -PASS nodeset.snapshotLength is 12 -PASS successfullyParsed is true +CONSOLE MESSAGE: Synchronous XMLHttpRequests cannot be made in the current window context. +CONSOLE MESSAGE: line 67: INVALID_ACCESS_ERR: DOM Exception 15: A parameter or an operation was not supported by the underlying object. +FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined). TEST COMPLETE
Alexey Proskuryakov
Comment 11
2012-05-29 14:50:48 PDT
Filed
bug 87783
about that.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug